// #scripters — 2008-03-10
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
03:58:05 Join: KSUBi ([email protected]) to #scripters
03:58:37 <KSUBi> i downloaded an mp3 addon.. opended the folder.. put the items into my mIRC folder.. typed /load -rs whateverfile.mrc
03:58:39 <KSUBi> and doesnt work
03:58:42 <KSUBi> am i doing something wrong?
04:16:26 Quit: KSUBi ([email protected]) Exit: go go power rangers!
04:27:17 Quit: wobelong ([email protected]) Exit: "Hate is like acid. It can damage the vessel in which it is stored as well as destroy the object on which it is poured.
06:39:31 Quit: Timegrinder ([email protected]) Killed (NickOp (Kill requested by Simulacrum))
06:39:43 Join: Timegrinder ([email protected]) to #Scripters
08:54:58 Join: disgracian ([email protected]) to #scripters
11:24:26 Join: rabbit- ([email protected]) to #scripters
11:32:19 Quit: rabbit- ([email protected]) Read error to rabbit-: Connection reset by peer
11:33:56 Join: rabbit- ([email protected]) to #scripters
11:35:53 Join: jesusLOL ([email protected]) to #scripters
11:38:01 Quit: twig ([email protected]) Ping timeout for twig
12:25:14 Join: twig ([email protected]) to #scripters
12:28:52 Quit: jesusLOL ([email protected]) Ping timeout for jesusLOL
12:40:04 Join: wobelong ([email protected]) to #scripters
16:52:52 Quit: rabbit- ([email protected]) Read error to rabbit-: Connection reset by peer
18:07:38 Quit: disgracian ([email protected]) Exit: I've been far too sympathetic
18:16:13 Join: jesusLOL ([email protected]) to #scripters
18:16:13 Quit: twig ([email protected]) Read error to twig: Connection reset by peer
18:19:28 Quit: Bozza ([email protected]) Ping timeout for Bozza
18:20:08 Join: twig ([email protected]) to #scripters
18:21:20 Join: Bozza ([email protected]) to #Scripters
18:21:22 Mode: (by ChanOp) +o Bozza
18:22:19 Quit: jesusLOL ([email protected]) Ping timeout for jesusLOL
18:31:25 <damian> josh, you monkey boy
18:31:39 <damian> function days($first, $last) { return ((strtotime($last) - strtotime($first)) / 86400); }
18:31:39 <damian> -
18:31:53 <damian> days('mm/dd/yyyy', 'mm/dd/yyyy');
18:32:19 <josh> i thought it should have been that easy lol
18:32:34 <josh> ahh damnit i was doing first-last thats why it was wrong for me lol
18:32:42 <damian> sure that's why!
18:32:59 <josh> although i had a few extra lines prob screwing with it aswell lol
18:33:55 <damian> no point making lots of lines if you don't need it!
18:35:57 <josh> yeah
18:36:04 <josh> heres one for yhou
18:36:13 <josh> any idea to work out if that cuts through a weekend at all :P
18:36:37 <damian> you'd just need a loop
18:36:50 <damian> start with first, add 86400 every cycle .. check the day of the week
18:36:59 <josh> hrmm thats just annoying
18:37:03 <damian> it's how to do it..
18:37:08 <damian> takes like four lines
18:37:09 <josh> i know i can use date('w',date) but the loop sucks :P
18:37:12 <josh> ahwell i can do that :)
18:37:27 <damian> you just can't do loops!
18:39:49 <damian> -
18:39:50 <damian> function weekend($first, $last) {
18:39:50 <damian> while ($first <= $last) {
18:39:50 <damian> if ((date('w', $first) == 0) || (date('w', $first) == 7)) {
18:39:50 <damian> return true;
18:39:50 <damian> }
18:39:50 <damian> $first += 86400;
18:39:50 <damian> }
18:39:50 <damian> return false
18:39:50 <damian> }
18:39:50 <damian> -
18:39:59 <damian> + ;
18:41:11 <josh> yeah thats exactly what i need, thanks :)
18:41:44 <damian> it won't work, but you get the idea
18:41:47 <damian> hopefully you know how to fix it.
18:49:39 <josh> only thin i can see is it should be 0 or 6 otherwise im blind :P
18:55:12 <damian> 0 = saturday, 7 = sunday isn't it?
18:55:21 <damian> ah, maybe not
18:55:34 <damian> i read two differnet hings, heh!
18:55:45 <damian> you have to convert the $first/$last into numerics instead of date
18:55:46 <damian> s
18:59:31 <Carson> as far as days are concerned, 0 == 7
18:59:34 <Carson> well, it should be :)
18:59:59 <damian> 0-6
19:00:00 <damian> 1-7
19:00:01 <damian> :P
19:00:59 <josh> ahh i was thinking that it was converted to strtotime() before the function
19:00:59 <damian> ....................................................................................................
19:01:02 <josh> but yeah thats correct :)
19:01:20 <Carson> man crontab
19:01:34 <josh> i think you should go into CLI for that :P
19:01:36 <damian> i know i'm going to get hit for this
19:01:43 <Carson> as far as i'm concerned, all counting with computers should start at 0
19:01:44 <damian> but what do you think i should use a database on a .NET application
19:01:47 <damian> XML or Access? :P
19:02:02 <Carson> i'd go with access personally
19:02:13 <damian> well, that's not the hit i expected
19:02:23 <damian> good work son! that's what i just started doing
19:02:25 <josh> XML!
19:02:35 <Carson> but i've never written one in xml, so thats the reasoning behind my choice
19:02:40 <damian> be quiet josh, you're just saying that because you're still in the 'xml is leet' stage of your coding experience
19:02:47 <Carson> and isn't access a metric fuck tonne easier?
19:03:02 <josh> i never use XML
19:03:03 <damian> when it boils down to it, they're about the same
19:03:04 <josh> unless its RSS
19:03:07 <josh> i like YML
19:03:10 <josh> YAML*
19:03:19 <damian> XML you basically just load the file, start at one end and go to the other end
19:03:25 <josh> is Access just MySQL or they are to diff things
19:03:29 <josh> MSSQL *
19:03:32 <damian> Access you connect to once, and you can probe it however you like
19:03:34 <Carson> similiar
19:03:44 <josh> XML can be anything if you use XPath
19:03:50 <damian> Access is a milliscule different to Microsoft SQL Server
19:08:11 <josh> you still do much web dev damian ?
19:08:17 <damian> soso
19:11:25 <josh> ahh fair enough
19:11:32 <josh> im guessing its just personal stuff then ?
19:11:39 <damian> pretty much
19:15:04 Join: jesusLOL ([email protected]) to #scripters
19:17:56 Quit: twig ([email protected]) Ping timeout for twig
19:18:07 Join: twig ([email protected]) to #scripters
19:20:05 Quit: jesusLOL ([email protected]) Ping timeout for jesusLOL
19:23:49 Join: jesusLOL ([email protected]) to #scripters
19:25:16 Quit: twig ([email protected]) Ping timeout for twig
19:43:46 Quit: jesusLOL ([email protected]) Ping timeout for jesusLOL
19:46:44 Join: twig ([email protected]) to #scripters
19:52:39 Join: jesusLOL ([email protected]) to #scripters
19:55:49 Quit: twig ([email protected]) Ping timeout for twig
20:30:22 Quit: josh ([email protected]) Killed (NickOp (Kill requested by JoshReal))
20:30:39 Join: josh_ ([email protected]) to #scripters
20:49:52 Quit: stefan ([email protected]) Exit: hopefully bbs, upgrade
21:16:27 Join: rabbit- ([email protected]) to #scripters
22:37:19 Quit: rabbit- ([email protected]) Exit:
23:12:17 Quit: wobelong ([email protected]) Exit: "Not all those who wander are lost." -J.R.R. Tolkien
Search this day's buffer:
