« first day (9 days earlier)      last day (5131 days later) » 
00:00 - 22:0022:00 - 00:00

00:42
0
A: How should our FAQ look like?

Chris Jester-YoungWhat is the scope of CodeGolf.SE? CodeGolf.SE is the site for code golf and other programming puzzles. We use the name CodeGolf.SE for two reasons: "Code golf" is the most popular kind of coding game on Stack Overflow, so CodeGolf.SE should appeal to that crowd CodeGolf.SE is much easier to sa...

@marcog: ^^---
(Darn it, I hate how @user messages do not onebox.)
@marcog: Please feel free to update that entry with current consensus on that topic.
01:26
Lack of definition list in markdown is annoying
@Nemo157 You can manually use <dl>, <dt>, and <dd>.
@Chri
@Nemo157 Huh?
Ya, Packers!
@GeorgeEdison /me makes a note of whom to bid for in my P. F. Chang's order. :-P
For lurkers: P. F. Chang's is doing a Super Bowl special, where if you order a takeaway order online, and use coupon code STEELERS or PACKERS, your order is discounted 20%. Additionally, if the team you pick actually wins, you will receive another special offer.
01:42
@ChrisJesterYoung sorry, had to go for a sec
@ChrisJesterYoung was gonna say, that's what I did use in the end
you just really don't want to try and read the markup of
0
Q: Interpret Befunge-93

Nemo157The program will be provided as the first argument, stdin should be used for all read requests by the program and stdout for all write requests. It can be assumed that the program is less than 80 characters wide and less than 25 lines high. ~ should push -1 if there is nothing to read. Any pop...

@Nemo157 Holy cow.
Yay for macros and regex replacement
Hehehehe. :-D
 
2 hours later…
03:46
My first ever entry:
0
A: Word guessing game

George EdisonBash (171) #!/bin/bash s=`cat /dev/stdin | sed 's/\*/\./g'`;o=`cat /usr/share/dict/words | grep -x $s`;w=`echo "$o" | wc -l`;if [ $w -lt '20' ]; then echo "$o";fi;echo "$w match(es)"

04:01
@GeorgeEdison \o/
@GeorgeEdison I highly encourage you to learn GolfScript.
Between @Nabb, @gnibbler, and me, you can learn lots. :-P
GolfScript looks like Perl, to be honest.
Question....
0
A: Remainder When N divided by 2^M

MalvolioUh, guys, in pretty much any language, it would be N & (1 << M - 1)

