« first day (203 days earlier)      last day (4811 days later) » 

9:00 PM
I'm actually pretty close to generalist... need +5 in , +5 in , +6 in , +6 in and either +7 in or a few others...
@MarcGravell I did java for one semester in college. That was about it.
 
I feel like I should be ashamed of myself for not answering more Java questions now.
 
@TimStone Make it up to yourself with an SVN question:
2
Q: Is it safe to set SVN to ignore . in a directory that should be version controlled?

Lord TorgamusYesterday, I asked a question about why directories can appear to Subclipse to contain uncommitted changes when they actually don't. The answer was that setting svn:ignore status on the pseudo-directory . counted as a modification, but Subclipse didn't show anything because it doesn't deal with ....

 
Still wondering how I get "Tenacious" and "Unsung Hero" at this point, though?
 
@MarcGravell I don't think it's possible once you surpass a certain point. Well, not practically anyway
 
@MarcGravell I figured it was cos you run the dbs
 
9:02 PM
insert badges values (...) ;)
 
"Please do not vote this answer either up or down. Cheers! -Marc Gravell (who would like to remind you, apropos of nothing, that he is a dev)"
 
Let's see, I'd like a few of them as well while we're gaming the system...
 
@MarcGravell We already sing your praises (after assigning blame), no badge for you!
 
Oh hey, look what I found.
 
I don't want to be too greedy, just 100 Great Answer badges will suffice :-P
 
9:03 PM
@PopularDemand o_O
 
A giant repository of if(boolean == true) conditions
 
you meant if(boolean) there right?
 
Is that repository in reality part of the production code you have to work with?
 
@MarcGravell That's what I'm changing them to...
 
Screenscraping google, odds are it wont work.
How do I see the resultant data?
Google seems to be smarter than that. It's returning nothing, unless my AJAX call is botched.
 
9:05 PM
@TimStone Yes, though giant may have been an exaggeration. There were 3 of them.
 
    function getCityAndStateFromZip(zip){
    	//google.com/#hl=en&q=QUERY
    	$.ajax({
      	url: "http://google.com/#hl=en&q="+zip,
      	success: function(data){
        $('#result').html(data);
        _alert("Ajax success. \n " + data);
        }
    });
  }
^_[Why would that fail?]
 
@Moshe cross site?
 
@drachenstern Oh, duh.
 
@PopularDemand Did you somehow modify that directory?
 
How would I scrape Google then? I've never done that before.
 
9:07 PM
@Moshe from the server
 
/me is confused
 
@TimStone Not that I recall. Certainly not intentionally.
 
@Moshe I think it's possible with a callback. You can do it with one of Yahoo's tool.
 
@Moshe PHP, cURL and DOM.
 
Wait, I'll try to find it back, I tried it a long time ago
 
9:09 PM
Can you award a bounty on your own answer?
 
@GeorgeMarian This is a bit much for ZIP code parsing. I'll get to this again soon.
Thanks folks.
 
I was just being a smartass. :)
 
@GeorgeMarian S'okay
 
@PopularDemand Hm, can you run svn proplist -v . and see if there's anything there? I'm unsure if that actually means it has to be a SVN property, or if it could just be anything.
 
@ircmaxell that ... doesn't make any sense
> can I make my water wet?
 
9:11 PM
I guess that's really not in the direction of your question, but I don't see a reason why this scenario should have come up in the first place, heh.
 
@drachenstern It does. I answered a question, but think the question actually deserves some more visibility. I would offer a bounty, but if there's no better/other answer I want to be able to award it to myself (I know I won't gain rep, but I'm not after gaining rep)...
 
Oh, wait, sorry, I see from your answer to the other question.
 
@ircmaxell definitive answer
> Yes, but you still lose the points.
 
"Properties on '.':
svn:ignore
target"
 
9:15 PM
Sad, but I guess I can live with that (I've got enough of them, I'm not going to cry over losing 0.005 % of my rep)...
 
@PopularDemand Yeah, right. So the problem actually stems from however you added target to the ignore list.
 
