« first day (842 days earlier)      last day (3191 days later) » 

10:09 PM
@Mat'sMug I won't disagree there.
 
Thanks a lot. Is it online now ? — CyrIng 19 secs ago
Needs a reopen
 
Although I don't like C#/Java lambda's in the sense that they remind me of Calculus Limits, and I always read x => x.Count > 0 as "x such that x.Count is greater than 0."
 
'night
 
night @Vogel612
 
@Mat'sMug lol that might be less annoying than the embarrassment of asking such a question....lol
 
10:27 PM
Anyone want to help me with a Javascript RegExp?
 
that doesn't sound like fun at all @IsmaelMiguel
 
Specially emulating negative lookbehinds in Javascript
You have no idea the pain it is
I want to match : only and only if it isn't followed by :
Basically:
a::a <-- can't match. a:a <-- must match :a
Well, I decided to go on the clunky way
 
does subtraction take more time to compute than addition in the CLR?
 
Probably not
 
in my XNA Game I can't turn left while I am shooting and moving forward, but I can turn right while shooting and moving forward...
 
10:34 PM
Weird
 
you write .NET code @IsmaelMiguel?
 
Very little
 
@Malachi no
subtraction, multiplication and addition are equal time
division is slower
 
that might explain it
 
10:36 PM
check out my left and right @JeroenVannevel
Left
    playerSprite.Rotation -= Convert.ToSingle(Math.PI / 80);
    _angle -= (Math.PI / 80);
    shipDirection = new Vector2(Convert.ToSingle(Math.Cos(_angle)),
                        (Convert.ToSingle(Math.Sin(_angle))));
Right
    playerSprite.Rotation += Convert.ToSingle(Math.PI / 80);
    _angle += (Math.PI / 80);
    shipDirection = new Vector2(Convert.ToSingle(Math.Cos(_angle)),
                        (Convert.ToSingle(Math.Sin(_angle))));
 
I highly doubt division being the cause here -- I see 2 casts, 6 method calls, and 4 constructor calls in each snippet alone
 
BRB Time to Eat....I keep trying to tell her that I can eat when I am done coding.... she told me that I would never eat if that was the case
@JeroenVannevel I can't post the code for Review until I get it working right....
I mean it works, except for that edge case....
 
Ignore the edge case and let a reviewer stumble upon it
You've got to play dirty
 
I will remove my commented crap and see what happens with my Player Manager then. I like the way you think @JeroenVannevel
After dinner thought
 
bring me a bite when you're back
I haven't had dinner in hours
 
10:41 PM
@Malachi Did you know about SQLCMD scripting in SSMS? I've discovered that and I've been loving it
/* Change these values to the desired server and database */
:setvar Server "redacted"
:setvar Database "redacted"
:setvar Vendor "redacted"
:setvar BranchCode "BAT"

:connect $(Server)
use $(Database)

declare @Vendor varchar(50) = '$(Vendor)'
declare @BranchCode char(3) = '$(BranchCode)'
Really good for ad-hoc scripts
TTQW
 
I feel like this should have been on Code Review instead of Stack Overflow, considering it's looking for a review of working code. — Kevin Brown 27 secs ago
 
@Phrancis I haven't. that looks useful thought
sloppy joes, yummy
 
I'm so close to capping on SO for the first time in a year again
Does it reset at 01:00 or 02:00?
 
You have another hour.
 
@Malachi All of those are replaced into the actual script before it runs, so it's dynamic-SQL-ish, without all the crap that comes with dynamic
 
11:00 PM
is this a good title? I can't seem to find the Meta I am looking for, I think someone did a Meta Jedi Mind Trick on me....
1
Q: Swift 2.0 JSON parsing

