« first day (27 days earlier)      last day (3212 days later) » 

1:35 PM
0
A: Select all rows that have the tag X and Y for filter results

eumiroSELECT DISTINCT product FROM tags WHERE product IN (SELECT product FROM tags WHERE tag = 'x') AND product IN (SELECT product FROM tags WHERE tag = 'y')

help me guys
 
Good morning!
help with?
 
Help me to describe that guy that i'm zerkms
he missed me twice in that topic :-S
look over comments
 
LOL
I think he just got it...he's posting on yours now
 
yup ;-) after 5 minutes )
 
hahaha
 
1:56 PM
@Sagar: ooooof, i did it :-)
 
finally?
lol
well done sir, well done!
 
yup )
it took 45 minutes
 
 
1 hour later…
3:21 PM
Hello
Anyone in here?
Can anyone help me solve this little GUI problem in Python?
0
Q: How can I display a picture on a control in PyQt4?

SergHello, I'd like to display a picture on my form using PyQt4. Here is my code: import sys from PyQt4 import QtGui, QtCore class myWindow(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) #The setGeometry method is used to position the con...

 
@Serg I'm here, but I know nothing about PyQt4, but I have a question for you, how did you get the question to show like that?
 
@CodingGorilla Just link the stack overflow question as a single link.
And it'll one box it.
 
I've done that in the past and I just see the link, do you see the box, or do you just see the link?
 
Link something
 
0
Q: If my ASP.NET webapp isn't fit for runtime?

lanceI want to run some tests when my ASP.NET webapp comes online (preferably before anyone tries to access it), to make sure all of my runtime dependencies are available as I expect them to be. When is a good time to perform these tests (e.g. Application_Start, Application_Init, somewhere else, etc)...

blah, I swear I've done that before and it didnt work!
 
user69820
3:46 PM
@CodingGorilla the link has to be on a line on its own
 
3:59 PM
@CodingGorilla you around?
 
4:10 PM
For a Friday, it's pretty quiet in here...
 
@badgerr Isn't it?
It's Friday!! woot
 
Once again, almost beer o'clock. How's your week been?
 
I was done with 40 hours last night
Yours?
 
Mine's not over yet, I work Saturdays too. Working two jobs has good points and bad
55 hours by the time tomorrow is over
 
@Darknight I'm back, what's up?
 
4:23 PM
@badgerr :S What work do you do?
 
All OK in here?
 
Full time immersive simulation software engineer + iPhone game development contractor
@Sagar yourself?
 
@CodingGorilla I've been tinkering with WPF (silverlight) and I feel like I want to bash my head with a fossilised skunk
 
@badger software engineer + build/release engineer (same job though)
 
@Sagar what kind of software?
 
4:27 PM
locomotive data analysis
 
@Darknight It's not that bad :P
 
mostly C++, linux stuff
 
interesting, is that like, location tracking, scheduling, and stuff?
 
What kind of data does a locomotive generate?
 
Yea I know, I just can't get something as simple as ScaleTransform (via code) to work...grrr
 
4:29 PM
@CodingGorilla exactly what @badgerr said
plus weightage, load tons, route
and locomotive internals like brake pressure and stuff, but i dont work with that...too much physics for me :)
 
I've done some similar stuff visualising mining vehicle routes, what do you do with the data?
 
@Sagar Ah, cool, where is this data collected and stored? Does the loco haul around a SQL server on-board? ;)
 
@CodingGorilla lol unforunately not lol
flat file db
@badgerr IP can't say
 
fair enough ;)
 
lol
 
4:31 PM
@badgerr I'm pretty sure my father played a video game called "dispatcher" for most of an entire decade. Sounds Similar :P
 
lol
 
LOL
 
Oh, wow it still exists.
 
nice!
 
oy I'm an idiot. I've spent the past hour (ok I've been multitasking) debugging why I couldn't access D:\somedir\files and it just occurred to me that the problem is the test server doesn't have a D:\somedir\filesand the production server does ... damnit, I knew the code was right
 
uhh, you shouldn't hardcode paths (facepalm) :-)
 
puke @ hardcoded & absolute paths
 
@Gary db return
the db generates an export file, feeds me the path, and I suck it up
but in order for my export to work, I have to be able to read the file
and when the db server has d:\exports and I don't...
hell, test has D:\ is the CDROM
 
Program I'm working on didn't used to run at all unless it was in a particular hardcoded path. I win.
In the sense that I really lose.
 
guys, i need your help on multiplayer quiz game organization. I see the whole structure like that: server accepts N connections, saving them into array of sockets. Then it writes current question to all of these sockets. They keep waiting for the question in their input.
After they receive the question they wait user to answer and write answer to their output. Meanwhile, server listens to all the sockets in separate threads, then populates array of answers with values from all the players, NOT closes the socket and asks another question. Is it thread-safe or i'm somehow wrong?
 
4:52 PM
That depends
Whether you're writing the answers in a thread safe manner.
 
@mootinator mm, so what is "thread safe manner" exactly?)
 
Only one thread writes to shared data at one time.
 
yay debug code that affects behavior not expected to be seen anywhere else
 
Simply always writing player one's answer into a simple array of values into answers[0] you'd probably never run into problems.
If you were to have shared "string playerwhoansweredfirst" you'd want to do some fancier control.
 
@Anton about six weeks in a college classroom worth of explanations
 
4:57 PM
thats what i was going to do, player i's answer is written into answers[i]. its more java question, whether answers[i] and answers[j] where i<>j is safe or what
@Anton you suggest me to go back to classroom? :)
 
err
 
ehm?
 
You can always just wrap any bits of code where you write to a shared object in a synchronized(this) {} block.
Or reading from, I suppose.
 
oh, syncronized actually solves the problem.(im java newbie, had no idea about it). thanks!)
 
5:22 PM
ok I really feel dumb, what do I need to configure on IIS6 to let it read cross-directory for an ASP.NET app? Should I just hardmap the directory as a virtual and be done with it?
 
anyone good with makefiles?
 
@drachenstern hardcode it now, figure out later
 
@Darknight I think hardcode the mapped virtual is the best option
let's me forgo all the potential security settings later
 
@drachenstern what do you mean cross-directory? Outside the website's root?
 
one VirDir is way easier to tick off than "add user to this dir" etc
@CodingGorilla yeah
I want to forgo adding user perms
 
5:34 PM
Even a virtual directory won't do anthing for you
 
it won't
also, I just realized
I'm a twice dumbass
I forgot to build the damned directory on MY machine
 
ouch
 
:S
 
Nope, that's an IIS thing, ASP.NET deals directly with the file system, so you would just need to say: File.Open("C:\myoutsidedir\test.txt") and give it access via NTFS permissions
 
can't you use Impersonation in the web config, and then add that permission on the target folder (that is outsite of your site)?
 
5:36 PM
@CodingGorilla so I have to give it userperms?
@Darknight I'll repeat
3 mins ago, by drachenstern
I want to forgo adding user perms
apparently COPY means nothing to chrome, and being frustrated by bad copy/paste causes me to get the wrong message
I think I have it straightened out now
I want to prevent doing that crap
 
@drachenstern You would need to give permissions to the IIS Application Pool identity, which on IIS6 is normally "NETWORK SERVICE"
 
and on IIS7 is different
it may or may not be network service
 
No, on IIS7 its not network service unless you make it that. IIS7 introduced "Application Pool Identities"
 
exactly my point
and right now I'm the only one that groks IIS on my team
 
So did you get it working?
 
5:44 PM
yes and no. I think my download class is busted from the word go, cos it works sometimes and sometimes no
I'm actually accessing the file and reading it into a bytestream with no other config, but it IS running in debug as me, so that's a perms issue
what I need is to get it to force the download
 
So you're trying to read a file off the HDD and force it to be downloaded?
 
yarr, and we've got a little utility class we've used for a while, but it's not always been reliable, and I've tried to avoid a rewrite
 
IC... Good luck then ;)
 
oh it gets better
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near 'this is a dummy file'.
guess what my dummy file says?
 
'this is a dummy file'?
 
5:54 PM
so the page sees it :|
 
Is this an .aspx page?
 
yarr
 
And this is what you're using to try to do the download?
 
huh? no that's the error tossed on firebug
console error
the page sees the file but isn't being told to download anything or something
 
Oh, so it must be trying to do some AJAX stuff...
 
5:57 PM
yarr, the page does
I think
so my problem is I've not thrown myself into this problem wholly, I'm still thinking about some db stuff
 
That means its trying to send the content back to the page as an response to an AJAX request... that's a no-no
 
I'll be a sunuvabitch, who wrapped the GD page in a updatepanel?
 
Some idiot who thinks everything should have an update panel probably :P
 
apparently
 
that reminds me, did you figure out the issue yesterday with the System.Web.Extensions?
just curious
 
6:02 PM
yarr, recompile on a machine from 2007
literally
the last time that machine was out of the drawer was in 2008, it still had the 2005 build environment on it perfect
avast was three years out of date
the battery is crap tho
 
is it talk like a pirate day?
 
I think if I merely add an async postback on that updatepanel it'll cure my ills
but I'll have to add the IDs dynamically I think
 
heh, that was like a month ago
 
I'm pretty sure I fought this particular bug before and won without having to remove my coworkers code
@Gary no, a buddy of mine does that and kicks me into that mode every so often
 
