« first day (1431 days earlier)      last day (3520 days later) » 

1:00 PM
Sounds like you need a better HTML parser/HTTP request class.
 
HTML parsing? bring in the regex!
 
No! Shoo, shoo @KendallFrey
 
I'm using the one built into .net (well, one of them as I think there are a few ways to do it)
 
Uhh.. build-in way?
 
Let me find the function
WebClient client = new WebClient();
string downloadString = client.DownloadString("http://www.gooogle.com");
 
1:06 PM
who want to damn windows with me?
 
Although we will use it locally
 
your damning will be redirected to java
 
RegistryKey regedit = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion");

return (String)regedit.GetValue("ProductId").ToString();

ends in a NullReferenceError received xD
No Idea why as ProductId is in that exact location
 
anyone into SQL here
 
I have a 64bit machine BUT it is still in the correct path
 
1:07 PM
why casting + doing .tostring?
 
@MyDaftQuestions That's just a download; not a parsed HTML
 
because without .tostring you get an object error
 
@MikeM. yo, string literals
 
ah, so I then need to parse it? Do you know if there is osmething built in? I assume it's more than the encode/decode method
 
oh wait no it doesn't
anyways it still doesn't output it.
 
1:08 PM
@"SOFTWARE\Microsoft\Windows NT\CurrentVersion"
 
Neither working
pretty much the same as \\ tho'
 
not really
 
in the compiling it is.
well the @ wasn't needed
 
@"thi\\s" and "thi\\s" aren't the same
 
but this question is not related to coding standards
 
1:09 PM
hows it going chums
 
its not a coding standing
is regedit null?
 
RegistryKey regedit = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");

return (String)regedit.GetValue("ProductId");
null value.
 
no
is regedit null?
 
empty*
 
put a breakpoint on the return line
and mouse over regedit
 
1:11 PM
giving:"SOFTWARE\Microsoft\Windows NT\CurrentVersion"
as it should
it's just a problem with that single value
ProductName is receivable
CurrenType aswell
it's just that one key...
 
Permissions, perhaps?
Unlikely, since everything should be readable, but still.
 
what type is that key?
 
Should be string
go in your regedit => HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
type: REG_SZ
 
@Shaun You seem quiet today
 
it's filled out for sure.
 
1:18 PM
Not broken anything yet?
 
haha no sipz :P
 
lol
gg
 
@Sippy, Don't say that too soon xD
 
