« first day (342 days earlier)      last day (3807 days later) » 

3:04 PM
JavaScript is the future, Rudi... In a few years everything will be js, you'll see :P...
 
hahahahahaha
You nearly just killed me, oh god
 
tsss
 
You know why though?
 
Because the open source fools rub up against it?
 
3:06 PM
Because it's easy and has standards :P.
 
You must be new to Javascript..
People have used the same argument for Objective-C, and, well, they can and most definitely should go jump into a fire.
 
No, but apparently i'm new to humor...
 
humour* :D
But no, seriously, people say that about Obj-C
 
They deserve to suffer
 
3:08 PM
it seems you don't like obj-C
 
Oh, no, it's a wonderful language full of opportunity...
 
Well, it's awful but unfortunately necessary thanks to Crapple's reign in smartphone world (for now)... It's the people that say it's EASY and GOOD that need to die, not the language itself
 
Worst thing is that most js folk have no clue how bad their code is since they haven't done anything else...
Sans php perhaps :P...
 
Well I actually find js to be a very powerfull language
functional programming is nice
 
JS is a powerful language, but again, to say that it's nice, well structured and sensical is not right
 
3:11 PM
Indeed, but you need to know your stuff (plus a lot more) to utilize it properly...
 
but I agree it's VERY hard to produce maintanable code
 
sena krappar
 
I actually build a full MOF in javascript
and it's working pretty well
 
Johan o.O?
 
Hey Johan :)
 
3:13 PM
Congrats, Sisyphe, that's really cool.
 
^^
 
Evening Johan
 
well now I need to optimize and track memory leaks...
which won't be fun
 
I think I need to write some wpf tonight
 
Yea I haven't written WPF for a while :(
 
3:14 PM
but well, transaction is working, reflection and notificaitons too :D
 
Johan ^_^...
 
Johan : go work on Mongoose :D
 
@Sisyphe but I suck so hard!
 
come on !
You're our only God here !
 
Oh, get a room...
 
3:17 PM
don't be jealous
 
This is what I need:
A wrapper for mediaplayer that lets mes step forward and backward with fine resolution. Then save ~bookmarks~ for different things that happens in a table. Will use it for work when analyzing robot sequences for example. Don't know how much pain it will be.
It will be on github if anyone wants to play
Biggest threat is the bed and the great nothing I think
 
Im' not sure mediaplayer is very nice to play with
guess it will be a pain
 
Is there a more convenient wrapper?
drawing overlays would be nice too, guess that will be hard.
 
not really sure
I think there was something around VLC when I looked at it
not sure though
 
3:21 PM
That would be nice...
 
I guess you have not tried it
 
didnt try that one
maybe it's worth a look
 
Ooooh VLC .NET awesome
 
3:22 PM
I hope so...
Indeed...
 
18k downloads, should be decent ^^
 
Downloads==hype...
 
maybe
 
wait
what are you guys doing?
 
3:24 PM
MediaElement isn't good enough for you?
 
We're starring like sexy mfs, you?
 
:D
 
Crap, Mav is here say something off topic!
 
i'm randomly waking up
 
Not nearly...
 
3:25 PM
this is GC.CollectGarbage();
 
FLYING MONGOOSES
 
Promoted to Generation 2 :P
 
oh, i'm in trouble...
 
@JohanLarsson have you tried MediaElement and concluded its not good enough?
 
I said MediaPlayer was not good :P
 
3:26 PM
why would you use MediaPlayer in a WPF channel?
 
I have very foggy memories about working with it and not liking it very much
maybe that was MediaElement though
 
@Maverik all I did was spam some kind of spec here, will check mediaelement out ty sir :D
 
and maybe it's good
 
MediaElement.Position is a TimeSpan so you should have pretty fine control of seeking
 
actually Johan you should not pay any attention to what I say today
Maverik : it's based on MediaPlayer though right ?
 
3:28 PM
I'm not sure if it is but hopefully not
 
I think it is
 
considering it plays Storyboards - i'm not sure how you'd do that in media player?
it may be using same libraries but I doubt its actually a thin wrapper
 
meaning you will need all kind of codec to be able to play any kind of video ?
 
@Maverik will try it first. Just need to find a way to get started, getting questions here is the best or only way to get me started with anything lately.
 