heh, odd
 
6:05 PM
Can someone sport me a couple of bucks, I wanna get something to drink from the vending machine....
 
I'm trying to copy and paste that to vending machine... not working ;)
 
I'm hungrier than before I went for lunch somehow
@CodingGorilla Does the vending machine take paypal?
 
@mootinator It damn well should!
@mootinator You should patent that idea quick, while you can
 
6:13 PM
Indeed.
 
I'm pretty sure there are some that do already
 
Take payments from paypal?? I've seen ones with CC swipers on them...
 
There are probably some you can shake an iPhone in the general vicinity of to pay by now :P
And if there aren't any.
There's a noob asking ObjectiveC questions on SO trying to implement one as we speak.
 
lol
@CodingGorilla thanks for the help on the fix.
now to figure out where in my .cs to add the code to make the dynamically added button an async trigger
   UpdatePanel.Triggers.Add(
        new AsyncPostBackTrigger {
            ControlID = Button.UniqueID,
            EventName = "Click"
        } );
unique names stripped to protect the innocent
I love intellisense
 
6:21 PM
But it's alredy doing an Async postback?
 
no, this will cause the button to respond to the page differently... or ok, maybe I need the sync postback
ok so I need a postbacktrigger, still the same effect tho :p
but good catch, I'ld have caught it on debug
 
well either would work, ideally what you would want to do is take the postback and then redirect them to a download handler (.ashx)
 
test1
ideally yes
however, that requires setting up more infrastructure and foolproofing it against my coworkers
who have shown that they can do silly things like inject updatepanels for no good reason
 
The issue is that when using an ASPX page, you have to make sure nothing writes to the output stream before you attempt to change the headers and such, or you get exceptions
that's likely where your aforementioned "unreliability" comes in
 
I'm quite certain of it
I've wanted to do the download handler for some time
I tried to get him to do a thumbnail handler
that was not so successful, so I decided to not write a download handler because ... one would think image thumbnails would be easy
 
6:28 PM
gotcha, I hate working on other peoples code; everyone just needs to do things the right way -> my way
 
lol, see!!!!
I just don't fathom how they don't grok how to do handlers, for things like thumbnails and the like ... would be so much easier
 
I'm back!
 
@Darknight WB, we sooooo missed you....
.... no really ...
 
6:44 PM
cool, about this WPF scale transform...
ah damn! I gotta go again.. be back later ------*shoots off*
 
Wouldn't it be a lot easier to tell who's in the room with names rather than pictures?
Random thought of the day
 
@DanielStraight I have every SO user's picture committed to memory....
 
I guess really it's just a way to illustrate my laziness then
 
lol
@CodingGorilla do you really?
 
@DanielStraight no because I associate avs with people I want to see. A picture is worth 1000 words, no?
I think it would be horrid to scan a list of names
 
6:59 PM
I remember screen names much easier than pictures
 
also with the tagcloud approach I can see who's active and who's lurking
 
especially because they're reinforced here
everything you @ someone, you get reinforcement
 
@DanielStraight so quit using a default gravitar and use a pic, you'll notice others pics more
I also notice when others change their gravatars
 
@Sagar as far as you know
 
The whole gravitar concept is creepy to me
 
6:59 PM
@drachenstern that is actually true
I've started noticing picture more often since I changed mine from a gravitar
now sure why
@Coding Actually I have to, for a few people (the dailies)
ugh meeting time...anyone wanna switch places?
no one? really? :(
brb
 
I just finished a meeting, so I'm good
 
I'm trying to push some code, so I'll stay and compile
 
This day needs to hurry and get itself over with.. I wanna go home
 
@CodingGorilla How many more hours do you have for today
 
3, its 2pm EST
 
7:04 PM
I've got 3 in CST, but I got here at 7.
 
9 hour days?
 
1 hour for lunch
 
7a - 5p = 10 hours - 1 hour lunch = 9 hours?
 
Hello, anyone here from China/Japan (or used to using websites in Chinese / Japanese)?
I have a simple localization question
 
I get off at 4... 3 hours left in CST
 
7:08 PM
Sorry good old fashioned american white boy here :)
@DanielStraight Oh gotcha... der...
 
7:33 PM
surprisingly short meeting
i guess not a lot is going on
 
apparently not
 
It's friday... no one wants to work
 
damn day is going so slow!
What plans for the weekend, gentlemen?
 
Sleep, eat, Sleep some more
 
Po-boy festival in new orleans
 
7:45 PM
nice
@DanielStraight How is NO weather around Thanksgiving?
 
8:04 PM
It's nice right now... sunny, 50s at night, 70s during the day
It fluctuates a lot though. Sometimes it's like this, sometimes it's 10-20 degrees cooler.
 