^--- What should be done about 'psuedo-code' entries?
They should be terminated with extreme prejudice.
@Chris: So vote to get rid of it?
Well, there's no such option, right? You can flag for moderator attention, but right now all mods are just staff members.
04:07
@marcog and I are currently in the running for pro tempore moderatorship. (Not sure if others will step up; we'll see.) I think the current consensus, at least between the two of us, is that non-serious entries will be nuked.
e.g., non-golf entries to golf questions, Noah's entry for the "print 1..1000 without semicolons" question, the one you just mentioned, etc.
I flagged it.
Good good. :-)
Regarding this...
My script currently just dismisses it as invalid.
...but someone was saying it was unnecessary to make an exception for this.
04:09
I disagree with said someone. :-)
...and the idea could be that script would simply ignore entries with a score < 0
That way we voice our disapproval by downvoting.
Would that be a better way of doing it than having a bunch of exceptions?
Obviously, not enough people disapprove of said HQ9+ entry.
That's a consideration, yes :)
It was just a thought.
What I have now will be fine for the mean time.
...who knows, there may be more languages like that.
04:12
FlogScript, I don't yet have an opinion on.
i.e., I don't know if it has some pre-made recipes like HQ9+ does.
If it doesn't, then it's fine.
GolfScript does not have any pre-made recipes. :-P
That actually reminds me, I was going to make a question of writing a HQ9+ interpreter
@Nemo157 Nice. How will people implement the + part, I wonder.
I guess I'll wait and see how well the Befunge one goes first
@ChrisJesterYoung Yeah, I still have to find out exactly what that does.
The only interpreter on the official site says he has no idea so it doesn't support it.
04:15
Hehehehe. :-)
Hmmm, maybe I could add a debug flag requirement that prints out the accumulator when it is changed
Just to force people to actually do something with it
04:28
Hahahahahaha.
Really, it's just really requiring people to implement Hello World, Quine, and 99 Bottles all at once.
And, thank the $DEITY, that program actually cannot be implemented in HQ9+.
Now if someone made a dialect called HQ9+E (eval), then yes. But then that's definitely cheating. :-P
^--- the username is a link, by the way.
Clicking the user's name takes you to their answer.
Ah, very nice.
Here's the update dialog for those who haven't had a chance to see it yet.
It checks automatically for updates every 24-hrs.
Is that a builtin feature of Greasemonkey? Or did you code that yourself?
I coded it myself.
It uses some AJAX and server-side PHP.
Feel free to look at the code if you're interested.
[Nobody's approving my edits yet... they must really be busy...]
I don't actually think this is working in GreaseMonkey right now.
A FF bug with 'onload', I believe.
04:46
@GeorgeEdison Only one person (@gnibbler) has the requisite rep to approve edits.
And unfortunately, I will not be hitting 1000 any time soon.
Me neither :P
I just confirmed that the script works in Opera.
2 browsers down, 3 to go :)
Hi George
and @ch
@ChrisJesterYoung
This post couldn't detect language for Mathamatica 7 @GeorgeEdison
8
Q: Sum of primes between given range

st0leWrite the shortest code for finding the sum of primes between a and b (inclusive). Input a and b can be taken from command line or stdin (space seperated) Assume 1 <= a <= b <= 108 Output Just print the sum with a newline character. Bonus Points If the program accepts multiple ra...

