« first day (1953 days earlier)      last day (3010 days later) » 

12:23 AM
Ok - So. You guys tell me if this is my fault or if it's the clients IT guy. An exception designed to halt the program was being thrown due to no connection to the require resources, namely networked access database the client uses for their office.
Now, the IT guy in all his wisdom decided to move it to a different box and not tell us and said, and I quote - "You guys should've programmed it to automatically pick up the new location". My reply, "your new config is in your inbox." hangs up phone
 
12:52 AM
I vote for IT guy
 
I vote that I don't like you >:( lol
 
 
2 hours later…
3:06 AM
why :C
 
 
2 hours later…
4:48 AM
Hi All
What is the best control for use instead of Popup
popup control has many problems with opening and setting focus and when scrolling it is not anchoring to the target it will move when you scroll
 
5:21 AM
what
bootstrap modal
 
I found some
but it is not what I want
in some articles says use Adorner
 
 
6 hours later…
11:02 AM
D:
 
11:29 AM
Hi. I have a problem using a performancecounter in C#, which always return zero. Look at my post: http://stackoverflow.com/questions/35460656/c-sharp-check-connectivity-to-endpoint?noredirect=1#comment58645231_35460656
(BTW - My question is not duplicate, as it claimed to be in my post).
The PerformanceCounter returns always zero.

I thought that there might be some configuration in app.config, but I cannot figure out what is wrong in my code.
I need to know how using performance counter, that return the same as on stackoverflow.com/questions/17026204/… (Received bytes per second). Instead - I get alway zero as a result. Any clues?
 
 
1 hour later…
12:36 PM
ffs. Turns out I didn't actually register for the Hackathon.
fuck it all. I'm gonna play TF2 all day.
 
12:50 PM
@Squiggle aah sucks man
when did you find out - when you showed up?
 
no no it's an online thing
I checked the "yeah, I want to register the hackathon" when I registered for hacksummit. I didn't see the email they sent immediately after with a tiny link that said "to register click here"
after I thought I'd already registered
 
oh there ought to be some bitching about that
 
ffs
meh
I'll still play with code this weekend
but I'll also go drink beer with some Germans, because hey.
 
That's what Germans are for
That and staring scornfully at you for being frivolous
 
that's ...pretty accurate
 
1:21 PM
Went to a casino last night
Left the place down 25p
Bloke I was chatting to was talking about how he does poker tournaments and does quite well, but "this roulette bollocks is just a way of chucking money away see" hammers video roulette screen randomly
"Oh 9's my lucky number, stick another one on there"
wins £37
some people
 
1:47 PM
I never understood the attraction of casinos
 
Casinos, or gambling?
 
either. Both?
Went to the Venetian in Macau.
 
This particular one is a bit naff but in general I would have thought the appeal is obvious, they tend to have good food, a decent bar that's never too busy and people who are paid to pretend to be pleased to see you
 
I... what.
 
Overly ostentatious?
 
1:50 PM
Just a bit
 
XD
You don't enjoy that sort of thing, even as a one-off for the spectacle of it then?
 
yeah it was a fascinating place, but I wouldn't make a point of going there.
We only went to get a decent Indian meal
 
But yeah I can understand indifference to gambling itself
 
Went to an Indian restaurant in an American-style Italian-themed Chinese/Portugese city. It was quite the experience.
 
I think a distinction should be made between chance games and cards, chance games really are just chucking money away, if you play card games it's quite different. I don't play card games because I'm rubbish at them
 
1:52 PM
oh I agree
but if I'm going to play games I do it with friends
 
Even though I know you always lose in the long run, I do kind of enjoy the table games occasionally. Streaks seem to happen improbably often
But I guess that's the point
Anyway, I'd like to go to a 'real' one some time
We only ended up in this one...because the bar at the last place was too busy
 
I thought it was just something to pass the time whilst drinking
so that figures :)
 
 
1 hour later…
2:58 PM
hey there
Anyone here well versed in the art of SQL lite?
:)
 
Nope. Is it specific to SQLite?
 
Not really, I'm wondering how I can add a database I've already created to the solution
I'm looking at are creating a new database
I have the script
already
It's a .SQL query file but wondering how I can add that to the solution (Win Phone 8.1)
There is probably an easy way but I haven't worked with sql db's much
 
3:13 PM
OK, so you have a file that contains a query that creates the database?
What do you mean by 'add it to the solution'?
If I took that literally as you said it I'd say just add the .sql file as a file, but I doubt that's what you mean
 
ok I thought you had to add some sort of db file
but this SQL query file will create the DB I'm thinking
 