Bounty offered!
 
If you were to commit that change to the repository, target would be ignored for everyone independent of their local configuration.
 
Hm. So I haven't modified . at all, but adding svn:ignore to target counts as a modification of . from SVN's point of view?
 
What's sad is I've lost more rep to the rep-cap today than the bounty I just offered... Eih, what else are addicts for...
 
9:19 PM
@PopularDemand Yeah, because . is presumably the parent of target, so you've stored repository-commitable ignore information in the step above what you want to ignore (because you can't set it on what you want to ignore, since by ignoring it you're preventing yourself from committing that information)
 
@PopularDemand If you were to do svn propdel svn:ignore ., the modification should go away, but you might need to tweak your local ignore settings to ignore target then.
 
@LoïcWolff Thanks!
 
Five answers, and only one of them actually answers the question: stackoverflow.com/q/2272160/122607
@TimStone Yeah, that's what I thought, too. Not sure how to make it happen, exactly, but I'm trying.
 
Candidate for protection?
 
9:23 PM
can anyone recommend a free one-time fax service to send a test page to my dad's fax machine? Or can anyone spot me the services of faxing a page for me to a number?
 
@drachenstern: our fax system is shut down.
 
@PopularDemand Adding the resource to Window -> Preferences -> Team -> Ignored Resources will modify your local settings without setting svn:ignore
 
@ircmaxell our front-office manager is gone atm :p ;)
 
At least for Eclipse, I presume it impacts Subversion commands run from the command line, but I can't be positive (I don't know where the ignore list is stored)
 
Makes me sad, 8 lines queued with a custom PHP program I wrote. Went really nice when it was used. Could send out about 15k faxes per day for $0.01 per page...
 
9:25 PM
I can fax to a number....
 
@mootinator do I have you on skype?
 
@drachenstern Probably not, you should be able to DM the number on twitter though.
 
@mootinator oh good call
 
@ircmaxell Only one of the answers is recent, so probably not. I found it through /review.
 
@mootinator there won't be a large charge incurred for that will there?
 
9:26 PM
Ahh, fair enough. That's why I asked @Popular...
 
@drachenstern Shouldn't be any IIRC.
 
and I get failwhale
 
yeah, twitter has been flaky for a couple of hours
 
@drachenstern $0.01 per bit. $0.02 per bit if error correction is used. $0.04 per bit if in color. $0.12 per bit if the bit is 1...
 
Suckers:
 
9:34 PM
@MichaelMrozek Let me guess: you want us to star that, so you can then call us suckers recursively in some other room.
 
@PopularDemand I didn't say that. But I'd be ok if it happened
 
@mootinator did you get the # / a chance yet?
 
@drachenstern I heard buttons being pressed then a hang up
 
k thanks
 
@MichaelMrozek there'll be no gold chat badge
you can stop collecting :)
 
9:37 PM
As you can tell, setting up a fax machine is outside their forte
 
Heh.
 
@balpha not even "balpha: wrote chat"?
 
@balpha I need no incentive
 
@balpha I'm still surprised there was a silver one. :P
Where's that oy monger badge?
 
@TimStone oh. right. rchern badges, the chat version of gold.
 
9:38 PM
 
@balpha then in that case I'm going to collect "Indeed" messages :p
 
If anyone wants to see Joel presenting careers 2.0:
 
LOL
 
starts at about 6:15
 
9:39 PM
ha, that's the dude for the screencap? oy
 
@balpha I fell for the snipe. I actually went to check to see if there was a real oy badge...
 
I started to explain that youtube oneboxes support #t, and then realized who was talking and decided to stop
 
not a lot of stars though
 
@drachenstern Success, apparently.
 
@MichaelMrozek Why stop? I'm sure @balpha would appreciate you explaining how chat works.
 
9:41 PM
@mootinator yeah, I heard him on the phone getting it
 
@RebeccaChernoff Oy
 
thanks
 
