To take a screenshot with the Galaxy Nexus from your current screen press the volume down key and the power button together. Thats it!
WordPress: Get attachment_id from source
Wooop
|
1 2 3 4 5 |
public static function getAttachmentIdFromSource($source) {
global $wpdb;
$source= preg_replace('/-\d+x\d+(?=\.(jpg|jpeg|png|gif)$)/i', '', $source);
return $wpdb->get_var("SELECT ID FROM {$wpdb->posts} WHERE guid='$source'");
} |
SWTOR – Sinnvolle Handwerksfähigkeiten-Kombinationen
Hier eine kurze Übersicht über sinnvolle Handwerksfähigkeiten Kombinationen für “Star Wars: The Old Republic”. Als kleiner Hinweis vorweg: “Hacken” kann immer als alternative Sammelfähigkeit genommen werden.
Kunstfertigkeit (Lichtschwertmodifikationen, Aufrüstungen, Fokussen):
Sammeln: Archäologie
Mission: Schatzsuche
Klassen: Sith-Krieger, Sith-Inquisitor, Jedi-Botschafter, Jedi-Ritter,
Synth-Fertigung (Leichte, mittlere und schwere Rüstung für Machtanwender):
Sammeln: Archäologie
Mission: Unterwelthandel
Klassen: Sith-Krieger, Sith-Inquisitor, Jedi-Botschafter, Jedi-Ritter
Biochemie (Medipacks, Stims, Implantate):
Sammeln: Bioanalyse
Mission: Diplomatie
Klassen: Alle
Cybertech (Droidenrüstungen, Ohrstücke, Granaten, Armierung, Modifikationen, Apparate):
Sammeln: Plündern
Mission: Unterwelthandel
Klassen: Soldat, Imperialer Agent, grundsätzlich ist aber für alle Klassen etwas nützliches dabei
Rüstungsbau (Mittlere und Schwere Rüstungen):
Sammeln: Plündern
Mission: Unterwelthandel
Klassen: Kopfgeldjäger, Soldat, Schmuggler, Imperialer Agent
Waffenbau (Blaster, Blastermodifikationen, Nahkampfwaffen):
Sammeln: Archäologie
Mission: Unterwelthandel
Klassen: Imperialer Agent, Soldat, Schmuggler, Kopfgeldjäger
Neues Design von GMail aktivieren
Momentan stellt Google nach und nach das Design seiner Dienste einheitlich um. Bei GMail wurde das neue Design auch schon integriert, steht aber nur in einer Preview zur Verfügung. Um das neue Design auch in GMail zu aktivieren muss nur in den Theme-Einstellungen “Preview” bzw. “Preview (Dense)” aktiviert werden.
VLC Media Player 1.1.11 YouTube crashes (FIX)
In VLC Media Player Version 1.1.11 there is a bug with playing youtube videos. When you open a youtube video in VLC under Windows then the programm crashes immediately.
Solution:
- Replace the youtube.lua file in folder C:\Program Files (x86)\VideoLAN\VLC\lua\playlist file with this one.
jQuery Mobile “mobileinit” Event
Unlike other jQuery projects, such as jQuery and jQuery UI, jQuery Mobile automatically applies many markup enhancements as soon as it loads (long before document.ready event fires). These enhancements are applied based on jQuery Mobile’s default configuration, which is designed to work with common scenarios, but may or may not match your particular needs. Fortunately, these settings are easy to configure.
When the jQuery Mobile starts to execute, it triggers a mobileinit event on the document object, to which you can bind to apply overrides to jQuery Mobile’s defaults.
That the mobileinit event works you need to follow this sequence:
- Load jQuery
- Define mobileinit event
- Load jQuery Mobile
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<!DOCTYPE html>
<html>
<head>
<title>My Mobile Page</title>
<link rel="stylesheet" href="jquery/jquery.mobile-1.0b2.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script>
$(document).bind( "mobileinit", function(){
alert("mobileinit fired");
});
</script>
<script src="jquery/jquery.mobile-1.0b2.min.js"></script>
</head>
<body>
...
</body>
</html> |
Phonegap 1.0 Android and “stopped unexpectedly”
If you can’t launch your phonegap android application in the emulator because of errors like…
“…stopped unexpectedly” or “android.content.res.Resources$NotFoundException: Resource ID #0×0″
…then you need the plugins.xml file to be in your res/xml folder. You can find the folder with the file in the sample android application from the phonegap.zip file.
I tooks me hours to find the solution for this issue and I don’t know why this is not documented. If you are using Dreamweaver CS5.5 to develop phonegap apps take a look at my guide to update Dreamweaver to Phonegap Version 1.0.
Change WordPress 3.2 HTML-Editor Font
A good friend of me was not happy with the new HTML-Editor font in WordPress 3.2. So I wrote him a plugin to bring back the “old” font to WordPress 3.2.
Download
Installation:
- Upload the whole plugin-folder to the /wp-content/plugins/ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Write a new post with the HTML-Editor and enjoy







