Went back to Q Zone CMS writing

January 31st, 2007 by Quatrux

I don’t really remember why I dumped it, maybe because I was lazy or maybe because of my time lack, but after seeing my little, but very powerful CMS for my main site Q-Zone which was known in the past as Q network and even Q website, but anyway, the script is programmed so well and is so powerful, that I was amazed and started working on it again.. I can’t find all my mysql tables with fields, so will need to remake them somehow from the script itself, which is quite hard.. Moreover I remembered why I dumped it.. my Database class is so big, that I have lots of stuff to do with it and it is really hard for me to test it.. I am not used to use it and have some difficulties.. My other theSite CMS is smaller and also is using that class, but it is much lighter, because it didn’t need most of the functions..Oh well, I still have 5 days left of my holidays, so going to spend them somehow. ;)

Posted in Personal | No Comments »

Want to start learning C++ or C?

January 30th, 2007 by Quatrux

Well, I now can write programs in C++, but that isn’t anything special at all without the extra stuff like DirectX or OpenGL for games and of course something like a user interface, think I in the future will start to play with QT, but I want to become a bit bigger master to control Cpp, due to now I am only a beginner.. I know a lot of other languages and a lot of basic stuff, so learning C++ was really easy. I am using the Open source IDE called Dev-C++, you can easily find it on google and if you’re using standard C++ or C stuff, then you won’t have any compiling issues.. Some people I know are using the Microsoft Visual Studio 2005, it is more resource hungry, but is much more powerful and I don’t think I need any power, therefore it is enough for me to play around.. I started to learn it myself for the University, but still, my favourite hobby will be PHP with MySQL and HTML/CSS/JS/XML with the AJAX technology, due to it is in my blood.. but things might change.. So I found to websites, with which you can easily learn Cpp, a very good tutorial/tutorials and more resources are on this site: Cpp programming In fact, only using that site you can become a master, but of course only with practical work.. and a very good reference, which I found to be easy and simple and user friendly is here: Cpp Reference With these two websites you can easily learn these languages.. So just wanted to share. ;)

Posted in Computers | No Comments »

Review on University

January 29th, 2007 by Quatrux

I finished writing my simple review on my university about the first semester, the professors, teachers, academics and lecturers and dons, call them whatever you want. Wrote about my got experience and knowledge, the style and what you need and stuff, everything can be found on my quatrux homepage site, but currently only in Lithuanian language, due to I don’t think that it is needed information for English people, even if English speaking people will learn in that university, I doubt the system will be the same for them and stuff. ;)

Posted in Personal | No Comments »

Started to learn C++ again

January 27th, 2007 by Quatrux

Well, again I started to learn C++ a little bit to remember the basic stuff, due to I heard that in my second semester in the university we will start to learn it.. but I didn’t do with it anything for about two years and I almost forgot the structure, but it is almost the same as other syntax languages I know, for example php, even though I always preferred simple c, but anyway.. I hope my c++ compiler isn’t outdated and I found some really good tutorials, because I don’t think I will need anything very advanced. ;)

Posted in Computers | No Comments »

Snow in Lithuania

January 23rd, 2007 by Quatrux

At last it is January 23 and I see snow, for the first time in my life, there was no snow on Christmas, on New Year and etc. But now when I didn’t really want the fucking snow, it appeared as on purpose.. Everything is white and it is quite cold, about -8 Celsius, at nights can drop down to -15 Celsius, but anyway, it is a strange winter, due to usually snow appeared here on Novembers last days, so half of winter were without snow, now I wonder will we have Spring with snow and not with green grass :D

Posted in Personal | No Comments »

PHP function scan_dir();

January 23rd, 2007 by Quatrux

As a lot of who knows,PHP5 has a very good function called scan dir, but ash many of use still like to use PHP4 we need to find aletrnatives for it so here is a good function I wrote years ago and want to share it with you :)

  1. /* #### SCAN DIR ####
  2. Input: Directory, 1 to rsort() and files to not index to the Array
  3. Output: makes an Array with filenames and dirs on Success or False
  4. Status: Complete
  5. Last Editor: Quatrux
  6. */
  7.  
  8. function scan_dir($dir, $s = ‘0′, $u = ) {
  9. /* Check if input is a Directory and Open it */
  10. if (is_dir($dir)) {
  11. if ($d[‘open’] = opendir($dir)) {
  12. $u = "**.|..|$u|";
  13. while (($d[‘file’] = readdir($d[‘open’])) !== false) {
  14. /* Don’t add unneeded Files */
  15. if (!strpos($u, $d[‘file’]) ) {
  16. /* Make an array with all left Files */
  17. $d[‘array’][] = $d[‘file’];
  18. }
  19. }
  20. closedir($d[‘open’]);
  21. } else {
  22. return FALSE;
  23. }
  24. } else {
  25. return FALSE;
  26. }
  27. /* Check if Directory is not Empty */
  28. if (!isset($d[‘array’])) {
  29. return FALSE;
  30. /* Sort the Array by Request */
  31. } elseif (is_array($d[‘array’])) {
  32. if ($s == ‘1′) {
  33. rsort($d[‘array’]);
  34. } else {
  35. sort($d[‘array’]);
  36. }
  37. }
  38. return $d[‘array’];
  39. }

