Thursday, January 8, 2009

MASTERING UPPERCASE LETTERS

IS YOUR WRITING TIRED AND LIMP LIKE ABE VIGODA IN THE MORNING?

YOU NEED THE POWER OF UPPERCASE! WITH UPPERCASE YOU CAN ENJOY MORE POTENT WORDS THAN EVERY LOWERCASE LETTER IN THE ENTIRE ALPHABET! COMBINED!

IN MASTERING UPPERCASE LETTERS YOU WILL DISCOVER:

  • HOW TO GRAB SOMEONE’S ATTENTION USING UPPERCASE NAMES, SUCH AS “HELLO, GEORGE”
  • HOW TO ADD OOMPH TO PROPER NOUNS, LIKE “I SENT A POUCH OF ANTHRAX TO THE WHITE HOUSE”
  • HOW TO BETTER PROVE YOUR POINT, FOR EXAMPLE, “I WILL GET YOU”

PLUS…DID YOU EVER WISH YOU COULD TYPE UPPERCASE WITH ONLY ONE HAND? NOW YOU CAN, WITH MASTERING UPPERCASE LETTERS: ADVANCED EDITION. LEARN TO DEPRESS YOUR CAPS LOCK KEY PERMANENTLY AND FOREVER USING HOT GLUE.

ORDER MASTERING UPPERCASE LETTERS NOW AND RECEIVE A FREE LOWERCASE-TO-UPPERCASE CONVERSION KIT FOR UPDATING OLD MESSAGES!


got this funny crap here : http://www.iwritefunny.com/

Wednesday, January 7, 2009

Installing Tomcat 5.5 + OpenLaszlo + Red5 Flash Server on Windows XP

Resource founded at http://weblogs.amtex.nl/media/users/admin/Installing_Tomcat_Openlaszlo_Red5.pdf


This are the very useful and convenient alternative way on setting up a server that needs ADOBE Flash Media Server which is very expensive. I recommend using an opensource server, the "red5". :)


This article explains how to install and run OpenLaszlo Presentation Server,
Red5 Flash Server on top of an Apache Tomcat server.
This article will quickly get you started according to the philosophy “experience
first, understand later”.
OK, let’s get started!

Tomcat is a free, open source implementation of Java Servlet and JavaServer
Pages (jsp) technologies.

OpenLaszlo is a free, open source platform for creating zero-install web applications
with the user interface capabilities of desktop client software. In fact, it’s a
free Adobe® Flex Server.

Red5 is a free, open source Flash server that supports streaming and recording
audio/video, live stream publishing and Flash remoting. Its commercial brother is
Adobe® Flash Media Server.

Pick them up, shake them well and put it down. The result is T-O-R and the possibilities
are truly amazing!


Prerequisites

Download the following files:

- JDK 5.0 Update ‘xx’ (Java SE Development Kit (JDK)) from
http://java.sun.com/javase/downloads

- tomcat 5.5 from http://tomcat.apache.org:

> Core (windows service installer)
> Administration Web Application

- openlaszlo dev kit (war file) from www.openlaszlo.org

- red5 war file from www.osflash.org/red5

On my system, I ended up with the following files:

jdk-1_5_0_09-windows-i586-p.exe
apache-tomcat-5.5.20.exe
apache-tomcat-5.5.20-admin.zip
openlaszlo-3.3.3.war
red5-0.6rc1.war
Installing JRK + Tomcat 5.5

Estimated time to complete: 5 - 10 minutes

· Perform a standard installation of JDK (next, next… finish)
· Install Apache Tomcat (use the default server port 8080 and remember your
admin login credentials)

Test the installation in your browser: http://localhost:8080

The last thing we’ve to do is installing the Admin Web Application for easy Tomcat
administration.

· Stop the Tomcat Service (from taskbar)

· Open “apache-tomcat-5.5.20-admin.zip” and drop the folders “conf” and
“server” into “C:\Program Files\Apache Software Foundation\Tomcat 5.5\”.
(Windows warns you about already existing folders, but that’s OK. Simply ignore
this)

Start the Tomcat Service again

