« first day (1024 days earlier)      last day (3938 days later) » 

6:02 PM
How do I find a process given the filepath of the .exe?
 
@JLott for real?
Is it called image?
 
@JohanLarsson Uhh? I will not get fired... but I am doing things how I want.
 
ok good
 
What is web service? I don't want it for my modal popup. :(
 
How the frick does one make an animated favicon?
This website's favicon has a mouseover animation
 
6:05 PM
Process.GetProcesses().Where(p => p.StartInfo.FileName == "kjsdf")
untested
 
Will fail if you opened it via a file extension association
 
no idea, untested, did not even compile it
 
@ton.yeung But gifs don't support mouseover animations
It looks like it could be a transparent area changing color as the tab beneath it changes, except for the fact that the rest of the tab or transparent area doesn't change.
Process.MainModule.FileName
Looks promising
@ton.yeung If what is?
It fades from X to Y when mouseenter, then from Y to X on mouseleave
That's not normal GIF behaviour
Also, it doesn't work on Chrome
Or FF
 
great! i just got the ability to close questions. reached 3K rep
 
Or IE...
 
6:14 PM
HAMMAHTIME!
 
@ton.yeung hahahah
 
Oh, looks like that's an Opera animation.
For some reason it's just particularly noticeable on this icon.
 
@KendallFrey drop a .pid when the app starts
 
@ton.yeung haha
 
It happens for everything, but I never noticed it.
@drch Explain?
 
6:16 PM
@ton.yeung I've had some funny interactions with people.
 
create a file with the process id in it. delete the file on shutdown
check for the file existing on start
 
Not reliable enough
 
thats a common linux approach anyways
 
What if the client from hell deletes it?
BAM! more corrupt data
 
If he tries so hard he can probably mess with the data any way
 
6:19 PM
I believe I can see the future.
As I repeat the same routine.
I think I used to have a purpose.
Then again, it might have been a dream.
I think I used to have a voice.
Now I never make a sound.
I just do what I've been told.

Everyday is exactly the same.
Everyday is exactly the same.
There is no love and no pain.
 
@JohanLarsson Nope, there's a planned feature to prevent that as well.
 
your app could keep a lock on the file to prevent deletion
 
Gosh, I'm suddenly tempted to do something stupid.
 
Heard of it, and... no way
 
6:21 PM
why not?
sounds sweet to me
 
Sound overkill
 
"Head like a hole, black as your soul. Bow down to the one you serve, you're going to get exactly what you deserve."
 
but client from hell?
 
I saw a book cover "Java Performance Tuning" and I thought of oxymorons for some reason
 
@Greg are you writing system administrator poems
 
6:25 PM
@drch Nope, coding and "Nine Inch Nails" came on.
 
needs more co-worker watching porn at work lyrics
 
How do I access a Process's bitness?
 
all up in its bitness?
@KendallFrey apparently processarchitecture msdn.microsoft.com/en-us/library/…
 
And I would access that how?
 
youd have to load the assembly :S
 
6:29 PM
Why? It's a running process...
 
    internal static extern bool IsWow64Process([In] IntPtr process, [Out] out bool wow64Process);
 
@ton.yeung Question, would it be better practice to create a separate MVC Model to pass form values to a service; or would it be better to just link the model directly to the Service objects?
 
Fuck. I don't want pinvoke.
 
well if youre not accessing the assembly and not win32
 
@ton.yeung I'm using WCF
 
6:33 PM
Fine, I'll go the easy, slightly riskier way
 
@NETscape I split the contributions into 3 of the investment plans that fidelity has, each of which is split up into all sorts of shit. i.imgur.com/u2Pd2m2.png
 
@ton.yeung I was going to create a separate View Model, then link them through the controller. The values
Mostly because I'd like to use Knockout to generate the form and data.
 
I think I'm going to start having INotifyPropertyChanged in my models
 
Yay!
One step closer to world peace!
2
stackoverflow.com/q/2069940/785745 This question needs reopening, folks.
 
you have an answer?
 
6:40 PM
if hans says it should not be closed, it should not be closed
 
@JohanLarsson No, I just want justice.
 
also 27 upvotes
there, 28 now
 
Guys - and girls -, if I set a property like "Client", in the setter, how do I reference the value passed, such as in the statement : foo.Client = "string here"; ?
 
@KendallFrey post it in c++
 
Meh
Those guys scare me
 
6:41 PM
I linked it
open now
 
yay
Thanks
 
Hey guys, if I have a Dog class with _Dog instance, is there any reason I can edit the .IsBarking property but not .IsBreathing inherited property from Animal class when debugging?
 
@GiovanniDiToro you access it through the property itself
@GiovanniDiToro if you DO need to separate them, and need to access the backing field, do something like this:
private string _client;

