# An algorithm to determine your processor performance

Good afternoon Guys (hot sun when i was writing these lines).
I was reading a programming book “Sams Teach Yourself Java in 24 Hours (Covering Java 7 and Android), 6th Edition” (without publicity, an amazing book to buy Β π and read B|Β  ) . Anyways, i fell on this algorithm that tests the performance(calculative) of a processor .
Seeming complex, but it’s as simple as thus : making the processor do a simple arithmetic calculation for a period (1 minute for this algorithm) and then counting the number of times(cycle) the processor does this calculation for the given period. Have a clue below :

caption of a netbeans code portion

– (line 5) “startTime” : a variable that get’s the current time in milliseconds
– (line 6) “endTime” : adds 60 000 milliseconds (1 minute) to the startTime
– (line 8 – 16) here is where the calculations takes place. The Mathematical operation used here is the square root (could be another).

so there’s this integer “index” (that arithmetically increments in line 14), for which we cyclically do the square root of , get the time of the square root calculation (in the variable “now” in line 10), until this time reaches one minute.

– (line 17) We display the number of loops the processor has done the square root.

The evaluation of the processor speed here is from the fact that a faster processor will do more loops in one minute than a less faster one. I used this to test 3 PCs that was around.

Here is the result of my “not-so-powerful-but-at-least-satisfactory-processor-speed” PC…. π π

execution results caption screen

Here’s the line to download the source code above (of the “Benchmark” class)

# Motivation

i used to be the
– “he’s too shy & weird he can’t have a girl ” guy
– “who gave him this task ?? he’s too weak” guy
– “he’s not cool, all his own is book” guy
NONSENSE, i kept the hustle

i’ll leave the rest 4today, but for the weakness
i’m a well-segmented-body athletic NINJA, literally
(motivating the *like me* types )

Good afternoon guys (i wrote this one afternoon π ), i got that bulb that shines on cartoons heads when they have an idea, shine on mine lol…. and this time is just a way (amonsgt many other ways – i’ll be glad to have them through comments) to make optimum use of your slow INTERNET speeds. I’ll just be coming up with the way i do it, and thanks for your contribution for more.

Firstly, whenever a site has a mobile version, that’s where i strike first: here are some of them

Dropbox mobile version :Β https://www.dropbox.com/mobile

etc……….

– Use light weight tools: for the browser OPERAΒ is a nice choice with a “Turbo” option for same purpose as this post π Β , pidgin for your multi-protocol chat client,Β Thunderbird for your mail client. Thunderbird is very important – once your mail account is configured, you get only your mail contents (your can even activate only text content) loaded when you go online.

– I even came out with a post on “ how to browse on twitter with your Linux terminals ” (i’m particularly enjoying this one π β€ )

– there’s a way to also upload an image to your facebook wall through the email (task that you can still do with your mail client ), the title of your mail will be the caption of the photo on facebook, so no need to write something on the mail body.

In order to get your facebook mail account, try to upload a photo on your wall through the facebook mobile version, you’ll be given your facebook mail account as shown in the picture below (see the arrow to my email) ;

optimise slow internet speeds

– Search also across the plugin managers of your browsers and get some of them that can offer some services that we make you load your browsers with lots of images, and “useless” publicities to have same services like twitter (eg Echofon), plugins for facebook, plugins for your blog posts etc………

– i have two nice plugins i like : a speed dial plugin for Twitter + a speed dial plugin for facebook , they give you a preview of your facebook and twitter notifications as thumbnails when you open a new tab on your opera browser. This way it get’s you visit the sites when you’re sure, you really have things to view. Here is a preview from my browser .

Thos 3 rings on twitter vibrate when you have notifications respectively on your home + mentions + direct mails (The appropriate ring vibrates for the appropriate notification).

There are many other speed Dial add-ons for opera and for other browsers…..
– i’ll go as far as saying the operating system you use counts, Β Linux is faster on internet to me than Windows (but i dont want to raise a debate lol π )

– Material resources is also incontestably important. I’ll not ask you to buy a new powerful laptop, but optimize the usage of your baby π :P, dont launch too many tasks when you’re browsing. You can for example use light weight music players that will also play music nicely to the ear as the heavy multimedia players but spare your hardware over-load πΒ .

Thanks for reading and thanks for bringing contributions to this π

Good afternoon guys, this is another “no new invention” post, just to share something i think will be important for others.
It was a result of the search for a better way to use twitter on a very slow connexion, i found TTYTTER (a linux package that does the job).

Just go to your package manager, search for TTYTTER and install, or you can do it through the console as :

sudo apt-get install ttytter

After that, open your terminal and launch (be typing “ttytter”).

This PIN number is just an authorization for the client to access your twitter account.

After this step, you’ll be asked your login credentials and that’s the end. Your tweets will be flowing right in front of you.

To tweet, you type your text and press “ENTER”…….. Intuitively, you’ll get to understand the App.
Here’s my console window with tweets below :

I just highlighted a line with Nicki Minaj and Missy Elliot‘s tweets π π

# Reflexion

insufficient money, small wounds, mild fever, unemployment, temporal hunger, school assignment is not a problem if others have nerve problems, lost kidneys, heart disease, no house, malnutrition, blindness, decaying bodies….THANK YA GOD pple π ……………………. reflexion

but go hard π

# Keyboard hygiene sensitization

Your keyboard is a place you touch after greeting friends, your friends also touch it, food particles fall on it, saliva from people speaking around get on it, u sneeze on it, air drops particles on it etc.. (it can be more dirty than toilet-scientifically proven).

We all forget, but are called upon for cleaning from time to time π

# Linux commands to get your hardware details

This is no new invention, i’m just combining already existing Linux commands to help others have results of several commands in one file and use the file for their needs.

You may be in need of the details of your hardware specifications probably to to go download the drivers. Windows users use specialized softwares for this. if you’re un Ubuntu, there’re commands for this, if you’re on windows, u can boot on a live ubuntu CD and type the command, get your details and move along:

Open your terminal and type :
1) lspci ==> it gives a list of your PCI devices
2) lsusb ==> list all your USB devices
you can sucessively type those commands , then redirect in one file (text file) that will summarize your hardware configurations:

Step 1 ; lspci > myHardware.txt // creats a text file in present working directory with PCI list
step 2: lsusb >> myHardware.txt // adds the usb list to the already existing text file π

you can consult (and copy too) the βmyHardware.txtβ file and see your hardware configurations:

Finally another command gives detail informations concerning the hardware, so detailed such that for the processor (for example), you get different clock speeds, slots, capabilities,sizes etc.. of your cache memories (as shown in the fragment below).

Hardware details displayed from linux commands

But this last command only display the results if run by the root user. It takes some reasonable time to display since the informations is much. So when typed, you need patience.

command ==> β lshw β

To store in a file also, you can use

βsudo lshw > myHardwareDetails.txtβ