« first day (249 days earlier)      last day (4771 days later) » 
01:00 - 07:0007:00 - 00:00

7:02 AM
It's official, my app has been waiting for review for too long.
@MichaelPetrotta - Okay, watched the video. I got it, I think.
Basically, BW does the whole thing for me but gives progress events. Seems like I still need to call the webpage using some other object.
 
We all rejoiced when BackgroundWorker came out in .NET 2.0. Well, I did, everyone else looked on with horror.
@Moshe: query the web page in your DoWork event handler.
 
@MichaelPetrotta Can I still use WebClient in BW?
 
@Moshe: Doesn't have to be another object: the event handler could live right inside your form.
@Moshe: yes, you can still use that.
 
effing internet ... goes out ... I reboot router ... nothing ... reboot router manually and firm disconnect ... nothing ... I call tech support. Last ditch reboot. They say hello, it connects ... FFFFFFUUUUUUUUUUU
 
Ok, but I think I mentioned that I've got several books and each book has articles.
 
7:07 AM
the important thing is that BW pushes the work to a background thread.
 
@MichaelPetrotta The app shows a list of books, when the user taps it, a list of articles/chapters appears
 
Do you want to push data to the listview piecemeal?
 
@MichaelPetrotta Meaning? (I'd like to mimic the table view on iOS, a la Notes or Mail)
 
Ah. Without knowing more, just kick off a new BW with each user request.
 
Interesting, and the BW will return complete only after the WC is done?
@drachenstern Ask em to send you a new one.
 
7:10 AM
It's my router :p
I refuse to use their PoS ... I would rather use my own PoS
 
@Moshe: yes, the BW will call the RunWorkerCompleted event handler when the DoWork method completes.
 
Oh, well rotsaruck then.
@MichaelPetrotta But the WC runs Asynch, no?
 
(that's really the same thing you said, but with more precise terms)
if the WC runs in the BW DoWork method, then it runs async, yes.
 
I'm saying that the WebClient object works asynchronously so it won't affect the BackgroundWorker... Is that incorrect?
Does the WC not run Async outside a BW?
 
the WebClient tries to run async where it can, yes. But the framework is smart enough to run synchronously if that's the calls you make.
 
7:13 AM
@drachenstern So if I stick it in the BW, it should do the right thing then?
Sounds like that's what I'm hearing.
 
Yes
If you don't call the async processes (such as BeginRequest and EndRequest)
 
if you stick it in a BW, use the sync methods of WC
 
@MichaelPetrotta How so?
 
most interesting methods of WC have sync and async variants
DownloadString and DownloadStringAsync, for instance.
(the former is synchronous)
 
Thanks
 
7:16 AM
another way of doing this, avoiding the use of BW entirely, is to use the WC async calls
but I like BW, lots of goodness
 
Right, but I need to get WC data into a ListView. The problem is that the WC is in it's own class, not the default form.
 
I don't know how to get the data from Class A (wrapper class with WC) to Class B (Form Class) and into the ListView. Since it's running asynchronously.
 
DoWork(MyWebServiceData data)
{
data.InterestingStuff = new MyWCClass().Download()
}
 
And then when it completes, data.InterestingStuff holds my data!
 
7:20 AM
@Moshe the async calls let you provide a callback
you know how with jQuery you can provide a callback for onSuccess and onFailure for stuff like $.ajax ?
 
@Moshe: yes. which is provided to your RunWorkerCompleted event handler
 
Yes and Yes
got it
I'm going to take a stab at this later. Bedtime!
Thanks
 
 
2 hours later…
9:00 AM
Ok, the turn down service is here. Creepy.
 
9:48 AM
HTML rap
 
10:21 AM
Give this question a chance, vote to reopen
-1
Q: Get all CSS properties

abdullah.abcoderI an developing a online website design system like yola.com. I want to get list of applied css properties with there values to any element. For example, I have a h1 tag and its css changes randomly by jquery ui when resizing and dragging, also changes its text decoration and also the text conten...

 
 
1 hour later…
11:27 AM
@NickCraver Can you push through a -> reverse synonym?
 
done
merged
 
 
1 hour later…
12:41 PM
5
Q: [jquery-1.4] but [jquery1.5] on SO

abatishchevI found some heterogeneity among jQuery tags on SO: jquery-1.3, jquery-1.4 but jquery1.5 Is it possible to rename jquery1.5 to jquery-1.5 and add the first as the synonym to the second?

gives myself the [precognitive] badge
 
1:06 PM
trying to think of anything I'm leaving off my laptop for mix
 
1:38 PM
I don't believe it... @RebeccaChernoff seems to be determined to prevent me from getting a SO t-shirt! Not only am I unable to earn one, but when I attempt to purchase one from the new store @GeorgeEdison discovered, I receive:
> Error from gateway: This transaction cannot be accepted
@TimStone will you please shake your fist at @RebeccaChernoff for me? Mine hurts too much from the hole I just punched in my wall. Kthx
 
10 hours ago, by Joel Spolsky
be careful buying things from the store before it's official...
 
@YiJiang oh come on, it's so much more fun to blame rchern!
 
@TheMountainException But of course! Though I think she might have left for Vegas already
10 hours ago, by Rebecca Chernoff
waves hands There is no store.
 
@YiJiang ah yes, but you forgot:
10 hours ago, by Joel Spolsky
I'm pretty sure it will take your money though :)
Apparently @Rebecca doesn't want my dirty money, only P.F. Chang's gift cards...
 
@TheMountainException What are you talking about? There is no store. There is no store.
 
1:47 PM
10 hours ago, by Yi Jiang
user image
Oh right. There is no store
 
Hrm, I see there's a good reason why timers in C# aren't imported by default
If I act on the same object outside and inside a timer, C# hates that and tells me to STFU and GTFO RTFM.
Perhaps rightly so ;)
 
2:10 PM
Waits for @RebeccaChernoff to yell "Oh look, y'all are talking about me *grumbles"*
 
hrmph
@NickCraver I've been trying to figure this out too. I think I've accepted that no matter what, I'll forget something, heh.
 
@RebeccaChernoff Well, you forgot to bring us, so that's Items 1...n, but otherwise what else do you need? :p
 
Nah, that was @NickCraver's job, blame him! q:
 
@TimStone Be good, children, and mommy Rebecca and daddy Nick will bring you to Vegas!
 
@YiJiang "Are we there yet?!"
 
2:18 PM
oy
on that note, goes to figure out what she's forgetting
 
alternatively my mistake was messing with WPF.
I love that googling for the error message gives solutions that are completely incompatible with whatever I'm using.
 
@badpssockpuppet They want to be helpful, just, to other people.
 
2:52 PM
Anyone know where I would ask about home sound systems on SE?
Aside from here of course.
 
3:21 PM
ugh, @YiJiang, you put that link in a comment on MSO? |:
 
@RebeccaChernoff Yes ma'am. Proceeds to jump out of the window
 
3:41 PM
@RebeccaChernoff Actually, I just realized, some mod (was it you?) came around and edited out the link to the transcript (to the original store URL) on that comment. Geesh, thanks mod, that really killed off the joke.
 
4:00 PM
@YiJiang I think the reason is above - the store isn't actually open
 
The consequences from ordering before it's official open could be dire.
 
@badpssockpuppet Well then obviously add a landing page which says 'Coming soon' or even a warning 'This isn't ready yet' to the store - the URL is out, anyone coming to this room can see the URL on the right
No point in killing every reference to it
 
@TimStone I like to live life on the edge.
 
4:48 PM
@Moshe Ask what about a sound system?
 
Had an almost serial down-vote on meta earlier today. 4 down-votes very close together. Not enough to trigger the vote fraud. I clearly have an "admirer"
 
5:24 PM
When I mention that currently we pay ~8.22 US$ / US gallon for gas, people from the States typically raise an eyebrow
 
I think I'd get depressed if I did the conversion for UK prices (£1.30+ per litre at the moment)
 
@ChrisF 8.04
still googling for "price of Gas" yelds images like this
 
It's over £5 per UK gallon -which is bad enough. It's not that long ago that they changed from selling it in gallons to litres because it went over £1/gal
 
6:01 PM
@badpssockpuppet I raised both eyebrows.
 
6:26 PM
@shog9 like if certain components are available. I was wondering about putting speakers in every room, attached to our main sound system.
 
6:37 PM
@Moshe You could try DIY... But if it's just a shopping question (vs., say, "how can I pull speaker cable into 4 rooms from the main system in the hall closet?"), it probably doesn't belong anywhere.
 
@Moshe You could use sonos -- I hear it is great, but it is not inexpensive.
 
7:26 PM
@Shog9 Thought so. Thank you though.
 
Whew.
Finally got my js doing what I want it to.
 
Anyone wanna test something for me?
 
@TylerChacha Sure.
 
sec, it just broke..
So, this is a popup that will run over other applications and load JSON into them from a server
Obviously it is gonna feel weird since there isn't an app to interact with, just the overlay
but, here we go
user: mso, password: msoisawesome
needs a back button..
 
@TylerChacha Yea, was gonna say.
Awesome CSS though
 
7:38 PM
Bah.. it is all made via jQuery..
all the GUI is about 500 lines long..
var d =  $("<div />", {
            "css" : {
                "fontFamily" : "sans-serif",
                "backgroundColor" : "white",
                "border" : "1px solid #ccc",
                "paddingTop" : "10px",
                "display" : "block"
            }
        });

        var o = $("<form />", {
            "id" : "storageLogin",
            css : {
                "border" : "8px solid #EEEEEF",
                "-webkit-border-radius" : "10px",
                "position" : "absolute",
All of it connects to 102content.com/storage, the API I created to save and load JSON
 
css inline?
 
@Hogan Well, it ends up being inline
I created all the HTML using jQuery
including styling it
 
jQuery does everything
 
(See that giant piece of code I just posted. It is the Login form)
 
@TylerChacha Yeah, I'm just sayin' The css inline is going to cause you pain in the future.
 
7:41 PM
unfortunately, without an app there isn't much you can see as a user..
Just the pop-up pains
Once I hook it up to an actual app you'll be able to see what it is doing
 
Is there a json object we can edit using the console and save? ;)
 
But basically it is meant to take applications that run on localStorage, and take the data they have and save it to a server
and then load it back
 
@mootinator Refresh until you don't get the login anymore. You can use $s.gui.save(dataObject) to save a dataObject
@mootinator And you can use $s.gui.load(function(data){ console.log(data) }); to view what each repository has in it
The main two commands are $s.load(repositoryID, callback) and $s.save(repositoryID, data)
I'll write up actually documentation later, but yeah. Each user has a set of repositories. You can read and write to them with load() and save()
it uses a token based authentication system..
some of this needs to be simplified though..
seems too complicated..
 
@TylerChacha - Hooray for no back button!
 
7:59 PM
I think the word 'repository' makes it sound too complicated...
Basically this API takes your Application's Data and saves it to a file on my server. Then you can go back and pick which file to open
Yeah. I like that idea. Files instead of repositories..
Now I just need to be able to let the user rename them..
 
@TylerChacha Sounds good.
 
8:25 PM
@TylerChacha How about "Magical Cloud Based Virtual Storage"
 
\O/ I finally loaded data into a ListView!
 
Not as compilcated
 
@Hogan Yea, Microsoft Windows Azure meets Apple iPad!
 
@Moshe Ah... I see your evil plan now.
 
@Hogan Heh.
 
8:58 PM
bbiab
Tschuss
 
9:16 PM
Nifty.
 
9:34 PM
in The Bridge on The Stack Exchange Network Chat, 33 mins ago, by Feeds
Posted by Alison Sperling on April 10th, 2011

Greg Drinkwater joins the Careers Sales team in the NYC headquarters. As Account Executive, Greg is working to expand our Careers 2.0 jobs board, and most importantly, helping our employer customers fill their open positions.

Greg lives on Long Island with his wife and stays busy chasing after his two rescue dogs, Frankie and Jed.  Frankie is an active Border Collie Mix and Jed is a 75lb German Short Haired Pointer who thinks he’s a lapdog.  Greg is a die-hard Boston Red Sox fan, and enjoys all things sports-related.  When not following the worst “best” team in baseball, Greg enjoys travelling, and listening to live music. …

in The Bridge on The Stack Exchange Network Chat, 26 mins ago, by fail badp
@Feeds I knew Joel would break a valve and eventually hire a dog
 
Although the right term is probably "blow a fuse"
 
heh fair enough
 
@badpssockpuppet At first I read what you had written originally and thought to myself "Valve hired a dog?"
 
@TimStone You mean Valve hasn't?
Dogs make great hat wearers.
 
9:41 PM
@badpssockpuppet Perhaps they have.
 
9:59 PM
0
Q: How to hide the divide by zero exception in php ???

user667752i tried this error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); but its not working and printing the error like this... Warning: Division by zero in C:\wamp\www\adman\webpage1\elearning.php on line 276

Now, I have seen everything.
 
@TimPost But his application relies on being able to divide by zero!
 
@TimStone I have no words. That rarely happens.
 
:D
 
10:16 PM
@TimPost I think this is more like what he's trying:
try:
  do_stuff();
except:
  do_stuff();
finally:
  do_stuff();
 
@badpssockpuppet You forgot the infinite while loop for good measure. He wants to do_stuff() a lot, because it's serious maths-business.
 
If programming is Superman, PHP is kryptonite: http://stackoverflow.com/q/5614879/50049
 
while you_are_being_stubborn_about_your_division_shenanigans:
  try:
    0/0
  except:
    0/0
  finally:
    0/0
you_are_being_stubborn_about_your_division_shenanigans = false
 
@TimPost Every time you try and suppress the division by zero warning, PHP should output an ASCII middle finger to the screen.
 
10:20 PM
@TimStone You need to foreach($finger as $birdie) and then test each one for true to see if the third one is raised.
 
Brilliant.
 
@TimPost Obviously you can keep count of the finger number by incrementing a variable first thing inside the loop :)
I think I've seen something like that somewhere though.
 
@badpssockpuppet Yes, also it is a serious mistake to assume that PHP will always have five fingers.
 
@TimPost jQuery can handle that.
 
<seriously>before you complain that Python has no for(;;) statement, consider the enumerate function.</seriously>
@mootinator #finger:nth(3) right??
 
10:24 PM
Something like that.
 
see I used CSS 3 selectors, I must be right
 
@TimStone I think we've concluded that it's far, far easier for PHP to simply moon the developer rather than give them the middle finger.
 
@badpssockpuppet Of course, because it's jQuery-compatible.
@TimPost Yes, if PHP crushed certain people with the weight of the moon we'd likely be better off.
 
Yeah, you could just say #finger + #finger + #finger but that would trigger all sorts of implementation specific bugs
 
I wanna know why everyone's loading more than one ID into a DOM ...
ID's are unqiue people... tsk tsk
 
10:26 PM
@drachenstern I was thinking that.
They should be .finger shee ;)
 
