Friday, September 20, 2013

.: The Wait :.

.: THE WAIT - Another storyboard animatics...I did based on past experiences....hahaha... been there!! #LOL :.

Friday, September 13, 2013

.: Stop Texting and Driving :.

.: My short storyboard on texting and driving awareness :) :.



Tuesday, November 29, 2011

⁂ Yapinator JavaScript Selector Library ⁂

.:: Yapinator JS is a pure-JavaScript standalone CSS selector engine designed to be easily dropped in to a host library ::.

● Completely standalone (no library dependencies)

● Competitive performance for most frequently used selectors

● Highly extensible with easy-to-use API

● Designed for optimal performance with event delegation



Monday, November 28, 2011

HOW TO: Install Memcache on XAMPP (Windows 7)

Hey there, its me (Stan nesi) again !!!LOL

Memcached solves this problem for you by letting you write frequently accessed data directly to RAM, where it can be fetched almost instantaneously; plus you can tell memcached how long to store the cached data and it will automatically purge stale data without any further intervention from you, the programmer.

Many web sites & applications such as Facebook, LiveJournal, Flickr, Slashdot, WikiPedia/MediaWiki, SourceForge, Digg and Twitter use memcached to enhance their performance.

I'm often asked "How can I run Memcache on my localhost server?" "Is Memcache a php extension or a serve?" after this HOW TO: all your questions will be answered and I choose to use XAMPP because most people I know uses XAMPP, I recently figured it out recently anyway...because i mostly use File Cache but I use Memcahe now! :D So Lets begin:


1.   Edit your XAMPP php.ini (becareful)
Open up the php.ini file located at "C:/xampp/php/php.ini." find this line:
extension=php_memcache.dll
and replace it with
extension=php_memcache.dll
If you cannot find this line append the following line of codes after all of the other extension declarations:
extension=php_memcache.dll

[Memcache]
memcache.allow_failover = 1  
memcache.max_failover_attempts=20  
memcache.chunk_size =8192  
memcache.default_port = 11211


Make sure there are no semicolon (;) before the extension.

2.   Download the necessary php extension (.dll) "php_memcache.dll"
Believe it or not this step was quite troublesome for me myself. All resources I search online all directed to this download location: http://downloads.php.net/pierre/. to download the php_memache.dll extension file. Unfortunately I found only VC9-x86 complied version of php_memcache.dll on that site, check it out for yourself. But  I'm  using XAMPP 1.7.4 and i'm quite sure you use same which requires VC6-x86 complied version of php_memcache.dll. incase you might me wondering how would you know what complier (VC9 or VC6) and architecture (x86) is used, all information are located in your phpinfo(); see below image with markings.
YAY!!! douring my search I was able to some sources where you can download the VC6-x86 dll version.
I think that's enough. After successfully downloading the file, Unzip and copy the file php_memcache.dll and put it into your php extension folder. located at C:/xampp/php/ext/

3.   Download and installing Memcache server for windows
Download the Memcache.exe from http://code.jellycan.com/memcached/ and make sure it a win-32 binary or use this for direct download http://code.jellycan.com/files/memcached-1.2.6-win32-bin.zip

After completion of download, unzip and put the memcache.exe file into any desired directory of your choice (e.g. c:/memcached/) I know you wanna know how mine was...LOL!! i used "C:/servers/memcached/". I'm serious i'm not lying... ok here's my proof!!:P

Installing the Memcache Service
Open command line in Windows Administrative Mode.
Click -> Start, in the search bar laballed "Search programs and files" type "cmd.exe" and wait for programme to appear, then right-click on the icon and click "run as administrator".

Type the following into the command line using the right directory (e.g. c:/memcached/)
> c:/memcached/memcached.exe -d install
If you don't get any error it means the memcached service installed and it's working

Starting Memcached Server
There are different ways to run the Memcached service
  • By typing the any of the following into the command line 
     > c:/memcached/memcached.exe -d start or
     > net start "memcached server"
  • By double-clicking on the memcache.exe Icon located in "c:/memcached/mecached.exe"
  • By running memcache from services by finding "memcached server" and clicking on the start button



Restart XAMPP Apache
Restart XAMPP Apache for all changes to take effect/

Testing Memcache
create a new .php file and paste the following line of codes
<?php
$memcache = new Memcache;
$memcache->connect('localhost', 11211) or die ("Could not connect");
$ver = $memcache->getVersion();
echo "Server's version: ". $ver ."<br/>\n";
$oTmp = new stdClass;
$oTmp->str_attr = 'testing memcached';
$oTmp->int_attr = 12345;
$memcache->set('key', $oTmp, false, 10) or
die ("Failed to save data at the server");
echo "Store data in the cache (data will expire in 10 seconds)
<br/>\n";
$res = $memcache->get('key');
echo "Data from the cache:<br/>\n";
var_dump($res);
?>
...and run on your Localhost!!! VOILA!!!

