« first day (2175 days earlier)      last day (2777 days later) » 

1:02 PM
now a trick question to all SQL addicts :D
What is the standard SQL way of limiting a query to return only first 10 matching rows.
hint, limit it ain't.
nope
 
got ninjaed
why is limit bad?
 
no it is not bad
it is not standard.
 
guys, I cannot find any efficient way to manage this :| Anyone ever work with binary trees that deal with spatial data?
 
limit is an extension, the only net-positive contribution ever to the human-kind by Rasmus Lerdorf, the guy who made PHP "happen"
what we're after here is the standard syntax for returning first 10 rows
 
what does standard mean, anyways??
if it's the most common way of doing, I think it's limit
 
1:06 PM
@khajvah no, it is not.
there is a standard
which is exactly the opposite of the "de-facto" """""standard""""".
 
I would hate it if you were my interviewer.
 
so what's the answer
 
you'd fail me if you would start arguing about: "there is two definitions of standard: the dictionary definition of standard, and the one that I came up with just 5 seconds ago" :D
 
The answer is "I use an ORM so why do I care"
;)
 
user559633
standard: it exists in all the databases i use and i'll die someday
 
1:09 PM
ummm ... include a ROWNUMBER column in your select and then attach a where < n ?
 
@AnttiHaapala so the standard should be in the official SQL language reference?
 
"A technical standard is an established norm or requirement in regard to technical systems. It is usually a formal document that establishes uniform engineering or technical criteria, methods, processes and practices. In contrast, a custom, convention, company product, corporate standard, etc. that becomes generally accepted and dominant is often called a de facto standard."
 
@idjaw Ɓukasz Rogalski had a suggestion re: your import canonical the other day. See chat.stackoverflow.com/transcript/message/33076909#33076909
 
I don't know how standard rownumber is either though
sql is shitty
 
@tzaman bingo, that is correct.
 
1:10 PM
ew
 
the answer is
 
hmm, google sez there's also a FETCH FIRST command since sql2008
 
select * from foo fetch first 10 rows only;
so^ that is the reason why people hate SQL.
 
user559633
oh, that's "new" sql
 
@AnttiHaapala is this the standard?
 
1:12 PM
yes, this is (from) the standard.
 
yeah, where anything post-1998 is "new" :D
 
user559633
Are we defining standard as "ISO says so?"
 
Morning cabbage.
 
user559633
Hello Morgan.
 
Morgan cabbage.
 
1:12 PM
wth
 
@PM2Ring Oh. I must have missed that....I just looked my question again and it seems like his edit made it through.
 
@tristan that is not equivalence, but often an implication
 
cbg @MorganThrapp
 
@khajvah everything in SQL is as bad...
 
user559633
@AnttiHaapala Yeah, just wondering which of the standards and/or which of the standards committees we're considering authoritative here.
 
1:12 PM
I think this is an elaborate plot by Antti to turn us all against SQL, if we weren't already.
 
this is just an example how everything else is equally bad...
@Programmer ;)
 
user559633
@Programmer Yeah, he's getting paid by BIG DATA to convince us to use MongoDB
7
 
starred that ^
 
user559633
Yeah, that one just fell in my lap
 
I won 56 million in the EuroJackpot and invested them wisely in a certain corporation that is in database biz.
 
1:14 PM
"A technical standard is an established norm..." LIMIT seems pretty norm to me
Across all 3 relational databases I've used out of 50 or so
 
user559633
@AnttiHaapala I know very little about you, so this may be true.
 
NORM
 
de facto "standards" also include things like "microsoft word doc" :D
idk where that came from :P
 
1:16 PM
what r
 
@idjaw Ah right. I assumed he was going to write a new answer, I didn't realise he was going to modify your question. But I guess that's cool too. Personally, I would've mentioned it in a comment on the question or in here before submitting the edit, but hey. :)
 
@PM2Ring If it improves the question, then that's OK. Doesn't seem harmless. I do see the question getting a bit verbose if more edits are appended though.
 
doesn't seem harmless...
 
That sounds like you are up to something Antti
 
I assume you meant to say "Doesn't seem harmful" :)
 
1:20 PM
Antti, do you review trash others' code in codementor?
 
so apparently one of our pages stopped working when we migrated from third party library A to third party library 2, and nobody noticed. For a year.
 
\o/
 
user559633
counting with Kevin: A, 2, C, £, Ω, E
 
Maybe they were different 3rd parties, using different naming schemes.
 
@khajvah no
 
user559633
1:22 PM
I never let facts get in the way of a cheap joke.
3
 
I've gone to the next level, I only use fourth-party libraries now.
 
user559633
I have ascended and only write code in functionally-pure LISP that will never be forced to deal with the reality of production.
 
It was a typo but it sort of fits actual events because putting library 2 where library A used to go is like putting a square peg in a round hole.
 
Good morning, I am fiddling around with the idea of making a console interface for an app I've made. I've been directed to Curses via forums/blogs but I am having issues getting curses to function on my Windows 8 laptop (( currently complaining of PDCurses.dll not found )) ... Are there any alternatives to Curses?
 
