code logs -> 2010 -> Sat, 15 May 2010< code.20100514.log - code.20100516.log >
--- Log opened Sat May 15 00:00:03 2010
00:23 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
00:30 You're now known as TheWatcher[T-2]
00:34 You're now known as TheWatcher[zZzZ]
00:56 Derakon[AFK] is now known as Derakon
01:53 Orth [orthianz@Nightstar-ba2d5964.xnet.co.nz] has joined #code
01:54 Reiv[Graduate] [orthianz@Nightstar-526fac6b.xnet.co.nz] has quit [Ping timeout: 121 seconds]
02:00 AbuDhabi [annodomini@Nightstar-dda867f4.adsl.tpnet.pl] has quit [[NS] Quit: Okay, enough of this.]
02:20 Derakon is now known as Derakon[AFK]
03:57 cpux is now known as shade_of_cpux
04:32 shade_of_cpux is now known as cpux
04:54 Reiv[Graduate] [orthianz@Nightstar-aa3e6dc8.xnet.co.nz] has joined #code
04:57 Orth [orthianz@Nightstar-ba2d5964.xnet.co.nz] has quit [Ping timeout: 121 seconds]
05:21 mode/#code [-o TheWatcher[zZzZ]] by ChanServ
05:59 Derakon[AFK] is now known as Derakon
06:04 Tarinaky [Tarinaky@Nightstar-4e78f94d.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
06:11 Tarinaky [Tarinaky@Nightstar-bb169e0b.adsl.virginmedia.net] has joined #code
06:21 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
07:44 Vornicus is now known as Vornicus-Latens
08:30 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
08:50 Reiv[Graduate] [orthianz@Nightstar-aa3e6dc8.xnet.co.nz] has quit [Client closed the connection]
09:00 Zed [Zed@Nightstar-e4835f03.or.comcast.net] has quit [Client closed the connection]
09:03 Rhamphoryncus [rhamph@Nightstar-29afc4bd.abhsia.telus.net] has quit [Client exited]
09:12 Reiv[Graduate] [orthianz@Nightstar-aa3e6dc8.xnet.co.nz] has joined #code
09:12 Reiv[Graduate] [orthianz@Nightstar-aa3e6dc8.xnet.co.nz] has quit [Connection reset by peer]
09:20 Reiv[Graduate] [orthianz@Nightstar-aa3e6dc8.xnet.co.nz] has joined #code
09:29 You're now known as TheWatcher
09:34 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
09:39 Reiv[Graduate] [orthianz@Nightstar-aa3e6dc8.xnet.co.nz] has quit [Connection reset by peer]
09:40 AnnoDomini [annodomini@Nightstar-dda867f4.adsl.tpnet.pl] has joined #code
09:40 mode/#code [+o AnnoDomini] by Reiver
09:45 Reiv[Graduate] [orthianz@Nightstar-aa3e6dc8.xnet.co.nz] has joined #code
11:10 * AnnoDomini ponders how to make every image in a directory into the negative of the original.
11:10
< Serah>
Photoshop can do it with batch actions, IIRC.
11:10
< Serah>
Otherwise you can do it with PHP.
11:11
< Serah>
Probably many other ways too, but I never experimented with that.
11:11
< Serah>
I suppose Mac's automator can do it too.
11:11
< Serah>
But that's not really helpful.
11:20 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
11:26
< TheWatcher>
AD: If you have ImageMagick installed: ls -1 | xargs -i -n 1 convert '{}' -negate '{}'
11:27
< TheWatcher>
(if you have anything other than images in there, you might want to replace the ls -1 with `find . -iname '*.jpg'` or the like
11:28
< Namegduf>
ls | grep is the lazy man's find.
11:28
< TheWatcher>
and in that case, if you just want that directory and not any subdirectories, find . -maxdepth 1 -iname '*.jpg')
11:28
< Namegduf>
It's always a little neat to realise the things you can do in a single command or a chain of a few with the typical tools of a Linux system.
11:29
< TheWatcher>
(also, if you have images with spaces, you probably want to use `find . -maxdepth 1 -iname '*.jpg' -print0 | xargs -0 -i -n 1 convert '{}' -negate '{}'` to avoid confusions
11:29
< TheWatcher>
)
11:29
< TheWatcher>
*spaces in the name
11:31
< TheWatcher>
Namegduf: indeed. It's one of the reasons I practically can't function on windows without cygwin installed >.>
11:32 Reiv[Graduate] [orthianz@Nightstar-aa3e6dc8.xnet.co.nz] has quit [Ping timeout: 121 seconds]
11:33
<@AnnoDomini>
Cool. This works.
13:18 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
13:18 Reiv[Graduate] [orthianz@Nightstar-995f4496.xnet.co.nz] has joined #code
13:20 * Namegduf has an exam on Systems Engineering next Friday. :(
13:20
< Namegduf>
I need to memorise all their useless crap.
13:23 * gnolam shoves Namegduf into a Waterfall.
13:23 * Namegduf chokes on a scenario.
13:31 * gnolam stabs people with broken e-mail clients.
13:47 Tarinaky [Tarinaky@Nightstar-bb169e0b.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
14:00 Tarinaky [Tarinaky@Nightstar-8800f89b.adsl.virginmedia.net] has joined #code
14:45 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
14:49 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
15:58 McMartin [mcmartin@Nightstar-3c130f1a.pltn13.sbcglobal.net] has quit [Ping timeout: 121 seconds]
16:06 McMartin [mcmartin@Nightstar-dd07698f.pltn13.sbcglobal.net] has joined #code
16:06 mode/#code [+o McMartin] by Reiver
16:11 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
16:15
< gnolam>
First actual advantage of TFTs over CRTs besides size: you can put a cheap fan on full blast next to a TFT without getting distortion. :)
16:21
< TheWatcher>
Heh, quite
16:25 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
16:48 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
17:13 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has quit [Ping timeout: 121 seconds]
17:43 Derakon is now known as Derakon[AFK}
17:44 Derakon[AFK} is now known as Derakon[AFK]
17:52 shade_of_cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
17:53 shade_of_cpux is now known as cpux
18:11 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
18:19 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
18:26 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
18:26 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
18:44 Derakon[AFK] is now known as Derakon
18:48
<@AnnoDomini>
How do I grep every file within a directory for certain text string?
18:50
<@AnnoDomini>
Specifically, I want to display a list of files containing a certain phrase.
18:52
<@AnnoDomini>
Nevermind, worked it out.
18:55
<@Vornicus-Latens>
grep "stuff" *
18:55
<@Derakon>
grep -l string
18:55
<@AnnoDomini>
grep 'stuff' ./*
18:55
<@Derakon>
-l will list files that match instead of showing the match itself.
18:56
<@AnnoDomini>
What I did brings up both.
18:56
<@Derakon>
Sure, but you asked for a list of files, not a list of files plus the matches. :)
18:56
<@Derakon>
Also, the ./ is unnecessary.
18:57
<@AnnoDomini>
Can I have a list of files with matches and their line numbers within the files?
18:57
<@Derakon>
-n
18:58
<@Derakon>
"man grep" is your friend.
18:58
<@AnnoDomini>
A very wordy friend.
18:59
< Namegduf>
If your default paging thing is the same as here
18:59
< Namegduf>
Use /<search term> after "man grep"
18:59
<@Derakon>
A very wordy friend that can be itself searched.
18:59
< Namegduf>
It's a valid thing to ask about, knowing where more fun trick with grep can be found is useful too, though, because there's a lot it can do.
19:00 * Namegduf needs to learn to use awk for more than stripping out parts of lines. Maybe.
19:06 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
19:10
<@AnnoDomini>
Argh. This is annoying. I'm trying to modify the colours in a phpbb3 style, and I can't find where the damn main table background colour is located.
19:10
<@AnnoDomini>
I seem to have changed everything.
19:11
<@AnnoDomini>
It's not part of the stylesheet, the resulting page has a plain old HTML property specifying bgcolor, overriding styles.
19:11
<@AnnoDomini>
The only two other mentions of background colours in the template files I found and corrected.
19:21
< celticminstrel>
For prosilver-derived, try colours.css
19:21
< celticminstrel>
Also look out for background-image.
19:22
< celticminstrel>
That is, maybe there's a background image overriding your background colour.
19:26
<@AnnoDomini>
It's not prosilver-derived. I've opened the source of the end-page, and it states near the top, "<table bgcolor="#FFFFFF"". I'm trying to make it #000000.
19:33
< gnolam>
I can't remember off-hand the specificity table (i.e. if you /can/ override it then or not), but try marking the CSS as important.
19:34
<@AnnoDomini>
How?
19:41 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Connection closed]
19:45
< TheWatcher>
Wait, are you editing the template direct on the filesystem, or through the ACP?
19:45
<@AnnoDomini>
Filesystem.
19:45
< TheWatcher>
Because if you're editing on the filesystem, you need to flush the cache
19:45
< TheWatcher>
otherwise changes there get ignored
19:46
<@AnnoDomini>
I'm guessing refreshing isn't what I need.
19:47
< TheWatcher>
No - you need to either hit "Purge Cache" on the ACP index page, or hit Refresh on the appropriate entry in the styles -> templates page in the ACP
19:48
< celticminstrel>
If you're making a lot of changes, it's probably better to turn on the setting to automatically flush the cache when the file changes.
19:48
< celticminstrel>
What happens if you take out the bgcolor="#FFFFFF" ?
19:49
<@AnnoDomini>
Wait, while I try to refresh. The server is being slow.
19:52
<@AnnoDomini>
Purging worked.
19:54
< celticminstrel>
Yay!
20:27
< gnolam>
Still. CSS works on the principle of highest specificity: the CSS rule that's the most specific is the one that gets applied.
20:28
< gnolam>
If two rules are equally specific, the last one applies.
20:30
< gnolam>
And if you can't raise the specificity enough through normal means (e.g. li table { foo: bar; } instead of table { foo: bar; }) there's an !important directive.
20:30
< Namegduf>
I always read that as "not important"
20:30
< Namegduf>
Which is annoying.
20:31
< gnolam>
It should totally have been a Spanish upside-down exclamation mark.
20:31
< Namegduf>
XD
20:31
< Namegduf>
They should have put the exclamation mark at the other end.
20:31
< Namegduf>
important!
20:32
< celticminstrel>
He wasn't using CSS there, though...
20:32
< gnolam>
p { margin-left: 0px; ¡Caramba! }
20:33
< celticminstrel>
Except if goes before the semicolon, doesn't it?
20:33
< Namegduf>
Anyone know how to tell screen to default to using UTF-8 for new attached sessions?
20:33
< Namegduf>
It was okay.
20:33
< Namegduf>
Then I broke it.
20:33
< Namegduf>
At the same time I broke other stuff about it.
20:33
< Namegduf>
I think I must have fed it binary garbage or something by accident.
20:34
< Namegduf>
"^A :utf8 on on" per session fixes it
20:40
<@Derakon>
'stty sane' is my go-to method for fixing borked terminals.
20:40
<@Derakon>
Might work for screen.
20:42 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
20:59 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
21:00 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
21:01 AbuDhabi [annodomini@Nightstar-075c0a5b.adsl.tpnet.pl] has joined #code
21:02 AnnoDomini [annodomini@Nightstar-dda867f4.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
21:18 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
21:22 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
21:39 Reiv[Graduate] [orthianz@Nightstar-995f4496.xnet.co.nz] has quit [Connection reset by peer]
22:30 Vornicus-Latens is now known as Vornicus
22:54 AbuDhabi [annodomini@Nightstar-075c0a5b.adsl.tpnet.pl] has quit [[NS] Quit: Sen.]
23:08 * Vornicus examines his old Catan art.
23:08 * Vornicus tries to remember why he picked the sizes he did.
--- Log closed Sun May 16 00:00:04 2010
code logs -> 2010 -> Sat, 15 May 2010< code.20100514.log - code.20100516.log >