everything I'm doing

  • Archive
  • RSS
  • Ask me anything

Some Python and Golang MongoDB testing

I did some testing on go vs python using mongodb. This all has been produced on a ubuntu test vm with 1core and 2gb memory.
I used the latest Go 1.0.3 and Pythn 2.7.3 and Mongodb 2.2.2

It does insert 10k entries and execution time was taken with “time”.

For Go I used the mgo mongodb driver and for Python I used pymongo.

In average Python did around 1050 - 1100 db inserts per second
In average Go did around 1300-1400 db inserts per second.

I did the test 10 times and took the average and at the end Go was btw. 18-19% faster

I ran the python compiled version against the go compiled version not “go run” and for python the pyc file instead the py file.

https://gist.github.com/4281028

    • #python
    • #golang
    • #mongodb
    • #programming
  • 5 months ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Stuff I use

This is a list of Stuff I got installed on my Windows Machine. Most of it for daily usage.

  • Paint.net
  • Adobe Photoshop
  • Blender
  • SketchUp Pro
  • Visual Studio 2010 (for C++ and C#)
  • Eclipse (Java development)
  • jMonkeySDK (Java 3d Game Development)
  • FlashDevelop (ActionScript)
  • OgmoEditor
  • Sublime Text 2 (ruby, python, php, css, html and mostly everything else)
  • LibreOffice
  • Console2 (a better windows Console)
  • Winamp (mostly playing di.fm)
  • sfxr
  • Pidgin (for jabber, icq, msn etc to keep old skool connections a live)
  • Skype
  • wamp (windows apache, mysql, php server)
  • Avast Antivirus
  • TweetDeck
  • Last.fm
  • Browser (primary Chrome but for development/testing also Opera, Safari, Firefox)
  • izarc (archive tool)
  • VLC
  • Git
  • FileZilla (ftp client)
  • putty (ssh client)
  • ext2fsd (to mount my linux stuff in windows)
  • Battlefield Heroes ( klassik shooting game)
  • Ruby
  • Python
  • GoLang
  • Java SDK
    • #applications
    • #apps
    • #windows
    • #software
    • #desktop
  • 1 year ago
  • 7
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Nodejitsu awesomeness

Today I got my nodejitsu access, thanks to @jesusabdullah.
After following the steps in the E-mail I then got I couldnt activate my account or at least it said it was still invalid so I got onto @marak and he helped my with the activation and actually there was an S missing in the command it didnt complain that it was wrong either :-)

Anyway. For testing purpose I used my current project “nodeblog” to be deployed there and after creating a proper package.json and doing an “jitsu deploy” in the project folder, following the instructions, the project was deployed.

There is a lot more you can do with it and I will test it as much as I can and give feedback to the @nodejitsu guys.

Awesome work you are doing there. Keep up the good work!

http://nodejitsu.com

    • #nodejs
    • #nodejitsu
    • #jitsu
    • #deployment
    • #npm
    • #javascript
  • 1 year ago
  • 1
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

About Coffeecup and some templates

Last night I moved from Jade to CoffeeCup for templating engine because it just feels more comfortible for me at the moment because I do so much with nodeJS stuff at the moment and using it with coffeescript it was the best option to move onto a template engine that is basically just coffeescript.

I use html5boilerplate most of the time as a starting point and I also wanted a nodejs-express-template because I use express really often at the moment for some projects. html5boilerplate couldn’t be found so I converted it to coffeecup and builded a new nodejs express html5 template with that.

At the end of the night (beginning of the morning) I had a html5-boilerplate-coffeecup template and an nodejs-express-html5-template on github.

Have fun!

    • #nodejs
    • #boilerplate
    • #html5
    • #javascript
    • #nodejs
    • #coffeecup
    • #coffeescript
    • #express
    • #template
  • 1 year ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

My improved “Sublime Text 2” Setup

Because I got asked a few times now what Sublime Addons and Extras I use here is a screenshot of my current version and some information and links on addons, themes etc. All of the Plugins can be installed via Sublime Text 2 Package Control.

Theme:
* Soda Dark Theme

Color Schema:
* Monokai Soda 

Font:
* Meslo LG S DZ 

Plugins:
* Sublime Package Control
* Additional PHP Snippets
* Alignment
* BeautifyRuby
* BracketHighlighter
* Clipboard History
* CoffeeScript
* Display Functions (java)
* Gist
* Git
* HTML5
* Jade (install via Package Control couldn’t find link)
* jQuery
* JS Minifier
* Markdown Preview
* NodeJS
* Prefixr
* sidebar-git
* sublime-github
* sublime-jslint
* sublime-split-navigation
* CSS3 Please
* SublimeLinter
* Sublime Code Intel 

That’s about it. Enjoy and improve your Sublime.

    • #sublime
    • #github
    • #editor
    • #jquery
    • #javascript
    • #php
    • #coffeescript
    • #css
    • #python
    • #nodejs
    • #lint
  • 1 year ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

9 reasons you must install Sublime Text 2. Code like a man, man.

1p1e1:

Don’t miss my new blog post:
How to create a kick-ass product? What I learned from 37Signals’s book - Rework

Hello, fellow code monkeys.

Look at your editor. Now back at mine. Now back at yours. Now back to mine. Sadly your editor is not like mine. But if you stopped using noob-scented editor, and switched to Sublime Text 2, your editor could look like mine.

Look down. Back up. Where are you?

You are on a desk with the editor your editor could look like. 

What’s in your hand? Back at me. I have it! It’s a package control with several handy plugins that you would love. Look again. The plugins are now diamonds. Anything is possible when your editor looks like Sublime Text 2 and not Eclipse.

I’m on a horse.

Read More

  • 1 year ago > 1p1e1
  • 223
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Django with nodeJS and socket.io

I’ve build a small and yet work in progress, example of how to integrate socket.io to django with nodeJS to use django with websockets.
This example django project doesnt have any models or anything big in it.

You can find it in a git repository https://github.com/marvin/django_nodejs_socketio_example

Basicly I created a new django project and added no App to it. The first example is a small chat who doesnt actually integrate much from django but I will extend it soon.
All there is atm is a html5 Boilerplate based template with some divs, some css and javascript.
All the javascript and the nodeJS server is writte in coffee script. I’ve included the Coffeescript too so you can have a look into it.

First I’ve setup a small socket server. You need to have nodejs, npm and socket.io installed. 
What I did for Django:

  • changed some settings in the settings.py
  • setup basic urls in urls.py
  • added a view named index
  • created the required folders for public/media and templates
  • build a small index.html

The rest of the magic is in the script.js in public/media/js/script.js 

To get started clone the git repo and then in one terminal run “node server.js” and in another run “pyhton manage.py runserver 8080”

Open a browser of your choice and go to “http://localhost”

I haven’t tested it on IE as I don’t have windows and actually dont care about IE.

As soon as I improved this example and added some more examples I’ll let you know. Have fun

    • #django
    • #nodejs
    • #socket.io
    • #websocket
    • #coffeescript
    • #javascript
    • #git
    • #github
  • 1 year ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Q:WHAT MAKES YOU FEEL BETTER WHEN YOU ARE IN A BAD MOOD?

tumblrbot

programming something

  • 1 year ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Pop-upView Separately
  • 1 year ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Dozer
Pop-upView Separately

Dozer

  • 1 year ago
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Page 1 of 5
← Newer • Older →

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile
Effector Theme by Pixel Union