« first day (813 days earlier)      last day (4149 days later) » 

9:17 AM
no no...
One you logged in, you would be authenticated.
after that it will check the session for authentication for each view.
 
OK, and session is stored... in the browser?
Sessions are not cookies, right?
 
coockie are the one stored in browsers
 
How is session stored?
 
session is created in server in behalf of each user
 
Oh, I see...
OK then. I'll stay with the MembershipUser and override it with more properties.
 
 
4 hours later…
12:59 PM
4 hours later...
O M G
WHERE IS EVERYONE?
will somebody help me? :(
 
1:16 PM
With what?
 
form.SetDesktopLocation(
                (int.Parse(Screen.AllScreens[CurrentScreenOfPointer(this.Location)].Bounds.Width.ToString()) / 2) - form.Width / 2,
                (int.Parse(Screen.AllScreens[CurrentScreenOfPointer(this.Location)].Bounds.Height.ToString()) / 2) - form.Height / 2);
This code centers my form on the primary monitor,but I want it to center on the current monitor.
 
Screen.PrimaryScreen?
 
I did use that, but it only worked for the primary screen
 
Otherwise you just have to write some code to check where your mouse is and determine the appropriate screen, then use that screen.
 
Yes, that is what CurrentScreenOfPointer does
 
1:20 PM
Shrug What is the problem then?
 
It doesn't take into account the actual X and Y of the screen
so my code will always be on the primary screeen
 
form.SetBounds IIRC
Not SetDesktopLocation.
 
1:36 PM
The party has finally started.
 
Hey all :)
 
hey
 
anyone have any xp with windows store ("metro") apps?
 
Yes
 
Heyya Rudi.
 
1:49 PM
Hola Roel
 
mind if i ask you some questions @RudiVisser?
 
Go for it
 
I am trying to get confirmation from a MessageDialog. If I click the Yes button, I want to launch the FileSavePicker so I can save a string of text to file.

The code to save/write to the file works (on its own), the FileSavePicker works (on its own) and the MessageDialog works. But the app throws an AccessDenied exception when I click the yes button (where it tries to launch the filesavepicker). I don't know what could be wrong. I'm not using DocumentsLibrary capability cause it's not required in this case (but i tried it anyway and that didn't help). I have a question over here about this
 
Anyone here use Rhino Licensing?
 
2:24 PM
Full template directory compilation results: pastebin.com/Lhjfu279
:D fun times.
 
@Arrow Sorry, I'm not sure why you'd be getting that error. +1'd your Q though so hopefully somebody may come along soon
 
2:45 PM
Anyone here use powershell?
 
yes is in some old project
 
3:20 PM
@RudiVisser No worries. Thanks for the +1. Hopefully I can get this resolved. I'm surprised there isn't anyone trying to do this that I can find
 
Meh
Is there any way to detect what item is actually being double-clicked/clicked within a WPF listbox (not using SelectedItems or so)?
 
SelectedIndex? lol
or is that the "so"?
 
Thing is, you can doubleclick something else then the thing you've selected ;)
 
4:05 PM
Email notifications for exceptions and hacking attempts seem like such a good idea. Then you implement them too early in the dev cycle and you can't sleep because your phone barks at you every 45 minutes.
 
@Billdr Write better code.
 
Good plan. Working on it.
 
Finished my first npm module. :P
 
I want my pc to play a sound when something happens on the server. I could send an email and use some special rules, but is there a cleaner way of doing this?
 
TCP
 
4:12 PM
That is pretty vague.
NO, UDP
 
Then you'd have unreliable notifications
Or why don't you maintain a queue and poll it client side?
 
I'm still not sure what you're suggesting.
 
?
You wanted to get something from your server client side when it happens
Either a) Send it straight from the server to your machine via the internets or b) store it on the server for your computer to poll
 
I want an event triggered.
alright
so write a server that listens for a special packet from the web server? Great. Now to learn how to make special packets.
This might work better after coffee.
 