showing "Current winner: Nakilon's [Unknown] entry has 31"
I know... I have a pending edit for that post.
@SMark Heya! :-P
04:59
I think we need to establish a common way of designating language for entries.
@GeorgeEdison You gotta ping @gnibbler some more. He used to come into the channel (which would give me another venue for pinging), but not any more.
Oh, ok, looks like only predefined language be allowed?
Currently the script searches through <h1> and <h2> elements.
@SMark: Any language (minus one) is allowed.
...only the predefined ones are labeled, though.
LoL
Hq9+ :P
Yup.
Try viewing it.
05:01
heh
yeah, i saw it :D
some posts don't have <h1> <h2> tags for those languge field
@SMark: Right. A lot of them don't...
will you interest to match any first few words and test against build in languages?
So we need to either have a common way of indicating language and edit posts that don't follow it.
...or make my script more complicated :P
05:10
i got a regex
"^\s*([^\s,]+(?:\s*\d+)?)"
What does it do? (Forgive me for not trying to figure it out...)
it supposed to get Befunge-89 as is
and Mathematica 7 also
match the post against that regex and
$1 supposed to have language field
javascript regex will be /^\s*([^\s,]+(?:\s*\d+)?)/
The problem is that the post content is HTML.
...although it would be easy to get it as plain-text.
05:13
Using .innerText rather than .innerHTML, amirite?
jQuery's .text() to make it cross browser :P
@Juan Ah, much better.
yeah
Yeah, I've been making extensive use of .text()
I fixed another bug with the way the script includes jQuery.
This one only affects Opera users, though.
Still havin' trouble getting it to work with FF.
Do you have an idea of what the problem is?
05:19
"Component is not available." ...and it points to line 20.
> jquery_script.onload = function() {
I've installed FireBug... I'm determined to get to the bottom of this.
Hmmm... not much help.
I tried to write some userscripts before, I used to attach body instead of head, it was supposed to work
you may take a look above
it supposed to work at opera too
@SMark: Thanks, but the problem here is loading a remote script.
...it seems FF doesn't like the onload event handler for script elements.
I think you don't need to load jQuery
just need to wait until SO loads
ah, btw, your script depends on new version of jQuery?
Ok, according to an article I've just read, you need to use attachEventListener in ff to access events from userscripts
I fixed it!
@Juan: Yeah, I switched to addEventListener()
It seems to work now. I'll try and push these changes.
05:28
But your code now breaks on IE! Oh no!
heh
@Juan: It was working in IE?
I have no idea, but it's definitly broken now :P
How do you run it in IE?
btw, you serve different versions of your script depending on the browser, dont you?
05:30
Forgive me, I'm a Linux user :)
@Juan No, not currently.
Huh, it seemed that way. For some weird reason I cant acces your script from outside a browser.
There. I verified that it works in Chrome, FF, and Opera.
3 down, 2 to go.
I don't know if there's any way at all to get Safari (the Windows version) to run UserScripts.
It's funny because I'm running the Windows version of Safari with Wine in Linux.
...and it doesn't do anything when I open the script.
Safari here shows the plain code
05:43
I don't even know safari could run userscripts
I think there's a tool for the Mac version.
GreaseKit or something.
Oh well, I have to install two apps to test it. I'll test it out tomorrow and let you know.
^--- According to PC World, there's a Windows version.
0
Q: Windows equivalent of GreaseKit?

George EdisonWhen running Safari on a Mac, you can install GreaseKit, which allows you to install UserScripts. Is there an equivalent for the Windows version of Safari?

05:48
Does anyone use safari anyway?
I think the only thing I ever used it for was downloading chrome.
I only use it for testing. I do a fair amount of website design.
I dont even use safari on iPad :P
...a lot of Mac people stick to it, although lately I've seen Chrome taking over.
@SMark: You have an iPad?
Here's a page you might be interested in: stackmobile.com/beta/codegolf.stackexchange.com
oh ok
can i search app in store?
or is it web version?
No.
It's not an app, it's a specially designed mobile site.
You can browse questions, users, and stuff like that on the site.
05:53
i see, thx
design is pretty good @GeorgeEdison
Thank you.
only, looks like questions boxes' width are fixed?
@SMark: Can you give me a page as an example please?
heh, I dont know how to screen shot in ipad ;P
but hold on I will take a photo
It's okay. The question ID in the URL would be fine.
06:00
ah, only on certain question?
ah, i got it
some codegolf posts have no spaces
so its zoomed the whole screen to fit that post
Ah, that is a known problem.
ah ok ok
Completely unrelated, but to take a screenshot, hold down the power button and hit the iPad button.
um, really
haha, thx
I implemented that.
Does anyone know if it works in IE now?
06:16
let me load virtualbox to run windows
could u give me updated url?
hum, hold on, how do u install userscripts in IE?
^--- I hope that helps... I don't use IE myself.
06:33
@GeorgeEdison, I have installed Trixie, on IE
and load the script, but got errors
What are the errors?
line 140
char 13
show "Calculating..." on the top
Okay. Does it say what the error is?
06:36
imm, trying to figure out, it does not say more than that
btw, when I refresh the page the error is gone
but still not working
Okay, I changed something.
Can you try installing the script again?
ok
imm, still same
Same line number?
Thanks so much for trying.
...I'll have to fire up Vista one of these days myself to see what's up.
yeah, same line number, and only once on each question
may be related to cookie
07:25
just leaving msg, @GeorgeEdison, I just find out one thing, Trixie on IE run userscripts after the page load, so just calling the function looks ok, and my script works userscripts.org/scripts/review/70690
 
1 hour later…
JB
JB
08:51
@ChrisJesterYoung FYI I'm the one who said special-casing HQ9+ was unnecessary, and I stand by my point: all questions where it could have an actual use are past us now.
 
3 hours later…
11:55
JB: Did we have the »increment the accumulator« task yet? :-)
JB
JB
12:11
I'm waiting for it :)
 