public string Client {
   get { return _client; }
   set { _client = value; }
}
otherwise, you can just treat the property itself as the actual value.
 
@kush What? is this a singleton?
 
@KendallFrey No
 
6:44 PM
if you skip the backing variable and try set{ Client=value;} you'll get the name of this site as an easter egg
 
@ton-yeung Well , how do I reference inputted value in a property setter? How do I reference in
public string foo
{
set
{
}
}

something like :
objectInQuestion.foo = "string here";
How would I reference the string input?
 
@kush Then explain your data structure.
 
@GiovanniDiToro value
 
You have a variable Dog _Dog;?
 
I'm trying to do is parse the string as an int, really
 
6:46 PM
yes
 
@GiovanniDiToro int.Parse?
 
for a phone , so that I can make a safe data to parse to the db
@KendallFrey not that simple
 
@kush Is IsBreathing non-public?
e.g. protected?
 
@KendallFrey no, it is public
 
I want to be able to write down something like :
set
			{
				string str = this;
				rgx = @"\b\d{4}-?\d{2}-?\d{2}\b";
				warning = @"Por favor insira apenas números (máximo de 8 dígitos) ou no seguinte formato: XXXX-XX-XX.";
				Regex regex = new Regex(rgx);

				while (!regex.IsMatch(str))
				{
					Console.WriteLine(warning);
					Console.Write(lable);
					str = Console.ReadLine();
				}
				this.main_phone = str;
			}
 
6:47 PM
@kush Did you look for the property in the base dropdown?
@GiovanniDiToro fixed-font and nice indenting please
 
@GiovanniDiToro er, that logic should not be in a setter. they should be very simple
public void GetPhoneFromUser() {
   //all your logic stuff
   obj.MainPhone = str;
}
 
@KendallFrey yes
 
I acctually have a parser function like that outside that class , but I want to put it in a setter so I can use to save or update
 
@kush And it's not there?
 
It is but it is readonly :S
 
6:50 PM
What's the declaration of the property?
 
@drch you scope like an Egyptian?
 
@GiovanniDiToro I was speaking mostly to the Console.ReadLine() in a set { }
 
Is it get-only?
 
yes
I am not very smart
 
@drch yeah , thats a big problem for me
 
6:50 PM
@JohanLarsson when i type, yeah
 
gonna have to work arround that
 
@KendallFrey yes, it is get only. thank you :)
@KendallFrey I know what it is even before opening it
 
@JLott You ever hear of Evans Blue.
 
@kush Oh good.
 
6:51 PM
@Greg I don't believe so
 
@JLott fucking telerik
 
 
@JLott Listen to the song Pin Up.
 
OK, let's try with this:

		public int phone1
		{
			get
			{
				return main_phone;
			}
			set
			{
				string str = this;
				rgx = @"\b\d{4}-?\d{2}-?\d{2}\b";
				Regex regex = new Regex(rgx);

				if (regex.IsMatch(str))
				{
					this.main_phone = Convert.ToInt32(str.Replace("-",""));
				}
			}
		}
 
@KendallFrey for you as a thank you gift
 
6:54 PM
@akowalz Story of my life
 
@kush "I am not a very smart unintelligible"
 
@Greg Alrighty
 
man i need a cook
 
@drch You need to work on subtlety, dude.
 
@drch I actually misread that :S
 
6:56 PM
@kush Oh, god.
 
perverts
 
you need my gf, but it will make you fat
 
You're offering?
 
@drch can she cook?
 
i will accept any and all swedish girlfriend offerings
 
6:57 PM
@JohanLarsson just invite us for dinner sometimes. I am tired of frozen dinner.
 
Stop ice fishing
 
was it an offer?
 
@KendallFrey So apparently, one of Norway's favorite pastimes is making fun of Sweden.
 
user1125394
hey, when using a Dictionary<string, object> just for encoding in json some shit, is there maybe a point using a simple but oldie Hashtable?
 
@JohanLarsson Seemed like it.
 
user1125394
6:59 PM
well pointless, let use Dictionary
 
For before serialization? Or after deserialization?
 
maybe for drch, idk
 
I cannot understand... Why is .IsBreathing true when I have set it to false in the database?
 
What's the getter look like?
 
@kush Because your bark is worse than your byte
 
7:01 PM
wah wah wahhh
 
shit, pun ruined
 
That was a terrible joke.
 
@kush gonna need to see some codez to answer that.
 
@KendallFrey I see it now. In the look up base, IsActive is set as true.
 
user1125394
@KendallFrey before quick serialization and sending
 
user1125394
7:07 PM
it's ok with that, nvm
 
@cx No reason to use a dictionary then. An ordinary object will work
 
user1125394
I could make a class also
 
