background preloader

Web development (Codes)

Facebook Twitter

Top 50 Free Open Source Classes on Computer Science : Comtechtor. Computer science is an interesting field to go into. There are a number of opportunities in computer science that you can take advantage of. With computers increasingly becoming a regular part of life, those who can work with computers have good opportunities. You can find a good salary with a program in computer science, and as long as you are careful to keep up your skills.

Here are 50 free opencourseware classes that can help you learn more about computer science: Introduction to Computer Science Learn the basics of computer science, and get a foundation in how computer science works. Introduction to Computer Science: Learn about the history of computing, as well as the development of computer languages. Comprehensive Computer Science Collections If you are interested in courses that are a little more comprehensive in nature, you can get a good feel for computer science from the following collections: Programming and Languages Computer Software Computer Systems and Information Technology.

Creating a picture gallery with HTML5 canvas - Ubelly. Displaying pictures in a gallery is something that so easy to do with one of the many jQuery Plugins, but what if you want to use the HTML5 canvas tag? Capital FM recently created a HTML5 showcase page called Be A Star and at the bottom they show off a rather fancy image gallery. The gallery uses HTML5 canvas and below I’m going to show how you can create something like this yourself. If you want to see how they also used CSS3 check this post out. The canvas tag is like a bitmap, once we draw an image on the canvas we can’t go back and query that image to obtain it’s properties. Unlike DOM objects we can not simply animate them by altering their x and y coordinates.

To animate using the canvas tag you create a loop and then 24 times per second (actually how often you like) you redraw the entire canvas. If you want to animate an image it’s up to you to hold a reference to that image and then redraw the image by placing it in a different position on the canvas on every tick of the loop. Introduction to Algorithms - Download free content from MIT. Beginning Game Development: Part VIII - DirectSound | Coding4Fun Articles. Welcome to the eighth article on beginning game development. We have spent a lot of time working with the graphics capabilities of DirectX. We also covered how the DirectX API allows us to control input devices. Now we are going to look at another facet of DirectX, the ability to control sound devices. This capability is found in the DirectSound and AudioVideoPlayback namespaces. Sound in Games Sound creates an ambiance in a game that provides for a more immersive game experience.

Sound effects also provide the same audible cues we expect in real life, such as the direction and speed of a person approaching us based on the volume, direction, and frequency of the footsteps. In BattleTank2005 I want to integrate sound in the following way. Secondly, I want to be able to play background music during game play and I want to control what music plays when in the game. DirectSound The DirectSound namespace only supports playing 2 channel waveform audio data at fixed sampling rates (PCM). Device. 7 Reasons You Should Use #Hashtags In Your Tweets - The Link Medic - Free Blogging Resources. A hashtag is simply a keyword marked by the # symbol in front of it.

In some geekier circles it’s known as an octothorp, which might be good to know if you’re appearing on Jeopardy. It is used to help categorize tweets and help you find similar ones using that topic’s tag. This is done by clicking on the hashtag which will show all the tweets using that tag. They are mainly used as an interactive search function and not for labeling idea they were originally invented for. Example: Optimize your Blogger post titles for better PR in minutes with one code – – #blogger #SEO I use mine on the end of the tweet but a tag could be any word in the tweet itself. Many of you no doubt use these in every tweet but you may not know of its true potential, especially if you’re not using them regularly. 1. 2. 3. 4. 5. 6. 7.

Incoming search terms: Find More Like This: Java Programming Cheatsheet. This appendix summarizes the most commonly-used Java language features in the textbook. Here are the APIs of the most common libraries. Hello, World. Editing, compiling, and executing. Built-in data types. Declaration and assignment statements. Integers. Floating-point numbers. Booleans. Comparison operators. Parsing command-line arguments.

Math library. The full java.lang.Math API. Type conversion. If and if-else statements. Nested if-else statement. While and for loops. Break statement. Do-while loop. Switch statement. Arrays. Compile-time initialization. Typical array-processing code. Two-dimensional arrays. Ragged arrays. Our standard output library. The full StdOut API. Our standard input library. The full StdIn API. Our standard drawing library. The full StdDraw API. Our standard audio library. The full StdAudio API. Redirection and piping. Functions. Libraries of functions. Our standard random library.

