« first day (969 days earlier)      last day (4203 days later) » 

00:54
@Lews ping
 
8 hours later…
08:37
Hello
Hey @RoelvanUden!
Hi Hank :-D
Will you look at that, a whole crane with your name on it
Yeah we're popular.
08:43
;)
so, pop quiz. I have a Windows Service which I want to register. Normally you'd use installutil.exe, but on the server I'm installing it, I need to specifically go to C:\Windows\Microsoft .NET\Framework\4.0.xxand execute installutil.exe there
this has major disadvantages as I wrote my service to be self-installing via ManagedInstallerClass.InstallHelper
which takes the installutil from C:\Windows\Microsoft .NET\Framework(x64)
(which in turn throws exceptions all over the place)
to be exact, this exception during uninstall: System.ComponentModel.Win32Exception: The specified service does not exist as an installed service
09:03
Oh wait... running round in circles again
0
Q: Getting some error while adding web reference?

ramanI am working on implementing the First Data e4 Gateway in ASP.NET. While adding references to web service i got the following Error: Please help me to resolve this. Thanks in advance.

please help
@Visions you got 2 accounts? Raman and this one?
09:24
....and he's gone :P
0
Q: OR condition to multiple field set on Success function - Jquery Validation

codebrain I have Current address as mandatory. now,I want any one of other three addresses(Test, work, office) is mandatory. My validation script: <script type="text/javascript"> $(document).ready(function Validate() { $('#frmPMH').validate({ onfocusout: false, onkeyu...

hey Action
bonjour @codebrain
bonjour ;) @roelvanuden can you help me with some jquery validation ?
Salut !
@codebrain I haven't used it.
:( huh .. y u no do it. :P
09:33
Haven't had a need.
okay cool !
what's wrong with this : $(('#someid').val() == null ){alert("someid is null")}
Your dollar sign maybe?
($('#someid').val() == null ){alert("someid is null")}
i should consider that. i think i should use =="" instead of null !? i will check both
yeah , got that to work swapping $
I check values of text input with "" normally
at least, in javascript
C# I use String.IsNullOrEmpty
obviously
yeah i should. i am trying to implement unobstrusive jquery on mvc app.first time !
09:47
unobstrusive javascript is still a mystery to me, good luck! ;)
thanks mate :)
 
1 hour later…
11:16
hey somebody here ?
nope
thats cool. how to set default value to a textbox that has autocomplete implemented ?
11:44
Hi
I have 3 checkboxes in win forms (not checkbox list., don't wanna use it)

now if i uncheck 1 in event of another checkbox then it doesn't work properly
I just want 1 checkbox at a time
WPF? WinForms? Razor? WebForms? Pen and paper?
i am using radio buttons now
hello
pen and paper are best
12:00
i prefer pencil since you can roll back your transactions
nyuk nyuk
bazinga
fuck its 8am, why isn't it 5pm yet
@Steve if it helps, it's 1pm here
hello
i want mvc4 help
I have a simple mvc4 app where users can create projects and add comments to each project
on the project controllers index page I put a simple html action link to each task which can be done on project :
edit | details | delete | add comment
I have a simple mvc4 app where users can create projects and add comments to each project
on the project controllers index page I put a simple html action link to each task which can be done on project :

edit | details | delete | add comment

the first three things are working fine...
but the add comment part ! I knw its a simple query but somehw I cant work it out.
This is the html action link :

@Html.ActionLink("Comment", "Comment", new { id=item.ProjectID })

(i m passing the project id. i want to create new comment for the same project id.)
12:25
G'morning ladies and germs
need your help on Code Project to put a stop to moronic samples of code and bold statements with no backing
@Steve it is only 7:25AM here
ughhh
It looks to me that the guy used 4 of his buddies to get him a 5* rating so he can get a better job
http://www.codeproject.com/Articles/604679/Parallel-Programming-in-Csharp-4-0-4-5
can help me ?
3
Q: Filling and binding two combobox WPF Caliburn.micro

enzop92I have this table: I use in my project this view Called NewItem and in this view there is two combobox. I would like to do this : that in the combobox Group there are all DESCRIPTION of table GROUP, and when i choose an item of this description (of first combobox) the second combobox fil...

12:48
WAKEUP
@Billdr Moo?
note to self, if you have to remote desktop to your machine from work, make sure you close any porn tabs before you leave the house
Good cow. This room was no where near the front page. How would people find us if we're not active?
@drch Or work at a sex shop.
we were hiding bill
way to go
Busy implementing stuff into a HTTP server >_> didn't want randoms come her e:P
12:49
Woops. Now user13814 knows where we are.
busted
and i noticed yesterday that when i close remote desktop, the box drops off my hamachi vpn
damn porn
I noticed my raspberry pi doesn't rejoin the network if the router is restarted.
can't wait to figure that out.
what do you do with it?
(it's a small webserver and it will control my bitcoin miners)
hah!
12:54
oh, that needs a password.
sweet
hmmm
I've got another one that's flashed to do penetration tests. I'm hoping to write a script that'll open a hole for VPNing onto a network.
Then I just plug it in behind a computer, and wham, unilimited time to haxor teh gibsons.
Erm. My password isn't working.
uh oh
Guess that box wasn't ready to be exposed to the web.
nvm, case sensitive usernames ftl.
Case insensitive anything FTL
13:07
You mixed case loving hippie.
If you move far enough south, that'll get you shot.
I don't see the connection.
I'm a quantity over quality joke-teller. Sometimes they're mildly amusing, and sometimes they're straight whiffs.
Quantity, huh?
Mmhm.
burp
13:18
fart
how rude :)
13:31
does the execution of multiple stored procedures affectes the performance of an application?

I mean, I have 5 Tasks running, executing multiple SP's, and the memory usage is almost 1GB, sometimes causin OutOfMemoryException.

So, executing multiple SP's might increase the memory usage?
Of course.
@KendallFrey great! i might comment the code snippet where I call the SP's and see if the memory usage increases.
LAMP: for advanced debuggers.
??
13:35
are the sprocs causing the memory increase or are you messing with the return data in memory?
if youre returning a result set, you should be able to iterate that without a huge memory overhead
1gb is a lot
actually i'm just sending the parameters and calling ExecuteNonQuery
My thought process just went like this: Why doesn't my API work? Why is the API URL 404ing? What's the command to view file permissions? How did 'other' permissions get lost?
@drch right now it's on 600mb
do you see the same if you execute the sproc from sql management studio?
ie, is this memory being used by the db server or by your c# code
my mistake. i'm calling ExecuteReader and saving it to a datatable. and I return this datatable.
and then I make some LINQ operation on it.
13:41
That's probably the problem.
Do you use all the records you return, or do you query it?
quick question for you guys, so we all know that coding against an exception is wrong (or less than desired), but here is an interesting scenario. Say you're trying to process the image, first you must validate it is indeed an image. Now there really is no easy way to make sure, unless you open the image and try to play with it, but then you close it because you're just running a validation...so in this case wouldn't it be okay to open the image and try processing it?
until you run into an exception, at which point you can say it was an invalid image (or something else went wrong)
@KendallFrey actually I dont think that is the problem. because te TASKS only make the SP execution. I retrieve the result after Task.WaitAll() finish its execution.
the LINQ operation are only reached after the end of WaitAll execution. the problem is on the SP, not in the LINQ.
after the WaitAll execution, I just create lists, and populate it with the result of the Task function, like this.

Dim dataACQUIRER As DataTable = taskList(0).Result
List.AddRange(....linq from DataTable)
@StanR. Is this assuming you're using a .NET image class to load it, or you import the image yourself?
.net
@rogcg How many records does it return?
@StanR. Then you'll probably be best checking for an exception.
13:52
im doing something like Image.FromStream
so i think it doesnt make sense to do that twice just to check validation, i might as well try to catch an exception at that point
Are validating that it is an image, then opening it?
Why not just open it once and catch the exception then?
that's what i am saying :)
it's just going against the whole "coding against an exception" argument
What is?
Validating first?
The whole point of an exception is to throw in an exceptional situation.
no..not validating first and just flat out opening it
@KendallFrey IDK exactly. but its a very large amount of data.
13:55
If you try to process an image that's not an image, that's an exceptional situation and should be dealt with then.
@StanR. Consider TryFromStream, that doesn't throw an exception, but returns false, if the operation wasn't succesful. this method would have an out parameter for the opened image.
@KendallFrey i commented the SP call to see what works.
@rogcg Why do you need to return so much data? Do you actually use every single record?
@list that's what i was looking for !! thanks.
Now you've convinced me that I've convinced myself that int.TryParse is a bad idea.
13:57
lol.
don't overthink it
@KendallFrey of course! I also consume other servers database. not only mine. like 5 servers
What do you use the data for?
Do you display it on the screen?
@KendallFrey no.. I do a bunch of data crossing, etcc.
Sam
Sam
@KendallFrey hey again, had any venison?lol ; )
If you load a lot of data into memory, you will use a lot of memory. There are no two ways about it.
@Sam Not yet, but possibly in two weeks.
Sam
Sam
14:00
@KendallFrey lol, ok
@KendallFrey its probably that.
you have a date with venison?
Sam
Sam
maybe
A guy I know is having a 'wild game feast', so if I make it to that, I'll get venison, bear roast, moose, goose, rabbit, who knows what all.
@KendallFrey You could always do what my predecessor wrote: gist.github.com/davunderscorei/5757081#file-isnumber-cs
Sam
Sam
14:02
sounds nice
Jun 4 at 20:19, by Kendall Frey
FUCK FUCK OH FUCK
Jan 15 at 21:47, by Kendall Frey
FUCK FUCK FUCK RUNNNN
Jan 3 at 20:00, by Kendall Frey
fuck fuck fuck
Somebody got paid to write that code... real money and everything.
Sam
Sam
is it theoretically possible to write a program that can write programs?
Oh, hell, yes.
Have you ever heard of a quine?
14:04
@Sam Visual Studio?
:P
Or a compiler
Sam
Sam
obvisuly i know what i compiler is :p
What about a quine?
Sam
Sam
nope
it's not possible to test whether a program is a valid program ;)
rather write a program that tests whether another program is a valid program ;)
14:05
A quine is a program that outputs its own source code.
Sam
Sam
oh ok
They're rather challenging little puzzles to make.
Sam
Sam
sounds interesting, is it possible to do this in c#
There are also programs that output program B, which outputs program C, which outputs program A again, etc.
Though I thought there was a C quine that was an empty file...
14:06
@KendallFrey i've just tested with the SP calls commentted, and the memory usage haven't increased. it's probably that. performance issues on the SP's.
@Sam Any turing complete language.
@ShotgunNinja Yeah, submitted to IOCCC
Sam
Sam
right, thanks
There are lots of this kind of program in the IOCCC.
yay kendall is here
Sam
Sam
so a quine program actually outputs another valid program?
14:08
House Frey
@Sam A quine outputs its own source code.
Sam
Sam
And thats it?
Yeah.
You can of course make it output other programs.
Sam
Sam
how?
Console.Writeline("int main() { }");
14:10
By modifying the program.
outputting other programs wouldnt be that difficult would it
Making a program to output program B is as simple as outputting a string with the code for program B.
Making a quine is more difficult.
there is an enum that I have in another project that I want to add to my interface project. When I try to add a reference to the project with the enum in it, I can't because it would cause a circular dependency. Any suggestions on how I can achieve getting the enum into my interface?
Sam
Sam
but how do you actually execute program b?
@N00B.NET You have the enum defined in the wrong project
@Sam Send the output of program A to a file, compile, and run.
Sam
Sam
14:14
@KendallFrey Ummm, so how would i compile the file?
Ummm, with a compiler
Sam
Sam
obviously, but would i have to make a compiler, or use an api or something else?
No, just use the C# compiler.
Assuming you output a C# program.
Sam
Sam
yeah, c#, i suppose the compiler would have to be on the target machine?
Huh?
What target machine?
Are you referring to a program outputting another program, or to a program running another program?
Sam
Sam
14:17
im thinking of writing a program that will be executed on a different users machine that will generate another program...
Define 'program'.
Are you referring to an exe specifically?
Sam
Sam
yes
Why not just write the final program and get rid of the middle step?
In that case, you want to write a compiler.
that is usually called a virus or an installer
14:18
What kind of program do you want to create?
Sam
Sam
an installer
so i don't have to keep downloading all the files that are needed...
and it would be kinda cool as well...
lol
In that case, you just want to copy a file across.
There's nothing about creating programs there.
Sam
Sam
to start with, i'll be using it for that purpose
Why don't you use IExpress or Windows Installer?
heyy hi I have did calulation to transform points from picturebox to resize image.
Sam
Sam
14:20
because i need the experience...
and they usually cost money..
With what? Packaging files?
No, they don't cost money.
IExpress comes with Windows, and WiX is free.
Sam
Sam
ummm, i'll look in to it, anyway it would still be a good idea to know how to do that.
any idea where to get started with making a compiler?
Why do you want to make a compiler?
compilers and installers are completely unrelated.
but still i want to get same color when i click on picturebpx bottom corner of when image is fit to picturebox by passing mouse coordinates and when i resized image and calculate pixel coordinates by some transformation calulation and clicked on same position it will not get same color..but get coordinates nearly accirate.Anybody help me in this problem.
Sam
Sam
to make programs...So that when a user downloads the main program the user can choose which parts of the program he wants to use.
14:24
So, like DLLs?
Just install the DLLs he wants, and skip the rest.
Never generate a new exe just for the specific customer.
Sam
Sam
ummm, ok, thanks. ; )
You know, even if you installed the whole thing the user could still choose what he wants to use.
Sam
Sam
but the size of the program would increase...
Who gives a ___? Disk space is cheap.
Sam
Sam
lol
bandwidth isn't...
14:27
If you're developing something big enough that it matters, you shouldn't be asking these questions.
Sam
Sam
?
@Sam Computers idling while you sleep is.
You're asking questions that apply to our ten grand accounting system. Not something like Paint.
Sam
Sam
lol
ok, ok.
If bandwidths a problem, don't host it yourself!
What about the user's bandwidth?
Sam
Sam
14:31
im not, google is, but i only get so much free bandwidth....
the users bandwidth isn't a prob
Since when have users been important?
Sam
Sam
lol, true
still it would be pretty cool if the downloaded program could make all the files that the main program needed.
FYI, a C# compiler will be installed on the user's machine once you install .NET.
Sam
Sam
really?
FYI, msbuild > csc
Sam
Sam
14:37
so how would i use it?
You'd probably want to create a .csproj file and build it with msbuild.
Sam
Sam
right
You probably wouldn't, but whatever.
You might have issues with that approach, some projects require visual studio components to be installed when you compile
So make one that doesn't.
14:39
Give it a try, but we've had issues with that approach in our organisation
I would have an issue with it too.
sometimes it's not as straightforward as "make one that doesn't" ;-)
Sam
Sam
ok, thanks.
Just do it the normal damn way.
Sam
Sam
lol
14:40
The normal way is to use Visual Studio
I just thought I'd throw in a word of caution incase it caught you out Sam
Sam
Sam
i'll keep that in mind, thanks.
how should i handle properties when using an interface? Just create int GetFieldName() signatures in my interface and return the property in the class method that implements the interface?
@DoctorJones The normal way to install files is not with VS.
@N00B.NET You shouldn't be using public fields. Convert them to properties.
yeah, i edited it. but you can't declare properties in an interface
Yes, you can.
int SomeProp { get; set; }
14:45
ahh tricky. Do you need to implement the set?
You can just specify get;
Sam
Sam
System.Environment.Desk.Children.Chair.Comfortability.Increase();
I love the way people convert English to code in a way that you would never see in real code.
Sam
Sam
lol, yeah, it's good laugh.
14:57
@Sam You mean Comfortability++;, right?
sup guys
Did you use System.Environment on purpose?
Sam
Sam
@ShotgunNinja yeah, i guess
@KendallFrey yep
it fitted in nicely, so i thought i'd use it...
@ActionHank hi

« first day (969 days earlier)      last day (4203 days later) »