Make screenshot on display 1 with the imagemagick
DISPLAY=:1 import -window root screen.png
Source: Xvfb and Firefox headless screenshot generator « Ivan Villareal.
Make screenshot on display 1 with the imagemagick
DISPLAY=:1 import -window root screen.png
Source: Xvfb and Firefox headless screenshot generator « Ivan Villareal.
First, install a VNC server:sudo apt-get install vnc4server
Next, start and configure the server:vncserver
At this point, it should ask you to create a password for VNC. Do so, then continue.
Start a VNC screen on screen 99:vncserver :99
If that goes through alright, then kill the screens created. (For me, when I ran vncserver for the first time, it created a screen at :1, so we'll kill both of the screens created)vncserver -kill :99
vncserver -kill :1
Done. Now, it "just works."
sudo apt-get install imagemagick
mogrify -resize 640x480 *.jpg
keytool -list -alias temp -keystore /path/to/your/keystore_fileyou will be asked fot password and the Certificate fingerprint (SHA1) will be shown
keytool
comes with the Java SDK. You should find it in the directory that contains javac
, etc." wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
sudo dpkg -i mod-pagespeed-*.deb
sudo apt-get -f install
sudo service apache2 restart
$dev_appserver.py --address=0.0.0.0 ./src/
$ cd github-services
$ git remote add upstream git://github.com/<user>/<repository>.git
$ git fetch upstream
sudo /usr/sbin/pm-hibernate
gnome-screensaver-command -l && sudo /usr/sbin/pm-hibernate
If you are getting "Upload HD videos in various formats up to 15 minutes." in youtube.
Just got to http://www.youtube.com/my_videos_upload_verify and verify your account.
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chrome://flags
adb devices
???????? device
gksu gedit /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666", OWNER="YOUR_USER_ID"
lsusb
Bus 001 Device 013: ID 18d1:4e42 Google Inc.
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e42", MODE="0666", OWNER="YOUR_USER_ID"
sudo service udev restart
adb devices
List of devices attached
015d172c98280c0b device
ACTION!="add", GOTO="gtab_rules_end"
SUBSYSTEM!="usb|usb_device", GOTO="gtab_usb_end"
ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="685e", MODE="0777" SYMLINK+="gtab"
LABEL="gtab_usb_end"
LABEL="gtab_rules_end"
C:\Python27>python
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
>>> im = Image.open('test.png')
>>> im.show()
>>>
$strNewXml = "ÜBERSICHTSKARTE MIT HIGHLIGHTS";
To replace "Ü" use \xdc where "dc" is a Hex value of the "Ü" character from this table
http://www.pjb.com.au/comp/diacritics.html
$strNewXml =~ s/\xdcBERSICHTSKARTE MIT HIGHLIGHTS//g;
To configure the monitor and display adapter, you need to re-configure
your Xorg server. To do that, first backup your xorg.conf file by
executing the following command:
# sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
then, stop X by executing the following command (this will put you to
text only mode):
# sudo /etc/init.d/gdm stop
You can do the whole X configuration process by executing:
# sudo dpkg-reconfigure xserver-xorg
Once you have re-configured Xorg, start GNOME again by executing this
command:
# sudo /etc/init.d/gdm start