Google has just announced it's making an offline version of its Gmail e-mail service available today. The new feature will be initially available to users of its Googles Apps online suite of productivity applications, which includes Gmail.
Over the next few weeks, Google said it will make the feature available to consumers and others who use the stand-alone version of Gmail.
Well here is something I wanted to share with you guys. About almost a year ago I bought my Linksys WRT54g and set it up all happy that I now have wireless at home. After a couple of days I noticed that if I was downloading torrents or something heavy on the download manager, the internet on other computers at home would stop working or my router would habg and require a reset. I kept trying to play with the settings and all but it was no good (BTW this is the version that you can't install dd-wrt and others on). So after sometime I decided why not try to use it as a switch, maybe it will work.
Well knowing that there are many tutorials out there that will be able to help you with basic C# coding, I am writing this tutorial as a precursor to the C# client server programming tutorial. This tutorials will be followed by the C# events, delgates, and threading tutorials which we will be using later on in our client server programming tutorials.
Lets start with a simple hello world program which containd some basic constructs you will find in a C# program.The program may not really make much sense but I hope it gets through with the concepts. I am obviously going to assume here that you have some prior knowledge of object orientated programming concepts.
This is a simple bar like the ones we see in shooting games that shows how much life,health or energy left for you, I just made a very simple example to show how it is done.
As you can see I made two buttons Shoot Me and Help!!. when you click on Shoot Me your energy will be decreased,
Have you ever needed to use a label with subscript or superscript text and searched all over the net and not found anything? I know I have and after searching for a long time and not finding anything, I decided to make my own label using C#. The custom superscript, subscript C# label turned put to work just fine for me and helped me overcome my problem, so I would like to share it with everybody. By the way this label is for the Windows Forms Applications only.
I call it the FNLabel, and it is just a simple label that extends the .NET label. The FNLabel should work with any .Net language. I simply overrid the OnPaint method and used graphics.DrawString and drew the string while offsetting the superscript and subscript text in the label. I used two characters for marking the start and end of superscript and subscript text. Just add it to your toolbox and start using it. You can download it from the attachments below (Read More..)
Exploring the Dark Room Using the Masking Property in Action Script 3
Written by Waleed Al-Bahrawy
Using the masking property in Action Script 3 an object can mask the content of another object.
The masking object will show only the content of the masked object that is in it's range.
Many game developers are using this property in their games and I used it in my game Sky MazezZ(starting from level 15), where the level will be dark and the player can only see a limited area of the maze and doesnt know what is coming.
Suppose you made your own flash game and you want to put it on the internet like everybody else. Well thats pretty easy, only people may take your game and put it on there own sites, or maybe just download it and play offline.
Well not to worry there is a pretty easy way to prevent it.
Just read on for the code and well offcourse a little explaination...
Just insert the following code into your game ActionScript in the correct place as described below:
1 2 3 4 5 6 7 8 9
if(this.root.loaderInfo.url.indexOf("YOURSITEHERE")!= -1){ //OK THATS WHAT I WANT } else{ //if the game is not played from my server //redirect the player to my site! var myURL:URLRequest = newURLRequest("YOURSITEHERE"); navigateToURL(myURL); }
Description of the code:
We are using the this.root.loaderInfo.url property that returns the full path of the SWF file, starting with http:// , so we are checking if the path of the game has your web address in it or not. It will return -1 if it doesnt and will return a positive value if it does.
LINE 1: The value is not -1, that means the game is running from your server. You can leave the body empty or add an action such as starting the game!
LINE 4: This means someone downloaded the game and running it from his server or on his computer. In this case you will need to redirect the player to the original place of the game which is your website.
LINES 7&8: These lines are for redirecting the player to your website
You can do this check before the game starts, if it is running from your server then start the game, otherwise dont start the game and redirect the player to your website.
Also when you publish your game out there on the internet you will also need to learn about flash games decomplation
You just finished your game and tested it and everthing is OK and now you want to publish it. I advice you to first upload the game onto (www.kongregate.com/) and (www.newgrounds.com), because they are the most known flash game portals that accept game submissions from developers and have big amount of traffic.
After that you may search for flash game portals that accept submissions from developers.Here is a list of websites that accept game submissions, some of them will require registration.
Note: If the website asked for "Flash URL", upload the "SWF" file of the game on your website and enter the address of the "SWF" file in the field or make a site using google sites and upload the file there if you dont have a website.
Below you will find even more links to websites and emails that accept submissions of your flash games on their game portals. Remember the more you submit the more the popular your game becomes.
I will summaries what Hallpass say about their API:
-50$ for each API added to a game, ofcourse after the game is approved by Hallpass. -They will pay you via PayPal after your game is uploaded to their site. -The API will send the scores to Hallpass, and they will be tracked in the users profiles. -The scores must be submitted at the end of each level or game.
Here are the steps to add the API:
1-Add the API Code to your game. 2-Upload it to Hallpass. 3-Wait a few minutes then check your profile area, your game should appear. Play and test your game out to see if it is sendingthe scores, be patient as scores update every few minutes... so play, wait, then check. 4- Contact Hallpass and tell them that your game has worked and you want to get paid and include your pay pal address.
Go to google and search for flash file decompilers, you will find numerours programs out there, that wil allow your flash file to be decompiled. Once decompiled the file can easily be edited and your source code can easily be seen. So it is important to protect flash files that you publish on the internet.
There are two numerous ways out there to protect flash files, we will discuss two ways to achieve this, a basic way provided by Adobe Flash and another provided by MochiAds.
Flash is built for streaming content, which means the movie will start if the minimum bare content has been loaded, such as elements used in the first frame.
This will not be good in games, because if a part of the game didnt load, then the game may not work properly! So we need to dedicate a frame at the beginning of the game to load the whole game parts on and after the loading is done, we will allow the game to start.
Ever wanted to save some information about a user like his level number, or last high score, or any other information. Well ActionScript provides a simple way to achieve this. Local data is used to save data into the user's machine such as score,level number,..etc. Below is the simplest example of saving local data on to a users computer.
Here is a simple counter that counts how many times did you visit this article on FreshNova!
Read on to see the source code. The source code is well documented so I believe it is not too hard to understand.