@MichaelMrozek I know, but I was to lazy to test the syntax
I always forget it
 
@RebeccaChernoff Just for the kicks and giggles, surely.
 
So how do I parse the results now that I've gotten them from Google?
 
9:42 PM
@balpha yeah, going to have to work on unique duplicates and stars collected together
 
@LoïcWolff - Thanks!
 
@balpha right click video, copy video URL at current time
 
@badp oh nice, thanks
@RebeccaChernoff at least I appreciate @badp explaining how youtube works :)
 
@balpha You're 37 days too early.
 
the downsite to that, @balpha, is that the link unedited won't be oneboxed
 
9:44 PM
@balpha but that's @badp. @MichaelMrozek is a totally different story.
 
http://www.youtube.com/watch?v=tbFfaW3pd_I&feature=player_detailpage#t=628s
 
@badp Or #t=10m28s
 
@TimStone this seems to have worked, though it would be a problem if there were target folders that I actually wanted to keep un-ignored.
 
the feature=player_detail param needs hand deleting
@MichaelMrozek Yeah, but I got that url via the right click menu verbatim
 
Oh, right; I'm catching up on the backlog now. I didn't even know that was in the menu, I always add it manually
 
9:46 PM
@PopularDemand One sec, I'm writing up an answer
 
@TimStone Sweet, laziness wins again!
 
I was not aware that I knew that much about electronics. I just explained to my dad in detail why his fax machine needed to operate the way it does. It was rather like listening to two people having a conversation of which I was not a part ...
@mootinator thanks again Kev
 
@drachenstern No problem.
 
Does anyone know how to traverse responseXML in jQuery once I've gotten it?
 
@Moshe parse it into a javascript object of course :p
 
9:52 PM
@drachenstern ty
@drachenstern - Now, how do I take an element with a particular ID?
 
@Moshe you really refuse to read the jQuery API yes?
Do you mean a DOM element? $('#myID')
 
@drachenstern No, Kinda, maybe... Oh, all right. huffs off to the jQuery documentation.
@drachenstern Yes
I'm dumb
 
Hot damn. I'm getting 8mbps on my 4G connection.
 
@Moshe the general rule of thumb is "use the CSS selector" ~ if there's a rule for selecting with CSS (ID's do #myID, classes .myClass, DOMElements div or span for instance, etc) then use that.
@DanGrossman that's better than my home DSL :(
Yay for living in a small large city
 
@drachenstern Got it.
 
10:08 PM
well, Careers 1.0 can be interesting too
 
YAY!!!!
It works!
Thanks, Google Maps!
I just need to parse the City, State zip info.
0
Q: Help parsing City, State Zip with jQuery

MosheI've got a string with the following format: City, State ZIP I'd like to get City and State from this string. How can I do that with jQuery/javascript?

 
@Moshe I'm surprised nobody sniped that in the first 30 seconds
 
@DanGrossman Me too. I just thought about it for a few seconds and then searched Google for "javascript string split".
 
I'm so tempted to write some code that uses JSONP, a call back to the server and some dom manipulation simply because you tagged it with
 
var parts = str.split(' ');
city = parts[0].substr(0, parts[0].length-1);
state = parts[1];
zip = parts[2];
 
10:18 PM
I don't want the ZIP code. That's user input already.
 
Too bad, you already have it
 
BTW, if anyone cares, this one line of code (and a supporting library, to allow YQL cross-domain stuff) calls Google Maps for Zip-code to City/State conversion:
$('#result').load('http://maps.google.com/?q='+zipCode+' #link_A_1 .pp-place-title');
@DanGrossman Noooo! Take it back, take it back!! backs away
 
Is that really hitting Google Maps web server, not its API, just to convert zips to city/state? Please god don't do that.
 
@TheRenamedException- Hey
@DanGrossman What API should I be using?
 
The Google Maps API?
 
10:20 PM
If you have the zip code from the user, exclude it from the end
 
Which one?
 
@drachenstern I will.
 
Actually, perhaps not geocoding
 
