[00:03] atomic counters? nice [00:03] ballen: should be enough [01:23] *** ballen is now known as ballen|away [03:17] *** nk has joined #arpnetworks [03:17] hello [03:19] can someone tell me if irc is allowed n the vp's [03:20] nk: hey nk [03:20] hello [03:20] nk: yeah, IRC is allowed, but if you get DoS'd I'll get mad ;) [03:21] and probably null route your IPs [03:21] nk: where'd you hear about us? :) [03:21] nah, just for my eggdrops never got ddosed on my other vp's [03:21] google it hehe [03:21] and on webhostingtalk [03:25] cool [03:26] nk: you should be fine then [03:26] :) [03:26] a lot of the guys in here are probably connecting from their VPS, haha [03:28] have to move from one of my old vps cause after 3 months they now say i cant user irc on it [03:28] i dont remember they having any restriction.. how well i move on to other [03:28] lol [03:28] nk: o'rly? sucks [03:29] yah just have to transfer all the stuff, waiting them to unsusped my account [03:29] was having 2 many downtimes also so i guess its for the best [03:29] it's kinda stupid not to allow IRC, but I understand it gets a bad reputation [03:29] well no one needs downtime, cancel 'em [03:29] maybe they were getting DoS'd b/c of IRC ;) [03:30] in like 3 months i opened at least 10 tickets about not been able to get in the vps [03:30] nah, i asked if it was anything i was running [03:30] they said no lol [03:31] now i see they didnt even looked what i was running [03:31] or they will saw the bnc and egg [03:31] i don't mean from you, i mean in general [03:31] maybe someone else got dos'd cuz of IRC and that is why they banned it ;) [03:31] do you mind saying what provider that was? [03:31] oh, yah possible [03:31] but i guess it was the package i had [03:31] that didnt allowed [03:32] santrex [03:32] ah [03:32] santrex? never heard of 'em [03:32] sidenote, the X7DWN+ motherboard is one bad ass board [03:32] * up_the_irons is building a new box [03:32] but still got lots of downtime, irc sory beside [03:32] gotcha [03:33] people calling me, gonna run bbl to sigh up with u guys as soon they unsuspend and i take off my stuff from old vps [03:33] nk: ok cool, ttyl [05:15] *** heavysixer has joined #arpnetworks [05:19] heavysixer: wudup [05:19] up_the_irons: yo [05:19] how are things going? [05:20] good, u? [05:20] Nat_UB: you rebooting?:) [05:21] yea [05:21] up_the_irons: good [05:22] Nat_UB: Nagios knows all [05:22] Wow...caught me [05:23] Think it's hung up... [05:24] vnc in [05:25] I'm in...want's F5 pressed...is there an option key to send F5 via VNC? [05:29] Nat_UB: i just hit F5 [05:29] what does it want F5 for? [05:31] *** heavysixer has quit IRC () [05:32] Still not doing anything says Boot: F5 [05:33] Nat_UB: if you get out of vnc, i can take a look [05:33] All yours [05:37] Nat_UB: you just had to hit F1. it tried to boot from your 2nd volume (the non-bootable one) [05:38] hmmm....I tried that... [05:38] You just hit F1 or is there a CTLR-F1 needed? [05:40] Nat_UB: just F1 [05:40] thanks! [05:42] np! [06:04] anyone happen to know VBA? [06:26] baklava: VBA? [06:26] visual basic... something? [06:26] for applications....like Excel, Access etc [06:27] yea [06:27] this column is getting really annoying [06:37] heh [07:04] *** heavysixer has joined #arpnetworks [07:05] up_the_irons: ping [07:05] heavysixer: pong [07:06] uh oh, I think I got it [07:06] up_the_irons: hey i am doing a query where i count the number of occurrences per date, and there are days where there are no occurrences at all, is there a way to get sql to return 0 for that date or do I need to just do that after i get the data back? [07:08] heavysixer: depends on how you do the query [07:08] up_the_irons: i am doing a count using "between" [07:09] ok [07:10] up_the_irons: SELECT count(*) AS count_all, date(created_at) AS date_created_at FROM `patient_records` WHERE (`patient_records`.`created_at` BETWEEN '2009-08-21' AND '2009-09-20') AND ((`patient_records`.`new_customer` = 0) AND (patient_records.deleted_at IS NULL OR patient_records.deleted_at > '2009-09-20 14:10:15')) GROUP BY date(created_at) ORDER BY date(created_at) [07:11] * up_the_irons shrugs [07:11] up_the_irons: btw all that sql got generated from this: PatientRecord.new_customers.count(:conditions => { :created_at => from.to_date.to_s(:db)..to.to_date.to_s(:db) }, :group => 'date(created_at)', :order => 'date(created_at)') nice huh? [07:12] mapping from one language to another, doesn't really impress me ;) [07:12] i like the hash syntax [07:12] it's very compact [07:13] up_the_irons: so i guess my question is how do i get 0's returned for those dates? [07:13] you said it depends on how i am doing the query. [07:13] * up_the_irons shrugs again [07:13] i don't fart SQL, so i dunno ;) [07:14] k ;-) [07:19] Wouldn't {:created_at => (from.to_date .. to.to_date), ...} also work? Is the #to_s required? [07:20] heavysixer loves to overuse .to_s() [07:20] ;) [07:20] up_the_irons: it's true [07:20] mike-burns: thx ;-) [07:20] Ah okay. [07:20] will fix that now [07:21] Well I don't know if it will work, but it strikes me as something that should. [07:21] up_the_irons: i am just creating the ranges first and adding the arrays together at the end [07:21] (3.days.ago.to_date .. Date.today).inject([]){|accum, date| accum << [date,0]} [07:22] ok [07:22] mike-burns: ah i see what you are saying no I need to use to_date because the first attribute might be a Time class and then I need to call to_s to get the correct formatting. [07:22] needed by the db. [07:22] Ah okay. [07:23] but maybe rails will do that for free for me since i am using the hash syntax [07:23] that seems like something it should do. [07:23] Right. [07:23] I figured you had the tests for this method and could quickly try it to see if you could reduce characters. [07:24] mike-burns: i do have tests but in this case i might be converting something that is already converted later [07:24] so it would not break a test [07:24] Oh okay. [07:25] yeah it appears to work without doing the formatting cheers for the help [07:26] Eh, still doesn't solve your original question. And I have no idea the answer to that. [07:26] no worries i'll just use array math [07:26] after the fact. [07:27] How many records are you loading into that array? [07:27] yeah good point [07:27] could be thousands [07:28] select count(id) from patients group by date(created_at); [07:28] That will give you counts including 0? [07:28] doesn't appear to [07:30] Oh, true, it won't. [07:30] No it'd need to iterate over existing date data. [07:30] right. [07:30] You could have another table with every date in it and join with that. [07:31] mike-burns: mmm don't like that idea ;-) [07:31] Nor do I. [07:31] someone should have done this already :-) [07:31] Why do you need the zeroes? What are you using that for? [07:32] mike-burns: plotting [07:32] When you iterate over the results, can you instead iterate over (from.to_date..to.to_date) and pull the results from a hash mapping date to result. Use Hash.new to default the value to 0. [07:33] mmmmm [07:36] I really cannot think of another solution. Oh, maybe instead of maintaining a table of every date you could use a subselect that creates such results. [07:36] This idea is very fuzzy in my mind and potentially impossible. [07:36] yeah i am reading about it now [07:36] http://www.simple-talk.com/sql/t-sql-programming/find-missing-date-ranges-in-sql/ [07:37] Yeah, that's what I meant! I didn't realize that'd be some complex though. [07:37] s/some/so/ [07:37] *** nk has quit IRC () [07:38] i'm good at finding problems like that ;-) [08:15] *** heavysixer has quit IRC () [08:18] *** heavysixer has joined #arpnetworks [08:37] *** ballen|away is now known as ballen [10:27] *** nuke^ has joined #arpnetworks [10:47] *** ballen is now known as ballen|away [10:50] *** ballen|away is now known as ballen [11:23] up_the_irons u around? [12:17] or anyone else from staff [12:17] :p [12:18] doesn't look like it, anything you need specifically? [12:19] was just wondering if would be possible to customize a vps to decreace the BW and give more ips instead, i dont use barely any BW [12:20] seems likely [12:20] not sure what the ratio for tradeoff will be [12:20] could just email Garry [12:20] ok ty, will wait for some anwer on the email or see if he coes online [12:21] i send on the "contact" area [12:22] he'll get back to you, but since its the weekend I'm not sure what he's upto [14:01] hey nuke^ [14:01] nuke^: it's possible to customize, i'll reply to your email [14:02] yo [14:02] im here [14:03] :) [14:04] nuke^: how much b/w do you need, and how many IPs? [14:04] ips cost more than bandwidth! [14:04] nuke^: how'd you find us? :) [14:04] im nk, i talked to u earlier [14:04] :p [14:04] <- not staff, just my unnecessary opinion [14:05] oh ok [14:05] i need 5 ips [14:05] so a /29 [14:09] bw like 15 will be enough [14:09] ok [14:09] nuke^: just replied to your email [14:10] ok [14:10] checking [14:10] cool [14:10] where do i order [14:10] nuke^: https://www.arpnetworks.com/order?product=vps&vps_plan_1=1 [14:10] i'll know it's you [14:11] select the /29 [14:11] ok [14:11] under "extras" [14:11] and i'll adjust the bandwidth after [14:11] some dude wants to tunnel the VNC [14:11] ugh... time to set up that console server... ;) [14:12] heh [14:13] so how bandwidth are you trading for a /29? [14:15] ballen: 50GB -> 25GB [14:15] basically cut in half [14:15] 1 gb per /24 [14:15] im down [14:15] i'll give you 100gb, i want 100 class C's [14:15] NOW [14:15] done the order [14:15] i have class C's, but they ain't cheap ;) [14:16] cash money [14:16] cash monies [14:16] nuke^: thanks, it'll be provisioned today (most likely at night) [14:16] nuke^: thought you needed to wait for your other host to unfreeze your account ;) [14:16] already done [14:17] i have all the stuff on me now :) [14:17] oh nice [14:17] can i pm u 5 hosts so u rdns the ips to them, the old ones i use on the other box [14:20] nuke^: sure [14:21] cd $starbucks [14:25] i lied [14:25] nuke^: didn't get your order btw [14:25] nuke^: you sure you got to the "Thank you" page?:) [14:26] hm nah i did submit order and got me all fields reseted and thats was it [14:26] guess was something wroung [14:26] doing again [14:27] nuke^: start from arpnetworks.com/vps, select the $10 plan. maybe there was something wrong w/ the link I sent you [14:27] done now [14:28] nuke^: got it, thanks! [14:28] nuke^: you're a debian guy? :) [14:28] yeah, i like debian, ubuntu, i dont mess around much on linux, only on my vps's [14:29] who wants to convince me to change my vps to freebsd [14:29] i feel like i've stabbed slackware in the back [14:30] nuke^: cool [14:32] bbl [14:33] jeev: change your vps to FreeBSD [14:33] why [14:33] because its better [14:34] hmm [14:34] i think that's convincing enough [14:34] good [14:47] *** heavysixer has quit IRC () [15:31] *** ballen is now known as ballen|away [15:43] *** heavysixer has joined #arpnetworks [15:44] *** ballen|away is now known as ballen [15:44] *** heavysixer has quit IRC (Client Quit) [16:07] *** ballen is now known as ballen|away [16:38] *** ballen|away is now known as ballen [17:02] *** heavysixer has joined #arpnetworks [17:25] w00t, successfully installed OpenBSD 4.5 on a VM for the first time [17:26] toddf: your notes worked perfectly [17:27] up_the_irons: n3rd [17:27] heavysixer: oh you don't even know [17:29] up_the_irons: the inject method is really cool [17:29] in ruby [17:29] i just learned that today [17:31] heavysixer: man you're late to the game ;) [17:31] up_the_irons: i noes [17:31] srsly [19:07] up_the_irons: wow!!!! [19:07] up_the_irons: kent beck added a pledgie campaign [19:08] Kent Fucking Beck [19:08] anyone around [19:18] Kent Beck just did a FLOSS weekly [19:47] ballen: what is FLOSS? [19:48] http://twit.tv/floss87 [19:48] podcast [19:49] "Free Libre Open Source Software" [19:49] Those are indeed words. [19:49] indeed [19:51] ah [19:51] cool good to know. [19:51] *** heavysixer has quit IRC () [19:52] *** Limb has quit IRC ("Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/") [20:11] *** timburke has quit IRC ("Leaving") [20:11] *** timburke has joined #arpnetworks [20:36] *** ballen is now known as ballen|away [20:47] *** ballen|away is now known as ballen [21:35] up_the_irons: the instructions are valid through current still, would be nice to know if latest qemu with kvm support would manage to do better than the kvm userland piece or if updating the kernel/kvm userland piece would change anything, but thats for your new box to test, right? ;-) [21:58] *** ballen has quit IRC (Read error: 113 (No route to host)) [22:42] toddf: yup, for a new box [22:43] i've spec'd one out, just waiting for a few more funds to collect before buying [22:58] toddf: send me your pub key when you get a chance and i'll add you to my new customer console server i'm building / testing (running OpenBSD 4.5 :) [23:24] toddf: is there something equivalent to FreeBSD's "security.bsd.see_other_uids=0" in OpenBSD? [23:43] i imagined that being pretty universal, heh. [23:45] obsidieth: i don't see it in OpenBSd sysctl though