background preloader

Programming

Facebook Twitter

Installing SSL using OpenSSL on a WAMP localhost | phpJoel. Image via Wikipedia I’m working on a project that is requiring me to use SSL (to make a https connection) on my local installation of WAMP. After much searching and a couple tries, it appears that I finally got it working. This post should be useful to anyone who is trying to do the same. Before starting with all the key stuff, I installed the OpenSSL binaries for Windows into the System directory. The following is ripped from a comment buried on WampServer.com. Your paths may be slightly different.. so change them appropriately. Again in the command prompt, go to C:\wamp\Apache2\bin and run the following command: The command runs and prompts you to enter a PEM pass phrase and verify it.

It will then ask you to enter information that will be incorporated into your certificate request. Run the following command: You will be prompted for the pass phrase from the previous step. Run the following command to create a certificate which expires after one year: Copy the following files to /certs/: jQuery vs MooTools: Choosing Between Two Great JavaScript Frameworks. Quick Tip – Resizing Images Based On Browser Window Size. How Is This Useful?

In fluid layouts it is easy to format the text to adjust nicely when the window is resized, but the images are not as fluid-friendly. This Quick Tip shows you how to swap between two image sizes based on the current size of the browser, div, or whatever you decide to make the deciding factor. For those looking for a real life example, Last.fm uses this technique on their artist pages. The technique that will be used can be expanded to cause additional changes upon resize as well, beyond simply image swapping (ie captions, navigation). With that said, let’s get rolling. Step 1 – The HTML You Need That’s nice and bite-sized. Step 2 – Onto the CSS For the sake of simplicity I have excluded any graphical styles such as borders/fonts in the above CSS. Step 3 – Triggering the Change With jQuery When the document is ready, we establish a function (imageresize) which swaps the images depending on the width of the browser.

Boom, You’re Done Google+ Building Multi-lingual Joomla 2.5 Sites. About a year ago we wrote a tutorial which showed how to build multi-lingual sites in Joomla. This tutorial proved to be one of the most popular we've ever written. However, Joomla has made some updates since last year, and so this is our update to that tutorial. We also now have a complete training class on multi-lingual sites for our members. This tutorial covers how to build a multi-lingual site with only the Joomla core.

This doesn't replace other multi-lingual content extensions such as Falang or Joomfish. What you can do is activate the language switcher module and let visitors switch the joomla core labels and headings to their preferred language. Step 1: Activate the plugin Go to Extensions > Plugin Manager.Use the Filter to search for language plugins.Activate the plugins by clicking the red circles. Step 2: Set the basic plugin options Step 3: Add the content language Go to Extensions > Language Manager on the admin menu.

At this point, you don't need the language pack installed. View topic - AS3FlexDB Tutorial 1 : Connect to a MySQL Database. Great tutorial. I have zero Flex experience before this, and I managed to get this going. Some observations: 1. Your format is clean and much easier to read than many/most tutorials. Great job. 2. 3. 4. 5. 6. 7. Awesome site, hope to see more material here. Thanks,Chris. Wampserver 2 and AMFPHP Service Browser - arguments.callee. Free high quality new textures to use for all of your in-home or online projects. Crydev.net • Index page. Game Engines. Can you crack it? GlovePIE. LoaderMax – Smart AS3 Loading. You may use the code at no charge in commercial or non-commercial apps, web sites, games, components, and other software as long as end users are not charged a fee of any kind to use your product or gain access to any part of it.

If your client pays you a one-time fee to create the site/product, that's perfectly fine and qualifies under the "no charge" license. If end users are charged a usage/access/license fee, please sign up for a "Business Green" Club GreenSock membership which comes with a comprehensive commercial license. See for details. Use at your own risk. No warranties are offered. This is a legal agreement between you (either an individual or a single entity) and GreenSock, Inc. I. II. B. C. III. B. IV. V. B. VI. VII. B. C. D. ARI Soft - Free and Commercial Joomla! Components.

Shops

