HEDGEHOGS: FIRST VISION

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

Hedgehogs sketch. Thanks Vitaly Nikiforof for Hedgehogs’ brilliant design. It was very hard to make apples looking not like Apple-logo :).
![]()
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.
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.

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.
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 :).

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.
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);
}
}

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.

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.