OK, I don't know how SQLite creates databases, so I have no idea how you specify where the physical database file will live, or whatever
 
IsolatedStorage I think in this case
 
Should it create the database only once ever, or destroy and recreate it each time the app is started, or?
 
once ever ideally as it's read only data
 
3:16 PM
So I think this part is broadly similar to what you're doing
if (!CheckFileExists("ContactsManager.sqlite").Result)
      {
          using (var db = new SQLiteConnection(DB_PATH))
          {
              db.CreateTable<Contacts>();
          }
      }
 
I guess it doesn't matter as the total db size is small
ok that makes a lot more sense
I hadn't really looked through the sample yet
 
so I guess instead you'd load the query from the file you have and do db.RunCommandOrWhatever(fileContent)
 
I need to create the db model and attach the query file.
Just started playing around with the project now. Thanks for the clarification Tom
There is one issue I can see with the PK
 
Embedded Resource would be quite a neat way to store it, IMHO. The text of the query gets compiled into the application and you can load it with ResourceManager.GetStream("Namespace.Qualified.Filename")
 
Ok
sounds good
 
3:19 PM
Do you absolutely have to use this file to create the database or can you translate it into code that does the same thing?
 
I'll probably need to change the path dynamically as there as different db's depending on the context
I'd like to use the db for the sake of learning about the lib and it's functinality
I could do it in code easily
 
Cool. The sample I think does almost precisely what you're talking about
Have only skimmed it myself
 
One last question..
 
I guess you'd need some logic to know what the database filename should be in any particular case
 
yeah that's a thought for later
I'm wondering what I should nominate for the PK though
 
3:23 PM
results_list_objectId looks like the most obvious candidate
 
oh yeah lol
I guess that would
 
Could mean something completely different though
Is this format specified by something else?
The column set and their names, I mean
 
No I had this db hosted on a json db and I ran it through a json to sql converter
 
oh I see
 
the hosted json db shut down it's service, which is what brought me to using an SQL lite db
 
3:26 PM
was it a MongoDB instance by any chance?
 
Folder name for the sql query file..Database?
nope it was Parse.com
 
MongoDB uses the syntax _objectId IIRC
 
they offered free hosting up to a limit which was ideal
yeah I used Mongolabs before there pretty handy too
Is the naming convention for storing a database file in a folder
Database
or something else?
 
I don't think there's any particular convention
that I'm aware of
 
one gotcha
the objectID is a varchar
but the SQLLite annotation for PK is like so..
[SQLite.PrimaryKey, SQLite.AutoIncrement]
 
3:30 PM
Represents a GUID I think
and I've seen SQL Server use sequential GUIDs for keys, so I guess SQLite probably supports that as well
 
so I can use a var char type with that?
 
Don't know that one
 
I should need auto increment anyways as its read only
db
one last last question :P
My db contains all of these fields and I have a model that only contains some of the fields that I need. How does SQLlITE figure out the mapping to these model fields
 
I don't follow
 
This is the sql query hastebin.com/alimayozub.sql (db file) and this is the model in my solution to map this data to. How does it figure out which fields map to what? hastebin.com/osocepadup.vala
 
3:38 PM
I have a hunch that it won't
If the properties aren't named identically to the database columns I don't think it'll be able to, you need an annotation on the properties, I can't remember what it's called
OK [Column("name")] apparently. Simple enough
 
ok I was thinking as much, thanks
 
Just wondering, wouldn't it have been easier to move to a different document database you could host on the device?
Hm, OK, there actually aren't many
But if all you need to do is bring back objects from persistence and you never change them, you might just be able to use the simplest database of all - the device's filesystem :)
one .json file per object, keep in a dedicated folder, read in with JsonConvert.DeserializeObject<T>
 
 
2 hours later…
5:55 PM
alrite i finally found the documentation of mvc
meh msdn has more stuff and complete references
 
6:09 PM
Agh, so I'm trying to make an opcode table, but it keeps telling me "a field initializer cannot reference the nonstatic field..."
public readonly Opcode[] Table =
        {
            new Opcode("NOP", 0, () => { }),
            new Opcode("LD BC, {0}", 1, LD_BC_NN)
        };

        void LD_BC_NN()
        {
            registers.BC = registers.Immediate16_1;
        }
Clearly this is poor design, but I can't think of any better way to do this without turning it into some enterprise code.
 
Array foo = {} is that valid?
not = new[] {}?
I use arrays so rarely I literally cannot remember
Apparently it is.
 
