Skip to main content

Posts

Showing posts with the label GUI

Django: How to debug Django

There are several ways of debugging Django. I'll try to cover most common and tell what I know/use time to time. This article may become useful to Django newbies and is not intended to be "the only truth". It may help you know in general about debugging techniques commonly used in Python/Django projects that author is aware of. Let's get started. There are several methods to discuss here. 1. Print out into console. It may become handy while working with critical bugs that only appear in production for e.g. and are not traceable at development environment... The only way here to run your project manually and do debug in production. Those requirements are so rare that I only use standart (builtin) tools. There is a thing called PDB (Python Debugger). That comes in a standart set of usual python distribution. So it will be available to you at almost any environment where you have console access to your project. Here is an official documentation for pdb module ....

SSH: Mount remote file system on your Mac over SSH to access in Finder

    Maybe you're already know about how to connect to remote servers through Local network on your Mac, but how about SSH server connections?     Lets say you may open a terminal window and run "ssh username@server.com" it will ask you for a password and "Ta-da" we're in. But what about usability. If you're console geek, this is enough for you. As for the others let's talk about adding some GUI to it. Some time ago Google engineers released a package for Mac's to mount remote filesystems, using lots of methods, including SSH.     This software is called MacFuse. It connects remote filesystems to your Mac's finder. You will see it in your computer as a regular Mac's network drive.     MacFuse has developed to the point, where it's extremely easy to "make it work". This is the way:     1. Install MacFuse and SSHFS. at the time of writing this article version is  MacFUSE-2.0.3,2.dmg  and you can  dow...

How to setup Git to work with Eclipse.

Git is a best version control system, as for me. That's why I decided to write a few words about setting up a git GUI for yourself. I assume you use Eclipse for your everyday coding. As long as your project is small and you simply committing for co-working with other project members everything is ok with command line tools of Git. I made commits on a daily basis. Main commands I used was: "git add", "git remove", "git commit -m", "git push"... It's ok when you commit 5 to 20 files. You can manually add them. It takes about some minutes. One day a project grown up.  Commits became a hard typing work. So that's the manual how to befriend your Eclipse with Git(hub). 1. Install Eclipse plugin called EGit. It is well documented and highly sophisticated Eclipse plugin for working with Git. You can read almost any step of setting up this plugin in it's official docs: http://wiki.eclipse.org/EGit/User_Guide . It's quite cool a...