@drachenstern for the same reasons why one would want to suppress divisions by zero errors
 
@badpssockpuppet wait, we should suppress those?
 
@badpssockpuppet No no no, it's simpler to do this.. $butt_cheeks = array('cheek_one_exposed' => true, 'cheek_two_exposed' => true); If both are true, you did something bad.
 
28 mins ago, by Tim Post
0
Q: How to hide the divide by zero exception in php ???

user667752i tried this error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); but its not working and printing the error like this... Warning: Division by zero in C:\wamp\www\adman\webpage1\elearning.php on line 276

and we come full circle
 
$('#butt').show(2000);
 
10:28 PM
MISSION COMPLETE
 
For a nice slow moon.
 
@mootinator nah, they should be .left .carpus .metacarpus .index or the like ;)
 
Stack Exchange : Cuz it's easy to create black holes in chat.
 
@drachenstern #me .arm.left .hand .finger:nth(3):active
 
@badpssockpuppet that could work too :p
 
10:30 PM
@drachenstern - It works!
 
status-citation-needed
@Moshe eh?
 
@drachenstern I got the ListView thing working finally.
 
@Moshe care to elaborate? Did you do a WebClient or something simpler?
 
@drachenstern I used an Async WebClient.
 
Somebody just decided to follow me. I like this from their Bio:
> Systems Administrator, SysAdmin, Operations Manager... whatever. I WATSCHEN DER BLINKENLICHTEN.
 
