Monday 6 December 2010

time is running out_CakePHP Missing Database Table Error

okey, so lately am cracking around and I will use this blog to post all the things that help me!
So a huge part of my project is based on mysql and cakephp which I hate, but I have to use it for a various of reasons.
So I wanted to add some new tables in the database of the project am baking, but when I went to the console to bake them, they were not on the list

php /path/cake/console/cake.php bake all -app /path/app/

So I manually typed in the model name and I got a missing database table for model error. I checked and double-checked and the database table was named properly. Turns out that some files inside the /app/tmp/cache/ folder were causing Cake not to recognize that I had added new tables to my database. Once I deleted the cache files cake instantly recognized my new database tables and I was baking away!

rm -Rf /path/app/tmp/cache/cake*

Wednesday 23 December 2009

The 7 month fork bomb!!

posted by our tutor;)

cited: http://bramp.net/blog/the-7-month-fork-bomb

2009-11-27 18:24:21

"Today I was helping a student with some C programming, and the remote machine he was compiling and running his code on was running very slowly. It was a shared machine so I assumed some other students were using it. Therefore I had a quick look at "who" and found that only one other user was logged in. Then I looked at "top" and "ps" and noticed the machine was at 100% load, but I couldn't figure out which process was causing this.

It turns out that 7 months ago (in April), two of the students had ran the following code while they were learning about fork:

while ( fork() ) {}

Each spawned process didn't use much CPU, but the system was heavily forking, therefore tying up all the resources. Needless to say I found the two students and gave them a quick slap before asking them to run "killall blah".

What I found cool about this was that there was two separate fork bombs going on, and this linux machine was still usable by the other students. Additionally, I'm surprised that no one in 7 months had actually noticed this! Things were happening so fast that I saw the pid of the forked programs wrap around at least twice during the time I was debugging the issue. "

Saturday 26 September 2009

kypros twn anthrwpinwn dikaiwmatwn



o eurwpaiki kypros. o kypros twn anthrwpinwn dikaiwmaton
ne olan.

Thursday 10 September 2009

http://www.ft.com/cms/s/0/1854ac6e-9da0-11de-9f4a-00144feabdc0.html?nclick_check=1

Advice for the EU if Cyprus talks fail

By Tony Barber

Published: September 10 2009 03:00 | Last updated: September 10 2009 03:00

Brussels blog (Tony Barber): Like it or not, the European Union faces the distinct possibility that the latest UN-mediated effort at producing a comprehensive settlement of the Cyprus dispute will fail. From an EU perspective, would that be a disaster? Or just a bit depressing and annoying? Disaster is a strong word, but the consequences of failure would unquestionably be serious.

Talks between Greek Cypriots and Turkish Cypriots have been going on for the past 12 months, and the next round is due today - having been postponed for a week, because of a row over some Greek Cypriot pilgrims who were trying to visit a church in Turkish Cypriot territory.

Nothing much has changed in the Cyprus dispute since 1974, when Turkish forces occupied the north of the island in response to a Greek-inspired coup aimed at enosis, or the union of Cyprus with Greece. Turkish troops and settlers are still there in the north, but the Greek Cypriots control the internationally recognised government of the island. What is more, they secured entry into the EU in 2004. As a result, their 26 EU partners are virtually compelled to support them in anything related to the Cyprus dispute, even if some EU governments privately fume at Greek Cypriot behaviour.

Greek Cypriot public opinion seems to take the view that it would not matter much if the talks were to break down. When the most recent UN-brokered deal was put to the two communities in referendums in 2004, the Turkish Cypriots approved it by 65 to 35 per cent, but the Greek Cypriots rejected it by a crushing 76 to 24 per cent.

The Greek Cypriots should stop being complacent, however, and read the excellent report published this week by the Independent Commission on Turkey, a panel chaired by Martti Ahtisaari, Finland's 2008 Nobel peace prize winner. The report describes the current peace talks as probably "the last chance for a federal settlement". Put another way, if the talks collapse, the Greek Cypriots will be looking at a future in which Turkey's armed forces maintain a presence on the island for the indefinite future. Is that what they really want?

A second unwelcome consequence would be that co-operation between the EU and Nato, so important for transatlantic relations, would continue to be blocked by differences between Cyprus and Turkey. Lastly, the collapse of the Cyprus negotiations could torpedo Turkey's bid to join the EU.

Here it is important that certain EU member states, above all France and Germany, which are sceptical about Turkish entry into the bloc, show responsibility. It would be all too easy to use the collapse of the talks as an excuse to punish Turkey and bury its membership aspirations forever. But that would be unwise. Holding out the prospect of membership is one of the most important levers the EU possesses to steer Turkish domestic reforms in a positive direction.

If the worst happens, and the Cyprus talks break down, the EU must still keep alive Turkey's EU accession process.

www.ft.com/brusselsblog

Όλα αυτά που θέλω να πώ