All posts by teliaz

Upload with progressbar

New uploading Script Available on jQuery Community.

There are many solution to work in the net. There implementation for a default usage is quite simple.  And all have good documentations.


swfUpload

The classic and maybe the predecessor of all scripts that use a flash component to show the progress of the uploading status is swfupload. This main reason I stopped using this is because i found many versions. Each version not working with some browsers.  I also needed to change the script to implement a database insetion to store the uploaded media. This upload solutions is very versatile and customizable. Here you can see some demos.
Multiple file selection is supported.

Features

  • Multiple file selection is supported.
  • Customizable Folder, Action when All completed, One completed.
  • Size Limit
  • Custom File Extensions
  • Post/Get  Form Data
  • .NET 2.0 Support

upload_01


jQuploader

Another solution works with jQuery 1.2.xx JS Framework. The drawback is that latest jQuery framework doesn’t work ok with this. I used this for some time now. The fla file is included and i was able to implement actions to call js functions when the files uploading procedure was finished.  This solutions is the most compatible one i ve ever used. Works ok with FF, IE, Opera, Chrome, Sleipnir, Safari and also with Flash9 and 10. A very strong aspect of this solutions is that you can also send Form variables.

Check out the demos.

Features

  • Multiple file selection is not supported.
  • Asynchronous or synchronous file submitting is also supported.
  • Customizable Folder, Action when All completed, One completed.
  • Editable Flash Upload script. (Default = ‘upload.php’)
  • Size Limit
  • Custom Allowed Extensions

upload_02


apgetwikiimage

uploadify

This is actual the reason i made this post. This looks to be the most compatible version of all the above. It has all features mentioned and works with 1.3.x jQuery.
Features

  • Multiple file selection is supported.
  • Asynchronous or synchronous file submitting is also supported.
  • Restriction of the number of simultaneous uploads is also supported.
  • Customizable Folder, Actions for (onInit, inSelect, onSelectOnce, onCancel, onClearQueue, onError, onProgress, onComplete, onCompleteAll, onCheck)
  • Editable Flash Upload script. (Default = ‘upload.php’)
  • Domain restriction
  • Size Limit
  • Custom Allowed Extensions
  • Post Form Data
  • wmode for flash (i found that very important)
  • fileupload autostart option

Check out the uploadify, demos and this brief documentation.
The impementation is very simple.
upload_03

Fix IE8 Styling and behavior

ie8_icon

IE8 is still in a premature version. For all the developers that need to re-insure that web pages will be displayed and work as before there is one quick tip. A single line of code to add to your pages.

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />


This meta tag will make IE8 work as IE7 did.
Maybe there are still very few ppl that browse with IE8 (browser statistics) but i thought you should know this tip.

Copy command to USB printer

roller_printer3
If you need to sent a dump text to your printer for testing purposes you can you this command

> copy test.txt lpt1:
(in case your printer is connected to that port)

What do you do when we want to use copy command to a usb connected printer ?
In the printer properties , Ports tab, as you can see the port name is usually as USB001 or USB002.

If you change the command to
> copy test.txt usb001
a new file named usb001 will be created as a copy of test.txt.
But we need to sent the test.txt content for printing..

Here is what we do to override this..

First Step
>net use lpt1: \\localhost\printername
(lpt1: will be useless after that, also printer must me shared)
Second Step
> copy test.txt lpt1:

try it…
it will do the job if you want to make your tests.

AS3 Flash Resources List

actionscripticon_400
BOOKS:

1. Essential Actionscript 3.0
2. Foundation Actionscript 3.0 Animation – Making Things Move – Keith Peters – Friendsofed
3. Object Oriented ActionScript 3
4. Flash Game University
5. The Actionscript Bible
6. AI Game Programming Wisdom
7. Advanced.ActionScript.3.with.Design.Patterns
8. O’Reilly’s Learning Actionscript 3.0
9. Flash Professional 8 Game Development

WEBSITES:

  1. http://www.senocular.com/flash/tutorials/as3withflashcs3/
  2. ByteArray.org
  3. polygonal labs
  4. BIT-101 Blog
  5. Kirupa’s ActionScript 3 Tips and Tricks
  6. http://gotoandlearn.com/
  7. http://chrisbrimelow.com/blog/
  8. http://livedocs.adobe.com/flex/3/html/
  9. http://flashgameu.com/
  10. Flash Enabled Blog
  11. http://www.8bitrocket.com/
  12. PeachPit
  13. Cartoon Smart ~ (sadly, this isn’t free)
  14. http://www.newgrounds.com/bbs/topic/229808/50
  15. http://www.lynda.com/ – $25/month access to all videos. I have a subscription, it explains it so ANYONE can understand it. If you’re just starting in AS3, these are highly recomended, even if you’re semi experienced.3D Engine:
  16. Papervision3D
  17. Away3D Flash Engine
  18. AlternativaPlatform
  19. Sandy
  20. Mathieu Badimon | FIVe3D
  21. custom:media & SWFZ
  22. shirotokoro & WOW-Engine ~ 3D Physics Engine
  23. moock.org