6 hours later…
17:50
Anyone around?
I've got a new feature you're all going to love!
Yeap
I was about to test in safari
A new sorting method!
You can now sort the questions by code size!
Awesome! I can't believe how fast you rolled that
It wasn't that hard, actually.
...and it has a bug: once you sort them, you can no longer 'jump' to the smallest answer.
I think I can fix that, though.
Small price to pay anyway
17:54
Hmmm... upon closer inspection, some of the event handlers have disappeared.
...weird.
Totally strange... once the items are rearranged, none of the JavaScript in the answers work.
...and there's no reason for that because I'm using jQuery's .clone() method.
Hey, I bet I know what happened.
I'm starting to think you really hate it when people leave comments
Well, it's the second time your script wont let me do so :P
I think I figured it out.
...probably the site JS code injects event handlers.
...and so I just need to figure out how to 're-inject' them.
I know what the issue is
Well, one of them at least
The issue with the broken link is that each answer div has an anchor tag right above it
You'd need to relocate those too
18:01
I know.
I saw that one coming. I need to move them with the answers.
The other issue, you can solve by passing true as the first param to clone
Afraid not... still doesn't work.
Oh, well, that sucks
Ok, reading a bit more closely, you need to pass true as first and second params
Wait, you don't need to use clone
When you remove an element, you still get to keep it, and you can re insert without cloning
Actually, when you detach an element. Remove deletes all the events.
Ah.
I was using two 'true's already, though.
I'll try detaching.
It works!!!
Thanks so much. You're my hero for today.
lol, thanks.
18:13
That's cute. I'd vote for that to become standard functionality of the site, though :-)
I should be thanking you for all your work with this.
No problem. I love doing it.
And I'm learning a lot along the way.
Quick question, when you check a language name against the whilelist, does case matter?
btw, it works great on safari for mac
Oh good. No, case doesn't matter.
It'll convert the text it's matching against as well as the language to lowercase.
...well, v0.21 is out. Now to fix those pesky bugs.
 
