DEVIRTU.COM

minds and notes make you stronger :) SUBSCRIBE BY RSS

HEDGEHOGS: FIRST VISION

By Anton, on April 22, 2009, in Uncategorized

Hedgehogs Sketch

Hedgehogs sketch. Thanks Vitaly Nikiforof for Hedgehogs’ brilliant design. It was very hard to make apples looking not like Apple-logo :).

1 Comments Click to continue

HEDGEHOGS: IPHONE LOGIC GAME

By Anton, on April 16, 2009, in SOLUTION

HEDGEHOGS version 1.0 done. I’m happy to show you the gameplay of our new logic game for iphone/ipod.
And of course you can buy the game only for .99 USD.

0 Comments Click to continue

LITTLE IPHONE DEVELOPMENT FAQ

By Anton, on March 6, 2009, in HOWTO


Hi. Didn’t write for a long time. Many things have changed in my life. I’ve changed job and moved to another country.

All that time I’ve been working on my own iPhone application (opengl game). And now is a time to write little FAQ. Hope it helps somebody.

0 Comments Click to continue

MAKING WEB-CHAT WITH PHP AND AJAX

By Anton, on November 1, 2008, in HOWTO, SOLUTION

Do you remember the time when chatting was inconvenient. Page with messages was always refreshing. And you heard “click” and “click”.
Now I want to show how to make chat with AJAX tech. There will no any page refresh.
I will use PHP on the server side and jQuery on the client side.

2 Comments Click to continue

MAKING PROGRESS BAR OF PAGE LOADING

By Anton, on October 16, 2008, in HOWTO


How to tell user that your page is just loading for a long time? If user can’t see the page immediately he can stop loading page and go to another web-site. Here I show you the way how to give fast response ever if your page is full of slow logic.

There are two cases of such problem. First is a case when you do only one slow operation. E.g. complicate sql query. So you can’t predict how long will it take. Second case is doing many slow operation in loop. E.g. posting 100 items on eBay. In this case you can say that 5% of page is loaded after you post 5 items.

0 Comments Click to continue

BEJEWELED GAME IN JAVASCRIPT

By Anton, on September 25, 2008, in HOWTO, SOLUTION

Few months ago I wrote JavaScript-game: bubble breaker. I did it fast and it takes 100 line of code.
After that I decided to write something new with jQuery. However I was very disappointed: jQuery can’t help me to do the game. Thus I decided to use only pure JavaScript and now I want to show you one more JavaScript game. I call it JSCRIPTEWELED because it is like Bejeweled game :).

JSCRIPTEWELED screen

9 Comments Click to continue

JQUERY: MAKING TOOLTIP WITH NO ANY PLUGINS

By Anton, on September 22, 2008, in HOWTO

Just continue playing with jQuery. Once I said how to make tooltips with JavaScript. Now I want to show how to do hints with jQuery. Actually there are a lot of plugins for jQuery which do the same thing. Try this link: http://plugins.jquery.com/search/node/tooltip.

However if you need some basic tooltip functionality you may use my example.

0 Comments Click to continue

ACCESS TO JAVA-APPLET FROM JAVASCRIPT

By Anton, on September 13, 2008, in HOWTO

Do you know that you can call Java-Applet-public-methods from JavaScript?
For example, you have an applet:

import javax.swing.JApplet;
import javax.swing.JLabel;

public class TestApplet extends JApplet {
	JLabel lbl;
	public void setLabelText(String text) {
		lbl.setText(text);
	}
	public void init() {
		lbl = new JLabel("This is java-applet");
		this.getContentPane().add(lbl);
	}

}

0 Comments Click to continue

UPSIDE-DOWN CLOUD COMPUTING

By Anton, on September 3, 2008, in IDEA

upside-down cloud computing
Want your own super-computer? Want to predict weather? Don’t have $1 000 000 000?
How about using of web-surfers’ resources? When user enter your site some little script would be included into the page. While client read the page this script could work and send calculated data to the server and receive new tasks (scripts to run) etc.

2 Comments Click to continue

MYSQL vs MSSQL: PAGINATION

By Anton, on September 2, 2008, in HOWTO


If you are web-developer you had to use pagination in your projects. There is no reason for giving all datatable to user. We just show 1st pages and provide way to go to any other page of data. How to make pagination with MySql? Easy! Just use “select” and “limit” :

SELECT id, name FROM tbl ORDER BY name, id LIMIT 20, 10

This command returns 10 records starting from 20′th. It’s very useful feature especially for web programming.
Few years ago I started to work with MSSql. And I was really disappointed: there is no such ability in MSSQL! So huge product doesn’t have it! Here is one solution, that I used.

0 Comments Click to continue