Conor Mac Aoidh
http://macaoidh.name
conor@macaoidh.name
 

Search

Archives

  • July 2010
  • June 2010
  • April 2010
  • March 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008

Spam

4,729 spam comments
blocked by
Akismet

Tag Cloud

    bt broadband CMS conor's management system conormacaoidh conor mac aoidh content management system drums fast Fedora fedora 10 furasta furasta cms furasta org gnome guide hello world HTML icsp iPhone Java javascript joomla kde Linux Mandriva mc kennas Monaghan Music mysql php repository Scratch stealing the ceiling The Dominican Affair the pot smoking pirates the strats tutorial Twitter updates web design forum webme webworks weekly tweets Windows wordpress

Ads

The Kember Identity

Posted May 2nd, 2009 by Conor in in Fedora,Languages,PHP

This morning on twitter I came across something called The Kember Identity. Elliott Kember seems to have thought of something that simply hasn’t occured to the rest of the world. That thing has been aptly named “The Kember Identity”. It’s homepage is located here.

Anyway the Kember Identity is an md5 hash. Each md5 hash contains 32 characters so the KID is the theoretical hash that when it is encrypted it returns itself. At the moment this is a theory as it has not been proven. So Elliott has started a competition to see if anyone can figure out if the KID actually exists and if so what it is.

I have chosen to enter this competition with a PHP script that I wrote just a few minutes ago. It’s fairly simple and I have added a html table in there to clean it up a bit. Instead of computing endlessly this script displays all failed equations as it goes. When it finds the KID it will stop and show it in bright green. I ran the script for a few minutes and got to 200,000 hashes with no luck. Also FireFox froze a few times while running it. The best thing to do is just leave it to do it’s job and don’t do anything else while it is working!

You can view it here: http://files.macaoidh.name/php/the-kember-identity/md5.php


<?php

function encript($str){ return md5($str); }

function generateSum(){ return md5(mt_rand()); }

function loKIDe(){
  $s=generateSum();
  $md5=encript($s);

  echo '<tr><td>'.$s.'</td><td>'.$md5.'</td>';

  if($s!=$md5) return false;
  else{
    echo '<tr style="color:green"><td>'.$s.'</td><td>'.$md5.'</td></tr>';
    return true;
  }
}

echo '
<h1>Finding the Kember Identity...</h1>
<table>
  <tr>
    <th>32 Digit Number</th>
    <th>Md5 Of Num</th>
    <th>Count</th>
  </tr>
';

$num='';

while(loKIDe()==false){
  $num++;
  echo '<td>'.$num.'</td></tr>';
}

echo '</table><br/><br/>  If you are seeing this then the line above is equal';

?>

This script should, in theory, find the KID. But it is really a matter of time. I am going to keep it running all night tonight and see if I have any luck. Kae is thinking of writing a JavaScript version that will spread the load between multiple computers thus reducing calculation time. So the race is on! I hope that I am the first to find this magical, mysterious number!

7 responses so far

yum install mplayer

Posted Apr 6th, 2009 by Conor in in Fedora,Linux

Who would have thought that it would be so much bother just to install mplayer?

yum install mplayer

Oh my god. It doesn’t work.

I just re-installed Fedora 10 last week and didn’t get around to installing mplayer until now. I can distinctly remember that when I did it on my older installation it installed without a glitch.

Anyhow this time I just sat there and scratched my head for a while. I never really made a decent attempt to do anything about it until now – enough became enough! I want my music back!

Ok lets start with why this is happening in the first place. You see recently livna (an rpm repository) merged with two other repositories and formed rpmfusion. But linva still exists. It still has some packages that rpmfusion doesn’t, don’t ask me why! So there is an easy way around the problem; install both of the damn things!

yum install livna

Click here to download rpmfusion F 8,9,10.

Then simple as:

yum install mplayer

and hey presto!

2 responses so far

Fedora and KDE

Posted Mar 18th, 2009 by Conor in in Fedora,Linux

I installed KDE on my Fedora 10 installation yesterday.

yum install @kde-desktop

God damn it’s refreshing! I got really bored of the dullness of Gnome and just decided to get rid of it! I had forgotten how great KDE 4.1 really is. It just looks so different and simply better!

I managed to completely screw up my computer in the process though! After I changed I decided to mess about with my graphics settings and try and get out of bloody Vesa. But unfortunately there are no Fedora drivers for my Silicon Integrated Systems [SiS] card and I will inevitably have to use Vesa mode… Ah well I’ll just have to put up with my you tube videos skipping ’till Fedora 11! Anyway I screwed up the graphics and had to boot to init 3 and do a display reconfig;

system-config-display --reconfig

Once I was up and running again I got to work doing what KDErs do best; customisation. I found this cool desktop app called KDE Twitter. It allows me to tweet from my desktop! Pretty cool. Oh and the pride and joy of my new desktop; kooldock! It really is cool. It’s basically the same thing as the Mac OSX dock except as with KDE, better and more customisable. Installation is simple:

yum install kooldock

You can also set it to start the program as soon as you start the computer. Although it is a joy watching those icons bounce up and down this saves you having to run it manually every time! Go to System > System Settings > Autostart and add kooldock to the programs list.

Fedora and KDE both go very well together and it was well worth the change from dull Gnome. Here’s a screenshot:

Fedora KDE

Fedora KDE

One response so far

Fedora 10 – Forgot User Password

Posted Feb 20th, 2009 by Conor in in Fedora,Linux

Today I did one of the stupidest things that I have done in a long time – I forgot my user password for my Fedora 10 installation. I don’t know how it happened… I just decided to change my password because I thought that it was to weak. It used to be “conor” which is about anyone’s first possible guess given that my username is Conor! Anyway I changed the password and continued working away. Later on when I went to log in again I thought “Oh Shit!”.

I sat there for like two hours trying to remember the password and eventually realised that it wasn’t going to happen. Then I began to think of alternative methods of getting in. I had one advantage over people who are actually trying to hack into the computer – I knew the root/super user password. This proved to be the thing that saved me in the end! But unfortunately Fedora, with good reason, does not allow root login through GUI so the task is made harder again.

After looking online for solutions to no avail I began to recall my Fedora installation. You see when I installed the OS initially it rejected my graphics card and would not boot into GUI. Then it dawned on me – If I could get into that state again (init 3) I could log in as root from there, start the GUI and eventually reset my password. But how the heck to do that!

It’s easy really once you make it clear in your head what your about to do. We’ll start from the beginning:

  • Turn on your computer.
  • Keep pressing the “p” key until something happens.
  • If you have a grub password enter it at this point.
  • You should see a list of kernels. Select which one you want to boot with (usually the first one) and press the “e” key.
  • Go to the line that begins with “kernel /vmlinuz**” and press the “e” key again.
  • At the end of that line add this text (without the quotes): “init 3″
  • Press enter.
  • Press the “b” key.
  • You should now be in a command line interface. Login in as root (su -) and then type “startx”.
  • You will now boot into the GUI logged in as root. Go to System > Administration > Users and Groups
  • Edit your user details.
  • Restart and login as normal!

It took me a while to figure out how to do this but it worked out alright in the end. Hope that this posts helps other people in the same situation – I wish someone had spelled this out for me! ;-)

7 responses so far
Next Entries »



Conor's Blog is powered by Wordpress | Template design by Conor Mac Aoidh