Test the installation again in your browser (http://localhost:8080) by clicking on
“Tomcat Manager”.

Please enter your login credentials you’ve thought earlier.

You are logged in now.

Onward….!

Installing OpenLaszlo

Estimated time to complete: 1 minute

We’re going to install OpenLaszlo from within the Admin Web Application.

Login (again) into the Admin Web Application and click on “Tomcat Manager”.

Locate “WAR file to deploy” and use the buttons “Browse…” and “Deploy” to install
“openlaszlo-3.3.3.war”.

Test your OpenLaszlo installation by accessing the following URL:
http://localhost:8080/openlaszlo-3.3.3/

All right!

Note: if you’re planning to use OpenLaszlo in a live environment use the servlet
(openlaszlo-3.3.3-servlet.war) instead of the dev kit. The dev kit contains extras
like examples and documentation.


Installing Red5

Estimated time to complete: 1 minute

Next, we’re going to install Red5 in the same way.

Rename “red5-0.6rc1.war” into “red5.war” to get a nice deployment URL (context
path) and deploy it.

Test your Red5 installation by accessing the following URL:
http://localhost:8080/red5

Also try this “real” demo: http://localhost:8080/red5/flvdemo.html
Done!

What you’ve done
You’ve completed a successful installation of Tomcat, OpenLaszlo and Red5.

The next step is writing an application which makes use of OpenLaszlo and
Red5.

htaccess Cheat Sheet

Found this resources in this link : http://www.thejackol.com/htaccess-cheatsheet/

and its pretty usefull in controlling your FTP files and also for SEO also. :) hope it helps you.








htaccess Cheatsheet


Here is a simple cheatsheet for the .htaccess file:



Enable Directory Browsing



Options +Indexes
## block a few types of files from showing
IndexIgnore *.wmv *.mp4 *.avi


Disable Directory Browsing



Options All -Indexes


Customize Error Messages



ErrorDocument 403 /forbidden.html
ErrorDocument 404 /notfound.html
ErrorDocument 500 /servererror.html


Get SSI working with HTML/SHTML



AddType text/html .html
AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .shtml
# AddHandler server-parsed .htm


Change Default Page (order is followed!)



DirectoryIndex myhome.htm index.htm index.php


Block Users from accessing the site



<limit GET POST PUT>

order deny,allow
deny from 202.54.122.33
deny from 8.70.44.53
deny from .spammers.com
allow from all
</limit>


Allow only LAN users



order deny,allow
deny from all
allow from 192.168.0.0/24


Redirect Visitors to New Page/Directory



Redirect oldpage.html http://www.domainname.com/newpage.html
Redirect /olddir http://www.domainname.com/newdir/


Block site from specific referrers



RewriteEngine on
RewriteCond %{HTTP_REFERER} site-to-block\.com [NC]
RewriteCond %{HTTP_REFERER} site-to-block-2\.com [NC]
RewriteRule .* - [F]


Block Hot Linking/Bandwidth hogging



RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]


Want to show a “Stealing is Bad” message too?



Add this below the Hot Link Blocking code:



RewriteRule \.(gif|jpg)$ http://www.mydomain.com/dontsteal.gif [R,L]


Stop .htaccess (or any other file) from being viewed



<files file-name>
order allow,deny
deny from all
</files>


Avoid the 500 Error



# Avoid 500 error by passing charset
AddDefaultCharset utf-8


Grant CGI Access in a directory



Options +ExecCGI
AddHandler cgi-script cgi pl
# To enable all scripts in a directory use the following
# SetHandler cgi-script


Password Protecting Directories



Use the .htaccess Password Generator and follow the brief instructions!



Change Script Extensions



AddType application/x-httpd-php .gne


gne will now be treated as PHP files! Similarly, x-httpd-cgi for CGI files, etc.



Use MD5 Digests



Performance may take a hit but if thats not a problem, this is a nice option to turn on.



ContentDigest On


The CheckSpelling Directive



From Jens Meiert: CheckSpelling corrects simple spelling errors (for example, if someone forgets a letter or if any character is just wrong). Just add CheckSpelling On to your htaccess file.



The ContentDigest Directive



As the Apache core features documentation says: “This directive enables the generation of Content-MD5 headers as defined in RFC1864 respectively RFC2068. The Content-MD5 header provides an end-to-end message integrity check (MIC) of the entity-body. A proxy or client may check this header for detecting accidental modification of the entity-body in transit.



Note that this can cause performance problems on your server since the message digest is computed on every request (the values are not cached). Content-MD5 is only sent for documents served by the core, and not by any module. For example, SSI documents, output from CGI scripts, and byte range responses do not have this header.”



To turn this on, just add ContentDigest On.



Save Bandwidth



# Only if you use PHP
<ifmodule mod_php4.c>
php_value zlib.output_compression 16386
</ifmodule>



Turn off magic_quotes_gpc



# Only if you use PHP
<ifmodule mod_php4.c>
php_flag magic_quotes_gpc off
</ifmodule>

How to Install Memcached with XAMPP and PHP4

resource links: http://www.freshblurbs.com/install-pecl-memcache-xampp-and-php4


this helps me a lot in my web development stuffs. awesome.