user1125394
^^ yes
 
user1125394
hehe, let's do
 
7:08 PM
 <ajaxtoolkit:ModalPopupExtender  ID="ModalPopupExtender1" PopupControlID="Panel1"
          runat="server"   OkControlID="Button1" CancelControlID="Button2"
        BackgroundCssClass="modalBackground" TargetControlId="Button3"  >
        </ajaxtoolkit:ModalPopupExtender>  \n protected void Button3_Click(object sender, EventArgs e)
    {
        ModalPopupExtender1.Show();
        Label1.Text = "Hello";
    }
Why is the button click event not fired?
 
user1125394
I like that shit new Msg { type = type, data = data }
 
At last, a worthy use of hacking bbc.co.uk/news/technology-23575249
 
7:14 PM
omg, no one's answering me. why? :(
 
@ton.yeung Lulz
@Greg I like the songage
 
> "Attackers could [also] cause the unit to unexpectedly open/close the lid, activate bidet or air-dry functions, causing discomfort or distress to [the] user."
 
how come HE gets the LOL for MY link? Sorry ingrates.
 
@kaser: because we are all here voluntarily and answer questions we know the answer too when we see them. it is a pointless waste of time to tell everyone we dont know the answer to their question every time a question is asked that we dont know the answer too
 
@TomW Your link? YOUR link?
2 mins ago, by Kendall Frey
http://clientsfromhell.net/post/35511795147/we-wont-be-having-any-erections#_=_
 
7:16 PM
I found it, it's mine!
 
> 2 mins ago, by Kendall Frey
 