Our standard statistics library. Using an object. Creating an object. Instance variables. Constructors. Classes. 5 Great Resources To Learn How To Code. However, more often than not, there seems to be a problem of actually finding good content online that can teach you to code. Experimenting with a language can only get you so far. To master it, you need to have proper guidance from people who actually know what they are talking about.

So where can you find expert guidance without shelling out a fortune for it? You could start with checking out the websites below: Dream In Code Just taking a look at their logo ought to tell you that the community at Dream In Code isn’t something to mess around with. They have everything. They also have a video channel and links to developers’ blogs if you want to look deeper. W3Schools If what you want to master is a Web technology, you’ve got to give W3Schools a look. You can get tutorials ranging from plain-Jane HTML, right up to AJAX and the likes.

Eloquent JavaScript If you’ve ever had to use a Greasemonkey Script or a Bookmarklet, you have a clue about the kind of power that JavaScript possesses. The Shapes of CSS. Learn Development at Frontend Masters CSS is capable of making all sorts of shapes. Squares and rectangles are easy, as they are the natural shapes of the web.

Add a width and height and you have the exact size rectangle you need. Add border-radius and you can round that shape, and enough of it you can turn those rectangles into circles and ovals. We also get the ::before and ::after pseudo elements in CSS, which give us the potential of two more shapes we can add to the original element. Square Rectangle Circle Oval Triangle Up Triangle Down Triangle Left Triangle Right Triangle Top Left Triangle Top Right Triangle Bottom Left Triangle Bottom Right Curved Tail Arrow via Ando Razafimandimby Trapezoid Parallelogram Star (6-points) Star (5-points) via Kit MacAllister Pentagon Hexagon Octagon Heart via Nicolas Gallagher Infinity via Nicolas Gallagher Diamond Square via Joseph Silber Diamond Shield via Joseph Silber Diamond Narrow via Joseph Silber Cut Diamond via Alexander Futekov Egg Pac-Man Talk Bubble TV Screen Lock. 30 HTML Best Practices for Beginners.

Real-time HTML Editor. Show Me HTML. Am I Human? How to Defend Your Web Forms from Spam Bots Using Javascript. What’s the ideal check to protect your web forms from spambots? No one really likes having to copy squiggly letters from a CAPTCHA image, but is there a better alternative? The ideal check would be one that most people don’t ever notice, but which effectively keeps out all spambots.

In this tutorial, I describe a technique that uses Javascript to recognise human activity based on screen events, which works very well for us. In a discussion on Scratch Forums on the merits of CAPTCHA, one of our members suggested a possible alternative that detected JavaScript events (mouse events, keystrokes) to show that it’s a human completing the form. I took on the challenge of creating a simple JS-based alternative to CAPTCHA, which I’ll explain below. High-level Requirements Am I Human? First of all, our form will need some way of sending the answer to “am I human” through to the back-end script. For this, I’ll just use a hidden field. Switch it For Humans Testing Results with Script Here’s what I do:

Development for Beginners | Training, Videos, Tools, Resources, Learning | MSDN. PHP for Beginners: Building Your First Simple CMS. The Magic of PHP + MySQL It’s safe to say that nearly every website that’s up-to-date these days is using some form of content management system (CMS). While there are a ton of great free options that provide us with a CMS to power a website (WordPress, Drupal, etc.), it doesn’t hurt to peek under the hood and get a feel for how these systems work. To get our feet wet as back-end developers, we’ll be creating a simple PHP class that will: Create a databaseConnect to a databaseDisplay a form with two fieldsSave the form data in the databaseDisplay the saved data from the database Download Files This class is intended to give you a feel for how PHP and MySQL interact together, and to show the basics of a CMS.

Building the Class Our first step is to simply lay out the class in a file named ‘simpleCMS.php’ so we have a road map to work with. As you can see, we’re creating one class with four variables and five methods. The Variables Build the Database Connect to the Database Build the Form <! <?