XAMPP is an absolutely wonderful, packaged, self-contained distribution of apache, mysql, php and tons of hard-to-install php extensions. Not only does it make sysadmin's life easier, by solving 99.9% of LAMP problems out-of-the-box, but it also allows PHP-vendors to create packaged distributions of complex systems.


However, even with a long list of packaged extensions, obviously there may be a need to install an additional one. PECL Memcache client of memcached distributed cache server, is a very probable candidate for high-load systems.


Unfortunately, PECL is broken in a vanilla XAMPP installation with php4. Typically you won't be able to use "pecl" directly and when you try to install manually with phpize you will get an error like:

" PHP Warning: Unknown(): Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/memcache.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/memcache.so: undefined symbol: OnUpdateLong in Unknown on line 0"



Below is step-by-step guide of how to install a PECL extension (Memcache in this case) in the latest XAMPP:



  1. make sure you uninstall all and any PHP installations you may have had before along with PECL and PEAR
  2. Download and install XAMPP 1.6.1
  3. Add /opt/lampp/bin to your PATH
  4. Download and install XAMPP Development Package
    caution: it will overwrite any configuration changes you may have made previously
  5. backup /opt/lampp/include directory to /opt/lampp/include-bak. This directory
    is part of XAMPP-DEV but seems to be broken vis-a-vis PECL
  6. Download source distribution of the PHP corresponding to your XAMPP installation
    (for 1.6.1 it is PHP 4.6.4) and put it under "include" older so that the root of the
    php source distribution is /opt/lampp/include/php (rename the php-4.6.4 directory
    to php after unpacking).
  7. Run "./configure" and "make" on that php source.
    Caution: Do NOT run "make install"!!!
  8. Download memcache-2.1.2 anywhere

  9. # cd memcache-2.1.2
  10. # phpize
  11. # ./configure
  12. # make
  13. # make install
  14. Edit /opt/lampp/etc/php.ini and add a line:
    extension="memcache.so"

      Enjoy


memcache is just a client-side of the whole cache thing. You need to install server, as well, to do anything useful. The server (called memcached, as in memcache-daemon) requires libevent dynamic library. There is a small pitfall in instaling libevent. The installation itself is a straightforward "configure, make, make install" but once you install libevent and memcached, you may not be able to run memcached and get the following error, instead:


"memcached: error while loading shared libraries: libevent-1.1.so.1:cannot open shared object file: No such file or directory"


This is because memcached was not able to find the library location. Run memcached with:



$ LD_DEBUG=libs memcached -v

to see where is it looking for the libraries and install libevent there.


I had to run libevent configure as:


./configure --prefix=/usr

to fix this problem. You will need to uninstall/recompile/reinstall memcached if you reinstall libevent.


cheers

Database of Ip-to-Counry (CSV format) Download link

Download the latest IP-to-Country Database (Last updated on December 19 2008)



For more information on the database format and how to use it read the User's Guide




resource : http://ip-to-country.webhosting.info/node/view/6

How to :True Full Screen Flash Action script 3.0

Special thanks to http://www.bezzmedia.com/swfspot/tutorials/intermediate/True_Fullscreen_Flash_Mode


- really helps me on doing my ever first you tube like website.



Since the Flash Player 9,0,28,0 update, flash applets can go to true full-screen. There are no fancy javascript hacks needed either.
Users can toggle between normal size and fullscreen with a simple click, which can toggle Stage["displayState"] from "normal" to "fullScreen".
The param allowFullScreen must be set to true in the applet html.

<param name="allowFullScreen" value="true" />


The first thing to do is create a button and add the following code to it:

  1. on(press){
  2. toggleFullScreen();
  3. }

The code for the function toggleFullScreen and a resize listener are placed on the main stage.

  1. //Don't scale the movie when the stage size changes
  2. Stage.scaleMode="noScale";
  3. //Align the stage to the top left
  4. Stage.align = "TL";
  5. //Function to toggle between fullscreen and normal size
  6. //the toggle fullscreen button calls this function when pressed
  7. function toggleFullScreen(){
  8. //if normal size, go to fullscreen, else go to normal size
  9. if(Stage["displayState"]=="normal"){
  10. Stage["displayState"]="fullScreen";
  11. }else{
  12. Stage["displayState"]="normal";
  13. }
  14. }
  15. //Create a listener for each time the Stage is resized
  16. var resizeListener:Object = new Object();
  17. //Called each time the stage is resized
  18. resizeListener.onResize = function () {
  19. //Move the button to the center of the screen
  20. toggleFullScreenButton._x=Stage.width/2;
  21. toggleFullScreenButton._y=Stage.height/2;
  22. }
  23. //Add the listener to Stage
  24. Stage.addListener(resizeListener);