tailecI am looking for the best way of parsing JSON in Swift 2.0. I have this JSON { "latitude": 37.8267, "longitude": -122.423, "currently": { "time": 1440110395, "summary": "Clear" // optional field } } and field summary is NOT always visible in response. My model object and pars...

looks like it is a JSON Parser
 
Your title was an improvement
1
Q: Building Weather Forecast from JSON with optionals

tailecI am looking for the best way of parsing JSON in Swift 2.0. I have this JSON { "latitude": 37.8267, "longitude": -122.423, "currently": { "time": 1440110395, "summary": "Clear" // optional field } } and field summary is NOT always visible in response. My model object and pars...

@JeroenVannevel wanna pimp something here, then?
 
Nah I don't do that. Only for new answers I'm particularly proud of
Besides, I was under the impression you look through my profile daily to see my latest answers?
Are you saying that's not true?!
 
Look through manually? RSS feeds masterrace
 
0
Q: Format Python code in useful function blocks

Bram VanroyI have been told that it would be wise to split up my code into semantically useful blocks. I tried the following but I need feedback. What I already did: As you can see I create two .csv files, so it seemed logical to have two functions. One for the main dataset, the other for a frequency tab...

 
3
Q: Generating frequency tables based on CSV dataset

Bram VanroyI am working on a project which crunches plain text files (.lst). The name of the file names (fileName) are important because I'll extract node (e.g. abessijn) and component (e.g. WR-P-E-A) from them into a dataframe. Examples: abessijn.WR-P-E-A.lst A-bom.WR-P-E-A.lst acroniem.WR-P-E-C.lst a...

They're basically the same, and the author's put a bounty on the latter -_-
 
11:22 PM
I'm against putting both and on the same question. They are not the same language...
 
@Mast uh
Python is a general tag that describes all versions of Python
 
= Python2
 
= Python 2, Python 3
 
No!
 
Proof!
 
11:24 PM
Python was a backwards compatible language.
Which broke when moving towards 3, on purpose.
Everything 2.7.x and lower is Python, all above Python3.
 
@Mast Uh, we have and tags. The tag does not mean Python 2.7 or lower.
 
@EthanBierlein Which only proofs our tagging is flawed, nothing else.
But this is turning into a , so I'll refrain from further comments.
 
Me too
 
There's extensive meta on this subject, but if you'd like to ask a question that's already been asked, go right ahead.
 
@Quill Not extensive enough IMHO. But hey, the rest doesn't seem to care and it's a community vote principle thingy.
Weighted democracy.
@EthanBierlein Why did anyone star that? It's false...
 
11:29 PM
There's a plugin you can get that shows you who starred something
 
@Mast I'm pretty sure that's the purpose of the tag.
Anyways, I'm going to go eat my microwave dinner.
I'll be back in a bit.
 
@Quill I thought that they were anonymous.
 
@SirPython I thought so too, but someone on the C++ lounge said something about it and used it once
I had it saved in my bookmarks, but I don't know whether it works
 
Would you run it just by pasting it into your console?
 
That's what they said
 
11:32 PM
POST http://chat.stackexchange.com/ws-auth 404 (Not Found)
 
    $.post('/ws-auth', fkey({
        roomid: 17
    }))
 
@Quill be careful the OP will probably roll it back... he said it had nothing to do with weather
 
Looks like it might be room specific, too.
 
@Malachi Why did you edit the title? It's JSON parsing in swift 2.0 and it has nothing to do with weather API. I could use any other API in this example. — tailec 47 mins ago
 
@Malachi Yeah, I don't mind an edit war
 return WeatherForecast
{
  "latitude": 37.8267,
  "longitude": -122.423,
  "currently": {
    "time": 1440110395,
    "summary": "Clear" // optional field
  }
}
 
11:35 PM
@titol thanks! You may want to take a look at this version on Code Review. — Mat's Mug 54 secs ago
 
Those are weather properties
 
@Duga hi!
 
It seemed to work when I changed roomid to 8595
 
star registered in The 2nd Monitor
 
1
Q: Generating frequency tables based on CSV dataset, in R

Bram VanroyAs a follow-up to this question concerning Python I present you with the exact same thing - for R. Initially I started with R. However, it takes 44 minutes to run when unleashed on all my data. I then looked for an alternative. I read about Python and got advised to use pandas by a colleague. S...

 
11:38 PM
It only says that a star was registered, not by whom.
 
What I meant to say, is 'It seems to not give an error'
Ah, the people over at the lounge found out who starred something using (possibly) this
 
@SirPython stars are anonymous
 
  reporter.get('stars')
 
{
    "event_type": 6,
    "time_stamp": 1440459416,
    "content": "It seemed to work when I changed <code>roomid</code> to <code>8595</code>",
    "id": 44270502,
    "user_id": 136389,
    "user_name": "SirPython",
    "room_id": 8595,
    "room_name": "The 2nd Monitor",
    "message_id": 23650454,
    "message_stars": 1
},
 
@SimonAndréForsberg apparently not
 
11:41 PM
Correct.
 
@Hosch250 starred the 'ahaha who needs spyware' message
 
Just now, I did.
Who else did?
 
Could this be a potential post for meta SE?
 
8 mins ago, by Duga
@titol thanks! You may want to take a look at this version on Code Review. — Mat's Mug 54 secs ago
 
11:43 PM
in Lounge<C++> on Stack Overflow Chat, Aug 14 at 0:59, by rlemon
in the console. reporter.get('stars') pulls them back.
 
I'm betting the star there is from @Mat'sMug
 
That's where I got this from
@Hosch250 Me, as a test, actually
 
Oh.
 
@SirPython Perhaps
 
how on earth does that work?
 
11:45 PM
@SimonAndréForsberg Magic.
 
as usual, then
 
14 mins ago, by Quill
https://gist.githubusercontent.com/rlemon/c6199b3b45d7f2da36bb/raw/ec735293af0f9‌​c8812be1cf7bb736aa1febeb989/monitor.js
 
I'm reading over it now.
 
function connect() {
    $.post('/ws-auth', fkey({
        roomid: 8595
    })).done(function (data) {
        url = data.url;
        if (report) console.log('Connected');
        poll();
    });
}
 
Boy, people in the C++ lounge are very dirty.
 
11:48 PM
It gets into the sockets
 wss://chat.sockets.stackexchange.com/events/8595/6ebd782faa444013916c7a3f64e03e7b
 
Huh, now I need to write something to keep scripts out of my sockets.
 
    socket = new WebSocket(url + '?l=' + Date.now());
    socket.onmessage = ondata;
    socket.onclose = onclose;
and then json parsing and so on
It also watches whether people get kicked
and (possibly) by who
 
wanna try? :)
 
        $.ajax({
            type: 'POST',
            url: '/chats/' + roomid + '/messages/new',
            data: {
                fkey: fkey().fkey,
                text: 'Automated Kick Reporter: ' + kicker + ' kicked ' + kicked
            }
        });
 
wait, sure, @SirPython, you got it up?
 
11:50 PM
^^ It attempts to post a message when a kick is sent.
Yes, I have it up.
 
go for it, @SimonAndréForsberg, all in the name of science
2
 
hmm, I'm afraid it'll have to be a kick-mute in that case
argh, where are the help-vampires when you need them?
 
I've got to go to another class, so 30min is fine
 
I'm not talking now anyway.
 
Just try it.
 
11:52 PM
> The user has been kicked and cannot return for 1 minute.
 
There goes @Quill.
 
I've got nothing.
 
I am back from my 4 weeks holiday... YAY :D
 
Ugh, a minute of agony
 
I'm pretty sure MythBusters have had to experience worse things, in the name of science
 
11:54 PM
Like nonexistent ghosts.
 
@Mehrad welcome back
where you been?
 
@Quill Right?
 
by the way:
 
@Quill what is this star reporter you are talking about?
 
in Cardshifter TCG, 1 hour ago, by Duga
> We're members of Code Review Stack Exchange and we don't do unit tests? Shame on us.
 
11:56 PM
sorry @SimonAndréForsberg
 
11 mins ago, by Quill
14 mins ago, by Quill
https://gist.githubusercontent.com/rlemon/c6199b3b45d7f2da36bb/raw/ec735293af0f9‌​c8812be1cf7bb736aa1febeb989/monitor.js
 
That's odd.
The script didn't even recognize the kick action.
Perhaps kick-mute != kick?
 
I don't know how to kick
 
The mod doesn't know how to kick?
 
11:58 PM
It needs a refactor though, wow
 
maybe non-mods can kick-only
 
Should we try it again?
 
 reporter.get('kicks')
 
RO's Kick-mute
 
have you tried that?
 
11:59 PM
Yes.
There wasn't even the registered message.
I get a blank array from that.
 
Make me a room owner and I'll hold a kick-fest.
 
@Hosch250 I know how to kick-mute and how to suspend users for x hours, works for me
 
lol
 
If you want to try again, I'm going to another class, so kicking me is fine
 

« first day (842 days earlier)      last day (3191 days later) »