nice
thanks
 
Anyone good with CSS selectors?
 
8:19 PM
@CodingGorilla what's the question
 
#feature < a = is an A tag as a child of an element with the #feature id, right?
 
no, the > is the element you want
#feature > a
that equals (for example)
<div id="feature"><a href="myurl">linky clicky shiny</a><a href="gothere>um, no</a></div>
both the a's will get matched
but here, they won't!!
<div id="feature"><div class="featurewrapper"><a href="myurl">linky clicky shiny</a><a href="gothere>um, no</a></div></div>
 
right, your first example is exactly what I have and want
 
8:34 PM
Nothing like getting a phone call on a Friday afternoon asking for an update on a new project nobody bothered to tell you about.
2
 
@mootinator Oh, I love that, especially when it's followed up with a: "When can I expect to see it?"
 
@CadeRoux Going to be at po boy fest?
 
@DanielStraight Yes. Wife is working the kids area (youngest one is still at Abeona on Oak, and oldest just moved on to kindergarten). Looking forward to the Banh Mi.
 
8:57 PM
Who's doing banh mi?
 
@DanielStraight Some place in the East. But they aren't on the list this year. I don't know if that means they aren't going to be there or what. Menu looks like a lot of new things, too. I'm sure there will be plenty of good stuff. Looks like chances for rain, though.
 
Yeah. Rain would suck, but I'll brave the rain for the po-boys. I'm most looking forward to the smoked duck w/ citrus jalapeno marmalade from palace cafe and the bbq oyster from redfish grill
 
@DanielStraight Yes, that one caught my eye.
@DanielStraight Not seeing the one I likes so much Grand Isle’s Shrimp Caminada and it was Dong Phuong Bakery which had the Banh Mi.
@DanielStraight Don't know how I missed this one: Fried Chicken Livers & Coleslaw Po-Boy - I love chicken livers.
 
9:22 PM
Does look like some good stuff. I wasn't there last year.
 
@DanielStraight Well, it looks very different this year. I would try to get the bread pudding poboy - that seems to sell out quick - I missed out every year they had it.
 
I'll probably be there right about at 11, so maybe I'll hit that first. Would work better as a dessert, but I definitely don't want to miss it.
 
@DanielStraight That's the problem. You'll have time to eat it for dessert if you get there that early. But it's done by 3 or 4.
@DanielStraight I guess we should have a New Orleans-only chat room.
 
Is there anyone else though?
 
@DanielStraight Nobody else here. The chat rooms used to be a lot busier during the beta. They poo-pooed the idea, but I think long form articles are a more valuable addition to SE sites than chat. There are lots of sites whose forums are not that useful but the articles (and daily newsletters etc) are really valuable - like SQLServerCentral. Add in appropriate voting obviously for peer review. At one point, I think SQLServerCentral started an SE site, but then SE changed their model.
 
9:33 PM
I am always amazed at how quiet it is in here
 
LOUD NOISES
 
And it's such a good implementation - I mean really good compared to a lot of chat implementations - shame, really.
 
It is. I think browser-based is the way to go.
 
@DanielStraight Yeah. But what is a browser any more? The browser of today is nothing like the browser of 1993 - with JavaScript and HTML + HTTPRequest - and that's before you even talk HTML 5. Didn't someone say anything that could be written will be written in Javascript. I remember I wrote an entry of Conway's Game of Life for the 5k competition - it supported run-length encoded life files.
 
Well, let's put it this way: I can't use IRC at work, but I can use this.
I didn't have to download anything special
Those are both pretty cool things
 
9:41 PM
@DanielStraight Yeah, and eventually everything will tunnel through port 80. ;-) I think there are IRC clients which are fully web-based. But I've never been that into IRC.
 
IRC is also limited by being a standard... standards are usually good, but SO can do anything they want here
but I don't have much IRC experience either
I just know it's really, really easy to use this chat
 
There's so much spaghetti code on my screen right now I could probably throw my laptop at the wall and have it stick.
 
Youtube if you do
 
9:56 PM
alright, time to go home
everyone have a good day
@CadeRoux enjoy the fest
 
@DanielStraight see you round
 
does paint.net have a smudge tool (to blur specific areas of a photo?
 
10:19 PM
Mamma Mia! Spicy meat ball!
 
 
1 hour later…
11:25 PM
it is saturday but all the office is at the work :-S
 
11:55 PM
Anyone know much about SSH ?
 
@Raynos: what actually you need?
 
Im creating a keypair to use with github but cant access the file to read the public key bash ./id_rsa Permission denied
It has no passphrase
 
well, have you already created your keypair?
 
This is in ubuntu using ssh-keygen
 
how did you create them?
 

« first day (27 days earlier)      last day (3212 days later) »