If you have a resulting string, it should look like either "lkajdlfkasdlkfka, ##" where ## is a state abreviation in a list of about 50 entries (I'm ignoring DC, PR, etc) or it should end with an actual state name, again, about 50 of those.
But washington dc could also be washington, dc so you can't parse at the comma or the space
you just need to work backwards
 
10:22 PM
 
Actually, yes the geocoding api should do it for you
 
@Moshe If you're worried about TOS, using the Google Maps website as if it were an API would be a violation too, I'm sure.
 
hrm
 
@drachenstern Examining the Google Maps page seems to confirm that my load call loads the correct format info.
 
@RebeccaChernoff message for you:
 
10:23 PM
@DanGrossman (:-D)
 
in Town Hall Discussion, 46 secs ago, by The Renamed Exception
@RebeccaChernoff I am very overwhelmed with work at the moment. I won't be able to set up anything for the English Town hall chat today, unfortunately. If anyone else wants to cover it, feel free! The Google Docs and Yi Jaing's script are all here. Otherwise, I will take care of the digest tomorrow
in Town Hall Discussion, 32 secs ago, by The Renamed Exception
Please let everyone know that I (or someone else) will post a digest. Thanks @Rebecca!
 
@TheRenamedException - What's this about Google Docs?
 
That's where I work on Town Hall digests before they get posted
 
Ah, cool. Good to know if I am in a position to help anymore this election cycle.
 
@DanGrossman Not bad at all...
-1
A: Help parsing string (City, State Zip) with jQuery

dahrnsbrakFor this type of thing you might want to use JavaScripts RegEx functions. Here's some info: http://www.javascriptkit.com/javatutors/re.shtml

^^ The last comment on that is great...
 
@ircmaxell Indeed.
 
:-D
 
I don't like this parking lot anymore, gonna drive somewhere else then continue my web surfing :p
2
 
heh
 
10:34 PM
heads home. Take it easy all
 
@ircmaxell You too.
 
10:53 PM
in Town Hall Discussion, 3 mins ago, by The Renamed Exception
0
A: 2011 Moderator Election - Town Hall Chat: 1am UTC on the 24th / 8pm EST on the 23rd

JoshAs with the other town hall chats, I will be creating a "digest" version for the English Language & Usage Town Hall Chat. This will be posted as one large Meta question. The digest will contain all the questions and their answers, with none of the other conversation from the room. For more i...

If anyone wants to help contact me soon. I am too busy to do that digest tonight, and have to leave soon so I won't be available to assist
Google doc is set up
 
I need a regex for north american US/Canada zip codes
Send me teh codez
 
For US zip codes it's: /[0-9]{5}(-[0-9]{4)?/
 
Isn't it just \d{5}(-\d{4})?? Is Canada different?
 
@MichaelMrozek Yes, Canada is different.
 
Well...they should stop
 
10:56 PM
They have letters in there and it's a slightly different format.
 
@GeorgeMarian this is an understatement :-)
 
(3 sections? or something like that)
lol fair enough
 
oh, you meant their postal codes
 
Anyway I need to dive back into work. Good luck @Moshe!
 
10:57 PM
Looks like \w\d\w \d\w\d for Canada (\w might be too broad, I'm not sure what it matches)
 
@TheRenamedException Thanks, I'm working on something really cool*.
*for me, having not touched JS in months
/^\d{5}$|^\d{5}-\d{4}$/
K1H6X9 is a Canadian ZIP code
 
11:15 PM
> The best time to plant a tree is 20 years ago, the next best time is right now.
 
@Moshe what do you think of my solution?
 
11:54 PM
@DanGrossman Any reason why '10 years ago' doesn't cut it?
 
shrugs
Yayyyy, I'm failing a PCIDSS scan because they're checking version numbers of services instead of vulnerabilities. Either I figure out how to convince someone the current versions are patched, or I have to compile and install a newer version than RHEL supports.
:starts a backup before he screws everything up:
 

« first day (203 days earlier)      last day (4811 days later) »