Example XHTML used for this applet:

<object data="http://www.bezzmedia.com/swfspot/resources/34-fullscreen.swf"

type="application/x-shockwave-flash" width="400" height="200" >

<param name="movie" value="http://www.bezzmedia.com/swfspot/resources/34-fullscreen.swf" />

<param name="allowFullScreen" value="true" />

</object>


The balls were added in to show that the stage extends to the borders of the screen, even when resized.



Download the source file below:





Download Source File

How to Install games in your samsung u700

found this site in http://forum.mobiles24.com/showpost.php?p=29176&postcount=19
for those people whos having trouble on this kinda stuff.

It wont be short, but i try to cover up everything

U600/700 phones CAN play all games, but in order to do this, you have to follow these steps. Im not exactly sure this will work on u600 phones, i have a u700 and it worked for me. u600 owners can follow this guide as well, even if it wont work, you still tried and there is no risk or whatsoever







what you will need:

- u600/700 (some say this even work with Z720)

- USB Cable (the one which was given with your phone)

- Qualcomm USB Driver

- BitPim (for managing files in your phone)


- JAD maker (for making .jad files for games that dont have)

- mpowerplayer for trying out games before you install them (optional, but i recommend)



Step 1:



- Activating the Qualcomm USB



Write the following into your phone: *#0523#

A window will pop up. Next, push the [#] key FOUR (4) times. You will see a menu, containing 9 submenus. You need the last one: [9] Common. Push the [9] key then the [6] USB Configuration, then [2] Qualcomm USB[*] If everything is allrigt, then you will see the following msg: "--> Qualcomm USB Configured. Plz Reconnect the Cable.0"




Step 2:



- Installing in Windows



Using the USB Cable, connect your handset with your PC. Windows will recognize it and will give a "new hardware" msg. You have to manualy give the path to the qualcomm driver which you just downloaded. Next windows will recognize another hardware, use the same path like you did before and install it.



Step 3:



- Transfering java files on to your phone



Install and start BitPim on your PC.


3.1. On top at the menus go to: Edit > Settings. Then: Phone Type: Other CMDA Phone. At the Com Port there is a button called Browse... Here you will choose the Qualcomm Diagnostics Interface 3197 device, it should be in the list of available ports.

3.2. Then go to View > View Filesystem. In the left side the tree will pop up and you will see a thing called "Filesystem". Click it, and next to it, another tree will be there with a / sign. Click the "/" and open it. After a few seconds you will see your phones full memory.

3.3. Go to Media > Games folder. You have to copy here your Java stuffs. I highly recommend that put each program in a separate folder (making new folders: right click on the Games folder in the tree view and "Make subdirectory...". Copying files: right click on the empty space in the right side and "New file..."). You can only copy 1 file at the same time! You will need both .jar and .jad files in order to make it work (if you have .jar only then use JADMaker to create the .jad file).

3.4. If you finished with all the transfers, close BitPim and pull of you phone from the cable.



4. Updating your phones file database




We switch back to the phone again and write inside the following code: *#6984125*#

With this, you can acces the "Admin settings" menu. Choose the last sub-menu, the "Internals" (4). The Master key is: *#9072641*#

Then choose Storage Settings (7). Inside this menu you will encounter with 3 options. Use each of them, one after the other: Update media database (1), Update java DB (2), Create Ax DAT file (8).



5. Finishing Steps and some reminder



Exit from the admin menu, and go to My files > Games and others (or whatever is the menu's name, i never had an english handset ), here you will see your newly added game(s) and/or applet(s).


If you wanna add some other stuffs later then you can jump to the 3.3 stepp and continue from there.



ATTENTION, ATTENTION PLEASE! If you want to delete some files later then ONLY do it with BitPim and refresh the database after that (4th step).



Finaly:



One last (and important) thing: in the service menu, in the admin settings and inside BitPim do your things with extreme caution! You can brick your phone easily if you do something wrong! I wont take any responsability if you do so! But if you followed carefuly this guide and checked every things twice then there wont be no problems at all!




You can try out your downloaded games with mpowerplay so you can be sure wheater you want to play that game or not. It needs Java Runtime Enviroment (wow ). Its a bit buggy at sometimes and there are some other tools out there but i didnt had any problems with it. This whole try out thing isnt important, just an option anyway



I hope this one will help and solve this very irritating problem



(if you dont understand something or it doesnt work for you: i dont care)



The SOURCE which i used for this guide (i translated it)




Bellow the files that you will need. Best regards and good luck,

G



FILES

MIRROR

Most Viewed