It was a Boring Saturday again :P
So jus started exploring Brain F**K an awesome weird programming language
It has got just 8 alphabets + - < > , . [ ] that's it :)
This is like Maagi of programming languages :D
U wanna know the C representation of Brain F**K
char array[30000];
char *pointer;
That's it :) It has a global array of size 30000 with a pointer pointing to it :)
So I'm curious and tried this oneSo now UR curious? Jus Click the link to Execute this
1. Copy paste the code
2. Type some Name r the One u like in the input Eg. xxx'\n'
('\n' - For clarity it is actually Enter in ur keyboard.)
Don't forget to hit an enter at the end of the name else the code ll stuck in infinite loop
3. And Execute it :)
4. Don't laugh you are a culprit :P :P Who is that guy r girl? :D
I'm done :) U also wanna explore? U have one link ahead Brain F**K
Setting up chrome/firefox in linux based x86_64 EC2 instance In this post we'll see how to setup chrome/firefox in EC2 instance. Further we'll discuss the way to setup chromedriver with selenium [java] in EC2 instance aswell. Why is that difficult? Linux based EC2 instances lack gtk+ , which is a must to launch any GUI enabled applications. How to solve? Compile gtk+ from source. This gist by joekiller has the complete dependency tree resolved for installing gtk+ for x86_64 machines. Line 77 Basically installs firefox from its tarball. You can comment it out incase if you don't wish to. Incase Line 42 fails. Do a wget for direct tarball from here , instead the complex recursive wget. For Ex: wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/linux-x86_64/en-US/firefox-18.0.2.tar.bz2 So, All done? Nopes, Now we can't run either of the browsers as we lack X11 server which does graphics operations & screen outputing. As our envir...
This post is updated inorder to support phpcassa 1.0.a.1 Cassandra Composite Type using PHPCassa phpcassa 1.0.a.1 uses namespaces in PHP which is supported in PHP 5 >= 5.3.0 Make sure you have the relavant package. The script mentioned below is the copy of PHPCassa Composite Example I will explain it step by step (1) Creating Keyspace using PHPCassa Name => "Keyspace1" Replication Factor => 1 Placement Strategy => Simple Strategy (2) Creating Column Family with Composite Keys using PHPCassa Name => "Composites" Column Comparator => CompositeType of LongType, AsciiType (Ex: 1:example) Row Key Validation => CompositeType of AsciiType, LongType (Ex: example:1) ...
Lets walk through some basics of varnish before understanding purge and ban Varnish? From DOC : Varnish is a web application accelarator. Varnish can cache & serve all your static properties [css, js, images, parsed PHP pages, HTML] Reduces load on the webservers even on high traffic. Can act as a load balancer even [provided with proper director configurations]. Varnish uses VCL [Varnish Configuration Language] to override the defaults and tweak varnish based on usecase Varnish caches contents [cache object] against a key. By Default the key is Hash(HostName and Request URL) We can override the defaults by editing vcl_hash sub-routine in vcl file Do Cache objects live long in varnish? In varnish every cache object is stored against a ttl value. Every object will be auto-magically removed out of cache once they reach the expiry. TTL can be configured globally as default while starting varnishd with -t option . Also can be overridden in VCL using bresp.ttl va...
Comments
Post a Comment