Building a new PC!
This week I will be building a new desktop PC. I will add some how-to's and some pictures if anyone is curious on what I am building. Here are the items that I have ordered and should be here soon. Stay tuned for the breakdown
CPU: Intel i7-2600k Amazon had the best price for me
Memory: G.Skill Ripjaw X series 8GB New Egg
Video Card: MSI 560 GTX Twin Frozr II
Case: Cooler Master HAF 922
Hard Drive: Samsung Spinpoint 1 TB
CPU Cooler: Cooler Master Hyper 212 Plus
PSU: Seasonic 80Plus Power Supply M12II 620 BRONZE
Mother Board: ASUS P8P67 PRO LGA 1155 SATA 6Gbps and USB 3.0 Supported Intel P67 DDR3 2400 ATX Motherboard
C# XNA and Multiplayer Gaming
I was starting to do a little multi-player game using c#, async sockets, and XNA when I find out that my development laptop lacks a sufficient video card. BUMMER! I was previously pushing into HTML5 and websockets only to remember how much I struggle with web development. It is not that it is difficult, compared to other languages, it is the lack of ability to have a web layout the way I want it to look.
Since the game is on hold until I build a new PC, I am switching focus into some android and java development. Coming weeks and months I'll post my progress and anything I learn along the way.
Create rounded corners with CSS3
The CSS3 border-radius property allows web developers to easily utilise rounder corners in their design elements, without the need for corner images or the use of multiple div tags, and is perhaps one of the most talked about aspects of CSS3. This is a life saver since old ways to generate this effect were annoying.
Since first being announced in 2005 the boder-radius property has come to enjoy widespread browser support (although with some discrepancies) and, with relative ease of use, web developers have been quick to make the most of this emerging technology.
Here’s a basic example:
#example1 {
border-radius: 15px;
}
However, for the moment, you’ll also need to use the -moz- prefix to support Firefox
#example1 {
-moz-border-radius: 15px;
border-radius: 15px;
}
San Francisco Giants win World Series!
The title says it all. San Francisco will have a parade on Wednesday November 3rd, 2010. The parade will start at 11 a.m. Wednesday at Montgomery and Washington streets and go southbound on Montgomery to Market Street before continuing west on Market Street to Civic Center Plaza.
W00t
Python import sha/md5 deprecated warnings fix
When using django-registration app 0.7 version it seems like the python version used changed how they create the sha key for authentication string.
The warning is :
DeprecationWarning: the sha module is deprecated; use the hashlib module instead
You'll see this warning for the django-registration module and will need to modify the modules.py file in the root registration directory.
The modifications:
- Replace the import sha with import hashlib.
- Replace all occurrences of sha.new() with hashlib.sha1()
The other option is to from hashlib import sha1 as sha. That would make it so no code changes at all, just remember what it means!
Cherokee and webserver pain
Cherokee is a pretty cool webserver, it's fast, has a GUI admin page etc.. The problem I have regards the default settings it uses for uwsgi and django. I know a lot of this is a work in progress but my nOOb skillz are killing me. On top of that I am knew to django and python so I might be trying to bite off more than I can chew. Last night I finally got a uwsgi command that works for serving up my django pages, but now I get major django errors I am not sure what I am doing... I think I am going to head back to the drawing board.
1) Create Django Project
2) Create Django App (polls app )
3) Use SqlLite for now
4) Set up Cherokee and UWSGI to point to my django app
5) Tinker with the UWSGI permissions, I think since cherokee runs as www-data it can't execute uwsgi correctly?
Installing and deploying Cherokee, django and uWSGI… oh my!
I wanted to tinker around with Django and python programming to do some basic websites. I've been trying to find complete resources online to install Cherokee, uwsgi and django. I've found a few, but my main issue is my lack of uber linux skills. Thus, this blog will provide the means to express my frustration and, hopefully, triumph!
Matt