fix indexOf in internet explorer

11:26 AM

(3) Comments

when you try to use indexOf javascript it will not work on ie
the perfect solution is to create simulated function if indexOf not exists

if(!Array.indexOf){
    Array.prototype.indexOf = function(obj){
        for(var i=0; i<this.length; i++){
            if(this[i]==obj){
                return i;
            }
        }
        return -1;
    }
}

eslam

,

node up a new podcast for NodJs

8:01 AM

(2) Comments


nodeJS the new technology that brings a new possibilities to javascript and server programming
if you want to keep up with the new of nodejs follow that podcast its a new podcast about node js http://nodeup.com/

eslam

,

[Humor] the structure chart of major tech companies

3:30 AM

(1) Comments

simple funny chart about the structure and organization of the major tech companies

eslam

wow slider another awesome jquery slider

11:15 AM

(3) Comments

hey guys

i was searching for a good transition for a header slider for my new project i tried all easying transition but i am not fuly satisfied because i was looking to blow the client mind :P
so i searched a little bit and found one that blow my mind :D
wow slider uses visual effects (Blast, Fly, Blinds, Squares, Slices, Basic, Fade, Ken Burns, Stack, Stack vertical and Basic linear) and enhanced with tons of professional made template

eslam

,

Mobile Web & HTML5 Performance Optimization

6:19 AM

(1) Comments

hi every body
i m getting to you awesome slides about mobile web specially html5 app optimization for mobile
we all know that mobile web is kinda slow comparing with other web targets , so your app needs to be highly optimized
in these slides Maximiliano Firtman talk about how to optimize html5 web app and why to do that
enjoy :)


eslam

,

build native iphone & android apps with javascript - introduction

1:40 PM

(0) Comments


hi all , sorry for not being posting for along time
but i was very busy , now i am back with a fantastic technology that makes code a native iphone or native android app with javascript possible
javascript is a handy language but its a client side language works only on browser or that we was thinking :) in the past few years javascript jumbed too much and entered many fields beside the normal browser thing , and we saw node.js and how to program a webserver in javascript and use websockets and we saw adobe air and how to use javascript to make desktop application .
now we continue by using javascript to make native app for smart mobile phones like iphone , android.
there is several liberaries can do that but one of them i liked too much , its a Titanium Appcelerator.
Titanium Appcelerator is a really amazing lib to make apps for mobile phone using javascript and access native features like phone book , GPS , gravity  and accelerometer
Titanium Appcelerator now has 1.5 million active developers and 21,7000 app and 20 million active user , yea thats is a really big stats
i will isA in the next posts show you how to download and install it and how to build your first app and we will go deep and dive a little into it and finally deploy your project and distribute it
so stay tunned

Debuging php through fire fox using FirePHP

2:34 AM

(0) Comments


i was searching for a php console i can attach it with firefox to instantly debug , but a break points and so on so i can develop faster and find bugs and errors faster
i found awesome addon to firefox called firephp , its attached to famous firefox addon firebug
simply you need :
firefox , firebug , firephp
and just include the firephp class into your code

require_once('FirePHPCore/FirePHP.class.PHP');
$firephp = FirePHP::getInstance(true);


[tips] the fastest and best ways to send mails in php

1:33 AM

(0) Comments

hey all
i read a great article wrote by Manuel Lemos , he talked about sending e mails in php and what is the best ways to do that and  how to deliver the message fast and correct
the article is really awesome so  i decided to share it with you guys



the fastest ways to send mails  in php

eslam

,

[css tips] targetting chrome only browser - css chrome hacks

6:15 AM

(0) Comments

hi all some times you face problems in css adjustment and many differents between browsers
you can use SSI to target only IE browser but if you want to target Chrome you will have a serious issue here because there is no street way to do that

you can use some css hacks like:

1-:


body:nth-of-type(1) div.divname{width:500px;}

2-

@media screen and (-webkit-min-device-pixel-ratio:0) {
  div.divname{width:500px;} 
} 

and also you can target it via javascript

<script type="text/javascript">
var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
if(is_chrome){
document.write('<link rel="stylesheet" href="css/chrome.css" type="text/css" />');
}
</script>

thanks all see you in next tip

eslam

, ,

[tip] optimize your website acceleration via gzip and htaccess

8:38 AM

(0) Comments

if  you dont care about ie4 users so use gzip compression now its a technique to compress all media html , js , css , images and the browser can decompress it before viewing that enhance the acceleration of your website
you can do it via htaccess

just add these few lines

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# Or, compress certain file types by extension:
<Files *.html>
SetOutputFilter DEFLATE
</Files>

eslam

sorry for absence

8:32 AM

(0) Comments


hi all
sorry for not being post all previous days and thanks a lot for all message i received , as most of you know i live in Egypt and we now on a serious activity in Egypt towards liberty and democracy  so hope us luck and peace

eslam

HTML5 LOGO

7:08 AM

(0) Comments

i found today the officially html5 logo
actually i hated it its not so good as html5 technique , that is the official link from w3c

eslam

, ,

[tip] solve "You do not have sufficient permissions to access this page." in wordpress

3:29 AM

(0) Comments

hi all
i tried to change my wordpress table prefix to add more secure to my blog and i done alter sql command to alter the table prefix and then i changed the table prefix in  wp-config.php

but i surprised that i couldnt log to my wp-admin panel it shows me an error
You do not have sufficient permissions to access this page.

after digging a while i discover that the issue is the wordpress store the user meta data and roles with the old prefix and so i have to replace the old prefix with the new one i found couple of tips to do such things thx dealasite

you have to fire two sql statement to do fix that

UPDATE `prefix_usermeta` SET `meta_key` = REPLACE( `meta_key` , 'wp_', 'prefix_' );

UPDATE `prefix_options` SET `option_name` = 'prefix_user_roles' WHERE `option_name` ='wp_user_roles' AND `blog_id` =0;

just replace the prefix_ with your new wordpress prefix
and all should be working now
thx all see you in next tip

eslam

,

[tips] css3 transform rotating - works in IE too

3:13 AM

(0) Comments

hi all , we here now with a small design tip
did you wished before that you have the ability to rotate a html element image or div or even paragraph that was impossible in css 2 but here with css3 that is extremely easy
here is snippet to do it


div {
   -webkit-transform: rotate(-90deg);
   -moz-transform: rotate(-90deg);
   transform: rotate(-90deg);
   position: absolute;
   filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}


and if you notice the last line
filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
here we used the filter property in ie and use the DXImageTransform filter to do such effect :)
see you in another tip

eslam

, , ,

rails 3 cheat sheets

9:23 AM

(0) Comments

Gregg Pollack lunches rails 3 cheat sheets

Indian numerals converter

5:42 AM

(1) Comments


hi all
i was building a project and i wanted to display the numbers on the browsers in many unicode forms
like Indian numerals or Hindu or even Thai numerals but i couldnt do that through simple output unicode on the browser and when i digit i found that the best way to do so is to convert each number into unicode html entity
and i build a simple tool to do that with php

eslam

,

best office on the world

12:51 PM

(0) Comments

we all dreams about best office and the working environment that is comfortable enough to make us motivated
and i found it in Inventionland company one of the biggest invention company in USA
i will let you with the images

eslam