« first day (506 days earlier)      last day (4429 days later) » 

11:01 AM
@christianstuder @Patrick Guten Morgen / good morning
 
@yas4891 Good morning
Wait a minute.. Morning? Isn't it noon at your place too? ;)
 
Female software engineers become sexually irresistible at the age of consent, and remain that way until about thirty minutes after clinical death. Longer if it's a warm day.

[Scott Adams, creator of Dilbert]
@Patrick yeah it is, I lost my sense of time
 
:P
"Morning is when you wake up and log into Stackoverflow"
 
11:37 AM
"XML is like violence. If it doesn't solve your problem, you're not using enough of it"
4
 
 
2 hours later…
1:17 PM
@yas4891 lol
 
 
1 hour later…
2:21 PM
hi all... i am creating a project, small management game, and dont know the best way to handle my data... app data will be stored in SQLite and distributed with the game... should I use some ORM or Linq?
 
2:43 PM
you should use bltoolkit
2
:p
really
use it
just take a look at bltoolkit.net/Doc.Linq.ashx
 
@David thanks. going to look at it :)
and why do u think it should be bltoolkit?
 
It only abstracts the SQL + Mapping code
and doesn't do entity tracking / lazy loading stuff
you know the stuff that usually causes problems
It's a real good linq provider
better then EF
and also has great stuff for the updates deletes
 
oh it looks light and everything i need..
 
for example you can do
db.Employee
.Where(e => e.Title == "Spectre")
.Set(e => e.Title, "Commander")
.Update();
with nHibernate + EF you have to do everything through entities
yes learning curve is almost non-existing :)
 
i see... i looked at EF but it looked really heavy on small project... dont u know if it can create model from existing db?
 
2:52 PM
 
Hi., C# Masters
i need bit information if someone got free time
 
don't know if model creation for SqLite exists I'm only using it for Oracle + SqlServer
 
@David yes found it, i thought about some generattion of existing tables... but it doesnt matter really, i like to do things myself, thanks i will try this definitely
@TimeToThine start asking :)
im not master but maybe can help :)
 
cheers, basically i want a Button on a form application, that will bring a dialogue box with a listview (which i will populate)
I mean i Need a dialogue box in c# windows application with a listview control
or if you know any way better, i dont wanna display information on form
 
I am delighted to see the chat in SO.
 
3:01 PM
@Zavael
 
@TimeToThine i would try custom dialog box msdn.microsoft.com/en-us/library/…
 
@Zavael can you easily use XAML in a c# win forms ?
 
@TimeToThine No
 
@Patrick do you know any better way please ?
 
@TimeToThine no, did not realize its WPF... stackoverflow.com/questions/6910122/custom-dialog-box-in-c
 
3:04 PM
In WinForms you create a new item, a Windows Form, and set the FormBorderStyle to FixedDialog or some other style
Then you just style it the way you want
 
@Patrick and @Zavael - thanks, gonna try now
 
@TimeToThine Well yeah.. A dialog is just a Form, just like your main form.
To make it "look like a dialog" you use the FormBorderStyle, and also the MaximizeBox, MinimizeBox, ShowIcon, and ShowInTaskbar
 
@TimeToThine :) glad to confuse u a bit with my impetuosity :)
 
 
2 hours later…
5:16 PM
Grrr, just ran into this issue again... had forgotten all about it:
2
Q: ObjectContext.SaveChanges() violates primary key, throws UpdateException?

robjbParaphrasing from this MSDN documentation ... An INSERT statement is generated by the Entity Framework and executed on the data source when SaveChanges is called on the ObjectContext. If the INSERT operation succeeds, server-generated values are written back to the ObjectState...

 
Here is a top tip
Don't use EF
:p
 
Heh, it has presented a number of frustrating hurdles
But I still prefer it to ADO.NET TableAdapters
 
there are other levels of abstractions between TableAdapters and EF
Programming is all about finding the right level of abstraction
 
Hmm, are you thinking third party solutions like NHibernate? Or something else?
And agreed
 
I'm using this -> bltoolkit.net/Doc.Linq.ashx
It abstract the real crappy parts sql-strings and mapping code
and you got enum-support / table functions / spatial support, stuff that is not yet in EF :)
 
5:25 PM
It looks pretty nice
 
The downside is
it's not from MS, and it's not popular
 
I've already spent a decent chunk of time abstracting the EF ObjectContext for testing and building repositories on top. :/
But I will keep it in mind for my next .NET project
 
"spent a decent chunk of time", reminds me of blogs.tedneward.com/2006/06/26/…
 
Heh. I would have to agree...
 
anyway this is also a nice talk about this stuff
 
5:42 PM
Thanks @David -- listening now
 
6:41 PM
Anyone here who could explain a weird .NET MVC routing bug, or at least give me some hints on how to solve it? It's REALLY urgent =( (live server)
http://www.krefelkeukens.be/nl/0797/keukens-modern
http://www.krefelkeukens.be/nl/0802/keukens-greeploos

Same routing ,same code, same everything (except database content) Yet the second one 404's
I simplified /{controllername}/{actionname}/{id} to 0{id}
with this global asax
 
