7 map based news aggregation website will catch news on world map for you

4:58 AM

(0) Comments

hi all i needed a website let me read news based on location on map and after i searched a lot i found those 7 map based news aggregation website read the news by location on world map to let you find what news you want based on location
1- http://mapeas.com/


eslam

top 15 free adsense ready wordpress theme

5:10 AM

(0) Comments

need free awesome wordpress theme for adsense compatible to monetize your content
i have collected top15 free adsense ready wordpress themes i hope you enjoy it


[best practice] css techniques you should avoid

1:55 AM

(0) Comments

we will talk today about some css techniques you should completely avoid when you coding css , there is a lot of bad habits when coding css we will try to declare this techniques and why we should avoid it


1- inline-style:

one of the features that css and browser layout engine offer is inline style that you can add style to element in html like that
<div style="background-color:#000000"> hi i am here </div>

and it will overwrite the previous css
you should completely avoid that however the result it will be good but :

eslam

, ,

top 10 jquery photo gallery and image slider plugins

1:33 AM

(0) Comments

i brings to you today the most usable jquery photo galleries and image sliders plugins on the web supports many effects and animations i hope you like it


jQuery Cycle


Official WebSite - Demo


top 10 famous logo brand design tutorials

12:57 PM

(0) Comments

hi all i bring to you today 12 famous logos and brand design tutorials i hope you enjoy  it


Lifestyle Girls Vector Pack - free Vector collections

2:44 AM

(0) Comments

Lifestyle Girls Vector Pack 1

Download

Lifestyle Girls Vector Pack 2



[tips] get swf flash dimension in php

2:31 AM

(0) Comments

hi all i faced a problem in one of my websites , the client upload various swf flash files with various dimension and i must embed the flash automatically by code
i found that getimagesize function work also with swf so i made it like that
<?php
    $file = "YOUR_FILE.swf";
    $info = getimagesize($file);
    $width = $info[0];
    $height = $info[1];
    print "{$width}x{$height}\n";
?>

eslam

,

20 most shocking html5 canvas application

3:36 PM

(0) Comments



html5 is the next  generation of web programming it content many apis can turn the web page into full interact application like session, web, local  storage web workers geolocation , offline apps , dragdrop , and many more
and one of new tags that html5 deliver is CANVAS , is like space you can interact with every pixel as you wish with 2d drawing and it will contain 3d soon with hardware acceleration
i get to you tonight the most 20 shocking html5 canvas application i hope you enjoy it


eslam

,

[tips]add post thumbnail post image into rss feed

4:36 AM

(0) Comments

the simplest way to do that to use add_filter function to pass your modified function to handle the rss and overwrite the default wordpress function
so add these lines in your theme -> functions.php



function rss_post_thumbnail($content) {
global $post;
$image = get_post_meta($post->ID, 'image', true);
if(!empty($image)){
    $imgCode = '<img src="'.$image.'" border="0"  />';    
}else{
    $imgCode = get_the_post_thumbnail($post->ID);
}
$content = '<p>' . $imgCode .
'</p>' . get_the_content();

return $content;
}
add_filter('the_excerpt_rss', 'rss_post_thumbnail');
add_filter('the_content_feed', 'rss_post_thumbnail');

eslam

, ,

display text in image in php using GD library

2:53 AM

(1) Comments

i got recently a snap of code that display text as an image using GD library , coz i wanted some thing to make email displayed as image to prevent spam and such annoying things
and GD library allows you to manipulate image as you want including adding text
here the code snippet

<?php

  // show the correct header for the image type
  header("Content-type: image/jpg");

  // an email address in a string
  $string "email@example.com";

  // some variables to set
  $font  4;
  $width  ImageFontWidth($font) * strlen($string);
  $height ImageFontHeight($font);

  // lets begin by creating an image
  $im = @imagecreatetruecolor ($width,$height);

  //white background
  $background_color imagecolorallocate ($im255255255);

  //black text
  $text_color imagecolorallocate ($im000);

  // put it all together
  imagestring ($im$font00,  $string$text_color);

  // and display
  imagejpeg ($im);?>


special thanks to phpro

eslam

,

play flash files with pure javascript without flash

1:28 AM

(0) Comments

confusing isn't is ??
the first time i heard such thoughts was on wikimania 2008 some engineers talk about the importance alternative open source flash player on the web
and i did see some simple ways to do that but one of the amazing codes that what i saw today is Gordon , its open source swf flash run-time environment written in pure java script it deals with swf files and run it without needs of any plugins or tools just pure java script
works on FF , Opera , Chrome , Safari
https://github.com/tobeytailor/gordon/wiki/browser-support-table/
simple code

<?xml version="1.0" encoding="UTF-8">
<!DOCTYPE html  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <script type="text/javascript" src="/path/to/gordon.js"></script>
  </head>
  <body>
    <div id="your_stage">Replace me</div>
    <script type="text/javascript">
      var movie = new Gordon.Movie("/path/to/your.swf", {id: "your_stage", width: 480, height: 320});
    </script>
  </body>
</html>
you can download it here https://github.com/tobeytailor/gordon/wiki/
and follow @tobeytailor  for more information

eslam

,

22 amazing business card for your inspiration

12:13 AM

(2) Comments

hi all , business cards is not only tel and address card its more than that its reflex your personality and business goals and strategy so many business planners and marketers pays great attention to business card designs so i brings to you today 22 amazing business card for your inspiration


Download your FaceBook account on your PC

2:04 PM

(0) Comments

hi all , facebook lately announced that you can download your entire account on your pc
i will  show you how
thanks to thamood @teedoz  for images from his facebook account
go to your account -> account settings


eslam

,

the best 10 advertisement in the world for your inspiration

12:00 PM

(0) Comments

hi guys we are looking for inspiration in any thing around us specially advertisement so i came today with the best 10  advertisement in the world for your inspiration  i hope you enjoy it



add slashes in not secure as you think

11:42 AM

(0) Comments


hi all
i will talk today about something is really dangerous , many developers uses addslashes() to escape characters before inserting it to DB to prevent sql injection or just counting on server if magic quotes open on the server so every request is already escaped with slashes
but ...

eslam

,

[tips] get the eq index order to any element with jquery two different ways

2:59 AM

(0) Comments

hello i bring to you two ways for get index of element or order of element or jquery naming eq

you can select element by its order(eq) like this

$('div.name img:eq(2)')

but if you have element and you want to get its eq

1-
jquery introduced index method that gives you the element index
$('.classname').index()

2-
you can get the length of the previous elements so the number is your index :)
$('.classname').prevAll().length

so happy coding :) any questions just reply these post :)

Blekko search engine has been lunched

12:58 PM

(0) Comments

Blekko is lunched today be some of google ex employees they invented some kinda of new search way depends on slashes
you may type google /tech
to search for word google on technology websites only
or you may specify
google /tech /date

to search word google on technology websites and sort results with date
its really awesome and search engine has many many features
i let you with these video to let you know farther about the search engine


eslam