@drch there is a constructor in the base that sets it to true and the child class has no setter. In my defense, blame shows this was written a year ago (no, this time it wasn't me)
 
user1125394
in Sandbox, 10 secs ago, by Caprica Six
@cx erection (uncountable) The act of building or putting up or together of something; construction.
 
@kaser Enable browser debugging to make sure that something is being sent as a request to the server on click and there are no javascript errors. Otherwise I dunno lol
 
7:18 PM
@bizzehdee oh, i see.
 
posted on August 05, 2013 by Scott Hanselman

Why is this blog post called "Download Windows Live Writer 2012?" Because that's all I wanted to do. I love Live Writer. If you love it too, put a note in the comments and maybe the team will notice, because I will carry Windows Live Writer with me until you pry it from my cold, dead hands. I use Windows Live Writer exclusively for writing my blog posts and I recommend you use it too. Windows

 
@Feeds no, you should always write everything in LaTeX as the gods intended
 
@cx Yes, I agree erections are uncountable. I've lost track already just for today.
 
@TomW bruteforcing the pin should also be doable, then bidet away!
 
@JohanLarsson But, there's no need. All the PINs are 0000
 
7:23 PM
yeah but when they patch it
 
What is this talking about: Warning	18	'Alliance.Infrastructure.Interfaces.IUserInteractionService.ShowException(string, string, System.Exception, System.Windows.MessageBoxButton, System.Windows.MessageBoxImage)' is obsolete: 'Use the Exception Logging Service to log and show the exception'
Excuse my formatting..
 
@JLott An obsolete method, that's what.
 
@KendallFrey Obviously.
 
What's your question?
 
7:27 PM
How do I make it not obsolete?
 
user1125394
refactoring :d
 
I need the warning to go away lol
 
@JLott Use the Exception Logging Service.
 
@KendallFrey Never used it, but I guess I can try..
@ton.yeung... what...
@ton.yeung It is just a warning. But I need the warning to go away without completely changing it.
 
Can I open a file that I have locked else where in the same process?
 
7:29 PM
#pragma warning disable 612
            Mehtod();
#pragma warning restore 612
@JLott try that
 
@JLott I know how to hide a warning, but I'm not going to tell you, because... shit, Johan just did.
@JLott Why don't you take the advice of the compiler? It's pretty damn smart, you know.
 
@KendallFrey Muahahaha!
@JohanLarsson Thank you
 
yeah probably a reason someone placed the attribute on it
 
@KendallFrey Because I don't know what the compiler is trying to tell me half the time.
 
@Feeds @KendallFrey brute force SEO?
 
7:31 PM
@JLott It's pretty simple. "Use the Exception Logging Service to log and show the exception"
 
@KendallFrey Thought there may be a better way... And I don't know about this "Exception Logging Service"
Always criticizing me @KendallFrey. Always criticizing...
 
@JLott What about Google? Do you know about that?
 
@KendallFrey I know about your mom.
 
who put the obvious lie in the room description
 
@ton.yeung MailChimp. They mean MailChimp.
Not following.
 
7:34 PM
@JLott lmfao i came in at the right moment, KENDALLS MOM
 
@Steve came in my mom at just the right moment.
 
@KendallFrey Google, "exception logging service c#" crap answers everywhere.
 
@Mike ok.
 
@KendallFrey lol.....
 
@KendallFrey, @Steve wishes...
 
7:35 PM
@JLott I'm guessing it's an internal API.
 
@JLott hahah at this point, i think i'd accept anything
 
@Steve So sad...
 
@Steve answers Steve's unanswered questions
@ton.yeung Better than being pissed on.
 
I speak Asain
 
@ton.yeung I speak my mother tongue rather poorly. I have to stop and think to count up to ten :(
 
7:37 PM
cauc-asian
 
@ton.yeung lmao
We have a few 'Asians' here, and none of them have an r/l problem
 
@JLott awwwwwww :(
 
@ton.yeung I don't even know what my ethnicity is... :S
 
How do I keep a timer running when navigating through pages?
 
the password is lollipop
 
7:38 PM
One of them says 'proposal' funny though
 
Oh god... One of my friends exact quote: "Obama isn't even American"
 
singleton timer
 
Woo! Ignorance in the South!
 
@KendallFrey I used to say the letter H funny. It wouldn't be funny in Canada but in Texas it was...
It sounded closer to hatch fml
 
posted on August 05, 2013 by Scott Hanselman

I have a "whenever I get around to doing it" Newsletter of Wonderful Things. Why a newsletter? I dunno. It seems more personal somehow. Fight me. You can view all the previous newsletters here. You can sign up here to the Newsletter of Wonderful Thingsor just wait and get them some weeks later on the blog, which hopefully you have subscribed to. Email folks get it first! Here's the newsletter t

 
7:40 PM
@JLott how can people be so brainwashed....
 
I don't see color. everyone is white. :)
 
didnt one of the republicans say that obama isn't the right weight for president of america. that was in obama vs. maccain election
 
You are a lovely person and very likely superior to your peers in every way.
 
I don't see color. Everybody is a cocksucking son of a bitch
 
@Steve Idk lol.
@Steve Yes.
 
7:41 PM
27 secs ago, by JLott
@Steve Yes.
 
11 secs ago, by Steve
27 secs ago, by JLott
@Steve Yes.
 
@Steve no
 
40 secs ago, by Kendall Frey
11 secs ago, by Steve
27 secs ago, by JLott
@Steve Yes.
 
What are you all doing?
 
Programming. Or trying to.
 
7:42 PM
making you call my name while screaming yes
 
Alright. Carry on...
 
@Steve HA! you're the best
 
lol, carring on
 
he was prejudiced against every race? @ton.yeung
 
@JLott :(
 
7:44 PM
@Steve What??/
 
@ton.yeung Was his name Russell Peters?
 
@ton.yeung even his race?
 
has anyone done a codility test?
 
@ton.yeung No, watched his youtube videos.
 
codility certificate
 
7:46 PM
Who knows what the default FileShare is for a FileStream?
Hum, found it.
(Read)
 
@ton.yeung what race was he?
 
@JLott nothin
 
figures
 
The only race Russell Peters doesn't make jokes about is the Arabs. Because he doesn't want to, you know, die.
 
@NinjaEcho find codility
 
@akowalz it's algos test
they do monthly challenges. i just attempted and failed one
 
No, no, it's Achmed.
That's what I said.
No you said Ackmed. It's Achmed. CH CH CH
@ton.yeung Why yes, I have.
In case you aren't a big fan of Dunham, the above is an Achmed quote.
SILENCE! I KILL you!
> I am a horrible suicide bomber.
> I had a premature detonation.
 
is it boston bombing anniversary?
 
Programming related question incoming...
 
wasnt the boston bombing like 2 months ago?
 
7:54 PM
monthly anniversary
 
If I have an open FileStream, how do I pretend to open it for reading? Just seek to the start?
 
dude, apparently I look a lot like that guy. It's kinda scary. People keep telling me
 
@akowalz What guy?
 
boston bomber guy.
 
i've used signalr before to push messages to the client, not via a background process though, not really sure how that'd work
 
7:56 PM
@ton.yeung Yeah, I'm replacing my existing code (opening it as needed for reading or writing) with an always-open stream.
 
isn't that like really bad practice? @KendallFrey
that last comment was for Kendall @ton.yeung
 
Is there a way to perserve a timer when navigating through pages?
 
How else do I prevent (malicious?) attempts to rewrite the file.
 
@ton.yeung welllllllllll it uses websockets, polling, etc.. whatever is available, so I'm assuming your webserver would just have to be the middleman between your background process & the clients
 
It's a requirement.
 
7:58 PM
maybe im stating the obv, idk
i do that a lot
yay i think i may have helped
 

« first day (1024 days earlier)      last day (3938 days later) »