I just discovered Issuu for Android through the Android Market, which is a pretty nice place to read magazines, newspapers, articles and lots and lots of other publications on your computer or your mobile phone. They have recently released a client for Android and a client for iPhone will soon be available for download.
The page and app are really easy to use, you have easy access to a lot of stuff and it is read easily through the browser. You can zoom and see pictures, subscribe to publications, rate stuff and lots and lots of other cool stuff. It is really recommended!
Scan the barcode to go to the application download for android.
So you might be running WordPress on a Lighttpd server, which can be a bit problematic since it does not support slugs per default, and if you are using default permalink setup in WordPress the search page that we are going to create in a minute will not work.
So first we need to do something about the permalinks. For this example I will use the permalink style: http://domainname.test/postname/ for this to work we need to add following lines in the lighttpd.com:
1
2
3
4
5
6
7
8
9
10
11
url.rewrite-final = (# Exclude some directories from rewriting"^/(wp-admin|wp-includes|wp-content|gallery2|stats|awstats|awstatsicons|awstatscss|kloxo|kloxononssl|cgi-bin)/(.*)" =>"$0",
# Exclude .php files at root from rewriting"^/(.*.php)" =>"$0",
# Handle permalinks and feeds"^/(.*)$" =>"/index.php/$1")
Remember to reload lighttpd to append these changes.
In the WordPress permalink settings you use the custom setting where you write: /%postname%/ this will result in links like we wanted.
Now we have to make a page where the AdSense for Google results will show. I’ve made a template called gsearch.php, which looks like this:
<?php/*
Template Name: gsearch
*/?><?php get_header();?>
<div id="content" class="widecolumn">
<!-- Google Search Result Snippet Begins -->
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 500;
var googleSearchDomain = "www.google.dk";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
<!-- Google Search Result Snippet Ends -->
</div>
<?php get_sidebar();?><?php get_footer();?>
Put this template in your WordPress theme folder, and go to your Dashboard and make a new Page. Call this whatever you want, but remember to choose the template gsearch, and do not write anything else on the page, only fill out the page name.
Now go to your AdSense account, and create a new AdSense for Google Search. In the Wizard where it says which sites you want to search across write your own, also remember to add some keywords, it helps showing ads directed at the content you want to have it showing. But the most important thing is to fill in the Opening for search results page, here you have to check Open results within my own site and then specify the URL for the page you just made with the gsearch template. Now finish up the wizard and have the code created. We will only need the search box code, since we already implemented the search result code.
Since I do not know how to make a new widget, we will just paste the code into the sidebar code for your theme directly. Which you can find under appearance and then press editor. Find the code for your sidebar, probably named sidebar.php.
Paste the generated code from google right after the <div id=”sidebar”> code, save and enjoy. You should now have a functioning AdSense for Google Search implemented on your blog.
You might want to remove the search widget, so it only show the Google Search one and also exclude the page from the pages widget.
I find the built in search function a bit lacking, so I decided to shift it out with Google AdSense Custom Search, which searches the webpage while showing some ads, which enables me to earn a bit money, since this page does not pay itself. Though you are not forced to click on the adds, though I’d like you to from time to time as a token of appreciation.
If you need help implementing this on your own wordpress weblog I will write up a blog post on how to do this very soon.
SPOILER WARNING! Do not read this unless you are not going to watch the movie, have watched it or do not intend watching it ever.
This is the best movie I have watched the last couple of hours! I cannot describe how good it was compared to the other, maybe because this was the only movie I watched! I am happy that I didn’t get to watch it in the cinema, last weekend because of all seat were taken. More… »
If you haven’t heard Katatonia released a new album, this time called Night Is The New Day. I’ve only heard one song so far and I am impressed. Katatonia is improving with every album they are making and this one I think will be a great contender on best album of the year! I ordered the album and I am waiting eagerly to get it now. In the mean time I can watch the music video for the single Day & Then The Shade.
I made a small script just to test the syntax highlighting plug-in I installed for WordPress. So here it goes:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash# Scipt that installs a batch of apk files on an Android device,# through the adb tool from Android SDK.adbPath="/home/tomasz/android/android-sdk/tools/adb"if[$#-ne1]; thenecho"usage: `basename $0` foldername"exit1fifor f in $(ls"$1");
do$adbPathinstall"$f"done
The script is very simple and installs apk files in a folder through adb (Android Debug Bridge). This of course requires the Android SDK and a some kind of a Linux distribution.
I have made a script for pushing files and folders through adb to the SDcard of an Android device. This can be used in combination with nautilus for right-clicking on folders to push it.
#!/bin/bash# Script for pushing files and folders through adb.# Can also be used without nautilus.# Feel free to edit and distribute as much as you want.# if you want dialogs set dialog_enable=1 else dialog_enable=0dialog_enable=1# Write the entire path to adb hereadbPath="/home/tomasz/AndroidSDK/tools/adb"function dialogs {if[$dialog_enable = 1]; thenif[-e"/usr/bin/gdialog"]; then
gdialog --title"adb push"--msgbox"$1"200200elif[-e"/usr/bin/Xdialog"]; then
Xdialog --title"adb push"--msgbox"$1"00elseecho"No dialog program present"fifi}if[$#-ne1]; then# If arguments not equal 1, complain!echo"Usage - $0 file"echo"or - $0 directory"exit1fiif[-d"$1"]; then$adbPath shell mkdir"/sdcard/`basename "$1"`"# Create the directory on SDcard$adbPath push "$1""/sdcard/`basename "$1"`"# Push files in the folder to folder on SDcard
dialogs "Folder $1 was pushed"elif[-e"$1"]; then$adbPath push "$1"/sdcard/# Push single file to SDcard
dialogs "$1 was pushed"elseecho"Gurumeditation!"# Oops!fi
In order to have it in your right-click menu in Nautilus place the script in: ~/.gnome2/nautilus-scripts/ and run chmod u+x ~/.gnome2/nautilus-scripts/. Now you should see the script in your right click menu under scripts in Nautilus.
The band has a sound very similar to Porcupine Tree, Audioslave and Stiltskin, though they have their own touch to it. I really like it. They have so far released a studio album Million Dollar Wound and just released an EP on bandcamp, which you can choose to buy or just download. Listen to it, and you’ll see the greatness behind the band!
I sure can recommend this band to anyone who likes progressive rock, because this band just kicks ass!
Emil Haukeland wrote a very nice guide on how to configure rewrite so it works with lighthttpd and WordPress. To quickly sum it up add the following rules to your lighthttpd.conf or 10-rewrite.conf and save it in lighthttpd’s configuration folder.
$HTTP["host"] =~ "ostebaronen.dk" {
url.rewrite-final = (
# Exclude some directories from rewriting
"^/(wp-admin|wp-includes|wp-content|gallery2)/(.*)" => "$0",
# Exclude .php files at root from rewriting
"^/(.*.php)" => "$0",
# Handle permalinks and feeds
"^/(.*)$" => "/index.php/$1"
)
}
Then edit the settings for permalinks in WordPress.
I just watched this movie along with a couple of friends, and we discovered it is really good for a drinking game. Every time someone says: Energon, Megatron, Prime, Decepticon or we see an ass shot of Megan Fox’s ass, you should drink. This worked quite well!
But the movie itself is a pretty good action movie with a lot of senseless beating, explosions and ass shots of Megan Fox’s ass. It also contain a lot of bad jokes which can be quite funny when you have been drinking a couple of beers.
I really like how Megan Fox’s white pants stay white throughout the whole movie even though she runs through the desert, stuff explodes near her and loads of other things happen to her that really should soil her pants. Only at the end you see her pants being a bit dirty; which leads me to the question: “How do I get some?”.
No but seriously it is pretty good if you want action, if you don’t like action movies and are looking for a good history, don’t watch this. You will get disappointed, like really, really disappointed. Because there is practically none and most of it is bad jokes and awesome explosions and fight scenes! You will also find out that the US military really sucks in this move and cannot even protect a small shard from the All-spark cube they destroyed in the first movie…
But to get to conclusion, watch it if you like action movies with almost no story, lots of hot ladies, nice cars and explosions!