Replacing my static data with real data from database
Just waiting for colleague to alter db ¬_`
that's not what i'm worried about however
(altho i'll probs break it somehow)
 
Hmm. Returns null here to, but I can see there's a value.
 
1:20 PM
@AvnerShahar-Kashtan, Are you talking about my thingy?
 
wbu
@Sippy
what workin on
 
7
Q: C# Reading the registry: ProductID returns null in x86 targeted app. "Any CPU" works fine

ChrisI have recently moved to a W7 64bit machine with VS 2010. My project is set to run on Any CPU. When I change this to be targeted at x86 I noticed some of my registry calls no longer work. I am trying to read the ProductID field like so: RegistryKey windowsNTKey = Registry.LocalMachine.OpenSubKe...

Yeah.
 
I am on Any CPU
I always develop on Any CPU
 
@Shaun Uhhhh, trying to figure out a good way to do relative paths in AJAX
 
I only develop on the Texas Instruments OMAP 4460 CPU.
Its right there in the dropdown
 
1:23 PM
see
 
@MikeM. that code snippet works that has the +7 votes
 
@VictorioBerra lawl
 
i forgot about that... you need to account for bitness
there are "two" registries in x64
 
@MikeM. Yeah, I'm getting teh same results.
 
@Sippy is that what you wanna be doing
 
1:24 PM
I know there is.
 
change the platform to x86
 
But that's kinda what I was asking since I got confused while I do not redirect it to: wow6432node
but to the default 32 reg.
even the regedit variable on the call at the correct spot.
 
if your application runs in 64 bit, it automatically uses the 64 bit filesystem
 
@Shaun It's not what I don't wanna be doing?
 
@Sippy uhh poetic
 
1:27 PM
but that doesn't make quite sense as you call a specific location at this point:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion Key: ProductId

as you don't call:
HKEY_LOCAL_MACHINE\SOFTWARE\W6432Node\Microsoft\Windows NT\CurrentVersion

because into that location there is indeed NO ProductId
 
so i'm assuming product id value doesn't exist in the 64bit node
 
even the regedit variable says it's HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
Gona send a message to MS then and try it with x86 debug
 
@MikeM. Yeah, but it's lying to you. WoW64 is a subsystem devoted to lying to you.
 
all i know is the bit of x86 vs x64 i did get into, its all a mindfk. trying to wrap your head around it probably isn't worth it
it is lying to you
just like when you do Windows + R, cmd.exe
C:\WINDOWS\system32\cmd.exe
 
Ye that's why I started off "Who wants to damn windows with me"
the system is lying to us.
 
1:30 PM
but its really the SysWOW64\cmd.exe
oh haha.
 
argh
 
i'll damn them right after we get done doing the same to the govt.
 
My MS only has "any cpu"
haha
 
How about using WMI instead of reading from the registry?
2
Q: Win32_WindowsProductActivation ProductID equivalent in Software Licensing Classes

inquamI have a piece of old code that used a query using WQL to get in from the Win32_WindowsProductActivation class. SELECT * FROM Win32_WindowsProductActivation It then itterated over it and essentialy got the ProductID string using hres = pclsObj->Get("ProductID", 0, &vtProp, 0, 0); and retur...

 
Ye I am not c++ thanks xD
 
1:32 PM
There might be a WMI class that can get you the product id without mucking about with Wow64.
 
Oh
 
The question is C++, but WMI is available via System.Management.
You don't need to use C++.
 
just code it like its done in the answer above :)
 
Ye no...
 
i much rather do that then try and deal with managementobjectsearcher
 
1:35 PM
I never used WMI
 
that can be a PITA too
 
So need to get known in it XD
 
it's kinda fun
 
Welcome 1 billion microsoft references related to it.
 
download wmiexplorer
 
1:36 PM
virus.exe?
 
that'll help you realize everything you can access at your fingertips... plus you have to use some DB
wmiexplorer.exe ?
 
@NETscape Yeah, that does actually work.
 
@MikeM. no its just outdated
it's trustworthy
 
@Shaun I got my perm job offer today :3
 
1:37 PM
I am not good in design but man that website
FreeNavigationBar.org? XD
Not that badly outdated
 
i'm be interested in a new version on wmiexplorer
if it aint broken dont fix it :p
after you recreate that application, rewrite snoop
 
huh?
 
Snoopsnoopsnoop.
 
(Retarded Question Marks)
 
Snoop is an awesome WPF development tool.
 
1:40 PM
hmmm......
 
Occasionally buggy, sometimes frustrating, but incredibly useful.
 
ye right.
no windows product shizzle
haha fiynd it
 
@Sippy ooo, salary? :3
 
found* but uhm, EMPTY G_G Q_Q
meeeeeeeeh
 
@Shaun aye, bit less money for now
 
1:46 PM
@Sippy less? o___o
 
Yeah
 
You did notice that my earlier linked post had a fix for the regedit problem, right?
I tested it, it worked.
 
they pay contractors more than employees? D;
 
Everyone pays contractors more than employees lol
 
well we get all ours from India so we don't ;p
 
1:47 PM
I do but I don't want to Copy Paste.
I want to understand how it works and what it does.
 
That'd be why your software builds suck
The good devs from India are really good
 
no contractors work on teh stuff I work on
 
But the bad ones are really, really, really dire.
 
@Sippy Lol what about the netherlands? XD
 
there's about 9 contractors I think
 
1:48 PM
@MikeM. ?
 
idk I think they prefer perm employees over contractors
 
@MikeM. Then understand it. It explicitly tells the RegistryKey class to open the 64bit registry hive rather than the default hive, which goes through WoW64.
 
@Sippy if you're earning less money, and nto being given stuff you wanna do
why you staying? O.o or have you not decided
 
Very new to WPF here, making a very simple app today. Got some noob questions.
 
ARGH
 
1:52 PM
If I want a login screen, is that a whole separate form like in WinForms? Or is it better to do it in one form and then hide the login controls?
 
Make it a page and navigate away when you're logged in.
 
A page eh?
hmm
 
I've never really used the Page navigation model.
I usually make it a separate window, opened as a dialog.
 
The documentation says its the easiest way to do navigation inside an app @AvnerShahar-Kashtan msdn.microsoft.com/en-us/library/ms750478(v=vs.110).aspx
 
Note, though, that be default WPF applications will exit when the Main Window is closed. If your Login window is shown first and then closed, it will shut down the application.
@VictorioBerra And yet, I've never worked on an application that used it. Everyone always creates their own NavigationService.
I'm guessing that the page navigation model can be restrictive in some ways, especially if you use some MVVM patterns like using an IoC container/framework to create a View Model, and automatically creating a View mapped to that VM.
 
1:59 PM
@Shaun Contractors earn more because they don't get benefits, like time off.
I'm staying because I need the experience in order to earn more.
 
@AvnerShahar-Kashtan the whole WPF seems over complicated
 
@Sippy Oh yeah, I didn't think about that
Experience in order to get better contracts or a better job?
 
Wait... experience == good jobs?
What am I doing on StackOverflow chat then?!
 
@VictorioBerra -_____________-
 
2:26 PM
@Shaun Not sure, I think better contracts
I'd like to be earning 100k by age 25, which is only possible as a contractor.
 
@VictorioBerra If you break free from the "It should be like WinForms"-mindset, it's great.
 
@Sippy o____O
 
@Sippy Or your own company.
 
2:50 PM
I literally just WTFed because my unit test passed
 
Whats a unit test?
never done one
 
It's a piece of code that calls some other code and checks the result to make sure it isn't broken.
 
@ton.yeung Sup man, how's life for you
 
Hi want to generate XML from Data loaded from table, but that XML should follow given XSD
I know DataSet.getXML()
but how to ensure that XML follow XSD
 
I really need to get into unit testing. Things I want to learn: ninject/unity for dependency injection and IoC stuff.
and unit testing
 
2:59 PM
If you trying to grab a value of an image, would this be the best approach?

<xsl:if test="Photo != 0">
     <img width="100" height="100">
           <xsl:attribute name="src">
                <xsl:value-of select="Photo">

Or would it be better to use Copy-Of?
 
@VictorioBerra Meh, I'd say: Don't bother. Too much pain, too little gain.
 
unit testing?
unit testing is easy, and has lots of gain
 
@RoelvanUden Yeah but that's hard.
 
3:16 PM
Any thoughts?
 
3:31 PM
@ton.yeung No, we definitely need to call. Have you heard anything?
I haven't even received the monitor back.
@ton.yeung Those fuckers.
@ton.yeung Um, maybe tomorrow?
Okay. I'd like to get it taken care of.
Yeah.
Okay, that would be stellar.
 
3:48 PM
URRRRRRRRRRRRR
y dis no work
 
posted on September 16, 2014 by Immo Landwerth [MSFT]

Today, we're happy to announce that we've started to move some of our sample assets over to GitHub, using the MIT license. So I can directly answer Ben's question with this tweet: Why did we move to GitHub? The reasons we decided to move the samples to GitHub is as follows: We want to be where our community is GitHub offers an awesome browsing experience GitHub enables conceptual doc

 
wooo
 
4:41 PM
Can someone explain this to me.
Why would you choose to do this?
 <asp:Button ID="btnUpdate"  OnClientClick="return confirmUpdate()" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:Button>
One thing I know for certain, is the dialog box doesn't even confirm to Update.
 
4:58 PM
@Code-Apprentice Lol interesting find
I bet it'd be no at the end of the day
 
We will find out shortly
 
Tbh, is something I'm not even paying attention to all that shiz tbh
The political bullshit nowadays is just meh..
 
I came across that because I have started to become a fan of John Oliver and I'm watching all of his videos on You Tube.
 
@ton.yeung Yeah, looks like the object after it triggers to do an update or save depending on the Grid event. It, well- Doesn't have a file upload mention so how is it supposed to actually do the file upload.
 
@Code-Apprentice Community :) :)
 
5:06 PM
@ton.yeung Basically, he has a File Upload and it isn't uploading images.
@ton.yeung This code is a cluster fuck.
 
lol
@ton.yeung I'm halfway through Bleach. Hated it at first. Then I grew into it pretty fast
 
@ton.yeung Basically, he has an <asp:FileUploadControl> which calls like fourteen different methods, non of which actually do the upload. I'm still trying to figure out wtf is going on.
 
@ton.yeung ?
 
Basically:
protected void buttonFileUpload_Click(object sender, EventArgs e)
        {
            // not able to find...
            FileUpload ctrlFileUpload = grdAttributeValues.MasterTableView.FindControl("ctrlFileUpload") as FileUpload;
            Label lblFileUploadStatus = grdAttributeValues.MasterTableView.FindControl("lblFileUploadStatus") as Label;

            if (ctrlFileUpload == null)
                return;


            bool bFileOK = false;
            String strPath = Server.MapPath("~/ProductImages/Attributes");
 
Today used powershell to call a soap service. Works really well, actually
 
5:08 PM
@TomW Does it use curl?
@ton.yeung Oh yeah.. sorry
 
@LewsTherin I did not personally use curl. Dunno whether it does internally
 
Okie dokie
 
        protected void uploadFileToWebServer(FileUpload fileUpload)
        {

            if (!string.IsNullOrEmpty(WebConfigurationManager.AppSettings["DebugVersion"]) && WebConfigurationManager.AppSettings["DebugVersion"].ToString() == "true")
            {
                return;
            }

            if ((fileUpload.PostedFile != null) && (fileUpload.PostedFile.ContentLength > 0))
            {
                string fn = System.IO.Path.GetFileName(fileUpload.PostedFile.FileName);
                string SaveLocation = "\\\\svr-web\\F$" + "\\inetpub\\ProductImages\\Attributes\\" + fn;
Look at that shit
 
@LewsTherin New-WebServiceProxy 'url-of-wsdl'
 
@LewsTherin as in the TV show?
 
5:10 PM
@Code-Apprentice Yup
 
@ton.yeung Yeah, it should work- Except it doesn't actually get called anywhere from the Grid.
 
@TomW Does that download a wsdl file? Or just invoke a method on the web service?
 
When you click the button for the file upload control, know postback.
@ton.yeung I know, so much shit to decipher just to fix a trivial issue. Ugh- Legacy Code, the ultimate developer evil.
 
@LewsTherin I guess it would have to download the wsdl to find out what to do. The proxy has intellisense for all the service's operations, though
and becomes aware of the schema types in the wsdl
try it, it's literally three lines of code
well, possibly two
 
Oh I thought you were talking about powershell using the CLI
Ah gotcha
 
5:20 PM
I prefer my CLI inside a GUI
 
@LewsTherin as opposed to?
 
A powershell script, which I assume is what you are working? A .ps script or something
 
@LewsTherin yes, a powershell script
I'm not sure what you're asking
I've spent a good ten minutes trying to find a non-garbage soap api to try it out with and I can't find any
 
@TomW Um.. I didn't ask anything?
> Oh I thought you were talking about powershell using the CLI
Ah gotcha
No questions..
 
There was all this noise a few years ago about government opening up data sources. What they've actually done is dump hundreds of broken links to formats nobody uses
 
5:36 PM
Which government are you referring to? US?
 
@ReedCopsey not my star
 
Aww Reed isn't your star?
 
yes of course he is but I did not star that message
 
What msg?
 
follow the arrow
help from Reed, random star
 
5:46 PM
Ahhhh
 
Hi guys, I've a dictionary of type string, string and a physical file for eg web.config file. I want to match a pattern {{key}} in this file and replace it with the value of the item in dictionary if key matches. Should I do this by using textreader or xdocument? I'm willing not to use xdoc. as I don't know the schema of this file, all I know is that {{key}}. What should I use to achieve this scenario and fyi, its a web app.
 
@ton.yeung Not that simple, because he bound the control in- Telerik RadGrid. Under a template field.
                    <ItemTemplate>
                        Update with <telerik:RadComboBox runat="server" ID="rcbImageFileNames" OnSelectedIndexChanged="rcbImageFileNames_SelectedIndexChanged" Width="300px" markfirstmatch="True" AutoPostBack="true"></telerik:RadComboBox>
                    </ItemTemplate>
                    <EditItemTemplate>
                        &nbsp;Or&nbsp;<asp:FileUpload runat="server" ID="ctrlFileUpload" Width="350px"/>
                    </EditItemTemplate>
 
hi. guys
I am developing window phone apps
i want to fetch time data using GPS satellite using C#
 
So when you hit Edit from within the Grid, the Upload Control appears. I'm trying to figure out how I can instantiate it through the Grid though.
@ton.yeung Plus, I can't rebuild it without approval. Which my boss isn't here at the moment.
 
Someone make me slightly less depressed
 
5:53 PM
@KendallFrey Should I insult you .
 
@KendallFrey Fucking wanker
 
Any SignalR people here? I want to store and associate a username with a connectionID
 
@Greg har har
 
@VictorioBerra I'd be happy to help you when I sort my Telerik dilemma.
 
@LewsTherin where?
 
5:55 PM
Sounds good @Greg
 
@VictorioBerra What have you tried?
@KendallFrey On your seat. In front of your laptop.
 
looks around no one here but me
 
Exactly
Should I quote Sherlock for you?
 
@VictorioBerra Sadly, I've got legacy code that is impossible to decipher.
 
@LewsTherin I have tried using Forms Auth and then using the new IUserID provider in SR2 with an SQL Compact DB but the issue I have is there is no way to know when a user logs out. What if they clear their cookies? Theres no event that fires when a Forms Auth has expired
Looks simple enough
 
5:58 PM
I have unreleased code that is impossible to decipher
 
@Greg I know the feeling mate. There is actually a comment in the code that confesses to that
 
I want to make them select a username to associate with the connection ID, and I want to be able to get a list of all connected users at any given time
 
slightly more depressed
 
@VictorioBerra Isn't clearing a cookie in effect the same as logging out? Some people don't like it, but a session may work? Or persist a flag in the db
@ton.yeung Ha hahahaha MS to rule the world
 
@LewsTherin yes its the same. But how do I know when to delete their username from the database?
I think I should have just gone with a simple register method. If they register I can use a DB to permanently store the username. And they are forced to login so we always know whos who even if they have multiple tabs open or mobile devices connected
 
6:01 PM
@ton.yeung Yeah.. Well they've ruined Skype. So there is hope that MineCraft will follow suit
 
I think the Minecraft team isn't changing
 
I just dont like grabbing the MVC bundle with local user store built in because of all the OAuth code that comes crammed in there.
 
I doubt it will affect MC in any large way
 
@VictorioBerra I've never heard of it done that way. mmn
@KendallFrey You can hope dearie
@VictorioBerra I vaguely remember a cookie timeout?
 
@KendallFrey - That depends on how influential the ownership was for Minecraft
 
6:23 PM
@ton.yeung Indeed.
 
6:52 PM
Does anybody here use code generators ?
 
anyone has experience with github.com/clariuslabs/reactivesockets or network programming in general? Data is being send perfectly in the right order while running in Visual Studio and Debug Configuration. When i switch to Release mode on the same laptop the data is being send correctly. As soon as i place the server and client in Release configuration on a different machine then it starts to send data out of order. tried on multiple machines.
I could use some pointers/links on how to debug networking errors
 
@Nathvi I use T4, if that's what you mean
 
@KendallFrey, awesome! I was doing research into that all day! Is it worth it?
 
worth it for what?
 
lol, sorry, stupid question
@KendallFrey, this is the general architecture I was thinking about.
Generate skeleton class from Excel file > Derive class to do implementation.
 
6:57 PM
at runtime?
 
No
 
so you just want to do something kind of like the WinForms designer?
 
No. I'm sorry I'm not being very clear. I'm writing UI tests. The tests are defined in an excel file. I wonder if it's possible (or even desirable) to pull the values from the excel file, and generate skeleton classes.
 
@ton.yeung No result found
In software engineering, behavior-driven development (abbreviated BDD) is a software development process based on test-driven development (TDD). Behavior-driven development combines the general techniques and principles of TDD with ideas from domain-driven design and object-oriented analysis and design to provide software development and management teams with shared tools and a shared process to collaborate on software development. Although BDD is principally an idea about how software development should be managed by both business interests and technical insight, the practice of BDD does assume...
 
What reason is there for tests to be defined in an excel file?
Is it actual tests, or just test data?
Excel is a poor man's Access :3
 
7:05 PM
@KendallFrey, I'm translating the manual testing procedures to automated
 
user1881400
Does anybody know the best way to split an xaml file?
 
user1881400
I have tabs and I want the content for each tab to be in a separate file
 
@FizzledOut For what reason?
 
user1881400
So that I don't have to go to sleep tonight worrying about the giant monstrous beast that would be the entire application's xaml and code-behind file
 
Rather one big file than 5 smaller ones and some icky logic to paste them back together
I've worked with a large XAML file with multiple tabs. It didn't cause me any difficulty.
 
user1881400
7:14 PM
I don't want everything in one file. I think the code-behind file would be too long due to events and that it would get really ugly. Now the reason why I asked what the best method was is to see if there was a way around the icky code (namely, xaml readers)
 
user1881400
Thought maybe MS would implement a way to do it because I see it as basic functionality. Imagine if a large app like Word was made in WPF and had just one xaml and code-behind file.
 
@FizzledOut Why would it have a single xaml file? WPF is great for composibility
 
I think ResourceDictionaries may be useful somewhow
 
user1881400
Oh, I think I just found it: stackoverflow.com/questions/224765/…. @ReedCopsey yep, that's what I found
 
@FizzledOut Just make each "tab"'s content a UserControl, and inject as needed
 
7:30 PM
Did SO remove the ability to see revisions on answers?
 
if you edit quickly, they don't show as revisions
edits "later" do
 
quickly being "within 5 minutes of your last edit"
 
I see
 
could you continually update something every 4 minutes forever?
 
@MikeAsdf if you have no life, potentially
 
7:41 PM
Ha ha
 
posted on September 16, 2014 by Scott Hanselman

I received this question last week from a reader: I've been a developer since 2005. I'm a solid developer with good experience. I've got a great opportunity for a new position coming up but I'm concerned about the tech interview. I seem to freeze like a deer in the headlights when asked to write code in front of people. My resume is accurate and reflects my skills and experience but how d

 
8:15 PM
@baeltazor mvc
 
8:42 PM
@LewsTherin - "fastest gun in the west" side affect
Edit window doesn't begin until 5 minutes have elapsed
 
@TravisJ Even though FGITW doesn't apply anymore.
 

« first day (1431 days earlier)      last day (3520 days later) »