Well, will need to find a plugin or something which would highlight the code or something, because now, I don’t even see tabs, oh well.. Stupid Javascript Editor for Wordpress ;)

Posted in PHP | No Comments »

DMA reverts to PIO

January 23rd, 2007 by Quatrux

Well on my Windows XP installation, I noticed that everything got slow when loading, thought somekind of an virus or spyware.. I was amazed that my computer got slow, it never happened before, because I really take good care of it.. When thought it was the new windows updates, but I uninstalled them and nope, everything was the same.. I scanned with different tools for spyware and viruses and other critical stuff, but also didn’t find anything.. Somehow my brother said it might be that my Hard Drive is reseted to PIO transfer mode, I checked and Yeah it was! This is why my system got very slow, because it wasn’t using DMA transfer mode, even though my CD-roms were using Ultra DMA somekind of mode..

I booted to BIOS, but everything was set alright and when I searched the Internet for Information and I found a solution which worked for me very well and would like to share it with you. It requires a little Registry Edition, so go to Run, and run regedit tool, when search for the registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}

which has subkeys like 0000, 0001, 0002, and remove the MasterIdDataChecksum or/and SlaveIdDataChecksum, don’t worry nothing will happen after you remove those.. Then reboot your computer and you’ll be back reseted to DMA transfer mode if you would like to check, use the Device manager.. But note, that stupid Windows can reset you to PIO mode anytime, so don’t be amazed if this happens again. ;)

Posted in Windows | No Comments »

my term-time is over!

January 23rd, 2007 by Quatrux

At last, it is January 23 of the year 2007 and my first term-time in the university is over, I finished everything quite well, even though didn’t learn to much, so I am really really happy.. I was so afraid of the last exam, maths theory, but I got the best mark available 10 :) Was very lucky, because I knew all the questions, even though I didn’t learn everything for the exam!

So my average mark is 8 and I won’t need to pay for my studies anymore and will get my stipend every month.. So here are my results:

  • English – 9
  • EU studies – 9
  • Operating Systems – 10
  • Programming 1 – 8
  • Algebra – 6
  • Mathematics – 7

So I finished my first semester, now I will have 10 days of holidays and will work very hard on them to do a lot of things I didn’t do on my studies time and will look forward to the second semester! If someone doesn’t know I am studying Informatics! ;)

Posted in Personal | No Comments »

One exam Left

January 17th, 2007 by Quatrux

Well, at last only one more exam to go and I am finished, but this time, this exam will be one of the hardest and I will have the most lower mark for it, well.. Anyway, I think I could do better with my exams, but as I didn’t learn to much for them.. No more comments, I am really afraid :)

Posted in Personal | No Comments »

my First University Exam

January 11th, 2007 by Quatrux

I got amazed, it surprised me a bit, I really thought it will be much more harder, everyday (I don’t mean every) I spend about an hour or two to read the programming 1 theory book, but I was just analyzing it and answered the 41 questions given by the professor, so by almost 3 days left for the exam I answered all the questions, but at that time I celebrated Christmas, New Year – which lasted about 4 days and many more stuff.. I thought, Oh my God, exam is here already, so spend 5 hours learning what the hell I wrote and I was quite successful, the same day I went for a beer, I thought I will drink a little but it all ended as another party when I got influenced by beer, I didn’t sleep home, the next day I had an awful headache and stomachache as usually, but when walking my dog I met my friend, so I thought I will go for a beer to heal myself.. It helped me, but I spend all my day, came home only at 22h, so I had 11 hours left for the exam!
You think I fucking learned? I wanted, but still spend my time by chatting and watching TV, woke up early in the morning, been sleeping approximately 3 hours, thought to learn a little, but ah Fuck everything what moves, next time… Near the university I thought I will shit myself and always thought how stupid I am, but I saw the 3 exam questions, they were so easy, I was really lucky and it is my lucky stone which helped me, I answered all the questions and went home.. Yeah.. Bullshit, the questions were about logical operations or, and, no etc., then about forms of numbers in computer and about searching address’s in computer random access memory (RAM) Blah, Blah.. I like it, I wonder how will my other exams end, especially maths theory.. ;(

Posted in Personal | No Comments »

« Previous Entries