oh that's true for VLC even!
 
(that's why I was more leaning towards a VLC based solution)
Vwell not really
VLC does not need you to isntall codecs
 
@Maverik do you know if it plays nice with an overlay?
 
A Codec is to a MediaPlayer as a Driver is to Operating system :)
Overlay as in HW overlay or as in transparencies ?
 
VLC natively plays almost everything
 
nah mate - there's no such thing
 
3:30 PM
I don't think that's correct, Sisyphe...
 
it just packs everything with it
 
yeah
 
(i love vlc btw)
 
well when i say natively...
 
@Maverik transparencies, was thinking inccanvas over it
 
3:31 PM
let's say it's packaged in the application
 
Johan: since its wpf.. i'd expect it to
its an intended target for Storyboard.Animation
it should play nicely with overlays
 
:)
 
what is wrong with pinging me? I'm a multichatter, need pings :)
 
@JohanLarsson
 
because you're pinging me today on every sentence
so we have our cases reversed :)
 
3:32 PM
sry & ty
 
besides.. i have your attention already.. dont need to ping you :)
np
 
Don't believe that was meant for you :P...
 
nah pretty sure ty was for you at least
I'm not sure why he said sry
pings are there to be used right? nod
 
yeap
 
1 min ago, by Maverik
because you're pinging me today on every sentence
Why he said sorry...
Mav, stars :P?
Oh, come on... Who starred that?
 
3:35 PM
got my R#8 license now
I starred it
 
Okay...
Oh, congrats, Johan!
 
nice enjoy :)
though right now R# is driving me nuts too!
 
i used the dotTrace tool they have, its pretty nice.
 
R# + VS2013 + MS Git = 100% cpu usage
 
When I opened VS gf came with a beer, think it is a sabotage.
 
3:37 PM
you have a gf - i'm amazed you can program in first place! :P
 
^
 
err
 
I can't
 
go on.. spam the stars away
lets hit 100
 
3:38 PM
she brought you a beer, then she left you alone and now you're trying to program... right.
 
then i can knock 50 off!
 
Yes sir!
 
feels like Friday in chat tonight!
 
Damn kids
 
people are goin nuts :D
its goin to be a slow clean up!
 
3:38 PM
Indeed...
 
you do realise i have to do it one by one?
 
Be careful what you wish for...
 
and have to forge full blown requests to cancel things that aren't visible
 
27 secs ago, by Stefan Denchev
Be careful what you wish for...
 
I wish I code code
 
3:39 PM
@NETscape yes but then what if she does while(true){ beers.Take(1)}? Will probably not push that code.
 
go on .. make that come true! :P
 
"You have fully used your vote allowance for today" lmao
 
Fortunately beers.OnCompleted() will eventually be called and Take(1) will throw
i didn't know there was such a thing!
 
I think it is max 30 stars/day
Have used mine up a couple of times
 
I'm guessing stefan is enjoying the star combat
 
3:41 PM
But you have fresh stars at SE
 
where he takes off a star and somebody else stars :)
 
go on, finish your vote quotas :P
 
I have 27 more today i think
 
sadpanda
 
3:44 PM
i feel relaxed now - i ditched unit testing
everything started working :) (as a result of ditching unit tests)
 
still, i'm not very proud of it - i learned that unit tests really do help (when they actually work!)
 
@Maverik did you do testing for long?
 
spent days
then i gave up
 
Poor thing...
 
3:46 PM
i was supposed to have this project done by 12th of this month
 
hugs Mav
 
it rolled over to 12th of next month and I'm still not sure!
 
If you don't mind ofc...
 
