Jun 282011
 

Easiest way using the Ubuntu/Debian package nautilus-image-converter:

sudo apt-get install nautilus-image-converter

Using a Custom Photo Resize Script for the Nautilus File Manager

This context menu script can resize to 3 predefined sizes (more can be added) and it asks to put the resized pics in a folder or rename them. Put the script in ~/.gnome2/nautilus-scripts/ named Create_thumbs. (make it executable using chmod +x ~/.gnome2/nautilus-scripts/Create_thumbs). It needs: imagemagick (so install it first using sudo apt-get install imagemagick).

Original found on the

Rating: 8.0/10 (1 vote cast)
Jun 282011
 

http://de.wikipedia.org/wiki/Windows_PowerShell
Windows 7 ships with v2.0 of the Windows PowerShell. On a German Win7 installation you can start it via Start → Alle Programme → Zubehör → Windows PowerShell → Windows PowerShell (ISE).

Get Help

Owner’s manual: http://technet.microsoft.com/en-us/library/ee221100.aspx

Help -?

or via get-help *.

Translating Simple DOS Commands to Powershell cmdLets

DOS Command Powershell cmdLet A succinct Alias
cd Set-Location sl
cls Clear-Host clear
copy Copy-Item cp
del Remove-Item ri
dir Get-ChildItem ls
echo Write-Output write
popd Pop-Location popd
pushd Push-Location pushd
Jun 282011
 

http://www.cherokee-project.com/

Installation

http://www.cherokee-project.com/doc/

Debian/Ubuntu offers Cherokee packages but they are quite outdated for the stable branch. So you may want to prefer the manual installation from source.

Manual Installation From Source

The easy way of installation:

wget http://cherokee-project.com/install && python install

or get the source and compile it yourself:

wget http://www.cherokee-project.com/cherokee-latest-tarball

After the installation you may run

/opt/cherokee/bin/cherokee-admin-launcher

for the admin interface and the following for the Cherokee server itself:

/opt/cherokee/sbin/cherokee -d

Installation via Package Manager

cherokee and django

http://www.cherokee-project.com/doc/cookbook_django.html
http://www.rkblog.rk.edu.pl/w/p/django-and-cherokee-server/

Resources

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Jun 262011
 

This is the continuation of the topic gedit Markdown plugin and the comment by Jean-Philippe Fleury, the author of the plugin.

If you frequently have to create Markdown documents, you might want your text editor of choice to support you. Jean-Philippe Fleury developed a nice plugin for Gedit to support Markdown. The plugin can help in two ways: It can apply coloured syntax markup and add a preview pane showing you a rendered version of the markdown code you just entered using [Shift]+[Control]+[m] (configurable via a config file).

Markdown for the Gedit Text Editor on Ubuntu 11.04
Jun 262011
 

http://synergy-foss.org/pm/projects/synergy/wiki/UsingSynergy

Install:

cd ~/Downloads
curl -C - -O http://synergy.googlecode.com/files/synergy-1.4.5-MacOSX107-x86_64.dmg
open synergy-1.4.5-MacOSX107-x86_64.dmg
cd /Volumes/Synergy/
cp -r Synergy.app /Applications/

Start the server:

synergys -f --config ~/synergy.conf

where synergy.conf is:

# sample synergy configuration file
#
# comments begin with the # character and continue to the end of line.
# comments may appear anywhere the syntax permits.

section: screens
    seagull:
    lion:
end

section: links
    seagull:
            right = lion

    lion:
            left  = seagull

end

section: aliases
end

Connect the client

synergyc -f --name seagull 192.168.seagull.ip
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Jun 202011
 

Yesterday, I had to prepare for an exam at the University but instead of learning for it I wrote a small tool to browse the unicode characters. You can have a look at it on http://pklaus.github.com/js-Unicode-Selector. It’s fun to browse all the characters available on the Unicode system!

It also features permanent links for the character so if you want to share a character with somebody else, click on permalink, copy the adress and give it to somebody else.

js-Unicode-Selector – A tool to have a closer look at Unicode Symbols
Jun 202011
 

The Bash is probably the most important shell and scripting language in the world as it is included with almost any operating system (excl. MS Windows). The automation that can be achieved with very predictable results is great even though the complexity of the scripts is somehow limited. Doing calculations using the Bash is not so straight-forward for example.

Jun 202011
 

On Wikipedia there is a Comparison of (x86) assemblers. You can sort the table by x86_64 capability.

Syntax

Most x86 assemblers use Intel syntax. Here is a little comparison: http://asm.sourceforge.net/articles/linasm.html#Syntax

Intel syntax

Most widely used assembler syntax.

AT&T syntax

At the end of the mnemonics you put a size suffix (one letter). To change the size, you change the suffix (b, w, l, q for byte, word, dword, and qword). On x86 machines: b:8bit, w:16bit, l:32bit, q:64bit.

Size on x86 Suffix
byte 8bit b
word 16bit w
dword 32bit l
Jun 202011
 

Operators in C

Operators in C and C++: http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B

C supports a rich set of operators, which are symbols used within an expression to specify the manipulations to be performed while evaluating that expression. C has operators for:

  • arithmetic (+, -, *, /, %)
  • equality testing (==, !=)
  • order relations (<, <=, >, >=)
  • boolean logic (!, &&, ||)
  • bitwise logic (~, &, |, ^)
  • bitwise shifts (<<, >>)
  • assignment (=, +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=)
  • increment and decrement (++, --)
  • reference and dereference (&, *, [ ])