((TextWriter)new StreamWriter((new TcpClient("123.123.123.123", 1234).GetStream())()).WriteLine("SomethingHappened");
 
4:17 PM
That easy?
 
single-line-applications
:3
 
So long as my ip doesn't change.
 
Use dynamic DNS
 
Meh, I can just have the webserver listen for a registration from my pc.
my ip doesn't change that often anyway
 
i've never had a dynamic ip :D
 
4:19 PM
I had dialup.
 
Mmmm dialup
 
well, that's just too long ago
 
The days of "You've got mail!" were happy days
 
Never had AOL.
 
We had little choice :(
 
4:20 PM
Although, I'd like to hire that guy to record random bites for me.
 
It was a chick
 
"You received a payment!" "Casino funds are running low!"
 
dafuq
that's the one I remember hearing a lot.
 
Maybe actually in America yea
Pretty sure ours was a chick
lol, I'm hungry
 
4:22 PM
in hungry your only choice was America Online?
 
Yes
Damn I want KFC
 
No wonder the rest of the world hates us.
 
huhu
 
Is there a simple free online bug/issue tracker (possibly with feature requests too)?
 
TFS
GitHub
 
4:28 PM
trello all the way :-)
 
IE: whatever you're using for source control.
 
YouTrack!
 
or FogBugz - which used to have a 2 person free account
 
I want it to become public so anyone can join in.
 
GitHub
 
4:29 PM
YouTrack
 
Also, sourceforge
 
YouTrack is free?
 
To an extent
 
ah... sourceforge... those were the days, my friend
 
Billdr; it's not an open source project I need this for. Just so people can request stuff etc.
@RudiVisser Please define 'to an extent'
 
4:30 PM
9 users 3000 issues FREE
 
Well that is not so great. :P
 
lol sourceforge
 
Is sourceforge not a thing anymore? I haven't been there in a long while.
 
I think that should answer your question
 
totally agree @RudiVisser
 
4:32 PM
I'm older than the internet :(
2
 
@Billdr gasp in disbelief
 
@yas4891 Believe it, he's pretty old ancient
 
but there's a difference between "pretty old" and "older than the internet old"
that's like... stone age
 
Well, I'm older than the World Wide Web.
 
well then again... what do you consider to be the internet?
@Billdr oh you mean the WWW... well then... HIGH FIVE!
 
4:35 PM
The internet has quite a few years on me, I think.
 
trello.com is interesting.
 
yeah. arpanet was 1960-something, WWW was 1989 IIRC
@RoelvanUden told ya
 
I don't think arpanet counts. That was before TCP/IP, wasn't it?
 
@yas4891 Yeah.. this is looking fun. Can anyone that is NOT associated with my board come in and vote?
 
@RoelvanUden it is pretty cool for a Kanban-based workflow
 
4:36 PM
The internet needs to be routable.
 
@Billdr IIRC the arpanet was routable, but TCP/IP was 1970ish
@RoelvanUden if you open up the board
 
@yas4891 Sweet lord. This is exactly what I was looking for.
Thanks a bunch :3
 
Oh my, Agile shit
 
@yas4891 I didn't even know I wanted that. Thanks.
@RoelvanUden I guess you get more credit for it.
 
@RoelvanUden @Billdr you are very welcome. Glad I could help
I got the trello tab pinned to my chrome ;-)
@RudiVisser any sentiments against agile?
 
4:44 PM
Nope, love it
It's just overcomplication for clients, that should be hidden to the team only and leave the tickets there
 
@Kinected they deserved it, cocks
 
@RudiVisser agreed - once again
 
@yas4891 Yea I shoulda clarified "Agile shit" to be "Agile shit in public/as a public view"
 
@RudiVisser no problem, Rudi. I am still not convinced by the Scrum crowd - seeing a friend of mine putting up with 3-4 meetings each week
Planing meeting, Review meeting, lookback meeting, future meeting - you name it
 
Yeah it's a pain in the ass. I implemented a scaled down version in the past which involved a weekly review and planning meeting for the next week, but would all be contained within an hour maximum just to essentially move stuff around the board
But that process was always hidden entirely from the client
 
4:55 PM
I like the "no meetings, but sharing lunch together" approach at FogCreek. But that is only suitable for small companies
 
Hm, PostgreSQL or MySQL. Hmmmm.
 
I need a second set of eyes on this method. pastebin.com/JeVaH0t0
 
@RoelvanUden Depends on your workload imo
 
I think the transaction gets added, but the user never gets updated.
 
@RudiVisser Elaborate please?
@Billdr Commit the transaction? O_o
 
4:58 PM
@RoelvanUden Well what data are you processing exactly? There are some benefits of Postgres over MySQL in certain applications
But other than that, it comes down to whether you prefer dolphins or elephants
 
@RudiVisser TV series information, social feeds (fiends, posts, comments), whatever I come up with next.
 
