background preloader

Programming literacy » Core units

Programming literacy » Core units

Programming Methodology - Download free content from Stanford Linux: What are some time-saving tips that every Linux user should know Malicious Linux Commands - From (This article was originally published in Ubuntu Forums but was removed there. Ubuntuguide feels that knowledge about these risks is more important than any misguided attempts to "protect the public" by hiding their potential dangers or protect the (K)Ubuntu/Linux image. ATTENTION: It is worthwhile to have some basic awareness about malicious commands in Linux. It is also worthwhile to always enable a Kubuntu screensaver or Ubuntu screensaver with a password so that a casual passerby is not able to maliciously execute one of these commands from your keyboard while you are away from your computer. When in doubt as to the safety of a recommended procedure or command, it is best to verify the command's function from several sources, such as from readily available documentation on Linux commands (e.g. manpages). Here are some common examples of dangerous commands that should raise a red flag. Delete all files, delete current directory, or delete visible files in current directory rm -r or

8 Useful and Interesting Bash Prompts Many people don’t think of their command prompt as a particularly useful thing, or even pay it much attention. To me, this is a bit of a shame, as a useful prompt can change the way you use the command line. Well I’ve scoured the Interwebs looking for the best, most useful, or sometimes most amusing bash prompts. Here, in no particular order, are the ones I’d be most likely to use on my computers. Note – to use any of these prompts, you can copy & paste the “PS1=” line directly into your terminal. 1. This prompt is probably the most amusing one on the list, but remains useful. Example: Code: 2.Change color on bad command Here’s one of my favorites. 3. If you’re the type who wants to pack your prompt full of information, then here’s the one for you. 4. There’s nothing particularly fancy about this prompt, other than the good use of color to separate the different pieces of information. 5. This one’s a nice, clean, minimal 2-line prompt (plus a blank line at the top). Code: 6. 7. 8.

Android Tools Project Site Tutorial - Learn Python in 10 minutes | Stavros' Stuff NOTE: If you would like some Python development done, my company, Stochastic Technologies, is available for consulting. This tutorial is available as a short ebook. The e-book features extra content from follow-up posts on various Python best practices, all in a convenient, self-contained format. All future updates are free for people who purchase it. Preliminary fluff So, you want to learn the Python programming language but can't find a concise and yet full-featured tutorial. Properties Python is strongly typed (i.e. types are enforced), dynamically, implicitly typed (i.e. you don't have to declare variables), case sensitive (i.e. var and VAR are two different variables) and object-oriented (i.e. everything is an object). Getting help Help in Python is always available right in the interpreter. >>> help(5)Help on int object:(etc etc) >>> dir(5)['__abs__', '__add__', ...] >>> abs. Syntax Python has no mandatory statement termination characters and blocks are specified by indentation. Strings

Custom Toolbar Buttons Maker Knowing that installing a huge amount of buttons is not exactly everyone's preference, here is a simple way of making a version of it that has just what you want; thus, keeping the file size as small as possible. Just tick the check boxes, hit Submit, and you have a customized version of Toolbar Buttons for your very own. The extensions generated here no longer match the latest version of Toolbar Buttons. That will be fixed soonish. Extensions created here still work fine in most cases. If you must have the latest version and must have it now, it is possiable to use the insturstions here. Using Toolbar Buttons version 0.6.0.8 released Aug 26th 2009. Toolbar Buttons should not be installed at the same time as an extension created here.

Related: