« first day (1491 days earlier)      last day (3682 days later) » 

00:01
fail :(
@Pheonixblade9 - Should the scope be used in the save changes method or the long running query method?
READ UNCOMMITTED will read any uncommitted changes - so it should be used in the query method, I believe.
Yeah, that is what I did. Still locked :(
Reading more, hope4best
which is failing? the update or the read?
and what exactly is the error?
00:17
The update, an error occurred while updating the entries
This only happens when someone hits the long running output summary page (basically it will produce a report of all the things for a date range and a month is a lot of data) and at the same time someone else tried to update a record in that table
what is the error message?
"an error occurred while updating the entries"
"timeout expired"
can you please copy paste it exactly?
It is verbatim there
I know, but with the stack trace and everything, your code elided
00:19
I just put everything away to reproduce it :(
Currently reading a whole bunch of concurrency stuff
that's what I need :/
Were you looking for a library that is used or a class it called?
wait wait
try TransactionScopeOption.Suppress
or perhaps
System.Transactions.IsolationLevel.RepeatableRead
why suppress?
I think I may have found my problem
Didn't wrap my TransformGroup into the RenderTransform of my content control
and it was going into Content instead
fingers crossed that was the only issue
Thanks to all for looking at it though
00:29
@Pheonixblade9 - good news and bad news
good: I got the ysod now
bad: suppress didnt help
@Pheonixblade9 - jsfiddle.net/0xfLm1L5
@TravisJ and that happens when you run the update?
I feel like there's some EF magic screwing me up here. I use raw SQL most of the timew
have you run SQL Profiler?
wait - are these using separate DataContexts ?
@Pheonixblade9 - That happens when I run the update at the same time that the massive query is running
Yes they are separate
user A, and user B
Do you instantiate a new context for each, or just use a global one?
new one for each
try Suppress on the update
TransactionScopeOptions.Suppress
sorry... I'm wrestling with a nasty issue, I'll have to help next week
00:45
It's fine, this is the end of the week anyway
It is hard without my testing person here to do some of these tests
It will have to wait
you don't have a unit test for it?
nope
anyway, I am off for the weekend
c ya :)
o/
Wow; I can't believe having a TransformGroup as content could break so much
I feel very dumb at the moment :(
 
5 hours later…
06:18
hi
06:33
Not sure what kind of realistic you're looking for, but I had a glance over my steam list
Here are a few games that let you permanently affect your environment
Cities in Motion 2
Don't Starve
Frozen Synapse
Garry's Mod
Scribblenauts
TerraTech
What are you thinking of?
being able to dig a tunnel? planting grass? building a house?
I guess every video game's interactions are somewhat scripted, some just have more than others
Spintires lets you make ruts and holes
The problem is that every possible interaction requires code, and so infinite possibilities mean infinite effort to create
@ton.yeung What do you mean, what is it considered?
It's an RPG
right
D&D is an RPG, just not digital
@ton.yeung There's not really any interaction with the environment other than placing things in it though
You can't do anything to the ground and/or buildings themselves
The more I think about it, the more I realize that Minecraft can do anything
I've thought about it before
Nearly everything you do IRL can be simulated in MC
Java :/
You were wanting to read the code or something?
good luck :P
recap; what do you have so far?
What's a behaviour tree? :S
an AI that doesn't include movement, or what?
I just thought of another game
Stranded II
It's a bit MC-like, but without the voxel terrain
You can plant and cut trees, kill animals, build buildings, etc.
If you're looking for inspiration, maybe check it out. It's free.
humm
back to MC
@ton.yeung explosion craters, yay
@ton.yeung I don't think I've seen that outside of MC
Space Engineers is similar, but I'm not sure if there's been much PvP on it
I think Minecraft is beautiful
yeah
I like pixel art in general
@ton.yeung I think cubism does not mean what you think it means
yeah, that doesn't look anything like MC
tru nuff
Not sure if maybe Civilization would be helpful
It's tile based, not really about terrain
Not sure, I haven't tried anything but V
Remember, simple rules make for complex behaviour
07:25
@ton.yeung There are potentially unlimited variables you could add if you want
Don't Starve has a sanity variable
That's interesting
MC actually has two hunger variables, but they're not really correspondent to anything real
 
2 hours later…
09:45
why is this one £200 cheaper than this one?
'Because Dell' is a valid answer
 
7 hours later…
16:17
protected override int AddIncrement()
{
    var value = (long) Value + Increment;
    if (value > int.MaxValue)
    {
        return int.MaxValue;
    }
    return (int) value;
}
Is there a cleaner way that works with more types?
using bigint for long feels meh
hmm
you could use checked, and handle exceptions
yeah
not even that ugly since it is an edge case that should not happen much
Can I guarantee that Increment is positive?
not sure, valid point
return max - inc > val ? val + inc : max;
might not work if inc is negative
16:30
nice, I think, gotta read it again :)
rather than adding inc to val, subtract it from max
no overflow :)
yep nice one
16:45
Ok, so johan told me to ask here, eventhough its a SQL question.
INSERT INTO logviewer_command (id,position,name,params,desc,longdesc) VALUES (1,2,'foo','bar','foobar','varvaz')

looks like correct PGSQL to me (?)
yet I get a syntax error for no reason that I could identify
pastebin.com/J9LVL8tY is the output
I dont even have anything close to an idea where to look for what I have done incorrectly
it might think "desc" is the DESC keyword from orderings o.O
that makes like no sense to me, ill try that.
@CBenni that's most likely it
urgh.
and I thought it was bad practice to put everything into double quotes
I will start doing that because I cba to deal with these (very bad) error outputs
Use something that has syntax highlighting, at least
Also, name your field descr :P
haha, renaming stuff would be too much work now
but whatever, working now, just put that into quotes
17:12
Where can I find information such as if WebBrowser control in Windows Phone is JITted?
@Marek What do you mean? All .NET code is JITed
17:40
@KendallFrey I have found pretty good link for that: blogs.telerik.com/justteam/posts/13-05-28/…
 
2 hours later…
19:57
Hey guys, I am working on C# and Linq and I am looking to create some kind of database
what format do you recommend?
XML?
20:08
@ton.yeung What do you mean with engine?
basically I want to store data like with a sql-database
(please bear in mind that I have 1h of c#-experience now ;))
Ok, possible with linq I suppose?
I know json from firefox bookmarks storage, but that is it
ok, I understand
but why choose json over xml?
Hey guys, I'm currently adding language support to a asp.net app I am making
I am wondering if there is a better way to add new resources then to do it for every language
instead of having key - value and key value
more like key value value value
for every language
20:23
@ton.yeung Easier to read in terms of programming, or something else?
Ok, hmm
I will give it a shot
Oh, this might be an XY problem :p
maybe later I want other people to be able to put data in my database as well
(read/write)
Still json an option?
@ton.yeung I don't know exactly yet as well :p
just playing around a bit anyhow at the moment
@ton.yeung Ok, I'll have a look at it :)
still uses linq, do i understand that correct?
@ton.yeung So I use linq only for processing, and need some tool/library to read the database
20:54
Lol, wtf. So I just got a dev license for Win Phone 8.1 apps (because you have to). And its expiration date is one day later? WTF?
Developer license expiration date: 12/15/2014
Does this mean I have to get a license every fucking day?
 
1 hour later…
22:13
> (because you have to)
?
 
1 hour later…
23:16
Roslyn reinvented Foxpro! I had to do my things in Foxpro for 20 years until Microsoft released Roslyn!

« first day (1491 days earlier)      last day (3682 days later) »