offers Stefan a bear (no that's not a typo)
 
Thanks! hugs bear
 
3:48 PM
I've given "Free Hugs" - there's nothing wrong with giving random hugs to random strangers!
 
Rabies?
 
jesus
 
well i got some free kisses out of it too but that was unexpected bonus :D
think if we do it again in coming year, i'll do it a bit more organized and have a full team of free hugers :D
we hug anything and everything.. anywhere .. anytime :D
 
3:51 PM
Mav, remember my mysterious holding page? Want to see the full site? Well, the theme for it
 
sure
 
> This operation cannot be completed. You are attempting to move or rename a source-controlled item where an item of the same name already exists, the item is exclusively locked elsewhere or the item path is invalid.
wut
 
youa re doing something wrong
 
No kidding, Sisyphe :P...
 
3:54 PM
did anybody check the logo i was talking about at simpleinjector.codeplex.com/…
 
the creator of simpleinjector chats in C# sometimes
 
Damn you, Mav, I spent the whole day trying to forget that...
 
well next time tip your hat to him for me
for choosing such a brilliant logo
 
46 mins ago, by Rudi Visser
JS is a powerful language, but again, to say that it's nice, well structured and sensical is not right
I think that's interesting, Mav...
 
Interesting indeed but off topic :P
 
3:58 PM
Your face is off topic
 
that too
 
Indeed...
Okay, ciao for today, guys.
 
cya stefan
 
"Stefan, we have selected a limited number of players to give a special £â‚¬$1250 FREE!" lol.
@chocolateentities avatar <3... Alright, bye now!
 
@Maverik Here it is, just rough at the moment
Gotta run and pick up my car!
 
4:05 PM
I likes! i wish i could do web stuffz :(
 
4:27 PM
Hi, Anyone here?
 
sure thing
 
Sorry, new to Chats, not sure where to check...
Are all the icons on RHS active people in the room?
 
OK...
 
the brighter ones are people currently active, the faded are inactive
 
4:30 PM
and they fade out depending on time since last active
 
I see...
 
meow meow meow
 
@user2753402 consider picking a better username, will be hard to remember you if you use the default
 
I need some opinions on a silly problem with Do-While loop in Silverlight - Anyone up for that?
Thanks, I will look at changing my userName
 
@user2753402 ask with code?
 
4:32 PM
anyways, whats your problem
 
Generally it is good to speak C# or Xaml when asking
 
I have posted the question earlier, and got harassed by another user not understanding my issue, then deleted the question.
OK, here goes..
 
I have file Resources\Themes\Modern.xaml with Build Action set to Page.
private static string ThemesFolder { get { return Path.Combine(Directory.GetCurrentDirectory(), @"Resources\Themes\"); } }
Uri uri = new Uri(ThemesFolder + fileName + ".xaml", UriKind.Relative);
ResourceDictionary resourceDict = Application.LoadComponent(uri) as ResourceDictionary;
It was working in VS, but failing when installed/ran from program files. Now with the changes above, it was working when installed but crashes when ran in VS saying "Cannot load resource ''"
uri is full C:\user\x\path\to\Resources\Themes\Modern.xaml but on Application.LoadComponent(uri)it produces "Cannot locate resource ''."
 
I simply have:

do{

BytesToRead = COMport.Read(ByteArrReceiveBuffer);
//Proccess TheByte Array

}while(BytesToRead > 0)
This do-while is inside a backgroundworked DoWork Event, and everything runs 100%
My Problem comes in that, directly after the do-while, I want to COMport.Close();, but this code never gets hit (But the do-while does stop running)
 
why do-while and not standard while? not saying it is wrong
 
4:39 PM
I have actually tried both, while and do-while during troubleshooting.
 
@user2753402 does not get hit as in you tested with a breakpoint?
 
Yes, breakpoint.
 
is COMPort IDisposable? Feels like it should be, using is probably the cleanest way to use it if so
I'm not sure you posted enough code to get help really
 
are you sure its not actually closing?
 
and no exceptions?
 
4:43 PM
OK - Loooong story short - I am using a Serial Wrapper Class, to access the COM port through P/Invoke, and the actual code is not COMport.Close(), but rather COMport.Dispose()
The .Dispose however is not IDisposable, but rather a file handle that get deleted - Now with the code not getting hit, it is not deleting the file handle, and I cannot open the COMport again, unless I restart the App.
i.e. Access Violation
 
I'm pretty sure the framework has a nice com-port wrapper
are you using some third party?
 
for silverlight?
Yes, a class I found through google.
 
oh, sry forgot about Silverlight. No idea then, never used it.
 
are you returning before that .Dispose() call ?
 
returning?
 
4:46 PM
return;
 
break;
?
 
do you have a link to the wrapper class you're using?
 
I cannot return or break, or anything for that matter, until I know that I have received all the bytes, and there in lies my problem, as the do-while should "return" when there is BytesToRead = 0;
give me a sec, I'll see if I find it...
Again - I know this class is working, as I tested everything outside the loop, before tackling the project, and could open the port, write to it, Dispose it... Problem is simply getting out of the do-while, so I can call the .Dispose
 
there's only two possible scenarios where code isn't hit
 
two beers and zero lines of code thus far
 
4:52 PM
one you return too early .. two you get exception
without having access to code itself, its impossible to tell whats going on
 
but since its in the background thread, could is it possible its getting hit and the debugger isn't catching it because of whatever reason
 
Here is the wrapper class:
http://stackoverflow.com/questions/8989538/serial-communication-with-silverlight-5-com-port
I do not believe it is getting hit, as it would then close/dispose of the COMport which it is not
 
int bytesRead;
what is BytesToRead?
 
int bytesRead, is returned to my:
int BytesToRead = COMport.Read(ByteArrReceiveBuffer);
 
is it always > 0?
 
5:00 PM
No, it returns the amount of Bytes read from the COM port
 
and I think you need to do (BytesToRead < 0)
 
I have a device that streams data to me over a COM port for about 1 minute or so
bytesRead (BytesToRead), should only ever be < 0 if an error occured ?
 
yes
   BytesToRead =  COMport.Read(ByteArrReceiveBuffer);
   while(BytesToRead > 0)
    {

    BytesToRead = COMport.Read(ByteArrReceiveBuffer);
    //Proccess TheByte Array

    }
you're priming the while loop right?
 
I did Prime the While loop, but obviously moved the BytesToRead = COMport.Read(ByteArrReceiveBuffer); inside the do-while, when I changed to a do-while.
I know, I prefer a while loop, and only changed to a do-while out of frustration.
 
5:08 PM
this works when its not in a background thread though?
 
@StefanDenchev ??
 
Other thing I did not mention relating to my earlier comment:
My Problem comes in that, directly after the do-while, I want to COMport.Close();, but this code never gets hit (But the do-while does stop running)
The Backgroundworker.Completed, also never fires.
 
user: create a sample app that recreates the problem and share the full code of that
you're obviously doing something in your own code that we can't see
 
how do you know the do-while stops running? the debugger could be switching to main thread while the backgroundworker is still running in background, so you might have a infinite loop
 
+1 to that
 
5:11 PM
Honestly, I have not tried, as I'm not sure I could even test without runing seperate threads - As I need to update the UI constantly with data received.
 
You should be abel to break in the debugger
and open the "Threads" window
and click on the threads until you get into the BG worker
you can use that to figure out where it's blocked/working
 
Hi All, Wish It was easy to just create a simple app for you, but this is very complicated.
Hi Reed, Sound interesting
I have not used this before, and will take your advice, and try this in the morning.
@NETscape - Than you also for the advice (+1)
 
It's Debug->Windows->Threads
If you put a break point in the BG worker's DoWork event, you can also get the ThreadID for that worker (so it's easier to find later)
just check which is the selected thread in the threads window
 
It is now 19:20 here, and need to leave the office, will take your advice and try it out tomorrow
 
how are you updating your UI components?
 
5:16 PM
@NETscape - I'm updating the UI through bw.ReportProgress
 
user: generally isolating one part of your application isn't a huge issue when you can't debug in full app if you designed it well :)
we dont need entire app.. just try to reproduce com bit of the code in a sample app
dont even need to put gui..
spit it out on console in main thread
if you can't get the problem created in a simple console app.. you're looking in the wrong place
 
try commenting out the code that is updating the UI.
 
OK, thanks ALL - I will take these suggestions and run with it in the morning, maybe look you up again tomorrow.
Gotta go - THANKS for the help.
 
@ReedCopsey report progress should only be used for something quick. If its "reporting" for too long, does it get blocked when the while loop spins again?
essentially reading bytes faster than it can update the UI through report progress
 
ReportProgress will block until it completes
which means that you throttle to your UI speed
 
6:18 PM
sftp = pain in the bum
 
if i have
this.chart1.LayoutUpdated += (s,e) =>
{
    chart2.Margin = GetMargin(chart1, chart2);
    chart3.Margin = GetMargin(chart1, chart3);
    chart4.Margin = GetMargin(chart1, chart4);
    chart5.Margin = GetMargin(chart1, chart5);
    chart6.Margin = GetMargin(chart1, chart6);
};
and then I make a chart7, can I just use += and the chart7 syntax to "add" that to the event?
 
whats the proper way to reference file when setting a ResourceDictionary?
 
it should add it if i understand correctly, just like i += 1
 
Uri uri = new Uri(ThemesFolder + fileName + ".xaml", UriKind.Relative);
ResourceDictionary resourceDict = Application.LoadComponent(uri) as ResourceDictionary;
^ results in Cannot locate resource ''.
 
@NETscape Why not just make a List<Chart> charts, and foreach them in there?
 
6:24 PM
hrmm I was reading that
so many different usages
 
if it's in your assembly, it'd be: new Uri("pack://application:,,,/" + ThemesFolder + filename + "xaml")
if it's a different assembly, then it gets stranger
(need component + assemblyname)
 
ah thats where I was confused
 
that's the right spot
 
twss ^^
thx
hold that victory dance.... "Cannot use absolute URI.".... and when trying to specify UriKind.Relative i get "A relative URI cannot be created because the 'uriString' parameter represents an absolute URI."
I guess i don't need Directory.GetCurrentDirectory / abs path huh
Uri uri = new Uri("pack://application:,,,/Resources/Themes/" + fileName + ".xaml");
ResourceDictionary resourceDict = Application.LoadComponent(uri) as ResourceDictionary;
"Cannot use absolute URI."
 
Oh, need the UriKind.Relative still
 
6:32 PM
Uri uri = new Uri("pack://application:,,,/Resources/Themes/" + fileName + ".xaml", UriKind.Relative);
ResourceDictionary resourceDict = Application.LoadComponent(uri) as ResourceDictionary;
 
wait
it should be absolute
 
"A relative URI cannot be created because the 'uriString' parameter represents an absolute URI."
 
that's odd
yeah - it should be an absolute one
 
This is where I scratch my head
 
Oh
yeah - it's
Uri uri = new Uri("pack://application:,,,/Resources/Themes/" + fileName + ".xaml");
var resourceDict = new ResourceDictionary { Source = uri };
 
6:34 PM
tada!!
thanks... agaain
is that just for uri's? or should all things like StreamReader("Files/file.xml") use UriPacks ?
I'm using Directory.GetCurrentDirectory() in my StreamReader and that seems to be working in VS & when deployed, it was this themes Uri that was breaking everything
 
this is for packed resources
I wouldn't use GetCurrentDirectory() if you're trying to load a file near your assembly
because anything that changes the folder (ie: if it's run with a different startup path) will break that
better to go off the executing assemblie's location and use Path.Combine to build after that
 
streamReader = new StreamReader(Path.Combine(Directory.GetCurrentDirectory(), @"ReceiptTemplates\templates.xml"));
that let it work in VS and when deployed in ProgFiles
I think I was doing assembly location originally then switched to that heh
 
That works, provided the user doesn't start the program a different way
if they use your shortcut (that has the startup folder set properly), it'll work fine
also provided you never open a file dialog, or anything else that messes with the current directory ;)
 
no you've got me scared now, I'm trying to figure out how to change it,
 
Use Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) - works much more reliably
 
6:43 PM
oh sweet
 
anyone know how i can figure out where my dll gets stuck when using regsvr32... happens only on Win8
I have source code for it
don't know where to look though
 
what do you mean "where it gets stuck"?
 
it doesn't give me an error, it doesn't say it has succeeded
regsvr32 is not running -s
 
do it in cmd prompt
err you are
 
ok i have a weird problem. i have a TabControl with a DataTemplate that contains MyUserControl which contains a ListBox ... as soon as I give the ListBox an ItemsSource, it causes the SelectionChanged on my original TabControl to fire twice for every one change
 
6:55 PM
yeah i am
 
-----begin-----
@echo off
regsvr32 /s mydllfile.dll
if errorlevel 3 echo "this failed" >> c:\test.txt
-----end-----
freaking fantastic SourceTree just blew away my days work >_<
unreal, was just trying to do a simple pull/rebase and it freaked out and now all my changes are lost
 

« first day (342 days earlier)      last day (3807 days later) »