I wrote a short script for a friends website, where he wants to show the last posts date and datelink. There were no framework based function included, therefore i had to set up following snippet. if(get_post_type( $post ) == 'post'){ $previous = true; $in_same_cat = false; $excluded_categories = ''; //retrieves the prev or next post if last value is true/false $adjacent_post = get_adjacent_post( $in_same_cat, $excluded_categories, $previous

Read More

I am presenting a class which retrieves the url of a thumbnail from vimeo video's by it's id. You can pass the videoid and the size of the image to the function.  Vimeo offers small, medium and large thumbnail formats, which can be accessed by passing the shortcodes. "s" for small (100 x 75) "m" for medium (200 x 150) "l" for large

Read More

If you want to send a friend only a specific part of a youtube-video, you can just add some attributes to the url. The magic code: #t=0m20s t = time m = minutes s = seconds Let's make an example and hidden advertisement: If you want to watch the secon part of nasihat kartals music clip, which starts at 2 mintues and 50 seconds, the

Read More

Hi guys, I grabbed a project called "location finder" on which i was working since 1 year, i wondered why the app still was working without changing the map-key. After some research i found out that the new v3 api doesn't requiere any api key! more

Read More

Today i was reading the producer consumer problem in the little book of semaphores and i come up to the following funny statement of the author: In this chapter we examine the classical problems....... ...For the most part, though, these problems do not happen in the real world, or if they do, the real-world solutions are not much like the kind

Read More

Hi, this is a little script which returns a 0 or 1 if the searched text is in a string. Compared with the match function in mel, this one returns 1 or 0, which is more convenient for my opinion. Furthermore somtimes i get really weired results with the match func(). global proc int ySearch(string $searchWord, string $searchInText){ string $longText = $searchInText; string $shortText

Read More

Join to our Newsletter

Amazing news for you!

This is a nice example text