« first day (1020 days earlier)      last day (4154 days later) » 

14:00
@rogcg So return it, instead of calling Exit
IDK what is the problem of calling Exit
is it just your pattern or what?
It's much like throwing an exception to return a value from a method.
It's just the wrong way to do it.
@KendallFrey Terminates this process and gives the underlying operating system the specified exit code.
ALWAYS
They have given you a SIMPLE WAY to return an error code from a process. USE IT.
14:01
@rogcg the only thing I see wrong with it is that stuff that is running on seperate threads isn't beeing exited properly...aside from that I don't know why @KendallFrey is being so German about it.
WOAH guys big news!
msdn is now BLACK instead of PURPLE
TELL MEH
only racists see color
CHECK THAT SHIT OUT
14:03
@SteffenWinkler I see ZERO reason to use it in this case, which is why I think you should NOT be using it.
I've copied my whole website onto another computer and now I'm getting dependency errors. Do you guys know what could be the problem?
@SteffenWinkler I can't call Environment.Exit outside the catch, since I'm not supposed to return any exit code if the error doesnt happen.
a missing framework, something
You have some DLLs that aren't on the new system?
is it possible to have an sql table readonly, only update via sproc?
@SteffenWinkler if no error happens, it should be ended normally without any exit code
14:04
@rogcg Just return 0.
@rogcg so use a boolean to indicate if an error occured
@RyanM.Moore How do I load the dlls on the new system?
Return 0 at the end of the function, and return the error code inside the catch
@rogcg set it to true in the catch block and check it after you left the catch/finally thing
@ton.yeung ok ty, I'm not gonna do it just curious
14:05
@SteffenWinkler No need
@kaser It depends on what the error is. Find the dependency that is missing
@RyanM.Moore It's system.web.extensions
@KendallFrey I still dont see the exact reason for not using Environment.Exit. that explanation just shows the opinion of the guy. not something exact as it should be.
@RyanM.Moore I'm guessing that's the ajax extended kit that I installed
The reason is right in your code
You call Environment.Exit, but the Finally didn't run.
14:06
@KendallFrey not it's not. the problem I'm facing is not due to that.
If you had just used a return...
@kaser Make sure the correct .net framework is installed
@ton.yeung reading now.
@rogcg No, but it is a problem. Your code 'smells'.
@KendallFrey it is a problem in your opinion. If it was explicit in documenation,, etc.. we could agree. But it is a practice you are used to use.
14:07
@ton.yeung @RyanM.Moore Error: "Could not load file or assembly 'System.Web.Extensions, Version=1.061025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The System cannot find the file specified.
@ton.yeung and you are a guy with the same beliefs of @KendallFrey, right?
@rogcg Let me find the docs, OK?
@kaser what version of .net are you targeting?
@ton.yeung since you agree with him about that, and says that I don't know what a code smell is, you both have the same beliefs about it.
@KendallFrey if you can I'll be very grateful. I just won't change the code, which is following an entire pattern, because the good practices you follow are diffferent from mine.
it's simple.
@KendallFrey which paragraph?
@rogcg Keep in mind that Environment.Exit is a "practice", not a "good practice"
> returning an integer enables the program to communicate status information to other programs or scripts that invoke the executable file
@KendallFrey yes, that's why I return the error code with Environment.Exit.
@rogcg several people already told you (including myself) to not call Environment.Exit inside your catch/finally block, fix that and your code will work.
No, don't you know what returning is?
Returning != Calling a function
14:12
@SteffenWinkler my code is working. the problem is another thing. and has nothing to do with Environment.Exit. They just implicated with that, because we have differente beliefs.
@rogcg so if your code is working, what are you asking here?
So what's actually the problem at this point?
@ton.yeung @RyanM.Moore so I've narrowed it down to the ajax control toolkit that I installed. Any suggestions? @raman How do I remove the reference?
@akowalz I guess @rogcg doesn't know what he wants
@akowalz That's the point. People here is so difficult to argue. I was asking about UnhandledExpcetion, and they saw an Environment.Exit on my code, and started talking about it!
WTF!??
14:14
I didn't saw anything. @rogcg you wrote that your finally block isn't executed while you are calling Environment.Exit in your catch block
whatever. thanks for the tips everyone!
=)
@rogcg By "people" i think you mean @KendallFrey.
@rogcg I think the main reason we're still talking about Environment.Exit is twofold: 1. You aren't providing us any information relevant to your actual problem. 2. You can't take our advice.
I'll read your answers @ton.yeung and I'l consider that.
StackOverflow isn't for questions to improve a custom protocol, anywhere there is?
14:15
A quick question about sockets if anyone has a moment?
@RoelvanUden well, I'd argue it is, you just have to phrase your question accordingly
@kaser in visual studio, under your project find References and identify System.Web.Extensions. There is a tool to find dependent code. See if you are even using it.
I wrote a little image streaming protocol but it is simply too slow for large image variations (e.g. changing to a different image) and I want improvements. I have no idea where to ask.
@RoelvanUden It's about improving compression, right?
If you ask it that way, it would be on-topic IMO.
14:18
@KendallFrey Pretty much I guess, how I can achieve a smaller packet size with similar results, I already do use gzip compression on each packet
@kaser i think that post has detailed info in comments
After some days without being able to code my wpf project.. I'm back with a question.
for compression it is probably hard to beat the standard ones, jpg png, caching prefetching?
@RoelvanUden how big is one image, roughly? (implying if it'd help to change the package size)
@raman @ton.yeung @RyanM.Moore lol, I just deleted the reference in my .aspx file and it fixed it
14:19
<StackPanel Orientation="Vertical" Margin="0,0,0,15">
    <Border Background="#00A1DE">
        <TextBlock Text="Extrair" />
    </Border>
    <Border BorderBrush="Black" BorderThickness="2,0,2,2">
        <my1:Extrair IsEnabled="False" Width="250" Height="85" />
    </Border>
</StackPanel>
I have other stackpanels like this inside a stackpanel
@DavidDV woah, scary
@ton.yeung yeah!
If I change the Width values, the other stackpanels change their size too
@kaser good
Is there any alternative for what I'm trying to achieve?
14:20
@SteffenWinkler To explain what I do, I start with sending an entire image in RGBA compressed with GZip as the 'initial screen'. Then, I run an update loop to detect changes in the pixels and add each changed pixel to a delta packet (3 bytes for X/Y, 3 bytes for RGB). The entire delta packet is compressed with GZip and send as update at a maximum of 30 frames per second. This is extremely fast for small updates, but if the entire image changes the delta does nothing at all.
@ton.yeung miso means?
lol!
@ton.yeung ohh ok
@AndréSilva wpf room broken?
14:23
yo @ton.yeung
@RoelvanUden sooo...it'd be better to do something like 'if x bytes changed (maybe more than one quarter of the picture), send the entire picture again'?
No idea, but I thought I could ask question about wpf here too..
@RoelvanUden The only thing I can think of is to set a maximum packet size, so you wouldn't be able to update everything in one packet, but you might be able to update 1/4 of it at a time.
I'll join there too..
@AndréSilva sure you can but I think the wpf room might be better
14:23
@ton.yeung my little chess engine mate
@raman @KendallFrey I understood the reason of not calling Environment.Exit by reading yoour questions. what matters here is.. here where I work, there are a ton of applications that use it, so I have to follow this pattern. I was thinking in suggest my boss to use Return, but since it's already going to production, I doubt they will accept it.
@ton.yeung how are things at your end?
@SteffenWinkler Yeah this is one simple option to add.
@KendallFrey Wouldn't that look terrible?
@rogcg As long as you understand why it's a bad pattern, I'm happy.
@ton.yeung embarrassed
14:25
@RoelvanUden If you do 1/4 at a time, you could refresh the whole image in 4 frames. That's 1/6 of a second, which isn't terrible.
@ton.yeung I have to follow the pattern other developers here have always done.
here is a company full of pattern, and everything you do you have to ask a permition
@rogcg that sounds terrible...
@SteffenWinkler even my boss is mad with this rule, since he has to ask his bosses to do stuff.
programming is all about being creative and stuff
@ton.yeung any names?
14:27
just you know. I'm not admin on my machine, because it's a rule that no one is admin on their machines. LOL
wait, your boss has a boss?...wow...yeah, one of the reasons I'd never again work in a big company (where big == numberOfEmployees > 100)
@ton.yeung there is already a version going to production. I'm working on a new branch.
@SteffenWinkler bigger than 300
@rogcg ouch. I feel sorry for you
@ton.yeung yeah. we have analysts, and stuff too. and they suck. two of them was my teacher in university. LOL
@ton.yeung that'll be great... although for now im keeping evaluation (heuristics) part simple focusing on robust search
14:29
@ton.yeung kind of.
does someone know how i can omit a soapheader in a webservice? i wanna add soap authentication to my asmx webservices but i do not wanna add the soapheader attribute to all of my 5000 web service methods
@ton.yeung actually I'm not even employee of this company. I'm hired from a third party employee. it's called "body shop". LOL
@ton.yeung IDK exactly I just do the code. I dont have access to any shit of the project. they just tell me, do this, and I do.
sometimes I feel like a whore for them. LOL
mainly because it's called "body shop"
@KendallFrey Oh that improved things considerably.
@ton.yeung LOL. at least there are pretty girls here. LOL
@ton.yeung yeah i know :) but as you can imagine when i talk about asmx web services its a legacy project
and DI wasn't known that days
i have to find something that my client always sends its soapheaders, now its only send when the regarding method has this attribuut
14:33
@RoelvanUden Really? Excellent.
is there any IT company you know that works with "body shop"?
@KendallFrey Yeah I'm losing some data from the moving images but queuing a frame up and sending it in pieces looks very natural, and eventually it will synchronize again. Wonderful suggestion, thanks :
@RoelvanUden how much does gzip compress this data anyways?
@drch 50-60%
@ton.yeung WHAT?? LOL
14:35
doing things pixel by pixel sounds really slow
Let's hear your suggestion.
@drch Is there an alternative? :D
@ton.yeung ty, i'll check that...
well pixel by pixel is like sending a bmp across
He's sending deltas, not pixels
14:37
i thought it was a delta per pixel
thats a lot of data points, and updating pixel by pixel would be relatively slow as well
@RoelvanUden i missed the first part - is this for something like remote desktop or screen sharing?
Screen sharing, yes.
@drch Relatively? Not relative to network speed.
I wonder how fast it would be to create an entire delta image, PNG encode it, and send it.
Probably a bit slower than what you have now.
It would eliminate pixel coords though
yeah im wondering the same thing. if you can send some sort of delta image and combine it
but still keeping it as an image rather than processing 1920x1080 data points
14:39
@KendallFrey That is a good question. I don't really know. I think GZip can't deal with the additional bytes for everything else, especially when there are small changes.
That would still require pixel by pixel processing though
@RoelvanUden well, PNG itself is compressed
@ton.yeung It's a crazy hobby thing, hooked up screen sharing to a websocket and html5 canvas
@KendallFrey Yeah same GZip, but with more data than a delta
14:41
@RoelvanUden are you hoping to get it at 100% quality?
HAMMERTIME!
Yeah, sending low quality could be the way to go
You could send a low-quality image if there is a large number of deltas, then improve on that in subsequent frames
stupid question - couldnt you leverage a video codec for this stuff?
He is lol
A homemade one
:P
14:44
have u seen the python chat room language?
very funny
salad thing?
is it python?
salad fingers?
14:44
@KendallFrey yes
freddy got fingered
@rogcg really?
@drch 100% is best, but somewhat less while transitioning to the new scene is not bad
@ton.yeung I used to access it two years ago.
and it's still there.
encode it as an h264 video and stream it ;)
14:46
@drch UUwaaaa~ any sources on how to do that?
hey does anyone have knowledge on SqlError.State property?
according to the MSDN it's either a warning or an error
I don't see any salad fingers, only cabbage.
problem is that during a database backup I get multiple SqlErrors, state is always 1 and the error message is just an information
now I'm not entirely sure if '1' means something like 'just an information, disregard'
or if there is some different logic behidn it
@NinjaEcho Search for salad fingers.
Salad Fingers is a Flash cartoon series originally created by British cartoonist David Firth in July 2004. It gained rapid internet popularity in 2005. The San Francisco Chronicle ranked it in the "Top 10" pop culture phenomena for that year. The cartoon revolves around the eponymous Salad Fingers, a thin, green, mentally troubled man who inhabits a desolate world. Already a well-known Flash animation series available on the internet, Salad Fingers premiered in Australia at the 2007 Sydney Underground Film Festival at the Factory Theatre. The first seven episodes were shown back to back, ...
14:49
@KendallFrey cabbage is the wa we say "Hello"
um, lol
heh
CUSTOMER TESTING: The base unit of measure for the material is in KG, why isn't it converting to KG in the summary.................................. Y U WANT TO CONVERT KG TO KG, MAKE NO SENSE
lol no, the summary converts stuff to KG, so like FT to KG, based on the density and shit
@ton.yeung Well, Amish Paradise is in the similar videos list. Now I must watch Weird Al.
but if the base unit is KG, and you're complaining that its not converting the number.... herp-a-derp
14:52
heaven and hell is one of the best albums!
Oh they say that it's over
And it just had to be
Ooh they say that it's over
We're lost children of the sea, oh
hell yeah!!!
@AndréSilva I just did not get it, sry
@JohanLarsson Relax, at least you tried to help me. I'm not good explaining stuff
JUST A SMALL TOWN GIRL
is that journey?
Watch the linked scene lol
Amish porn
just turn off the sound
very sfw
14:56
@JohanLarsson And I think I got it this time. Using WrapPanels
@KendallFrey Weird Al ?
Weee, ordering a hotfix by email from Microsoft. fun
Amish Paradise if I'm not mistaken ._. I can't see youtube to be sure :(
@AndréSilva aye
@KendallFrey Gotta love that song.
14:58
black sabbath
Blue oyster cult?
Ronnie James Dio. best vocals always!
@rogcg WRONG, we are naming bands that start with COLORS
Also Tony Martin

« first day (1020 days earlier)      last day (4154 days later) »