I figured I would post this since I only found one place that ever talked about it. I was doing includes in PHP with query string on them. This necessitates including the file with the full URL (http://domain.tld/script.php?foo=foo1&bar=bar1). However, when including something with the full URL, sessions in the included file do not work anymore. This gave me fits for about two days before I found this out. I got around it by passing the variables into the included file another way (due to the way I am doing my templating), but you could probably just include the file after setting the variables, as the included file will read those variables from the including file.
Wezzul.com - It's the Dinglez
Home >> Posts in Category: Tech
So I started posting some of my tech related crap over at Chainsaw Hands . It's a site a couple of buddies of mine started and asked me to put some stuff on. Check it out, it should get a fair amount of diversified information.
Tags: chainsawhands howto
Really Dell? No IDE controller? No PS/2 ports? Sheesh, really skimping these days.
Ok, so I'm only posting this because I had problems with booting Linux from a flash drive on some of the Dells around here (most notable a GX270 and a Precision 650). I could boot Slax and DSL just fine on most machines, but on the Dells, I got the error "Unable to load operating system". The fix for this was found on the DSL Wiki, and it dictates that you have to overwrite the MBR of the flash drive with something called ms-sys . I did this, and booting on those problem Dells became easy.
In the project I am currently working on, I have to take data from a form field and generate images from it. These images need to have a transparent background. Here is the way I did that:
# create the original canvas giving it width and height
canvas = Image.new("RGBA", (W,H))
# select a font (you need to have compiled PIL with freetype installed for the
#_imagingft module to be on the server. This is necessary for this process.
font = ImageFont.truetype("/path/to/ttf/font", size_int)
# setup image to draw text on it
draw = ImageDraw.Draw(canvas)
black = "#000000"
# draw text on canvas, using offsets from upper left corner
draw.text((25,2),text,fill=black,font=font)
newImg = someFileHandle
canvas.save(newImg, "image_type")
newImg.close()
Done!
# create the original canvas giving it width and height
canvas = Image.new("RGBA", (W,H))
# select a font (you need to have compiled PIL with freetype installed for the
#_imagingft module to be on the server. This is necessary for this process.
font = ImageFont.truetype("/path/to/ttf/font", size_int)
# setup image to draw text on it
draw = ImageDraw.Draw(canvas)
black = "#000000"
# draw text on canvas, using offsets from upper left corner
draw.text((25,2),text,fill=black,font=font)
newImg = someFileHandle
canvas.save(newImg, "image_type")
newImg.close()
Done!
This one took me a minute to figure out, but I'm happy I did. To create a new skin from the filesystem, and add your own layers to it (or in this case, add the layers from Plone Default), do the following:
Pretty straight forward, right? In any case, it is helping me immensely with the current project.
#use this to get the skins directory
ps = getToolByName(self,'portal_skins')
# use this to add a new folder to that directory for your new skin
ps.manage_addFolder(skin_id, skin_id)
newSkinFolder = getattr(ps, skin_id)
path = newSkinFolder.absolute_url()
# get a set of tuples of all skins
paths = ps.getSkinPaths()
# these lines get the layers from Plone Default
defPath = paths[0]
defPath = defPath[1]
# add your new folder to the top of the Plone Default layers
defPath = skin_id "," defPath
# add the skin to the properties of portal_skins
ps.addSkinSelection(skin_id, defPath, 0, 0)
ps = getToolByName(self,'portal_skins')
# use this to add a new folder to that directory for your new skin
ps.manage_addFolder(skin_id, skin_id)
newSkinFolder = getattr(ps, skin_id)
path = newSkinFolder.absolute_url()
# get a set of tuples of all skins
paths = ps.getSkinPaths()
# these lines get the layers from Plone Default
defPath = paths[0]
defPath = defPath[1]
# add your new folder to the top of the Plone Default layers
defPath = skin_id "," defPath
# add the skin to the properties of portal_skins
ps.addSkinSelection(skin_id, defPath, 0, 0)
Pretty straight forward, right? In any case, it is helping me immensely with the current project.
Over the past year and some months, I have learned more than I ever wanted to know about Zope and Plone. The problem with those pieces of software is the lack of really good information for filesystem development there is out there. Hence the reason I am posting this here, so I can remember it.
To change the permissions on a filesystem file, in it's associated metadata file, add the following:
That will make it so that only Authenticated users and Managers can view the object. You can set this for any permissions that are available on the object. The 0 is the setting for acquisition. As expected, set this to 1 to turn acquisition on.
Current Music:
RZA - The Birth
To change the permissions on a filesystem file, in it's associated metadata file, add the following:
[security]
View=0:Authenticated,Manager
View=0:Authenticated,Manager
That will make it so that only Authenticated users and Managers can view the object. You can set this for any permissions that are available on the object. The 0 is the setting for acquisition. As expected, set this to 1 to turn acquisition on.
Current Music:
RZA - The BirthSo I recently got an Xbox, and have been messing around with it lately. I finally figured out how to put it into HD, and let me tell you, it looks worlds better now. I also have Xbox Media Center running on it, and have gotten the MythTV Frontend working on it to the point where it's actually better than sitting down at my mythbox to watch tv.
There are a bunch of very interesting things I can do with this Xbox, and I'm sure I'll post more about it later on. I'm going to take some screenshots of the XBMC interface for MythTV and throw them up here.
There are a bunch of very interesting things I can do with this Xbox, and I'm sure I'll post more about it later on. I'm going to take some screenshots of the XBMC interface for MythTV and throw them up here.
At work, we use SugarCRM for a wide array of tasks. While we do pay for the "Pro" version of the software, there is also an OS version of it. I recently read a post on a blog that described a lot of the woes I have with Sugar. However, it also detailed a bunch of other less-than-savory dealings by the company itself. Check that out here. The paragraph on upgrading the software is my nomination for Paragraph of the Year 2006. Absolutely spot on about the huge pain in the ass it is to upload, of all things, PHP files. It seems that, as each incremental update is released, Sugar wants to change the database around, drop all your old data, add new php files, when really, it should be as simple as copying over some php scripts to a directory and perhaps running some SQL files on a database.
However, my main issue from a security standpoint is that Sugar requires running PHP with safe mode turned off. PHP code, when written poorly, can be as insecure as anything on the web. I'm not saying Sugar itself is vulnerable, but running PHP without safe mode turned on, as a rule, is poor web server administration.
Not to mention I have to up PHP's memory buffer to like 64MB to do any of the upgrades from their "upgrade" console (which never really work anyways). In any case, read that blog post, it's stating a lot of the things I now don't feel I have to state because they are all laid out there.
However, my main issue from a security standpoint is that Sugar requires running PHP with safe mode turned off. PHP code, when written poorly, can be as insecure as anything on the web. I'm not saying Sugar itself is vulnerable, but running PHP without safe mode turned on, as a rule, is poor web server administration.
Not to mention I have to up PHP's memory buffer to like 64MB to do any of the upgrades from their "upgrade" console (which never really work anyways). In any case, read that blog post, it's stating a lot of the things I now don't feel I have to state because they are all laid out there.
Lin_ger is an IRC bot I wrote using the Net::IRC libraries in perl. Lin_ger can do the following:
- Play Hangman
- Give the weather
- Log all channel chat
- Op users
- Message information from http://4q.cc
- Display a random quote from the database.
My README for Lin_ger is pretty sparsely populated, I expect to have a better one up in the near future. However, I am putting the bot up for download.
Download Lin_ger IRC Bot 0.1.0 Here
Update:
Download Lin_ger IRC Bot 0.1.1 Here
Current Music:
Radiohead - Everything in it's Right Place
- Play Hangman
- Give the weather
- Log all channel chat
- Op users
- Message information from http://4q.cc
- Display a random quote from the database.
My README for Lin_ger is pretty sparsely populated, I expect to have a better one up in the near future. However, I am putting the bot up for download.
Download Lin_ger IRC Bot 0.1.0 Here
Update:
Download Lin_ger IRC Bot 0.1.1 Here
Current Music:
Radiohead - Everything in it's Right PlaceI created a plugin for Quod Libet 0.23 that writes song data to a mysql database. Readme is included in the download, gives information about configuration of plugin.
Download dbIt 0.20 for Quod Libet
Current Music:
Tokyo Ska Paradise Orchestra - Taiyou Ni Onegai
Download dbIt 0.20 for Quod Libet
Current Music:
Tokyo Ska Paradise Orchestra - Taiyou Ni Onegai Her is a link to some directions on how to install the nvidia kernel modules if you are using a vanilla kernel from kernel.org. This is mostly just for my own reference in the future.
Fixed the rippr to count pages in accordance with the total # of images displayed on the front photos page of a user. This is done by taking that number, and dividing by the median # of images per page, 18. This provides a within-a-page accuracy. This was necessary because of flickr's updates.
Download Flickr Rippr 1.0.1 here
Download Flickr Rippr 1.0.1 here
If you are trying to mount something with sshfs and you get the following error:
execute the following command to resolve it:
fusermount: failed to open /dev/fuse: No such device or address
execute the following command to resolve it:
mknod -m 666 /dev/fuse c 10 229
Ok, I found out about a little bug in Ubuntu LTS 6.06 (Dapper Drake) yesterday. It concerns many of the D-Link wireless PCMCIA cards, those using the acx100 chipset. After every successive kernel upgrade, the problem returns, so you will want to make sure to fix this every time you upgrade to a new kernel.
In /lib/firmware//acx/default lies a file, tiacx111c16, which is the file used by the DWL-G630. This file is a symlink to /lib/firmware//acx/2.3.1.31/tiacx111c16. With this file being the one symlinked, you will never be able to connect to a wireless network. To get it to work, you need to remove that symlink, and create a symlink of the same name, in the same place, to /lib/firmware//1.2.1.34/tiacx111c16. Reboot, and things should be good to go.
In /lib/firmware//acx/default lies a file, tiacx111c16, which is the file used by the DWL-G630. This file is a symlink to /lib/firmware//acx/2.3.1.31/tiacx111c16. With this file being the one symlinked, you will never be able to connect to a wireless network. To get it to work, you need to remove that symlink, and create a symlink of the same name, in the same place, to /lib/firmware//1.2.1.34/tiacx111c16. Reboot, and things should be good to go.
I got a laptop. Gateway Solo 1450. Thanks to Shelby, it was reasonably priced. However, upon booting into X, I realized that I could only get 1024x768 at 8bit color depth. This is not going to work. After finding this site, I found out it's because of a supposed BIOS "upgrade" Gateway pushed out. At that link, you will find a BIOS downgrade which will allow you to run at 1024x768@24bit. This is obviously much more desirable.
What I want to know is, how do you push out an upgrade that makes the video card use 1MB of it's 8MB of memory?
What I want to know is, how do you push out an upgrade that makes the video card use 1MB of it's 8MB of memory?
Recently, had an issue with Horde attaching files with 0k in size. This was resolved by:
Modifying the conf.php file for Horde to include $conf['tmpdir'] = '/tmp';. Then, modifying php.ini to set it's temp directory as the same thing. Restart apache and it's good to go.
Modifying the conf.php file for Horde to include $conf['tmpdir'] = '/tmp';. Then, modifying php.ini to set it's temp directory as the same thing. Restart apache and it's good to go.
Here is what has been happening for some time. If I open firefox while I have something like XMMS open, then at no point during the current firefox session can I do anything and have it play sound. It's like XMMS locks the soundcard, and nothing else can take it back. Turns out it's an issue with firefox. I changed two things, and it seems to be fixed now.
First thing, I added the following:
exec aoss /usr/libexec/mozilla-launcher "$@"
to the bottom of /usr/bin/firefox. The second thing, I added the following:
FIREFOX_DSP="aoss"
to /etc/firefox/firefoxrc. After this, the issue is resolved. Just putting it up here in case anyone else has the issue.
First thing, I added the following:
exec aoss /usr/libexec/mozilla-launcher "$@"
to the bottom of /usr/bin/firefox. The second thing, I added the following:
FIREFOX_DSP="aoss"
to /etc/firefox/firefoxrc. After this, the issue is resolved. Just putting it up here in case anyone else has the issue.
Since learning some perl, I've realized it has great applications for automatically ripping data from webpages. So I wrote something for flickr to take a users album, rip all the pages out of it and then pull all the full sized images from those pages.
In the archive, there are three files. The perl script, rippr.pl, a users.txt file, and a records.txt file. All that needs to be done is populating the users.txt file with user directories in the format http://www.flickr.com/photos/username. You will also need to create a directory, images, as a subdirectory of the directory where the perl script resides. Then, while running the script, it will create a new directory in images for each user, and pop the images in there, naming them incrementally with numbers so as not to have duplicate image names.
It has worked pretty well for me so far, and it's relatively fast as well. Get it here.
Edit: I upped a new copy that pulls down the original images instead of the sized ones flickr displays by default.
Current Music:
The Raconteurs - Steady as She Goes
In the archive, there are three files. The perl script, rippr.pl, a users.txt file, and a records.txt file. All that needs to be done is populating the users.txt file with user directories in the format http://www.flickr.com/photos/username. You will also need to create a directory, images, as a subdirectory of the directory where the perl script resides. Then, while running the script, it will create a new directory in images for each user, and pop the images in there, naming them incrementally with numbers so as not to have duplicate image names.
It has worked pretty well for me so far, and it's relatively fast as well. Get it here.
Edit: I upped a new copy that pulls down the original images instead of the sized ones flickr displays by default.
Current Music:
The Raconteurs - Steady as She GoesMy parents wanted to buy me something for graduation. I told them I didn't want anything, but they insisted. I saw this as a great opportunity to get a mythtv box up and going. Since I had about $700 to spend, I figured I could get some decent stuff together to have a really nice myth box that I could use to do general media center tasks, including tivo-type applications. I gave my dad a wishlist, and he pretty much came through on all of it. The box is as follows:
Cooler Master C541 Centurion Micro ATX Case
Intel Pentium 4 2.4A Prescott 533MHz FSB
MSI 661FM3-V Micro ATX Motherboard
Corsair ValueSelect 2x512mb PC3200 Ram
Western Digital Caviar SE WD3000JB 300GB 7200 RPM IDE
Hauppage Win-TV PVR-350
Pretty nice, right? I got the box on Christmas, put it together, all except the PVR which I was ordering from Insight.com due to my work getting decent pricing from them. I ordered that PVR a week later, and to my dismay, Insight was out of stock. However, yesterday, due to my boss being cool, he loaned me one of the two PVR-350's he picked up a week before I called. So I was all set.
Popped the PVR in last night, and installed KnoppMyth because of it's ease of use as well as the relatively painless install it does for MythTV and all it's plugins. It may not be the fastest (and I say may as I am 99% sure it's as fast as anything else doing these same tasks), but it surely works to the fullest of my expectations. However, things weren't as easy as I would have liked, and some extra configuration was required. First, since I wanted to use the PVR-350, which has S-video output, to do both the recording as well as the displaying to the TV, I had to run a script which reconfigures the XF86Config-4 file as well as recompiling the ivtv driver to support the PVR-350 for video out. That script can be found here . It is extremely well run, and does all the work for you. It may require some configuration, but nothing that is too terribly difficult. However, what this script does do is configure myth (and X) to run at 720x480. This is great if you are running a 16:9 viewing ratio, but for those of us running 4:3, it's a bit off. Since you really don't want to mess with the XF86Config-4 here (believe me, no good results come of it), you can set the width/height of myth and the offsets to produce a fullscreen looking front end. I am using the following:
Tv output is not effected by this, and plays fullscreen in mplayer. A second configuration that was needed was to the /etc/lircd.conf file so that my remote, which is not natively supported, would work. Another file, /home/mythtv/.lircrc also had to be modified, and mine is linked here .
# /etc/lircd.conf
#
#
# brand: Hauppauge lirc.conf
# model no. of remote control: PVR-350
# devices being controlled by this remote:
#
#
begin remote
name grayHauppauge
bits 13
flags RC5
eps 30
aeps 100
one 0 0
zero 0 0
gap 200966
repeat_bit 2
begin codes
Power 0x00000000000017BD
Go 0x0000000000001FBB
TV 0x000000000000179C
Videos 0x0000000000001F98
Music 0x0000000000001799
Pictures 0x0000000000001F9A
Guide 0x000000000000179B
Radio 0x0000000000001F8C
UP 0x0000000000001794
LEFT 0x0000000000001F96
RIGHT 0x0000000000001797
DOWN 0x0000000000001F95
OK 0x00000000000017A5
Back-Exit 0x0000000000001F9F
Menu 0x000000000000178D
Prev-Channel 0x0000000000001F92
Mute 0x000000000000178F
Volume-UP 0x0000000000001F90
Volume-DOWN 0x0000000000001791
Channel-UP 0x0000000000001FA0
Channel-DOWN 0x00000000000017A1
Record 0x0000000000001FB7
Stop 0x00000000000017B6
Rewind 0x0000000000001FB2
Forward 0x00000000000017B4
Play 0x0000000000001FB5
Previous 0x00000000000017A4
Next 0x0000000000001F9E
Pause 0x00000000000017B0
1 0x0000000000001F81
2 0x0000000000001782
3 0x0000000000001F83
4 0x0000000000001784
5 0x0000000000001F85
6 0x0000000000001786
7 0x0000000000001F87
8 0x0000000000001788
9 0x0000000000001F89
0 0x0000000000001780
star 0x0000000000001F8A
hash 0x000000000000178E
red 0x0000000000001F8B
green 0x00000000000017AE
yellow 0x0000000000001FB8
blue 0x00000000000017A9
end codes
end remote
Simple enough, right? So now the remote works, but it's not booting without me hitting CTRl-D and CTRl-C alot. A big issue is not being able to see all the boot output when you boot up after the video switches to the PVR's S-video out. This stinks, and was particularly a problem for me until I booted using a monitor to find that my boot was halting as a disk needed to be checked. So fixed that, re-modified the XF86Config-4 file, and was good to go. Everything is working now, and I'm pretty happy with it. I plan on looking into what I can do to customize the UI for both MythTV itself as well as making MythWeb more useful to me and my wife. More to come...
Cooler Master C541 Centurion Micro ATX Case
Intel Pentium 4 2.4A Prescott 533MHz FSB
MSI 661FM3-V Micro ATX Motherboard
Corsair ValueSelect 2x512mb PC3200 Ram
Western Digital Caviar SE WD3000JB 300GB 7200 RPM IDE
Hauppage Win-TV PVR-350
Pretty nice, right? I got the box on Christmas, put it together, all except the PVR which I was ordering from Insight.com due to my work getting decent pricing from them. I ordered that PVR a week later, and to my dismay, Insight was out of stock. However, yesterday, due to my boss being cool, he loaned me one of the two PVR-350's he picked up a week before I called. So I was all set.
Popped the PVR in last night, and installed KnoppMyth because of it's ease of use as well as the relatively painless install it does for MythTV and all it's plugins. It may not be the fastest (and I say may as I am 99% sure it's as fast as anything else doing these same tasks), but it surely works to the fullest of my expectations. However, things weren't as easy as I would have liked, and some extra configuration was required. First, since I wanted to use the PVR-350, which has S-video output, to do both the recording as well as the displaying to the TV, I had to run a script which reconfigures the XF86Config-4 file as well as recompiling the ivtv driver to support the PVR-350 for video out. That script can be found here . It is extremely well run, and does all the work for you. It may require some configuration, but nothing that is too terribly difficult. However, what this script does do is configure myth (and X) to run at 720x480. This is great if you are running a 16:9 viewing ratio, but for those of us running 4:3, it's a bit off. Since you really don't want to mess with the XF86Config-4 here (believe me, no good results come of it), you can set the width/height of myth and the offsets to produce a fullscreen looking front end. I am using the following:
GuiWidth: 641
GuiHeight: 451
GuiOffsetX: 36
GuiOffsetY: 12
GuiHeight: 451
GuiOffsetX: 36
GuiOffsetY: 12
Tv output is not effected by this, and plays fullscreen in mplayer. A second configuration that was needed was to the /etc/lircd.conf file so that my remote, which is not natively supported, would work. Another file, /home/mythtv/.lircrc also had to be modified, and mine is linked here .
# /etc/lircd.conf
#
#
# brand: Hauppauge lirc.conf
# model no. of remote control: PVR-350
# devices being controlled by this remote:
#
#
begin remote
name grayHauppauge
bits 13
flags RC5
eps 30
aeps 100
one 0 0
zero 0 0
gap 200966
repeat_bit 2
begin codes
Power 0x00000000000017BD
Go 0x0000000000001FBB
TV 0x000000000000179C
Videos 0x0000000000001F98
Music 0x0000000000001799
Pictures 0x0000000000001F9A
Guide 0x000000000000179B
Radio 0x0000000000001F8C
UP 0x0000000000001794
LEFT 0x0000000000001F96
RIGHT 0x0000000000001797
DOWN 0x0000000000001F95
OK 0x00000000000017A5
Back-Exit 0x0000000000001F9F
Menu 0x000000000000178D
Prev-Channel 0x0000000000001F92
Mute 0x000000000000178F
Volume-UP 0x0000000000001F90
Volume-DOWN 0x0000000000001791
Channel-UP 0x0000000000001FA0
Channel-DOWN 0x00000000000017A1
Record 0x0000000000001FB7
Stop 0x00000000000017B6
Rewind 0x0000000000001FB2
Forward 0x00000000000017B4
Play 0x0000000000001FB5
Previous 0x00000000000017A4
Next 0x0000000000001F9E
Pause 0x00000000000017B0
1 0x0000000000001F81
2 0x0000000000001782
3 0x0000000000001F83
4 0x0000000000001784
5 0x0000000000001F85
6 0x0000000000001786
7 0x0000000000001F87
8 0x0000000000001788
9 0x0000000000001F89
0 0x0000000000001780
star 0x0000000000001F8A
hash 0x000000000000178E
red 0x0000000000001F8B
green 0x00000000000017AE
yellow 0x0000000000001FB8
blue 0x00000000000017A9
end codes
end remote
Simple enough, right? So now the remote works, but it's not booting without me hitting CTRl-D and CTRl-C alot. A big issue is not being able to see all the boot output when you boot up after the video switches to the PVR's S-video out. This stinks, and was particularly a problem for me until I booted using a monitor to find that my boot was halting as a disk needed to be checked. So fixed that, re-modified the XF86Config-4 file, and was good to go. Everything is working now, and I'm pretty happy with it. I plan on looking into what I can do to customize the UI for both MythTV itself as well as making MythWeb more useful to me and my wife. More to come...
Wow, so I looked at the list of users today as I was doing an sql dump, and there are a shit ton of users that look strangely like (a) spammers or (b) people trying to inject sql into the site. I hope it was the latter, because if it was, then it's obvious they haven't done dick (as the DB is still intact). We'll see if I can get anywhere with this.
Edit: Most of the IP's are from AOL, MSN, or SBC. Silly little script kiddies. Get with the program you talentless fucks, you can't do shit. You have NO '5K1LL5' you NON-1337 FUCKS! LOLOZOROAO!L!!1!11!1
Edit 2: Keep trying though. If you can hack it, I'd be happy. Always looking for vulnerabilities!
Edit: Most of the IP's are from AOL, MSN, or SBC. Silly little script kiddies. Get with the program you talentless fucks, you can't do shit. You have NO '5K1LL5' you NON-1337 FUCKS! LOLOZOROAO!L!!1!11!1
Edit 2: Keep trying though. If you can hack it, I'd be happy. Always looking for vulnerabilities!
My ipod is broken. The hard drive will spin up, click, spin down. I can't format it, can't do shit with it. Diagnostics on the ipod report the HDD is good, but it isn't, not even close. I can hear it clicking. A new drive is $175 if I get it from ipodmods.com, and it's about $250 to have Apple repair (replace) it. I can't go without an mp3 player, so I'm taking suggestions on what else to get. Losing all the music on it is a pain as I don't have all of it on computers anymore.
If you know me, you know how important that fucking thing was to me. It's a real shame that it doesn't work anymore. I don't have enough money for a new one, so I'm going to have to go alot cheaper for my new mp3 player. But a new one is necessary, for sure.
If you know me, you know how important that fucking thing was to me. It's a real shame that it doesn't work anymore. I don't have enough money for a new one, so I'm going to have to go alot cheaper for my new mp3 player. But a new one is necessary, for sure.
Tags: ipod apple sucks
So the other day, I figured I'd get dual display working in Linux. I had a spare video card and monitor laying around, so there was no reason not to add more real estate to any given desktop.
Though I don't run Gentoo, this site was extremely useful in getting things going.
First, I had to find out the PCI Bus ID's for both video cards. This can be easily found out executing the command lspci. I found the BusID's to be 2:0:0 and 1:6:0 for the Nvidia onboard card and the ATI All-in-Wonder, respectively. These values go in the Device sections. These values are not required for a one card setup, but if you are to use two video cards, it is absolutely necessary to have these Bus ID's in your XF86Config-4 file. Another major difference is adding the amount of video ram (in kilobytes) to that same Device section. I'm not totally sure if this is necessary, but I figure it definitely can't hurt. Next is to define both monitors, which is about the same as you would with one monitor. Defining the HorizSync and VertRefresh values is key for getting the most out of your monitors. Generally, you can find these specs for any given monitor with a simple google search. As usual, you need to define two Screen sections, one for each monitor, listing the device and monitor to be used, as well as setting the depth (in bits) and resolution.
The big differences in the config file lie in the ServerLayout section. Mine as is follows:
Note the RightOf command. This is pretty cool. You can use plain-text requests such as this to define where the second screen is in relation to the first. Also, for Screen0, the 0 0 after the name is the position that the screen lies at. I am fairly sure that, by default, this is where it lies anyways, but there is no need for ambiguity.
A last section that was not in my config by default is the ServerFlags section. I added the following:
Xinerama is a set of extensions for Xfree86 that allow you to use multiple displays as one big virtual desktop, therefore allowing you to move windows between them (much the same way Windows works). If you do not include this, from what I've read, programs need to have coded in them the ability to move from one display to another, and the performance is a bit flaky at best.
In any case, it seems to be working now, I'm not really having any issues with it. There is some tweeking to be done to increase speed, and I will post about that if I get any results. My full config is here .
Though I don't run Gentoo, this site was extremely useful in getting things going.
First, I had to find out the PCI Bus ID's for both video cards. This can be easily found out executing the command lspci. I found the BusID's to be 2:0:0 and 1:6:0 for the Nvidia onboard card and the ATI All-in-Wonder, respectively. These values go in the Device sections. These values are not required for a one card setup, but if you are to use two video cards, it is absolutely necessary to have these Bus ID's in your XF86Config-4 file. Another major difference is adding the amount of video ram (in kilobytes) to that same Device section. I'm not totally sure if this is necessary, but I figure it definitely can't hurt. Next is to define both monitors, which is about the same as you would with one monitor. Defining the HorizSync and VertRefresh values is key for getting the most out of your monitors. Generally, you can find these specs for any given monitor with a simple google search. As usual, you need to define two Screen sections, one for each monitor, listing the device and monitor to be used, as well as setting the depth (in bits) and resolution.
The big differences in the config file lie in the ServerLayout section. Mine as is follows:
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen1" 0 0
Screen 1 "Screen2" RightOf "Screen1"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
EndSection
Identifier "Default Layout"
Screen 0 "Screen1" 0 0
Screen 1 "Screen2" RightOf "Screen1"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
EndSection
Note the RightOf command. This is pretty cool. You can use plain-text requests such as this to define where the second screen is in relation to the first. Also, for Screen0, the 0 0 after the name is the position that the screen lies at. I am fairly sure that, by default, this is where it lies anyways, but there is no need for ambiguity.
A last section that was not in my config by default is the ServerFlags section. I added the following:
Section "ServerFlags"
Option "Xinerama" "true"
EndSection
Option "Xinerama" "true"
EndSection
Xinerama is a set of extensions for Xfree86 that allow you to use multiple displays as one big virtual desktop, therefore allowing you to move windows between them (much the same way Windows works). If you do not include this, from what I've read, programs need to have coded in them the ability to move from one display to another, and the performance is a bit flaky at best.
In any case, it seems to be working now, I'm not really having any issues with it. There is some tweeking to be done to increase speed, and I will post about that if I get any results. My full config is here .
Me and Potterj were working on modifying Torrentflux today, and got one nice little thing done on it. However, I have a bunch more ideas for it, which may incorporate RSS'ing a site by parsing out the data on that page. Should be interesting to see if I can actually get anything done on it tonight. I almost wish I wasn't leaving work, as I'm sure I'll lose my motivation.
However, I'm getting out early due to coming in early. I'me excited. Tigers game and beer tonight, Cokedick Motorcycle Awesome tomorrow, and then, YES, Wedding Classes!!! YAY!!!!
However, I'm getting out early due to coming in early. I'me excited. Tigers game and beer tonight, Cokedick Motorcycle Awesome tomorrow, and then, YES, Wedding Classes!!! YAY!!!!
I found some information about getting iTunes to work with Linux, and I followed the steps listed here , but was unable to get iTunes to detect the iPod. I can actually get ephPod to run in Crossover Office , and have it read the iPod. iTunes also plays music fine, and can read and upate ID3 tags. But it won't read the iPod. I posted on the Crossover Office forums, but I don't know that I'll get anywhere with that.
I'll keep at it though, as I really dig iTunes and WISH Apple would port it to Linux.
I'll keep at it though, as I really dig iTunes and WISH Apple would port it to Linux.
If you are using MSIE right now, you probably aren't viewing this page. I have change the site so that the script auto-dies if the user agent contains MSIE, due to IE's shortcomings with viewing CSS. I will be making a new, IE only stylesheet in the future. If you can't use a good fucking browser, you sure as fuck don't need to be doing anything here anyways...
Fuck.
Fuck.
Last 20 Links into site from Google.com:
atmosphere its everything but me
linux move windows between displays
atmosphere %2B lyrics "it's the nicotine"
atmosphere %2B lyrics "it's the nicotine"
atmosphere %2B lyrics "it's the nicotine"
wps54g default ip
curtis granderson girlfriend
pvr-350 lircd.conf
sugarcrm torrent host
reset ip address linksys
what is the default ip address for wps54g
beer can cock galleries
curtis granderson girlfriend
how to reset linksys print server
linksys router command line
wps54g reset defaults
yesterday when i was young lirc
plone sucks
xbox dvd remote mythtv lircrc
linksys can't find print server
atmosphere its everything but me
linux move windows between displays
atmosphere %2B lyrics "it's the nicotine"
atmosphere %2B lyrics "it's the nicotine"
atmosphere %2B lyrics "it's the nicotine"
wps54g default ip
curtis granderson girlfriend
pvr-350 lircd.conf
sugarcrm torrent host
reset ip address linksys
what is the default ip address for wps54g
beer can cock galleries
curtis granderson girlfriend
how to reset linksys print server
linksys router command line
wps54g reset defaults
yesterday when i was young lirc
plone sucks
xbox dvd remote mythtv lircrc
linksys can't find print server