@RoelvanUden Doesn't context.TransactionHistories.Add(thisTransaction); handle that?
 
Personally, I prefer dolphins.
 
@Billdr This looks like EF (?) and that should require .Commit as well IIRC.
 
@RoelvanUden Then what do you prefer? Cute dolphins or giant elephants
 
4:59 PM
@RudiVisser Dolphins.
 
Yea, it's ef. Lets see.
 
@Billdr It certainly doesn't, call .SaveChanges()
 
@RudiVisser It does right after the transactionhistory is added.
 
@RoelvanUden I once watched a Video on youtube about a few WTFs in MySQL - like real WTFs. And the corresponding queries in Postgres - which didn't behave WTF at all
 
.Commit isn't a thing.
 
5:00 PM
.SaveChanges == .Commit
Call it once at the end of your method to apply multiple changes
That's probably not your issue, but still
 
context.TransactionHistories.Add(thisTransaction);
context.SaveChanges();
 
@yas4891 Yeah I have seen such videos as well. A lot of WTF moments in MySQL..
 
Does the TransactionHistory get added?
 
Yea, that's not it. The transaction goes in.
The user does not update.
 
I'm a bit worried jumping into PostgreSQL tho, I only really know MySQL
 
5:01 PM
Try calling .SaveChanges() once
Postgres has some weird things of its own
 
@RudiVisser Do you mean .SaveChanges() by itself, without adding to transactionhistories?
 
@RoelvanUden aaahhh. SQL database systems... if you know one, you know all of them...except when you don't
 
@Billdr No I mean move your context.SaveChanges() to the end of the method and don't call it after every transaction. Meaning it's just called once at the end
 
@RudiVisser That's actually the only place it gets called. Its the only place the database gets changed.
 
@yas4891 Very descriptive. Thanks! :#
 
5:02 PM
@yas4891 Eugh from MySQL to MSSQL can be a pain :P
@Billdr I beg to differ
46.
                                user.canCashOut = true;

47.
                                context.SaveChanges();

48.
                                response = "*ok*";
 
You are right. alright, one moment.
 
@RudiVisser yeah... back in the days we supported Oracle, MS and MySQL... talk about pains
 
Same issue. TransactionHistory gets updated, the UserProfile does not.
 
Not at all?
 
Actually, it does. canCashOut is False... it's just the BitcoinFunds that's not getting updated.
 
5:10 PM
and upon debug is it actually incrementing it?
 
That's the tricky part.
Sec, I'll see if I can shape some test data.
 
RAAAAA HAAA HAAAA HAAAA
OMFG.... That's a worthy TDWTF
seriously... when you start writing //please don't submit to TheDailyWTF.com... just stop dead in your tracks
 
Haha brilliant
 
@rudi here, have one of those: </sarcasm>
 
....test data works fine.
test data is generated off of the data the API says it'll send to this method.
live data doesn't work.
GRR
 
5:18 PM
@yas4891 tdWTF uses very broad applications of poetic license
@RudiVisser s/brilliant/Brillant/
 
found it
that value/10000000 needs to be cast as decimal, otherwise it rounds to zero. Stupid int->decimal conversions.
 
@sehe gtfo
Damnit, Deal or No Deal is stressing me out
 
Eve
@sehe Do you remember the question about TypedReference I made? You wrote "...unless you could simultaneously pin (fix) the GC handle for at least the same amount of time. Which you can't.". I didn't upvote/accept yet because I would like any alternative.
 
Finally she opened the bastard box and had £5
 
Eve
I'll set it as a bounty as soon as I can and I'll see if there is some trick to bypass the protections set on that type.
I mean, I'm pretty sure that if the compiler didn't whine about boxing, using in lambdas, storing as a field, everything would work well.
 
5:21 PM
@Eve Yeah. I realize my answer was lacking because I hadn't got the time to dive deeper in the specific usecase (event subscription) you had at hand. I know from past experience there are some darkish corners there. I have a hunch WeakRefence might be your friend.
 
Eve
My comment I've left on there points out why WeakReference would still not keep a reference to types such as delegates passed by ref.
 
But I still don't see when I could delve into it. I'd say I probably won't. I might delete my answer if you think it hurts your question/the attention it gets
 
Yay, I can now steal accept payment for games of blackjack.
Suppose I should be able to give it back too.
 
Eve
@sehe Deleting your answer would be negative, I think it's a starting point in case there's actually something to dive into. It absolutely does not hurt the question.
 
