Tag: code

Kifáradtam

Ma egész délután melóztam, kivéve amikor az Ubuntut próbáltam telepíteni egy virtuális gépre – meg kell mondjam, sikertelenül, de ez nyilván annak tudható be, hogy a VirtualBox mellett még sok minden futott, és nem is éppen kímélő üzemmódban. Sebaj, majd valamikor később megint megpróbálom, mert azért nagyon poén lenne Windows alól Linuxozni, vagy adott esetben, ha végül is amellett döntök, hogy váltok, Linux alól Windowsozni.

Szóval ennyi volt a kivétel, a többi időmet melóra szántam, és elég jól is haladtam. Már csak egy nem adatbázisból generált oldalt kell összeraknom, meg a függvényt, ami fogadja az onnan érkező adatokat, aztán már csak az admin felület marad – és ezzel meg is lennék majd a szeptemberi komoly feladatommal. Utána még jó lenne, ha egy másik hasonló kaliberű dolgot is el tudnék intézni, mielőtt amerikába megyek, mert félek, hogy ott már, akárhogy akarnám is, nem lesz időm melózni. Mondhatnám azt is, hogy remélem, hogy nem lesz időm, mert nem azért megyek, hogy olyan dolgokat csináljak, amit itthon is lehetne. Japán cuccot minden esetre biztosan viszek, mert igazgatóhelyettes asszonyunk említette, hogy a fogadó iskolában van japán nyelvi oktatás. Erre csak annyit mondtam, amúgy télapósan, hogy “hohohohó!”


New feat

I know that i’m lazy, good-for-nothing, but it’s still not the podcast flash, but a brand new thing i just came up with: if you check it out, you can sign my blog using that form in the bottom of the right sidebar – it should be there if you have JS. I use JS here too, just as for displaying my e-mail, so that spam-bots won’t be able to catch it, or in this case, to spam it with their annoying stupidities. Feel free to sign. I’d be happy to know even those of you who only occasionally pop up here and do not comment, just read my … well, should i rate these writings also stupidity? Don’t think so, i hope they’re not in one league with the “buy something” stuff. Agree?


Sikerélmény

Ma egész délután a tavaly őszi emelt informatika érettségiből gyakorolgattam a programozási feladattal – úgy is lehetne mondani, hogy Pascalozni tanultam. Szóval, elsőre ugye elég reménytelen volt, hogy akár hozzá is tudjak fogni, úgyhogy inkább csak letöltöttem a megoldást, és átírtam egy saját file-omba (persze, mintha csak magamtól találtam volna ki), csak hogy közben megértsem. Sikerült is, egy lerohadás után már úgy írtam meg, hogy csak kétszer puskáztam bele a megoldás fileba, és szerintem még jobbra is írtam meg – legalábbis az egyik feladat biztosan rosszul volt megoldva. Ugyanis az volt a feladat, hogy egy korábban összeállított tömb minden olyan elemét ki kell írni egy fileba, amelyikben megtalálható a felhasználótól bekért tetszőleges karaktersorozat. Az enyém már ezt is csinálja, viszont a hivatalos megoldás nem csak azokat írja ki, amelyikekben benne van a keresett részlet, hanem azokat is, amikben a részlet betűi ugyanabban a sorrendben vannak benne. Szóval mondjuk… ha a felhasználó rákeresett az “abc” részletre, az ő megoldásuk az “aklmbnopc”-t is kiadta volna találatként. Az meg azért nem jó. Itt vannak a fileok is, a feladat, az én megoldásom meg a hivatalos változat (csak az utolsó feladatra). Negatív kritikát nem kérünk, nem letörni a kedvem.


New one

Today i worked on the blog engine i plan to publicize. It’ll be based on PHP and MySQL, naturally, as i don’t really know anything else, and all output will be XML format. Some of it will be written using OOP, some will be just “normal” coding, with everything i know in it. It already has its entry parser function done. “Nice job, a whole day’s work and only that!” No, not only that, i’ve also written the error handling class and secured a method for others to translate the blog (not the content, but the script) into other languages (i write both hungarian and english language files for it, japanese and german will come later) and as i said, with that XML format i also give them huge freedom in designing templates using XSLT. All entries “can has” multiple categories and files attached to them, users will have the same features as in this blog (just with a working profile edit page), and on many more fields, it’ll be much like this blog. It already has more advanced text formatting features than this blog, such as automatically recognising and linkifying URLs and e-mail addresses. I want to write it well. kthxbye


Bloggie

Today i started working on the new version of the blog (yeah, once again), so please note this day in your calendars, so that you’ll know how long it takes for me to develop such a “simple” thing. I haven’t done much yet, just decided the basic methods to use and wrote some of the most interesting functions. I try to finish it quickly (remember this).


Silent minutes

This whole afternoon i’ve been learning – see the next post, what -, now i only keep a short break and go back to my “beloved books”. I’ve been thinking about what kind of project should i launch once i’m done with those i’m already in.


Kocka, megint

Ma az összes kockulás kimerült annyiban, hogy a PHP dokumentációban érdekes dolgokra vadásztam. Jackson mutatta az IMAP csomagot, de a DOM XML-t már magam találtam, és bár elsőre meglehetősen haszntalannak találtam, rövid gondolkodás után rájöttem, hogy lehet, pont ez kell majd nekem egy haldokló projectem felélesztéséhez. A Pascal mellé akkor találtam még valami fontosat.


iWiW

Abban amúgy mi a ráció, hogy az iWiW-en nem lehet 13 karakternél hosszabb jelszót megadni? Kíváncsi vagyok, milyen kódolással tárolják a jelszavakat, mert hogy nem MD5-el, na az fix (gyk annak nem számít a hossz).


LOLCODE

This LOLCODE thing is just great, i must say. So much fun coding it, though many of the methods i’m used to in php is missing. Still, just today i wrote a FizzBuzz script and one that finds perfect numbers. Both need the % php operator (modulus calculation), so i made up the MOD word. It’s not much lolspeak, but better than nothing.

I read about this at Shamalt.


Ooops.

You won’t believe what i’ve found: the backup of the previous blog. The last post is of 1st december 2006, but that’s still better than nothing, isn’t it? I’m thinking about how to install them back into this blog version… If i wanted to keep their old ids, then i’d have to change the ids of the new posts, which would be loads of updates in the categories table. There is a lot of posts in the backup, exactly 420, and (with this one) 53 in the blog… Any ideas on how to integrate them?