10:31 PM
@Moshe how interesting ... so the callback was what you wanted was it?
 
@drachenstern Did you think he tried that selector too?
 
@drachenstern In the "complete" event handler/callback, I process the data. Then I fire a custom event so the Form knows to update.
 
Blinkenlichten -- that's right. German has a word for that. How cool is that?
 
@TimStone lol
 
I want to eat junk food, but I don't want to drive into the city to get some.
status-bydesign
 
10:33 PM
status-sutats
@drachenstern - Is there a way to make a ListView only able to select one item?
 
@Moshe I don't understand what that means
 
status-fail
 
how are you selecting it in the first place?
Do you mean to make it not multi-select?
 
@drachenstern Yes. The user should only select one at a time.
 
10:40 PM
I've looked for SelctMode, no dice.
Ah, thanks. Let me try that.
\O/
Cool, CBS Interactive has a self service Ad portal!
 
The little things. You would do well to spend fifteen minutes figuring out MSDN (and I suggest changing the view to either lightweight or scriptfree) before you do a lot more with C#
 
@drachenstern What are those? (lightweight and scriptfree)
 
two different interface layouts besides the classic one
look in the top right
 
top right of what? VS?
 
I'm a bigger fan of scriptfree but I know how the site works.
@Moshe if you'll read the first half of my comment, it should become apparent.
 
