I’ve created class useful for using matrices for 2D graphics. Soon I’ll be posting my whole project that was using it and was written for my class from “Computer Graphics”. Download it here: http://binary10.info/files/MyMatrix.java
Tags: 2d, graphics, java, matrix
Created on
December 6th, 2009 in categories java, nowy projekt
|
2 Comments
Hello, recently I have been lazy with running my blog, I decided to improve myself and slightly modify it.
From now on I will be posting more code and write more posts. Also I have extended it’s range to PHP and Java.
Created on
December 2nd, 2009 in categories blog
|
No comments
Hello
This plugin is based on my previous one “Anonymous Posting“. It allows readers to write comments without leaving any information about themselves – this might be useful for some people. Anti-bot feature is based on reCAPTCHA. More information is available on wordpress plugin directory page.
For questions you can write comments, and once I have some time, I’ll reply.
Update: Currently I had to delay relase of this plugin. I think that “comment_closed” doesn’t trigger my functions. I’ve asked question on wordpress.org forum, but no one knows answer.
Tags: php, plugin
Created on
November 17th, 2009 in categories php
|
No comments
More information here: http://wordpress.org/extend/plugins/anon-posting/
If you have any questions, please post comments.
Tags: php, plugin
Created on
October 21st, 2009 in categories php
|
32 Comments
Short (multilanguage test) post:
Plik jad jest opcjonalny (jednak wymagany przez wiele telefonów), ale właściwie niezbędny przy instalacji przez http (czyli mamy tylko JAD i plik JAR jest ściągany z odpowiedniej lokalizacji.
Plik MANIFEST.MF jest konieczny, ponieważ to z niego powinny być wczytywane dane potrzebne do instalacji.
Tags: jad, manifest
Created on
May 31st, 2009 in categories jad
|
No comments
This problem in general is very complicated, but when we don’t need to be 100% sure (but probability is near 1) about our results there is a very easy way to do this.
We’ll use method isProblablePrime from class BigInteger.
This method as a argument gets probability level, it’s calculated as 1 – 1/(2^x), where x is argument, so for x = 20, we can be nearly fully sure about result, the probability is 0,99999904632568359375. For smaller numbers this method gives even more sure results.
How to use it:
long x = some_value;
BigInteger bi = BigInteger.valueOf(x);
boolean isPrime = bi.isProbablePrime();
Firstly we set x to some value, then a new BigInteger is created based on x value, next we use method to check if it’s prime.
more information about BigInteger you’ll find here: http://java.sun.com/javase/6/docs/api/java/math/BigInteger.html
Created on
April 28th, 2009 in categories biginteger, tips
|
No comments
I have decided to describe installation process of Java Runtime Environment one more time, now I’m adding screenshots so it will be much easier to understand:
- Go to http://www.java.com/en/download/

- Click blue button, a new page appears:

- After loading page, a download process should start automatically, if not click blue button again.
- Now, the JRE installator will be downloaded, wait until it’s completed, then run it.
- You will see this window:

- Again, wait some time, the installer will download another installer, that will install JRE, it will be started automatically:

- Click “Accept” and in next stage your JRE will be installed:


- After finished installation a new window opens saying that it has successfully installed your JRE, click “Finish”.

- You have installed JRE properly
Created on
April 18th, 2009 in categories jre, podstawy
|
No comments