user559633
@ToddLewden Yes, I would use a Linux. (more helpful: did the standardlib not work for you here? (more more helpful: curses is standardlib. my bad))
 
1:24 PM
Curses isn't natively supported on Windows but there's a module you can download that has the same interface
 
Cursing profusely tends to help.
 
@tristan Linux, Fedora in particular, is my favorite but I am making this for co-workers who are Windows users but need what I am making. :\ Annoying.
 
It's probably called "wincurses" or something, as per the usual windows port naming rules
 
user559633
Have you considered having your coworkers replaced?
 
Yes. Many times. Yes.
 
1:25 PM
@ToddLewden ubuntu on windows :P
 
Keep getting denied.
 
user559633
What does this console need to do?
 
@tristan they all come with Windoze preinstalled
 
Nope, I was wrong. It's called UniCurses
 
Well I'd just like a "GUI" of sorts to just let the user select different functions and watch for feedback from the script
 
user559633
1:26 PM
Asking because if it's simple, sometimes a while True, sleep, and reading input can be just fine
 
@Kevin , yeah that was my latest attempt . That's what is wanting PDCurses.dll
 
user559633
GUI meaning like a box model or are you fine with a:

Select one of the following:
1) Do a business
2) Make it cloud scale, for the enterprise
3) Change your system clock and send an email so it looks like you were working late last night
>
 
At this point I'd probably give up and use tkinter
 
@tristan yes it is perfectly acceptable^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^?^?^?^?^?^?^?^?^?^?^?^Csh‌​it.... no it doesn't work always.
 
@Kevin , Yeahhhh that's what I was figuring...
 
1:27 PM
github.com/Chiel92/unicurses <- seems to have the dlls
 
@Kevin I wouldn't
@ToddLewden don't give up!
 
LOL
 
found via this SO answer
 
Give up. Let the dirt cover you. Feel the Earth's cold embrace.
 
looks up time to drive to work....exceeds patience threshold....works from home
 
user559633
1:29 PM
@Kevin Lie down, try not to cry, have yourself a nap. Wake up, feeling refreshed.
 
@tristan Finland edition: Lie down, try not to cry, have yourself a nap. Freeze to death. EOL.
 
@Kevin , what might you make out of this traceback? ( pastebin.com/MWf5m7fC )
 