10:46 PM
Oh, silly me. MSDN.
facepalm
Gotcha.
Thanks
 
But my point was, understand how it's laid out so that you understand what they're showing you on the screen. MSDN is a HUGE resource for a windows developer
Understanding how it's laid out will make finding stuff a lot easier.
 
I thought going to google and typing site:msdn.microsoft.com [search] was what made finding stuff a lot easier.
 
nah, if you'll just put what you want in google that's fast enough. For instance: -> google.com -> ListView [enter] -> [click first link] -> done.
 
@drachenstern Except that will return WPF and silverlight related results too...
is tempted to try to write this for WinPhone 7
VB for WinPhone? score! (Well for me at least)
 
@Moshe the beauty of C# says that you can port it easily once you redo the interface ;) ... but having done it in XAML you should be able to more easily port it from the phone to something else.
@Moshe seriously? ;p
 
10:57 PM
@drachenstern I've worked with VB before, it's less like a programming languages, so easier to use for me, at the time. I'm learning though.
 
@Moshe interesting ... you do realize that VB and C# are almost a 1:1 pair of languages, right?
 
@drachenstern I'm not doing this in XAML. I'm working with WinForms.
@drachenstern Yes, but I just found the syntax more intuitive. That was before I touched iOS SDK.
 
@Moshe you are if you're writing a native app for WinPho7
 
@drachenstern I know, I know. But I was more comfortable with Dim str As String for some reason.
@drachenstern I know that too. Is Microsoft XAML at all like Adobe's Flex XAML?
 
@Moshe presumably yes. I don't have firsthand knowledge
 
11:00 PM
@drachenstern hehe
 
01:00 - 07:0007:00 - 00:00

« first day (249 days earlier)      last day (4771 days later) »