Convert just about anything to anything else. Simon Joslin - Projects. Download the XBOX 360 Gamepad Server to get up to four XBOX 360 controllers talking to Flash ActionScript 3. To run the server you need XNA 4.0 , .net 4.0 , Adobe Flash CS4 or greater , and either a wired XBOX 360 controller or a wireless controller and the wireless controller receiver . The C# socket server allows Flash to retrieve the XBOX 360 controllers values through the new binary sockets and ByteArray functionality of ActionScript 3. The server runs on a windows machine, polls the connected controllers, bundles their values into a packet and sends it across the network to a connected client. The packets just contain binary data, so this can be used with any client, but example code is provided for Flash. Because it runs as a socket server, you can get the controllers into Flash on a mac or linux machine.

Download the full source code, including a C# Visual Studio solution and example Flash code. Download the compiled server executable and example Flash code. Distributeur international de matériels électroniques, électriques et MRO | Farnell Belgique. ActionScript 3.0 and Flash CS3. Overview display list combining authoring assets with code the display list the hierarchy of all graphical objects currently displayed by the Flash runtime loosely: the "stuff (movie clips, text fields) on screen" the DisplayObject class what can go on the display list? Anything that descends from DisplayObject DisplayObject defines a core set of graphics features positionrotationscalehit testingfilters, transforms, masks DisplayObject's descendants InteractiveObject: adds mouse/keyboard functionality DisplayObjectContainer: adds containment for grouping Sprite: adds dragability, button-style interaction features MovieClip: adds timeline control the Stage class the outermost container for all graphical content root of the display list control over the global characteristics of the display area quality, scaleMode, frameRate display list for an empty flash runtime at startup, flash runtime auto-creates Stage instance auto-adds Stage instance to display list a .swf file's main class example main class instance.

Implementing Array.shuffle() in Actionscript. One useful thing that Actionscript doesn’t offers is the ability to shuffle an array, however this can be accomplished in a blink of an eye and with very few lines of code. Before to implement my own solution, I looked on the web, but solutions provided by others developers looks too complex and too long to type. What I found was based on a for loop and several line of codes to fill a secondary array with the elements in a new random order. My solution instead is based on a while loop (3 lines of code only): First we have to create a new array (arr2) which will contains the elements from the base ordered array (arr), then we use a while loop, which can be translated into english as: “do this until base array is not empty”. I think this is the best and shorter way to implement a shuffle functionality :)

Randomize array. Send/SendRaw/SendInput/SendPlay/SendEvent: Send keys & clicks. Sends simulated keystrokes and mouse clicks to the active window. Send Keys SendRaw Keys SendInput Keys SendPlay Keys SendEvent Keys Parameters Normal mode: When not in raw mode, the following characters are treated as modifiers (these modifiers affect only the very next key): ! +: Sends a SHIFT keystroke. ^: Sends a CONTROL keystroke. #: Sends a WIN keystroke, therefore Send #e would hold down the Windows key and then press the letter "e". SendInput and SendPlay [v1.0.43+]: SendInput and SendPlay use the same syntax as Send but are generally faster and more reliable.

SendEvent [v1.0.43+]: SendEvent sends keystrokes using the same method as the pre-1.0.43 Send command. Key Names: The following table lists the special keys that can be sent (each key name must be enclosed in braces): Repeating or Holding Down a Key To repeat a keystroke: Enclose in braces the name of the key followed by the number of times to repeat it. Send {DEL 4} ; Presses the Delete key 4 times. General Remarks Related. AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText.

Lua nova » iOS Programming with Lua. Matthew Burke, Bluedino Software In this article I will discuss three methods for using Lua to build iOS apps. The techniques range from using Lua to build the entire application (Corona) to using Lua as a component for scripting your application (do it yourself or Wax). Before getting into the details, there are two main questions to answer: Why use Lua? The answers to these questions are intertwined. In case you landed here without knowing anything about Lua, let me hit the high points of the language. About Lua Lua is a fast, lightweight, embedded scripting language. Lua was created in 1993 by Roberto Ierusalimschy, Waldemar Celes and Luiz Henrique de Figueiredo at the Pontifical Catholic University in Rio de Janeiro, Brazil. Lua’s main data structuring mechanism is the table—a combination resizable array and hash.

Out of the box, Lua is neither an object-oriented (OO) programming language nor a functional programming language. Can I Script on iOS? Why Use Lua for iOS development? Corona. Creating a simple ActionScript 3 class. Assigning dynamic/unique variable names in a for loop in AS3 « Useful Stuff. Assigning dynamic variable names to objects created in a for loop in AS3. You have to get very creative to search these questions on google because words like “for” and “loop” are so utterly common. If you have a loop in AS3 creating multiple variables but need them to have unique names (for later modification) you need to create something like an array to store the references to the variables.

