Matkapuhelin modeemina, Fedora 10Sunday, May 31. 2009Ubuntuporukoilla on oikein hyvät ohjeet. KPPP:tä en löytänyt ja NetworkManglerilla/graafisella kilkkeellä ei tullut suoraa voittoa, joten loin ohjeen kolme tiedostoa: elisa, elisa-connect-chat ja elisa-disconnect-chat tiedostot. Otin suoraan Elisan mallitiedostot ja vaihdoin bluetoothista kaapeliin. Fedorassa pon- ja poff-skriptat ovat saatavilla, mutta eivät ole polussa joten tein pari apuskriptaa:
ja
resolv.conf.elisaan kävin lätkimässä skriptan testiajon palauttamat nimipalvelimet:
Tuntuu toimivan. Java, php and Jasper ReportsSaturday, May 9. 2009There is a thing called java-bridge that allows you, if I understood it correctly, to talk to either java runtime or mono runtime from php. And it also provides methods of doing that the otherway around. And if I understood it correctly there are two ways the php application can access the jvm, either by socket or by using application server. The access method is configured in /etc/php.d/java.ini. Of course to get to configure anything you have to have java-bridge installed. In my case it meant downloading the latest source, yum installing tomcat and rpmbuilding the java-bridge package from the tarball with php-java-bridge-5.4.4.2-1.i386.rpm I have so far installed php-java-bridge and php-java-bridge-mono. I have also run the java-bridge examples from tomcat and found out
Java applets and programs dying after last updateWednesday, March 25. 2009I was about to play a quick game of Ticket to Ride but alas after last evening's update the applet did not work. What was even more evil was to find out that nothing related to java functioned reliable. After stracing I found that java hung on futex() and on read(). That was very warming and cozy but got me nowhere expect to Red Hat's bugzilla. And there the salvation was on comment 7. Now I just kill the applet before gaming and wait for next update which fixes imsettings applet. After couple of updates this issue has gone away... Mounting xen-volumes without XenMonday, March 2. 2009The short answer is "fdisk -l -u" and "losetup" are your friends.
For example. This morning I noticed that one of the virtuals was down and attempt to start it always resulted a hang on "Detecting new hardware". I don't know what causes it but I knew that if disable Kudzu the machine will probably boot. Looking through /etc/xen/web I found that the disk was phy:/dev/host/web with xvda. fdisk -l -u gave Levy /dev/host/web: 10.7 Gt, 10737418240 tavua From that three things are apparent: 1) Partition 1 is boot and partition 2 has root inside it. 2) The beginning offset for partition 2 is 208845 * 512 = 106928640 3) the root file system is inside lvm Next step is to see which loop-device is free with "sudo losetup -f". This gives loop0. Then I set it up with: "sudo losetup /dev/loop0 -o 106928640 /dev/host/web". As it is lvm-volume I don't try to mount it directly but instead do "sudo lvm" to get into lvm. Inside lvm I run two commands "vgscan" to see that LogVolGroup00 is what contains the logical volumes I'm after and "vgchange -a y LogVolGroup00" to activate that volgroup. After that /dev/LogVolGroup00/ has mountable devices for the volumes. Reverse steps are after unmounting devices: "vgchange -a n LogVolGroup00" and sudo losetup -d /dev/loop0.
Is this so hard to figure out?Thursday, February 26. 2009This is not by means the best way to do this and if you have a better solution I am very happy to hear about it. I have had no training in the use of this application and I purchased a copy two months ago, so I am probably doing things more complicated way than it is necessary. Anyway, I printed this out and left it as quiz for two days to our break room with question: "What is this/what it does?". After two days of silence I got an alternative solution without "multiply" but with one more "subract" after I explained what this is. Can you answer the question?
Continue reading "Is this so hard to figure out?" Zend Framework is really getting under my hairThursday, February 19. 2009No Microsoft SQL Server support on LinuxI have spent three hours trying to get Microsoft SQL server connection working. That included recompiling php-extensions and lot's of googling before it was obvious that it is not possible because the framework is actually broken. There is no way you can access Microsoft SQL server from linux-server with Zend Frameworks 1.7.4 without fixing the framework itself! There is no dblib-adapter and you can not have mssql-adapter with linux-server*. File-element probably does not work correctly with Zend_Dojo_FormI have spent at least three hours trying to get file uploads to function with Zend_Dojo_Form and now I am quite sure that it is not possible because Zend_Dojo_Form is broken and kills the form element and validation of the form**. Probably bad placement of call for view helper kills server
Disabling Form elements on creation does not work with plain Zend_Form_ElementsWith "Zend_Dojo_Form_Elements" you can use "disabled" to disable the elements and with "Zend_Form_Elements you can not". The latter creates code 'disabled=""' which is wrong. *** There are a lot good things in Zend Frameworks but now I am seriously starting to doubt if it is worth of it. The learning curve (requires reading the framework code to find out if it is your bug or theirs that kills the day) is very steep. Fixing something that other people constantly fix and polish is also a very bad idea. * I use PDO-directly with dblib. ** I gave up and do not use form's validator and use standard php mechanisms for moving uploaded files *** I added function F($string) which replaces html-tags with other html-tags and also deletes 'disabled=""' from the form-element output.
Fedora 10 bluesSaturday, December 20. 2008On some day between 27th of November and 7th of December my Zend Studio got plague. Something that is related to screen updates broke the window display update and made Zend Studio unusable. That gave me a good excuse to install Fedora 10. I tried first with the 64-bit version for a week but after several "dead on install" packages and lack of 64bit support for 3rd party applications I gave up and switched to 32-bit version. Update: Solution for the Plague Update: Sound works wit D830 after several updates. This is log from my journey for reinstall to "adequately working" Fedora 10 with two laptops
* This probably due the fact that "client" and host keymaps are radically different: [mos@freedom config]$ setxkbmap -print
The Fedora 10 supports something called evdev and the destination servers do not. I will wait for someone more clever to resolve this. In theory if changed F 10 side to xfree+86 and pc(pc105)+fi, it might work. Ubuntu user's might have a solution: http://www.nomachine.com/tr/view.php?id=TR11F02131 and https://bugs.launchpad.net/ubuntu/+bug/289918 but for me the current workaround is adding this to my .bashrc: if [ "$DISPLAY" != "" ]; then
Doing root X-task while logged as userTuesday, November 25. 2008
Product enhancement idea for the next OutlookWednesday, October 22. 2008Next outlook version could have an evil Clippy to taunt you while you wait the outlook to crash. Imagine that you are completely fool and don't save the email you were writing and get interrupted by a colleague before you press send. Then when you return to the email you find that the editor window has frozen and is unresponsive. An evil clippy pops up and says: Please wait while Outlook is about to crash. Pay attention to the email you just wrote but did not yet send. You can just see the insignificant part of it, which I have made sure you can not paste or copy. Outlook will crash in any moment now. Wait patiently and rejoice that you now have time to rethink what you were about to send while it restarts. Terseness is one of the virtues and your email was way too long anyway. Next time you should save a draft when you write that long crap or better yet don't write that long emails, nobody reads them anyway. Tetristä?Tuesday, October 21. 2008Sanat: "KUNNALLISVAALIT", "PÖRRÖ", "SAHLBERG", "ÄÄNESTÄ", "26.10.2008" ja "219". 21.10.2008 Koossa on idean poikanen, mutta pitäisi opetella javascript-luokat, jos sellaisia oikeasti on olemassa. 22.10.2008 aamu ennen töihin lähtöä, opiskeltu Javascriptin objektiorientoitunutta rakennetta. 23.10.2008 Ensimmäinen versio valmis. 7 tuntia, 35 minuuttia ja 1 sekuntia. Kokeiltavissa Pörrön epävirallisella vaalisivulla, käynnistyy popuppina kirjoittamalla: porris. On varmaan täynnä bugeja ja hädin tuskin pelattavissa, mutta tein sen siinä aikataulussa kuin lupasin. Repeat after me, thou shalt not handle src rpms as root!Friday, September 19. 2008
And of course I do, because I'm trusting lazy human being. After a frustrating sqlite-installation on Fedora 9 Pastebin does not work.
For sqlite-problem I found one solution from a Hardly Hero user but I found it a bit lacking. Instead I did the following: Which spew out a lot of dependency errors which I fixed by yum installing them. After the prep went fine, I had Fedora patched source for the php on /usr/src/redhat/BUILD/php-5.2.6 containing sqlite extension which I could install at my leisure. After installation Change the library reference in the ini-file to sqlite.so and if you like it neat, change the comment as well. Then restart apache and you have sqlite-extension. To get to the point the other guys reached with "layout lock problem" I had to do some modifications. I added RewriteBase to the .htaccess file and modified $paths-array at index.php by adding as the last member of the array. The fix I tried in the .htaccess with RewriteBase is not complete, there still is something broken in it. Probably I should switch to Debian and it would be auto magicked away. I learned a bit from the pastebin application just by looking it. I also learned that easiest way to install ZendFramework on Fedora 9 is to yum install it. There is also a package for Dojo included which is nice. And to my disappointment I also learned that the app does not work with it either. But I am still very very far away from understanding how to actually use Dojo within the Framework so that it actually does what I want. Reading news is not always waste of timeFriday, September 19. 2008
I have a very bad habit of installing software and not joining to announcement and security mailing list nor taking scheduled peeks at software's home page. Another very bad habit is to just install the software for one single purpose and learning it just enough to complete that purpose. And this does not end with software. I have bought a lot of electronic devices I have not bothered to read manuals. Both habits have bitten me to the ankle so many times that I have started to remedy this. Unfortunately old habits are hard to break and keeping tabs on software, hardware and learning them consumes a lot of time.
Yesterday was a good example. A new php-package was needed to my Fedora installation and I was rather sure that it could be found from standard repositories. It wasn't - or so I diagnosed from the fast glimpse of yum output, which did say that several packages where skipped due protect base and priority configuration. Ok, I thought, as it was php package it could be installed with pecl. And so I tried and found out that php-devel package was missing. And when I tried to install that I got broken dependencies and noticed that I had new repository "newkey" I had not added. I remembered reading something about break in to Fedora and Red Hat repository services and need for a signing key change. Darn, I had completely failed to connect it to my own updates and now some 3v1l H4x0r had poisoned my update system because I had not acted. Surfing through Fedora Project page to the Wiki soon revealed the truth. Packages signed with new key were on the newkey repository and as not all of packages were yet signed with the new key the old repositories still were necessary. As I had added some extra repositories I had also added Protect Base and Priorities to make sure that core pieces came from the official Fedora repositories. This had the unfortunate effect of mostly disabling the new key repository and causing dependency problems. For me the first part of the solution was: Which pulled in 291 updates. The second part will be a bit more complicated as I have fiddle with priorities to allow newkey repo to fullfill it's purpose and still be protected from livna and freshrpms overwriting corepackages. VirtualBox and vrdpWednesday, May 28. 2008
To get the external authentication to work with vrdp you need to do one symlink:
cd /lib
sudo ln -sf libpam.so.0 libpam.so
source
Nvidia Quadro NVS 140M, Dell D830 and Fedora 9Wednesday, May 28. 2008
According to Googled sources Fedora 9 contains a newer version of X that is a development version which Nvidia does not support. Also according to Googled sources there is a Beta release that can be made to work, provided that two conditions are met:
There also is a freshrpm that might do the trick, I tried it without adding Disable "glx" and it did not work for me. So I did some hand standing to get it erased and did the following instead. First condition is a bit challenge as the X-server is started from gdm. Which means that gdm should pass the -ignoreABI flag to the server. I don't know if it possible by tweaking with gdm-configuration somehow but I found this with some more Googling. Download the gdm source rpm and install it but do not build it. Under /usr/src/redhat/SOURCES you will find file called gdm-2.22.0-ignoreABI.patch. I verified it's contents to see that it doesn't drink my coffee or steal my lunch if applied. Then I did something that Fedora Cookbook probably frowns upon, Idea behind of this was to get the newest source of the gdm package. I changed the directory to /usr/src/redhat/SPECS and did sudo rpmbuild -bp gdm.spec to get patched gdm source. Again I did this to see if -ignoreABI was already present in the code. It was not, so I added it to the gdm.spec. This meant changing three lines in the spec file:
Then it was simply sudo rpmbuild -ba gdm.spec and upgrading from RPMS/i386/gdm-2.22.0-5.5.fc9.i386.rpm and RPMS/gdm-user-switch-applet-2.22.0-5.5.fc9.i386.rpm. Then I rebooted to single user and installed the beta-version as root. I tweaked to xorg.conf on /etc/X11 and got X up and working. The disable "glx"-line is necessary to make nvidia-tools to run. Without it they will crash. Unfortunately the same line gives headache to nvidia-settings, it is unable to parse it, so you have to hand merge it's proposed changes to your xorg.conf. Here is mine: The new shiny Ubuntu 8.04Sunday, May 4. 2008
After a week of being
Ubuntu to 8.04 Hardly Working - a.k.a. how to make vista look great again! Ten days for salvation. It is time to switch back.
(Page 1 of 7, totaling 97 entries)
» next page
Competition entry by David Cummins powered by Serendipity v1.0 |
Calendar
QuicksearchKategoriatKanavoi tästä blogista!Blog AdministrationSää ja määLoading the PEAR Services/Weather module failed. Please insure that the module is installed.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