Just in case it doesn't work: I ran the c:/memcached/memcached.exe file as administrator. This opens the ports on the Windows firewall which might solve some problems.

There will me more!!!LOL Feel free to contribute by dropping your comments:

Friday, October 28, 2011

E-books or Printed books: Which Do You Prefer???

E-Books or Printed Books: Which Do You Prefer?

Have you ever wondered which medium of reading is better for you — electronic screen or printed text (paper books)? I know I have!

I recently read an article on Masable by Veena Bissram (a communication specialist), which highlighted a study on the issue of reading that was conducted after readers in Germany became skeptical about reading from electronic devices like e-readers and tablet PCs compared to traditional printed books. The study proved that reading from an electronic device has no negative effects, contradicting the misconception from those German readers. It was concluded that there are no disadvantages between both…blah...blah…blah…you can read about it on her article eBooks or Printed Books: WhichAre Better for You?

Well, speaking of preference, the two formats of reading are very similar. Both methods enable you to read texts. The main important thing is the texts, not the medium. Both medium have their moments…though….lol (pros and cons) I mean! J Well I’ll state some obvious difference between them:

Differences:

  • Portability - E-books takes this one, you can carry multiple books on one device. I don’t want to even imagine carrying the amount of e-books I have in one of my folders on my PC in Printed format (heavy-weight). No!! No!!
  • Printed Books don’t normally cause significant eye-strain, can’t say same for e-Books. Eye-strain and RSI. Long hours spent in front of a computer screen are not very healthy.
  • You need a light-source to read Printed-Books, e-Books don’t depend on the sun-light or form light, they have in-built light.
  • Printed Books do not need power to function; reading your favourite novel on e-Books wouldn’t be so much fun if you have batter-life to worry about.
  • Hmmmm….. I want to include that eBooks are prone to viruses, but I found some of my dusty old printed books collections in my library has been brunch for rats and insects…lol I guess e-Books needs McAfee as Printed Books need an exterminator..haha.
Hmmmmm…Which Do I Prefer??
Well, I’m guilty of using both medium, but based on my cool life-style I’ll stick with my Printed Books. I don't need batteries, and I can read them just about anywhere.

Despite the fact that Late Steve Jobs brought the page-flipping feeling which we all enjoy in Printed Books to iPad, it’s still not the same as the real things. I love to doodle, a lot, on my booksJ. Using expensive readers like iPads puts a guy on the edge, entering rough areas which i normally do, a lot might attract the wrong company....lol. besides I love drinking tea while I read, most times I spill, come on!! Who doesn’t! have got lots of power issues fault from my providers, which really sucks!!! Remember those times where you freely fall on your bed, wagging your legs until your shoes fall-off and flinging any object you might be holding in your hands across the room, I normally have lots of that moment…hahaha.. I wouldn’t want to fling my eBook readers!! Oouch!! One last thing don’t you just love the smell of New Books!!! Gatcha!!LOL!

What do you think? Which do you prefer??

Thursday, August 4, 2011

HOW TO: get your own Google+ short/Vanity URL

...sharing my profile pages with my friends on social networks sites like twitter, facebook becomes so easy when using my short-name "stannesi" most times I just say "hey buddy, follow me on twitter" without even telling them my @handle, they figure it out since I'm the only @stannesi they know that ever existed on earth....lol anyways my point exactly is unlike facebook and twitter, Google+ Profile doesn't have short URLs for their users profile, making it more difficult to share your Google+ profile with other people, maybe probably they expect you to google search your friend. Google+ uses a (21) digit long ID to identify users (e.g.103467992719504744575 ) or you can use your google account profile it auto-redirects you to your Google+ Profile page here's mine http://profiles.google.com/stannesi.


Google+ doesn't use short URLs probably because most Google+ Accounts are linked to Gmail accounts, giving spammers a means to figuring out the e-mail addresses of millions of Google+ users, and you know this leads to some trust issues. Just a thought,  anyways i trust Google, they always figure it out.

 

I hope i didn't bore you with all that, so the reason why we're here is you don't want to be telling people use your 21 digits long ID or http://profiles.google.com/stannesi to circle you on Google+. That's where Gplus.to and several others makes an entrance. gplus.to its a simple tiny web-app that lets you create a custom short URL for your Google+ Profile page, making it easy to share your profile with friend. It took me less than a min to create mine Gplus.to/stannesi, which is easier to remember than a 21 digit long ID or http://profiles.google.com/stannesi.

Gplus is not Google way of offering short URLs service. Google+ doesn't offer short URL for now, maybe they will in the future, but before then you should give it a try.

other Google+ vanity URLs sites
Feel free to post your thoughts and I still offer Google+ invite if you need one..lol.