Isometric Engine:

  1. zenbullets Isometric Game Engine
  2. FFilmation

Tween animation library:

  1. GO ASAP
  2. GreenSock & TweenLite (AS3) – A Lightweight (2K) and FAST Tweening Engine
  3. Twease | visualcondition playground
  4. tweener – Google Code
  5. Uza’s Blog & More & AS3 Easing
  6. AnimationPackage
  7. boostworthyisryantaylor & AS3 Animation System v2.0

Artificial Intelligence

  1. http://munsterkiler.890m.com/wordpress/?p=24
  2. http://www.red3d.com/cwr/steer/
  3. http://www.ai-junkie.com/ai-junkie.html
  4. http://www.kirupa.com/forum/showthread.php?s=&threadid=16649

Game

  1. http://www.permadi.com/tutorial/flashSharedObject/index.html
  2. sephiroth

Physics:

  1. APE – Actionscript Physics Engine
  2. Fisix Engine | Flash Action Script 3 Physics Engine for Game Developers
  3. Flash Physics Engine Box2DFlashAS3 1.4.2
  4. foam-as3 – Google Code
  5. motor2 – Google Code
  6. glaze engine
  7. physaxe – Google Code

Socket server:

  1. ElectroServer 3 – socket-server, multiplayer, server-side ActionScript, server plug-ins, database support
  2. moock>> unity
  3. Palabre :: Flash Xml Multiuser Socket Server – Home
  4. SmartFoxServer: Socket server for Flash multiplayer games and applications
  5. Swocket – A Modular XML Socket server in Python
  6. RED5Server
  7. MMOcha – Platform for Multiplayer Games
  8. Nonoba Multiplayer API – Nonoba.com

Other:

  1. Flint Particle System
  2. Projects < ByteArray.org (various, including alivePDF and wiiFlash)
  3. flare | visualization on the web
  4. AsWing
  5. as3ds – Google Code
  6. ASProf – Realtime Actionscript Profiler
  7. evoengine – Google Code

Forums:

  1. FFILES
  2. Official Adobe Forum
  3. Kipura

Path Finding:

http://www.gameai.com/pathfinding.html

Apache Protected Folder – How to

In normal Windows Installation
Path to your Apache Folder (C:\apache\ )
Path to your Apache Config Folder ( C:\apache\conf )

In Windows WampServer
Path to your Apache Folder (C:\wamp\bin\apache\apacheX.X.X )
Path to your Apache Config Folder (C:\wamp\bin\apache\apacheX.X.X\conf )

In Linux XAMPP
Path to your Apache Conf Folder ( /etc/httpd/conf/)

1.Open the httpd.conf file located in the Apache

2. Look for the word “AccessFileName .htaccess”
and change it to “AccessFileName ht.acl .htaccess”

3. this is how it should look like

AllowOverride All
Options None
Order deny,allow

4. Go to Apache bin directory and execute these commands

c:\apache\bin>htpasswd
(will show the available options)

c:\apache\bin>htpasswd -c -b passwd.txt username password
(A text file will be created holding the username and password, be careful if there are already passwords stored for other folder in your apache server using the same named convension)

If you execute a dir or ls in the apache\bin directory a password file name “psswd.txt” will be created

5. The next step is to create the .htaccess file in linux or ht.acl in Windows
The reason we added ht.acl file in htppd.conf is because in Windows machine its a hard thing to name a file that way. (the only solution I found was to download a file from my net hosting provider and edit it later for my use)

Here are the contents in the .htaccess or ht.acl file

AuthUserFile c:/apache/passwd.txt
AuthName "My Secured Folder"
AuthType Basic


require valid-user

6.Place this file in the root of each directory you want to secure

7. Restart Apache ( just in case)

8. This is the resulting modal authentication screen each time
you open the folder with your browser

htaccesspop

JUST IN CASE YOU MISUNDERSTOOD THIS IS A TUTORIAL FOR YOUR LOCAL APACHE SERVER.
If you have a hosting there are other more simple ways to do that. (in case you forgot your paying the hoster, ask them to do it for you)

Werfault.exe Process

WerFault.exe is part of the Windows Error Reporting Service. To remove that process from your memory simple disable the Windows Error Reporting Service in the service manager. Here’s how you can get it done:

1. Run “services.msc”.
2. Find the Windows Error Reporting Service and disable it.
3. Next to go the Properties dialog of this service and set startup mode to “Disabled” or “Manual”.
4. Reboot. The WerFault.exe service should then be inactive.

It’s a good idea to disable this service by the way. It locks up on many occarions, using up 100% system resources when doing so.