@Eve I agree. Just giving you the option :)
 
5:31 PM
words homeses
 
Hey Tom
Nice pants.
 
cheers
 
Does anyone else run into something you've done twenty times before, but you just cannot remember how you've done it?
4
 
frequently
 
That makes me feel better.
 
5:46 PM
Why is Pirate Bay down :(
The main Ubuntu .torrent isn't as seeded as pirates!
 
6:24 PM
anybody recently bought a new monitor and able to offer recommendations or warnings?
 
@TomW size matters!
 
the most common size seems to be 23"
thats plenty, and i'll probably get 2
 
... That moment when your template engine strips conditional comments from your HTML ...
 
@RoelvanUden Ha ha :-)
 
Bitcoins come in, bitcoins go out. You can't explain that!
 
6:34 PM
@TomW yeah. I would also opt for 2 of them. You might want to get the same make and model - obviously. 23" is pretty solid I guess
 
@CCInc Wake up.
 
2x24"
 
although because of the akward 16:9 / 16:10 ratio and if you are coding (which I assume) you might want to look at the bigger ones
 
The Dell 24" panels are nice imo
 
I got 2x 21"; 16:9 at 1680x1050 each... I sometimes which I had more LOC on the screen at once
 
7:06 PM
all duly noted
 
splinter.azurewebsites.net/blackjack is ready for bitcoins. You'll need to sign up for an account (just a username and password) if you haven't already. I'll display the funds the server holds shortly. Also, the idea here is to hack the site and steal my bitcoins. So... do that.
(btw, if anyone does manage to hack the site, they'll get access to all the other bitcoins too. Keep the balances small, people.)
 
rofl, that cat ain't no snitch.
 
@TomW. You don't believe that article I hope...
 
Why would the BBC lie?
 
7:22 PM
Do you mean except of selling @Billdr?
 
The Brazilian sitting next to me finds it totally plausible.
 
@Billdr, O.K... Here in Israel we have lots of stupids, but they didn't manage getting to that incredible level of stupidity.
 
Brazil is pretty dumb, fairly frequently.
 
@b
 
I don't need the ping.
 
7:27 PM
I just needed the pong...
@Billdr, I guess playing soccer doesn't require so much thinking like arresting culprit cats.
 
It's too hot to be intellectual.
 
@gdoron believing it is irrelevant, but it is funny regardless
 
7:58 PM
( . Y . )
 
I've got a JsonResult object that will always contain one element. I want to get a value at a specified key. Anyone know how I can pull that off?
 
jsonObj.key
 
that easy? hot. Thanks.
syntax error.
 
hey guys
does anyone know a site where a 2d packing algorithm can test solutions?
 
That is not a syntax error
 
8:14 PM
Hi all, any humans on?
 
no
 
What's a human?
 
@RudiVisser some with a human brain
 
A robot may not injure a human being or, through inaction, allow a human being to come to harm.
I don't believe that is the definition of a human
That could apply to a jar, should it contain a human brain within
 
@RudiVisser well if you have ever harmed someone you are not a bot
 
8:16 PM
I have not
Hot damn this whiskey is bitey
 
CC's chatbot insulted me once.
 
@RudiVisser hmmm...You may still be a bot then
 
This is the Europa chat. I think you're looking for Earth. Why anyone would want a human's opinion is beyond me.
 
@Billdr oh no! How?
 
My girlfriend calls me a robot
 
8:17 PM
@RudiVisser while would a girl want a robot as a boyfirend?
 
Since I didn't respond to the deaths in Final Destination 5 like she did, idk
cos we can go forever
 
I don't remember the specifics. Something unintentional, I'm sure.
@RudiVisser The appropriate response to those deaths is laughter.
 
iRobot rules.
 
@Billdr it ducked the question "Is Johan LArson cool?"
by saying that JABFreeware is cool
 
haha
A million dollars? That's not cool. You know what's cool? A billion dollars.
 
8:18 PM
@Billdr Exactly that's what I did
 
@Billdr I'd be happy with a million
 
@JABFreeware You wouldn't say that if you had it
 
You might be happy, but you won't be cool.
 
@Billdr Do you have a million?
 
Working on my first now.
 
8:19 PM
@Billdr so you are CERTIANLY not cool
 
(I don't know if JAB gets the reference.)
I never claimed to be. Quite the opposite, in fact.
 
@Billdr I guess I dont
Does anyone know where @CCInc is?
 
No I don't. He has free bitcoins to claim.
 
Errr, where are my free bitcoins
 
@Billdr what are bitcoins?
 
8:21 PM
They're waiting for you to find a crippling bug on my blackjack site. Specifically, the bitcoin payment processing stuff.
There's 4btc and change waiting for someone to hack the site.
@JABFreeware Bitcoins are digital currency.
 
@Billdr oh, can I have the link?
 
I need a challange anyone good at chess?
 
Why don't I know how to work with JSON in C#?!
 
No idea
It's very simple
 
8:24 PM
No one dares to challange me in a chess game???!!
 
@JABFreeware It's likely not that, but that we have better things to do.
 
@RudiVisser me to
 
Clearly not
 
@RudiVisser :) sundays are kind of boring
 
using (var client = new HttpClient())
                {
                    client.BaseAddress = new Uri(url);
                    var response = client.GetAsync(paramaters).Result;
                    if (response.IsSuccessStatusCode)
                    {
                        var data = response.Content.ReadAsAsync<JsonResult>().Result;
                        //magic goes here. Probably witchcraft.
                    }
                }
-.-
 
8:26 PM
@JABFreeware Not when you have stuff and/or a girlfriend to do!
@Billdr What exactly are you doing there? If you're calling something in your API, just request it as an action and you'll get the return type of the method
 
@RudiVisser I dont either of those
@RudiVisser magic, cant you read teh comments
:)
 
