awesome

So i though i should post a blod post about this.

Facebook chat have add emoticons from iPhone app Emoji.. I’ve been trying to figure out how to do them on a the desktop without any luck so if anyone know i’ll be happy to know :)

 

Fake Credit Cards

Recently I was needed to create sample credit card numbers that will pass the Luhn Algorithm so that they will pass basic credit card testing mechanisms.

My first idea was to search google and find someone that already did it. Unfortunately I did not find any snippets of code (I didn’t really look hard I have to be honest) in PHP. Luckily for me I have found a javascript one that I could easily convert into PHP - This is How Credit Card Numbers Are Generated via Cody Taylor.

I just noticed something happend to the code while i copied it here.

I will update it tonight!

function generateFakeCreditCard() {
    	$random_number = '';
    	$card_number = '4';
    	for($i = 2; $i     		$random_number = rand(1,9);
    		$card_number = $card_number.$random_number;
    	}
    	$sum = 0;
    	$digit = 0;
    	for($i = 1; $i  9) {
    				$digit = intval($digit[0])+intval($digit[1]);
    			}
    			$sum += $digit;
    		} else {
    			$sum += $card_number[$i-1];
    		}
    	}
    	$remains = $sum%10;
    	if ($remains != 0) {
    		$last_digit = intval($card_number[15]);
    		if ($remains     			$card_number = substr($card_number, 0, 15) . $last_digit-$remains;
    		} else {
    			$card_number = substr($card_number, 0, 15) . $last_digit+(10-$remains);
    		}
    	}
    	$sum = 0;
    	$digit = 0;
    	for($i = 1; $i  9) {
    				$digit = intval($digit[0])+intval($digit[1]);
    			}
    			$sum += $digit;
    		} else {
    			$sum += $card_number[$i-1];
    		}
    	}
    	return strval($card_number);
}

Just copy this code as is and call it and it will return a credit card number that will pass Luhn Algorithm.

None of the generated cards will work! – The purpose for generating the credit card numbers are to supply developers with a credit card for testing of a payment system. Do not use this for anything illegal!

Plan

For the last couple of months I’ve been working intensively with Responsive Web Design and Mobile Web Application. Browsing a lot of website and application I think people still do not really understand the power of having a proper website or an application for every device, especially mobile. I have thousands of examples for websites that look really really great and awesome on desktop but when it comes to a tablet or a mobile device its a different story. Some of them make a different website for the tablet/mobile experience resulting in 2 different websites.

I’m starting to work on mQueries.js. Read more →

product-ninja

I’ve been really busy in the last 2 weeks and I didn’t have any time to play around with anything nor did I have time to write.
I started working with 2 new amazing Israel Start-ups:
1) SmartPay – The ultimate in-app billing solution for Smart TV platforms.
2) Visualead – Turn Any Design into a QR Code – Connect and Communicate with your audience.

Both them are really awesome and I will be updating more about each of them along the way! You can check out Visualead which just launched a new website that looks totally awesome. I hope I will get the time to work on the responsiveness of it. As for SmartPay all I can say is .. just wait for it. Read more →

No Spam

I don’t know why but i wanted to find a nice easy way to be able to write an email address on a website without worrying for email harvesting bots. The idea is to not show the email in plaintext anywhere but the rendered HTML. I just think that the username (at) domain (dot) com is really not good enough. I don’t think my solution is perfect just better and will be a little bit harder for bots to crack (but not nearly impossible). Read more →

box-shadow over border

Ok so browsing some CSS and HTML blogs (I don’t remember which one it was or I would link to it) I found a really nice demo of how to display things inside a div and giving the div high radius resulting in a nice curvy box. I really liked what I saw and decided to try it out for myself and play around with it to achieve some cool effects (I didn’t have any in mind yet but the option to display images in a cool way). So I started playing around. Read more →

Twitter is down for %

Well I started to like twitter but it appear its down! The good thing i can say about Twitter is that status.twitter.com is still up! and its saying they are working on the issues

http://status.twitter.com/post/28057350532/twitter-site-issue Read more →

Reveal.JS and CKEditor

Hi Guys,

So i was following some tweets between Andy Matthews @commadelimited and Scott Stroz @boyzoid and Scott was asking about a way to create presentation and Andy recommended Reveal.JS by Hakim El Hattab @hakimel. I love Reveal.JS and think is an amazing and awesome library! (I didn’t have any presentation to do yet but the first one I will have I’m sure to use it!). The problem with Reveal.JS that no matter what you will still need some knowledge in HTML and Javascript to make your presentation and hell CSS to make it nice. Read more →

Cross Browser

Hi everyone,

For the last couple of weeks I’ve been really messing around with CSS3 animations. Unfortunately I found it really frustrating to write an animation for both Firefox and Chrome (I’m not even checking on IE). The problem is that each browser uses its own (and different from each other) prefixes for the same things which is really really annoying. Read more →

KineticJS

I’ve recently started playing around with CSS3 Animations and WebGL (less WebGL because I find it too complicated for me without any real graphics knowledge. But we will get back to that sometime). In my experiments I came across an awesome Canvas Javascript Library called KineticJS. I found it very easy to use and you can find many tutorials and examples on the website.

As a part of launching this new website i wanted to add a nice demo of some animation on my website without messing too much with complex animations. I’ve decided to use the “HTML5 Canvas Interactive Ball Physics” from the Lab page and add some special sauce to it that will attract people’s attention when they come into the site (The idea was to add a basketball hoop and let people try to score and show something when they did).

The problem I quickly came across was a lot of the Lab examples were using older Kinetic Libraries and were getting errors when updating. In my case the demo was using v3.7.4 when v3.10.2 is out already.

Read more →