Sunday, July 6, 2008

Homebrew Why Does Gravity

Installing Django on Windows

a lot recently I use Windows, and found that, in addition we have some Cygwin environment for coding in Django . Some time ago I installed the version of "instant", which I would recommend this. But, as they say on the railway, in order:
to do something in Django are needed: first
Django itself,
second Python, of course,
third database, without it, of course, it can be dealt with, but it makes no sense, especially as we get it (the base) "gratis",
4th tool for handling database
5th sample application.
course, you should have a good editor, and that as we all know, everyone chooses the same (to me were, on the occasion of installed Eclipse + pydev , what if need it)
assumption of the entire installation to be too fast for such an environment, and as a goes a minimum configuration.

Django itself (point 1) charge from this link (for the moment directly from the archive file (~ 22MB) ), what's interesting is bundled with the Python, or section 2 we already have a head, and the variety we get the base (point . 3) in the form of sqlite. Applications grab sample from the same page or directly . It only remains to point 4, which is managing the database. Here you can easily use our Firefox add-on:
sqlite-manager (after downloading the file. Xpi you can drag it to the list of additives)
InstantDjango Installation is simple; run the self extracting archive that will indicate the destination directory and fruuu, unpacking takes a little long, so you have to show patience, but eventually all is an ~ 70MB.
Then we add at the end of the file start.bat :

echo Instant Django is now ready echo
In app directory: python manage.py runserver
echo.

and then it ( start.bat ) start and we have "quasikonsole" Django to run commands. Then just go to the application directory and we can, for example, run:

F: \\ django> cd crimemap
F: \\ django \\ crimemap> python manage.py runserver
Validating models ...
0 errors found Django version 0.97
-pre-SVN-6991, using settings 'crimemap.settings'
Development server is running at http://127.0.0.1:8000/

and for example, we address
our sample application. Of course, it can be generated and write yourself, what would encourage ( often ). If only because the sample application does not belong to the masterpieces of art and programming requires changes to work with the default settings InstantDjango.

I still had to write an update on the installation of Django, but it turns out that, in the Utilities folder is no longer appropriate batch: update.bat .

If you interested in this entry, it can read other entries on Django or on Windows, we strongly encourage you to glance at my collection of links , which recently periodically to divide.
for using the RSS feed address with posts, you can subscribe.



Friday, May 9, 2008

Blush Belfast Lisburn Rd

stack empty

Some time ago I read about the new initiative Joel Spolsky'ego: stackoverflow.com . Looks interesting? Maybe. Unless you agree with the thesis according to which the developers do not read books (even those with programming), it programming by trial-and-error is a crude abuse (semantic, of course).
Bo:
- what is the point of reading the 200-page book, only to learn one or two new things,
- as someone working in a professional environment, his problems are not described in the books, even the better ones,
- before things become so fashionable that some książkopisarz will want to write about it, the pros will have long recognized every detail.
- książkopisarze rarely are good programmers and vice versa, therefore, much more important is the teamwork, the guru / father leads, who will lead (and did not call this pompously pair programming)

Next thing you said JS is typing problem in Google and hitting is not the solution, and even if this solution is not supported by expert knowledge or paid. I am from the perspective of my (modest, but still) consider the experience, or something in Google / forum at the program / library, or you need to go to the producer (but if you want to some form of bracket). Always is Usenet, on which a lot of things you like to know, and as it is not enough even Code Project.

Based on these (in my opinion misguided) assumptions, Joel decided to create a page that will solve the problems presented by him: it will be available for free, with no intrusive ads, the need (but with the possibility of) the registration and will include a knowledge experts. Remains to be seen at the event site is actually empty, but contains a link to a blog on which they are already 4 podcasts.


Monday, May 5, 2008

Tricks And Tips Dishwash In Restaurant

News in GReaderze

small thing but a nice one. The Google Reaeder added new features yesterday: First of all, adding
notes - is a simple bookmarklet , pulls him to the bar favorites, like us a page, click, we add a note, quick decision as to whether we would like to share a note and flies.
For this you can write notes, "just".
addition, we can determine how you want your page with things that are shared.
The whole course is described at:
Official Google Reader Blog: Share anything. Anytime. Anywhere.
where I first found and then I read, and I must admit two things:
came up as usual, just like it should work (IMHO),
exactly the way I was thinking one day that could use the opportunity add all the parties to Reader.
with trinkets that are observed later:
can add a note to the things found in your subscribed elements
renamed checkbox "mark as read" to "keep unread" - which is definitely better reflects the meaning of this element.

Thursday, March 27, 2008

Rook Piercing Pain Swelling

aka podpowiadacz Zemanta semantic

I came across something that requires writing to test the new post on the blog. It is Zemanta party (actually web service + plugin for firefox), suggesting the content (photos / articles) to the currently written article. Of course, testing can not proceed exactly as suggested by the authors of the tool. I tried to find the content of the same title and the first sentence, but the result was poor. After the first 300 characters have already begun to appear something. But rather as a reaction to specific keywords in English. Another attempt
obviously applies Django
After a short test, short conclusion: in the era of writing on similar subjects (all write about Tibet, Olympics, etc.), this tool can be a good complement to the blog in the hands of seasoned scribblers. Nice is also updated every 300 characters, or on demand. Coming out in a total googloprzyśpieszacz. It is unfortunate that look after is rather the English-language network and the pictures always end up at the beginning, there is no option (or in appendices to firefox, or in the interface, otherwise neat).

Source: Wikipedia