I'm getting a response from a 3rd party API. It should be feeding me a json object
 
Oh third party, ok and what is it feeding you?
@JABFreeware You should consider getting one or the other or both
 
It should look like this: { "balance": 1000}
 
Okay what does it look like?
 
8:28 PM
@RudiVisser thanks, I just dont do much on sundays partly because my brain is slow because I sleep so late
I am doing some programming research right now
 
I haven't gotten that far.
 
@JABFreeware That's no excuse
@Billdr Then what're you doing!
 
@RudiVisser who are you talking to?
 
@RudiVisser Building what I expect to happen because testing this is a bit of a pain.
 
@Billdr Can't you test it locally?
 
8:29 PM
Yes, with a bit of pain.
 
No pain no gain, right?
 
@RudiVisser :)
 
this seems like an annoying way to dodge the question.
 
@Billdr When you have as many points as he does you get good at that
:) just kidding!
 
Points?
and what question?
Shit, I need to refocus
Wow, Companies House are charging me extra and forcing me to provide extra documentation just to have "Group" in my company name
That's depressing
 
8:39 PM
@RudiVisser depression is a relative term
 
AFAIK 'Group' implies that you have more than one unit of corporate governance, or something
 
It does indeed
and I do
Hence they want me to pay extra
 
wow
they've gone to the trouble of specifying YAML web services
does ANYBODY use YAML?
 
I wouldn't expect companies house to adhere to modern/used technologies
They used to close their WebFiling service at weekends
 
AFAIK YAML ain't old
 
8:44 PM
Oh god, I have been severely underestimating NodeJS.
 
well, not in the sense of it being an 'out of date' technology. It's just obscure
 
The libraries are beyond insanely good o_o
 
using (var client = new HttpClient())
{
    client.BaseAddress = new Uri(url);
    var response = client.GetAsync(paramaters).Result;
    if (response.IsSuccessStatusCode)
    {
        //magic goes here. Probably witchcraft.
    }
}
I can confirm that request prompts the 3rd party api to produce json that looks as expected.
Now, how do I eat that json?
 
With JSON.NET, preferably. It's included in Web API projects by default
 
Actually, I was digging around the response variable in debug. I don't see the json in it anywhere
It gives me the header, of course.
 
8:53 PM
It seems that request would not satisfy the requirements of JSON.NET
 
is eval() meant to be bad?
 
@Billdr ServiceStack.Text has a simple API that will eat anything. Anything..
 
oh hang on. Not JS.
 
@RoelvanUden I meant in the context of his request not returning any JSON whatsoever
My friend is making his new personal website, with the most interesting of test data...
How to rape your dogs on sundays
YAY FOR CATURDAYS
Niggas making profit
Coke sniffing slut arrested for eating her dead fetus
 
I'm digging out the code where I did this exact thing previously.
 
8:56 PM
I worry sometimes
 
@RudiVisser about what?
 
About people who use articles like that as test data
 
@RudiVisser Oh, yeah...
 

« first day (813 days earlier)      last day (4149 days later) »