@khajvah I REFUSE
(doesn't work, sorry)
 
you are using Ubuntu, aren't you?
 
user559633
1:30 PM
lol, how is the redhat controlled trojan horse for salesbros "libertarian"
 
I feel like RH and red star should be swapped horizontally but maybe I don't understand government systems
@tristan wut
 
@ToddLewden You're missing a dll.
 
@KevinMGranger good point :P
 
user559633
@KevinMGranger fedora/centos is redhat's get-free-work/code/support and contact-these-people for contracts wing
 
user559633
1:32 PM
 
Yeahhhhh... That's what I figured... lol
 
I know that, I how is it a sales front tho-- OMG PUPPER
 
@tristan Fedora is pretty good
I don't get it when people claim it's red-hat's beta testing ground
 
user559633
@khajvah be...because it historically has been?
 
1:33 PM
Well, it's supposed to be
 
I used to be a gentoo user...
 
The community decides on what to implement / work on, it gets proven / tested / adopted, Red Hat decides it goes in the next release of RHEL
 
@AnttiHaapala I will star this so everybody will know
 
user559633
I like it when people say "okay, time to craft code" and put on classical. Meanwhile, I'm like "cracks knuckles time to get to work"
 
@khajvah is it a secret
 
1:35 PM
I once put that on to study. For an hour and a half. I think I'm now a sleeper agent for the Japanese special forces.
 
I switched away from Gentoo because
Mar 14 at 11:45, by Antti Haapala
@khajvah with Gentoo, you can have today that which competing solutions could complete only until ereyesterday
 
@AnttiHaapala yes, it should be like using emacs without evil mode
@AnttiHaapala I read it 5 times, but I don't get it
 
In college when I was rooming with my frenemy we played caramelldansen remixes at obnoxious volumes while racing to turn in a programming assignment to see who would crack first.
 
frenemy? You must have some good stories
 
@khajvah it would go like... I'd know that there is something cool in Ubuntu, then I'd know "oh I will compile it for my gentoo", then after 2 days I'd have it on my computer too!
 
1:38 PM
OHH! I found pdcurses.dll for my UniCurses issue... Thing is how do I determine where that lil dll should go? win32 folder like the rest of them you think?
 
That's usually where I stick my dlls.
 
@AnttiHaapala I like the Arch's version: I'd know that there is something cool in Ubuntu, then I'd know "oh I will get it from AUR"
and that's it
 
user559633
I'll tell you where to stick it (probably %windir%\system` or Python<version>\libs`)
 
@ToddLewden can't you put it in your program's directory?
 
@tristan , gunna give that a shot
 
user559633
1:40 PM
chat formatting broken
 
@KevinMGranger None come to mind but maybe I've just forgotten them because they all involved casual psychological torture
 
Someone keeps trying to register an Instagram account with my email address.
I'm inclined to just register even though I'll never use it, just so they'll stop.
 
Blah
 
user559633
Someone used my email address to sign up for some starbucks point system and I got a free starbucks gift card out of the spamming.
 
Spotify's family sharing is well done. Upon upgrading to a family plan, you can just give a link to "person" and person creates their own account by validating the address is the same and you have your own account under the shared subscription. So accounts are separate, don't have to share password.
I like
 
1:45 PM
That happened to a friend of mine, but with multiple services. So they signed into this person's facebook, and made a status asking their friends to explain to them how email worked.
 
@tristan you're welcome
 
Interesting, just the other day I was reading someone's blog and they said that they kept getting emails from instagram about an account somebody opened using their email address. Must be some kind of serial sign upper going around.
 
user559633
@idjaw If that was you, oh no :(
 
Guys there's a snake in my coffee
 
@tristan I feel like I need to just state for the public record it was not in fact me
 
1:45 PM
Who put python in my coffee >:(
 
cute
 
I'm so clever. +1 me
 
user559633
Ugh, someone put BEER in this coffee bottle
 
BEER day today
 
I had beer last night, and I got super tipsy so easily. I gave up drinking on the weekdays a few months ago and my tolerance is so small now :(
 
user559633
1:47 PM
@SterlingArcher Haha, same, but said ironically.
 
low tolerance is good
 
low tolerance saves money
 
So ... I've shoved this DLL in every directory I could think of relating to UniCurses, Python, and generic places DLL files go in windows... I still have that "Dll not found" error :| ... Any way to tease out where the Python module is looking to get said DLL? Or am I just going to have to spelunk through code?
 
Yeah, my gf doesn't drink much so it worked out. I cut out most boozing to lose weight, and it's had huge changes on me
 
user559633
@ToddLewden Traceback doesn't give detail?
 
1:48 PM
@ToddLewden justwindowsthings
@SterlingArcher drinking is the only joy in my life right now
 
user559633
@SterlingArcher Oh weird, yeah, it's easy to lose 5-10 pounds without beer and I find that I feel more awake if I don't drink.
 
Okay I made progress all the sudden
Hang on going to make a pastebin of the traceback
 
@tristan that's exactly my situation. I've never had an alcohol problem, but I'm determined to lose my gut for next beach season. And yesterday, when I left work it felt like 10am not 5pm. So much energy
 
user559633
@SterlingArcher Yeah, I'm thinking about cutting back as I've probably have at least a beer 5 nights out of the week for the past month, but it's legitimately the only way I've found that I'll stop thinking about work
 
( pastebin.com/mUe1kkAX) That's the traceback I am getting now with a script that is just "import unicurses"
 
1:51 PM
a beer isn't bad. 8 beers is bad lol
 
4 is ok
 
Try going for a run. I don't think about work when I'm at the gym
 
user559633
@SterlingArcher Yeah, I don't drink that much during the week.
 
drink 4
 
I missed a guiness
 
user559633
1:52 PM
Yeah, I'm headed out for a run in about an hour. I'm bootstrapping my own startup, so it's dumb-easy to get into the "busy trap" wherein I'm stressed and in front of the computer, even if I'm not being productive
 
user559633
@ToddLewden Oh, if you're ctyping, you specify the path to the dll.
 
Ahhh yeah I understand that. I've been slaying my D3 work here, so thankfully I don't feel stressed and my system dependency link-nodal graph is working perfectly
 
I'm guessing the ctyping is being done by the library rather than Todd's code itself
 
Bossman gonna be happy, which is good in yearly review season
 
@ToddLewden Try putting the dll in the same directory as your script.
 
user559633
1:54 PM
@SterlingArcher Ah, yeah, my backlog is "do everything" and "talk to every vendor"
 
@tristan good stuff man. Even though it sometimes feels like those things get in the way, it helps so much to even at least go for a walk outdoors.
 
yeah that's a little more stressful than D3 lol
 
user559633
@idjaw Yeah, I normally feel more clear after taking a walk, but it's so easy to do the "well, i just need to stare at it for 30 more minutes"
 
@tristan yeah, we really know how to easily listen to the voice we shouldn't listen to :)
 
@SterlingArcher didn't want to use sigma?
 
user559633
1:56 PM
It will be easier in some ways post-launch because I'll have a lot more structure due to meetings/sales/travel obligations.
 
haven't heard of sigma actually
 
@Kevin, What I posted as a traceback was the result of me putting the dll in the same directoy as the script. The dll is found ( yay ) but there is that odd error at the end of the traceback
 
@tristan You lost your head? o.O
 
Ok, next guess: the dll isn't compatible with your system. Dlls can be 32/64 bit, right? Maybe you got the wrong number of bits.
 
Guys, we have coffee, milk, AND cups. We have everything needed to have coffee at work now (except stirrers, but I'll live). This is a literal miracle.
 

« first day (2175 days earlier)      last day (2777 days later) »