hi folks
 
routes.MapRoute(
"SEO00", // Route name
"{wtaal}/0{id}/{seotitle}", // URL with parameters
new { wtaal = "nl", controller = "Pagina", action = "Index", id = "" } // Parameter defaults
);
I just don't get that it doesn't 500, it shouldn't be 404ing if the route works for a different ID right?
 
Hi :)
 
hi!
 
Hi. =)
 
6:57 PM
@LewsTherin dude , I had really very bad day :(
 
Mine was yesterday :(
How come dude?
 
0
A: ASP.NET routing: Literal sub-segment between tokens, and route values with a character from the literal sub-segment

MvisionIs it possible that it occurs as well when doing something like /0{id} I have this issue right now and it seems to be 404 with SOME id's , but not for others...

 
@LewsTherin very bad interview
 
Fixed it by replacing 0{id} with p/{id} for now, gotta go, if you have a solution don't hesitate to answer inside the post I Linked ,cya guys!
 
@MrAnubis Oh wow, where?
 
7:08 PM
@LewsTherin Interviewer fucked my ass frankly , he just kep giving some hard C++ codes of whom I could answer very less :(
 
What was he asking? Where was it?
I am surprised you are pretty good at C++
 
@LewsTherin exceptional handling , and some related to overload sets :(
 
@MrAnubis Exception handling? That should be somewhat ok
What did he ask?
I don't know what overloaded sets are
 
@LewsTherin ideone.com/GdCT4 , why would the program will call terminate() , but a handler with base is already there ?
 
There isn't any terminate function in that code?
@MrAnubis Do you mean why does it terminate?
 
7:16 PM
@LewsTherin when there is no proper handler to object thrown , program automatically calls the terminate() of library
 
Ok I didn't know that. But if derived_object is of type base. Then the catch should be able to handle it
Otherwise the unchecked exception will cause the program to terminate
Maybe the catch in func rethrows?
I don't see why it should call terminate.. the code is too vague
 
@LewsTherin sec
 
It actually called terminate.
Why?
Looks valid to me
What did the interviewer say?
 
7:24 PM
3
Q: Can you catch an exception by the type of a conversion operator?

rmeadorI don't know how to phrase the question very well in a short subject line, so let me try a longer explanation. Suppose I have these exception classes: class ExceptionTypeA : public std::runtime_error { // stuff }; class ExceptionTypeB : public std::runtime_error { // stuff operato...

I also would have expected it to work
 
@LewsTherin I had answered correctly that it will call terminate( but couldn't explain why, I had faced the similar problem before)
 
@walkingTarget Apart from inheriting from runtime_error they are different types. I would expect base to be able to reference derived.
I think with C# it works fine.
 
@LewsTherin It does, but that's because EVERY class derives from a base type (up to object).
 
Ya, C# handles it
 
@SPFiredrake Yeah, C++ is a weird language. I hate it.
Btw, hi!
 
7:28 PM
damn conversion operator is there !!
 
That's not the case in C/C++. If you had a pointer type (* instead of &), then it could work.
 
Oh I see
 
yes, it will
 
I forgot about that.
 
@MrAnubis Thank you for that :)
 
7:29 PM
anyways , I truly feel that interviewer raped me by asking such tough questions :(
 
That's always fun :P
 
If you did throw (base)tt
It should work?
 
yep
 
Doesn't actually work..
 
I don't remember actual code he had asked me in STL which really had blown my mind too :(
 
7:31 PM
I've purged most of my C++ knowledge. And gladly lol
 
@LewsTherin you need to catch it by const & then since cast will produce temp object
 
@MrAnubis Ah yeah. We need to extend the life of the temp to use it or something like that
 
I hadn't thought interviewer will ask me such low level/dark corner based question.
 
Well, it is C++
You didn't say what the job was for?
@MrAnubis You will find something else man :)
 
@LewsTherin software tester
@LewsTherin I hope :D
 
7:37 PM
@MrAnubis Doesn't sound too bad.
You probably did better than most others. You're pretty good at C++
 
@LewsTherin I seriously don't know , I'm not good at c++ specially after the interview :)
but thanks for support man :)
 
Modesty :P
 
@LewsTherin do you ever feel like you forgot the syntax of languages? , Don't know but happens with me
 
Yeah definitely. I keep having to looking them up at times.
 
any solution guyz?
 
7:41 PM
It happens with the weird looking ones
 
@LewsTherin yeah so true
Anyways I need to go , hope something better happens on upcoming 10th :)
good bye @SPFiredrake @LewsTherin
 
Later
 
bye
 
8:18 PM
Dunno if it was understood, but the trick of the question Mr.Anubis was the inheritance access specifier for derived
Make it class derived : public base and it will work
 
Really?
mmn
Why?
 
8:39 PM
Per the C++ Standard, 15.3 - "the handler is of type cv T or cv T& and T is an unambiguous public base class of Er"
I believe, because the default inheritance access level for a class is private, it doesn't fit that requirement
 
The stand is so vague. I find it very unhelpful lol
Not vague per se. The names cv T cv T&... meh
 

« first day (506 days earlier)      last day (4429 days later) »