For example, anything you create in a for loop is a temporary reference. It disappears after the loop is complete, and whatever objects were created stick around in the displayObject. In my situation I had a loop creating my navigation elements, but needed to position each X value separately. Here is the method I used to keep the references to these variables: Now, to use those references: Now if I wanted to access those individual MovieClips I could use the mcArray to do so.

I could also loop through the array to apply an animation to each item. Generate 1000 triangles. Like this: Like Loading... Uza's Blog – Adobe Flash & AIR. Snorkl.tv — Video Tutorial: Meet LoaderMax. You may use the code at no charge in commercial or non-commercial apps, web sites, games, components, and other software as long as end users are not charged a fee of any kind to use your product or gain access to any part of it.

If your client pays you a one-time fee to create the site/product, that's perfectly fine and qualifies under the "no charge" license. If end users are charged a usage/access/license fee, please sign up for a "Business Green" Club GreenSock membership which comes with a comprehensive commercial license. See for details. Use at your own risk. No warranties are offered. Please respect the copyright. This is a legal agreement between you (either an individual or a single entity) and GreenSock, Inc. I. II. B. C. III. B. IV. V. B. VI. VII. B. C. D. Learning Resources. You may use the code at no charge in commercial or non-commercial apps, web sites, games, components, and other software as long as end users are not charged a fee of any kind to use your product or gain access to any part of it.

If your client pays you a one-time fee to create the site/product, that's perfectly fine and qualifies under the "no charge" license. If end users are charged a usage/access/license fee, please sign up for a "Business Green" Club GreenSock membership which comes with a comprehensive commercial license. See for details. Use at your own risk. No warranties are offered. This is a legal agreement between you (either an individual or a single entity) and GreenSock, Inc. I. II. B. C. III. B. IV. V. B. VI. VII. B. C. D. Flash and Actionscript Tutorials. Flash and Actionscript 3 Tutorials | FlashMyMind - Flash and ActionScript 3 Tutorials. AS3 Flash Games for Beginners: Character Movement / Handling Multiple Keypresses. Movement is extremely important for any game in which you take the role character or object. Bad movement can completely ruin your game, and good movement can make it feel well polished. Of course, movement is just one part of your game, but it’s the foundation of everything your character will do, so you need to give it some attention.

This is the second article in the Flash Game Basics series. It picks up where the previous one left off. The information in this article is not dependent on the previous other than the files being used and the assumption that you can add a Library Object to the stage using AS3. If you would like to read the previous article first, it can be found here. When we left off we had added our spaceship to the stage, front and center.

Okay so we have senocular’s class ready, if you’ve programmed in AS2, you’ll notice senocular’s class gives you the isDown functionality of AS2. Here’s our new Engine Class passing the stage into ourShip. Okay the Breakdown! . Graphic Design Smoke in Flash. What good is smoke? Let’s think for a second. What produces smoke? Failing mechanical equipment, grenades, guns, volcanoes, factories, fires, vehicles, and probably a million other things. So does your Flash game need smoke, well, that’s for your to decide. Open up Photoshop and create a new document 40×40. And change a few of the settings on this brush as in the image below. Now simply go in the middle of your canvas and make a smoke puff.

It should look a little something like the above. Okay. Now just drop the image of your smoke puff dead center in the middle of a new MovieClip, name is SmokePuff. Okay so one more thing left to do and you are set. One last thing… set your document class to Main. Okay guys, this has been a super quick tutorial so far. Let’s break it down: We have a vx(velocity x) and vy(velocity y) class variable. Alright, so that makes our smoke move. Okay breaking this down is extremely simple. Ready to see what it looks like? Awesome we’re done. Color changing with ColorTransform in AS3 Actionscript. Loading Multiple Images with ActionScript 3 | FlashMyMind - Flash and ActionScript 3 Tutorials. Wii to Midi for PC. Downloads. How to use Wii controller (Wiimote) as a mouse in Windows « Technical How To’s.

Tips & Tricks 10: Using Drag & Drop in Actionscript 3.0. AS3 randomize array - Other. ActionScript 3 guides, tutorials, samples. GCalendar.