2 hours later…
19:58
@Juan: I fixed the <a> problem. I haven't released it yet though... more changes to come.
20:15
@ChrisJesterYoung , here, but brb. need to paint something with #C0FFEE
@KentFredric Very good.
@GeorgeEdison what are you cooking up?
@Juan Nasal demons. :-P
20:28
@ChrisJesterYoung Bah, if only StackOverflow had something between "Rubbish tiny comments" and "Its an answer"
Because its quite feasible ( and often occurs ) ( especially with me ) that a lengthy non-answer comment/question-of-the-answer can be posed that adds value to the question/answers
20:43
@KentFredric Yeah.
Anyway, what I was trying to get across is, that often when I post a golfed solution, I either post an ungolfed version (for non-GolfScript submissions), or an explanation (for GolfScript submissions).
That is fine and good. However, I always post a golfed version (and it must be what comes first in the post, because that's what @GeorgeEdison's script counts), because that's what counts for the contest.
In that view, all posts that contain only ungolfed or joke solutions are unuseful for the contest, and should be removed.
Yeah. I think its important, because, due to the world being full of idiots, wherever there is code, somebody will cargo-cult that code , and eventually that horror will turn up in somebodys production codebase because they outsourced to india.
Those people can't be saved, no matter what you do. ;-)
2
I'm trying to bet with odds by encouraging "good" code with the bad =)
Hahahahaha.
given 2 code samples, one they can understand, and one they don't , I believe they're more likely to use the latter.
Thats me though, being rational.
Idiots lack rationality
20:47
Hahahahaha.
oh, I meant the former. Were' all screwed :(
I think I'll go take up farming or something, at least that trade has a future in the light of 1) Global Economic Failure 2) Global Warming Cutbacks 3) Computers vegetating due to all the source code being outsourced to india.
Hehehehehe.
@KentFredric Cool, good luck with that. Lemme know when your farming startup racks up an IPO. ;-)
@ChrisJesterYoung Well, it depends on what you farm really. ;)
( and whether or not you can smuggle that into other countries )
@KentFredric ...I'm sure. ;-)
21:07
I am allowed to create tag synonyms now. Any suggestions so far?
@gnibbler You lucky bastard. ;-)
@gnibbler Apparently the rep required to edit posts has been bumped up since around the time you hit 1k, so now I have to get there before I can edit posts. :-(
is that a suggestion? gnibbler = lucky bastard?
@gnibbler 'code-golf' and 'golf' would be the same, ... unless of course, somebody wants code for keeping score of actual golf :(
@gnibbler Hehe.
@KentFredric Yes, that's a good one, I think.
has anyone even used golf as a tag though?
21:09
@gnibbler I used to, in the early SO days.
@gnibbler Then there was a big discussion on meta, and I was overruled.
or would golf become the usual tag?
Imo, that tag is entirely redundant
@gnibbler If it were up to me, [golf] would be the customary way to write the tag.
LiraNuna's q got 1k votes before it was migrated, lol
as would be tagging everything on StackOverflow with "[stackoverflow]"
21:10
unless the question is about golf
@gnibbler His question got so many views because Jeff (or someone) tweeted it.
@KentFredric Not true. This site has both golf and non-golf questions.
then the "Non-golf" questions should be tagged "not-golf-related"
and everything else not tagged =)
@KentFredric No.
ie: like [not-programming-related]
@KentFredric This site isn't for golf only, and we can't sideline non-golf questions.
1
A: How should our FAQ look like?

Chris Jester-YoungWhat is the scope of CodeGolf.SE? CodeGolf.SE is the site for code golf and other programming puzzles. We use the name CodeGolf.SE for two reasons: "Code golf" is the most popular kind of coding game on Stack Overflow, so CodeGolf.SE should appeal to that crowd CodeGolf.SE is much easier to sa...

21:12
yeah. but having [code-golf] when the site is implicitly called "code-golf" under the premise the primary subject is code-golf, stating your complying with that subject is redundant.
its just things that are not strictly code-golf that need tagging as such imo.
@KentFredric Read the link above. The primary subject is "code golf and programming puzzles", only that's too big of a mouthful.
"Code golf" rolls of one's tongue much more readily than "code golf and programming puzzles".
Try saying the latter quickly 5 times.
[puzzle] # <-- tag
Okay, we can suggest [puzzle] as a tag synonym for [code-challenge].
for the sake of succintness, and reducition of redundancy, I'd propose [golf] being the default tag for code-golfing
@KentFredric I would second that.
@gnibbler: Do you agree with that?
21:15
seems reasonable
if people want to talk about 'real' golf, ( as unlikely as it may seem ), then they can use a different tag, which tag I'm not sure, but they can use a different tag =P
[ballsports] perhaps.
@KentFredric [pga-golf]. :-P
Like [fifa-football] vs [nfl-football]. :-P
i have to go now, so will look into it later :)
@gnibbler Have fun!
[real-golf]
21:16
BTW, lol. Two Kiwis and an Aussie chatting right now. :-P
[imaginary-golf]
@gnibbler [real-life-golf], [rl-golf]. :-P
lol.
but what if you're golfing about floating point values?
[anti-golfscript]
@KentFredric ...what?
21:21
I'm being obscure, but this is programming =).
[real-golf] => real numbers + golf => hrm. => [integer-golf] => whut.
its hard to find a prefix to "golf" which cant also be used to explain something in programming.
ie: [real-life-golf] might entail how to 'golf' real life, not about 'golf' in the real-life balls-and-stick sense. ie; [real-life-golf][supermarket-problem] # execute a shopping trip in the least number of physical steps possible.
English-- # sucks
@Juan: Not too much.
Just more patches for unexpected behavior.
Nothing serious.
@KentFredric Oh, har har.
21:47
^----- 2 tied answers are now handled properly.
00:00 - 22:0022:00 - 00:00

« first day (9 days earlier)      last day (5131 days later) »