Array[] foo = {} is valid
second one is also valid
 
@oldmud0 in what exact context are you getting this error? I cannot reproduce
 
i didn't know about Array class until now :/
 
@TomW How much detail should I go into? The constructor for Opcode is public Opcode(string disasm, byte operands, Exec exe)
 
6:24 PM
The containing scope would be helpful
i.e. the class they're declared in
Oh I seeeee
no instance on which LD_BC_NN can be called
 
good morning
afternoon
 
@oldmud0 I see where the error comes from, but I can't suggest anything without knowing more about what you're trying to do
@SteveG o/
fuck
 
o/
lol
 
o/
 
I'm trying to make a table of opcodes so that when the CPU runs, it will do something like registers.Immediate16_1 = 0x5; Table[0x66].Execute();
 
6:37 PM
 
@oldmud0 you could redefine Exec to take one argument of whatever the type of registers is, and pass registers to Execute()
Then whatever is in the body of each lambda expression only refers to something that is a parameter of the lambda, which is perfectly acceptable
 
okay
so, delegate void Execute(ref registers)
 
I'm not sure it has to be ref but sure
 
registers is a struct
 
ah I see
 
6:59 PM
damn i want a copy of windows 10 and visual studio 2015 community rite now!
 
@Rusty ..both of which are free lol
free as in "free"
 
windows 10 is free?
 
if you qualify
 
not the trail version :/
upgrade for free!
damn thats awesome, thnx @oldmud0
 
that's funny, haven't there been M$ ads about upgrading to win10 for free been blasting on all the windows 7 machines for months and causing massive headaches to productivity?
 
7:04 PM
i thought i missed my chance of upgrading from windows 8.1
:D I used to ignore that one cuz I was too comfortable with 8.1 and too lazy for a change
 
7:41 PM
you
should
upgrade
 
guys, I have a problem, my hdd makes constant sounds, like if it's copying something all the time
 
user47589
what kind of sounds?
 
from the moment windows opens up, it's every goddamn second
hard to say, it's hard drive's thinking voice:P
 
user47589
is it clicking? whirring?
 
more clicking, it's normal when you copy something
 
7:51 PM
Take a look at resource monitor, how's your RAM? If it's continuous it might be swapping
Oh, clicking? Back up right now and order a new one.
 
user47589
clicking is a bad problem
 
~15% processor, 30% memory and 0% hdd
 
user47589
drive failure imminent.
 
HDD heads click when they're about to die
 
noooo, no that kind of clicking
 
user47589
7:52 PM
we can't do tech support like this
 
it's natural hdd voice, but it should only happen when I do some operations on hdd files
 
user47589
take it to a computer repair shop
 
like installing something, or copy a folder with lots of files
 
Do you ever move your machine? It might be that the drive has slipped a mounting and it's transmitting vibration through the case
 
nah, I just took of the case and checked all the cables and everything
here, in 17 second you have the voice i hear
 
7:54 PM
Then who knows. Better safe than sorry, HDDs are cheap, buy a new one
 
this one has 1,5 year
 
Do you have RAID configured?
If the OS is seeing 0% HDD activity but you can hear the heads moving maybe it's doing some RAID related activity that the disk controller is hiding from the OS
 
i have no idea how to configure RAID
i have windows 10, I though OS will do everything for me:P
the best thing is, even if I turn off the hdd in device manager, it's still making the sound
 
RAID is something you configure in BIOS, the OS doesn't have the capacity to do that for you as far as I am aware
So it's probably safe to say that's not it
 
user47589
there's software RAID and hardware RAID
 
user47589
8:06 PM
windows can do software RAID
 
I thought that might be the case, but does software RAID suck?
 
user47589
its slower
 
[x] Suck
 
no idea what to do with it :/
 
@Dess what do you see in Resource Monitor?
Disk tab
That gives you a profile of every process' activity on every file
 
8:10 PM
now I have 50% disc activity, but i'm copying files now:P
10 minutes ago I had 0% and still this sound
 
So at a period where you're doing nothing and would expect it to be quiet, look at what processes are doing what
oh, it might be windows indexing
 
i turned off windows indexing
 
user47589
i turn off indexing and restore points
 
indexing and restore points just aren't into you
 
user47589
i've never had a successful usage of windows restore points that left my computer usable.
 
user47589
8:18 PM
haha tom
 
wait, I did a funny?
woag
that almost never happens
 
user47589
you made a successful funny. go, tom, go and tell everyone
 
user47589
you've got the golden ticket!
 
