William arbeitet Nachtschichten bei McDonald’s. Er kommt aus Ghana, und man sieht ihm sein Alter nicht an. Er mag die gleiche Musik junge Leute mögen, und er arbeitet die ganze Nacht pausenlos. ich glaubte er könnte nicht Älter als 35 sein. Später habe ich entdeckt - er war 58.
$a = [1, 2, 3, 4]; $a = ['one' => 1, 2, 'three' => 3, 4]; (see post in my blog)
I have been using Capsule, a CRM, for a couple of years, to help me manage the endless stream of emails from recruiters. It has some good features, but it is not really suited to freelancers. It may work well for sales people, though. Perhaps. More →
There are a few different ways of handling MySQL in in PHP. Ext/mysql, i.e. the functions that start with mysql_xxx, is the oldest and most well known. It is also insecure, doesn’t use all the database features, and will be phased out and in future releases. Use mysqli instead, or at least pdo_mysql.
Evernote have a beta of their FF 5 plugin at update.evernote.com/prerelease/ENMozillaExtension/mozilla-extension-4.beta.xpi
When you open a new tab in Chrome it shows to everyone who may be watching your screen (clients, colleagues, etc) the sites you visit often. Surprisingly, there is no settings to change that. However, that is easily fixed with a simple extension: Blank New Tab
Just installed the Awesome Screenshot browser extension by diigo.com on Chrome – very happy with it. So far it’s the best extension of its type I have tried. You can quickly just save the screen grab as is, or you can annotate it first, which is very helpful. 5 stars.
WebRTC looks interesting - it allows to build HTML5 video / audio apps from within the browser (i.e., without need for Skype or an iPad app).
Not surprisingly it’s only supported by Mozilla, Opera, Chrome - and knowing Google, Chrome support will stop if someone develops an app that could challenge YouTube.
“WebRTC offers web application developers the ability to write rich, realtime multimedia applications (think video chat) on the web, without requiring plugins, downloads or installs. It’s purpose is to help build a strong RTC platform that works across multiple web browsers, across multiple platforms.”
I always forget this. Type this in Firebug:
I know, CSS hacks are evil and one should use conditional statements. But sometimes you just need some quick and dirty solution, so…
padding : 0 20px 20px 20px; /* all browsers, of course */
padding : 0 20px 0px 20px;\9; /* IE8 and below */
*padding : 0 20px 2px 20px;; /* IE7 and below */
_padding : 0 20px 4px 20px;; /* IE6 and below */
If you have different versions of tomcat on your machine, it can be confusing working out whether there is already one running.
On OS X, first of all use netstat (this works on all OS, possibly with different options) to find out whether any process is listening to the default tomcat port
netstat -an | grep 8080
That should give you an output like
tcp46 0 0 *.8080 *.* LISTEN
Then find out the process id for that listening process
lsof -i TCP:8080
Which should return something like
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 2800 fritz.stelluto 65u IPv6 0x08add830 0t0 TCP *:http-alt (LISTEN)
Then use that PID (in this case 2800) to find out what cmd started it
ps -wwp 2800
That should return something like this
PID TTY TIME CMD
2800 ttys000 0:04.39 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java -Djava.util.logging.config.file=/Users/.....
from which you can determine the command.
/ .inputrc is a file used by your unix shell (Terminal in OS X) to control certain input sequences. Here is one with some useful commands. The best one for me is the search through history with cursor up / down. For example if you type ‘cd ’ then the up cursor will show only the commands in the history which start with ‘cd’ … very useful.
# do not make noise
set bell-style none
#turns on case insensitivity for tab-completion
set completion-ignore-case On
#enable nice readline & bash cursor movement (control + arrow keys and what not)
# By default up/down are bound to previous-history
# and next-history respectively. The following does the
# same but gives the extra functionality where if you
# type any text (or more accurately, if there is any text
# between the start of the line and the cursor),
# the subset of the history starting with that text
# is searched (like 4dos for e.g.).
# Note to get rid of a line just Ctrl-C
# Include system wide settings which are ignored
# by default if one has their own .inputrc
After changing DNS settings or editing the hosts file, it is a good idea to flush the DNS settings.