only proccesses that take more than 0mb/s usage of discs is kaspersky (0,1), firefox (0,1) and something called System and compressed memory (0,1 - 0,2) - not sure about name, I translated it from polish
and additional information - on that disc I don't have any applications, only movies and documents
and I don;t access them during that time
 
Woah, that's weird. I've just experienced what I think is synaesthesia
I don't think I've ever had this before
 
8:29 PM
lol, I started copying all the files on the drive, and the noise stopped
and it was bugging me for 2 all days
 
8:48 PM
Have you tested the drive? (am a little late to the party)
have been dealing with a restore problem all day, to find out the older backup was shit and the current backup worked - now need some hardware and be back up and running Monday.
 
Why is backup corruption so common?
I've never had to deal with it, so I'm not aware of the complexities
 
No clue - I did a backup once, 'file copy' tested it to match the servers datalog and then went to do the restore and nothing was in the folders - was 18 at time, might have screwed up the test but was fairly certain that was not the case.
like all things, it Sounds easy, but in practice it turns into a nightmare
 
user47589
9:47 PM
we should back up the backups
 
whoa, back up there
 
user47589
why
 
user47589
i need you to back me up on this
 
back up the all the backups
 
10:21 PM
but what do you do with the backup of the backup?
 
user47589
back it up
 
user47589
duh
 
but
 
Eventually you back it up to a quaintly antiquated medium, and store that in a dusty warehouse. Acid-free lambskin and/or magnetic tapes are recommended.
 
user47589
10:44 PM
what anime is your avatar from?
 
It's from a music album cover, Resonance Days by Mohican Sandbag, actually. They're a pretty great (now defunct) circle that made Trance.
For reference: (Full album cover)[i.imgur.com/PPcsQJw.jpg]
 
user47589
i see, thanks
 
No problem
 
@Amy what anime is your avatar from?
 
user47589
not an anime, My Little Pony
 
10:54 PM
I know
 
user47589
did you also know that friendship is magic?
 
11:10 PM
Magic ermargerd debil
 
i've heard that lambdas basically replace delegates, is that right?
 
user47589
i suppose so, in a way
 
user47589
they're different things.
 
@barlop lambas are delegates
except for lambdas that are interpreted as expressions.
 
user47589
that's what i had in mind
 
11:23 PM
Most lambdas are delegates
 
Oh dear. So someone was asking how to make sure an async method had finished running before continuing ahead. Someone's answer was to Task.Delay for "a few seconds" and try then.
 
...
 
@mech I want you to kill me right now.
 
The explanation of async has always been pretty good, right from the start. But there are always people who will make up nonsense even when a good explanation is right in front of them
 
the best thing is that Task.Delay is itself async
 
11:32 PM
However well you explain something, some people will always make up nonsense
 
user47589
async isn't immediately intuitive.
 
It isn't, which is why documentation is necessary
 
I wish I could force-feed people the C# Reference website over S.O., sometimes.
 
@mech well the point of S.O. is that bad answers get downvoted, so can I presume that said particular barrel of BS did indeed?
 
Oops. @TomW Thankfully yes.
 
11:39 PM
o/
 
\o
 
user47589
\o/
 
So much high fiving
Gotta love it when nobody gets left hanging
@TomW @amy @KendallFrey Do any of you know a html5 dev and/or graphical artist looking to build their portfolio. aka - do some pro pono work?
 
good luck with that
 
user47589
i dont
 
11:45 PM
I know graphic designers but they need to get paid
 
user47589
everyone i know is well established, or needs money.
 
one of them is even kiwi
lives in UK, just thought I'd bring that up
 
Ya same D:
lol Tom
 
they have a better accent than you, just saying
 
those are fighting words >:(
 
11:48 PM
honestly I find it hard to tell the difference, except that kiwi vowels are usually more wronger
 
lol
They have more localized slang.
 
I love you both to bits, no homo
 
I'm probably going to go stalk a lecture at one of the uni's and see if some third year devs want a portfolio filler
 
We did pretty well with those two
"portfolio filler"
Fill it with my sch...wat, sorry, I think I'm in the wrong room
 
lol
 
11:51 PM
Sorry America, you're the problem child
3/4 ain't bad
 
Love to go to Aus, obviously really expensive
I saw that when it came out
They hadn't got the joke so much then
 
Lol just went through my meme folder
The memories
:'(
 
good god
 
^pretty much me atm
 
user47589
11:57 PM
haha
 
well it's still attached, that's something
 
If I came home to that. I would be so outta there lol
LOL
So hawt
 

« first day (1953 days earlier)      last day (3010 days later) »