« first day (1285 days earlier)      last day (3656 days later) » 

1:47 AM
Hello
I created one FormBase class in my Class file as following :

public partial class FormBase : Form
{
public FormBase()
{
this.Load += new System.EventHandler(this.FormLoad);
}
public void PanelUtil(Panel p1, Form f1)
{
p1.Left = (f1.ClientSize.Width - p1.Width) / 2;
p1.Top = (f1.ClientSize.Height - p1.Height) / 2;
}
protected virtual void FormLoad(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Maximized;
}
}

and my all form contains the following code:

public partial class Form1 : FormBase
 
 
5 hours later…
6:23 AM
@Greg Can you prepare a test document with the expected output? I can give it a go when I get home.
 
6:44 AM
Waiting to hear from Google about fixing an error is insane. Do I fix my app and force all the customers to reinstall. Or do I wait and hope they fix it.
 
7:15 AM
gooooood morning all :)
 
morning
 
7:29 AM
heya DaImTo
how are you doing??
 
7:44 AM
annoyed google broke something in the API now the application doesn't work
wracking my brain trying to figure out if its better for me to wait for them to fix it. or to come up with a way of dealing with it in the application.
Crap, this is probably going to require that I fix all my tutorials as well
 
anyone... I need a help in windows application.
I have 20 pages. Is it correct to choose windows application?
 
What do you mean by "pages"? Like in a document?
 
i.e like form in windows application
 
So 20 forms (or similar)? You can do that in a windows application, sure.
 
yes
My doubt is
I may trouble with show and hide of all 20 forms?
 
7:52 AM
Do you mean 20 forms open at the same time?
 
no. single form is open at a time
 
Single form only? Do you mean you "navigate from one form to another"?
 
yeah
 
Are you building a wizard?
 
its a mini game
 
7:53 AM
I would create 1 form and 20 user controls
 
wt?
 
I wouldn't use 20 forms
 
oh ok.
 
I would open 1 form, and put the content of the form into a user control instead, adding that to the form
then replace which user control to show at any given time, but keep the 1 form
 
ok ok
 
8:25 AM
Morning people
 
Hello
I have one c# question.
I created one FormBase class in my Class file as following :

public partial class FormBase : Form
{
public FormBase()
{
this.Load += new System.EventHandler(this.FormLoad);
}
public void PanelUtil(Panel p1, Form f1)
{
p1.Left = (f1.ClientSize.Width - p1.Width) / 2;
p1.Top = (f1.ClientSize.Height - p1.Height) / 2;
}
protected virtual void FormLoad(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Maximized;
}
}

and my all form contains the following code:

public partial class Form1 : FormBase
 
Move the resize event to the base form
And the panel
 
How to move panel to the base form ?
 
open the FormBase in the designer, add the panel
or, if you don't want to do that, you would at least need to give the panel on each inherited form to the base form through a property or method call
ie. define and call a method like "SetCenterPanel(panel1);"
 
8:43 AM
FormBase is the class in my Class1.cs file. So as per your telling i will create one FormBase named window form and in that window form i add one panel control
 
That's one way to do it, correct.
 
I add one window form named FormBase.
in that form's resize event is as following:
private void FormBase_Resize(object sender, EventArgs e)
{
PanelUtil(panel1, this);
}
but its constructor gives me error:
Type 'Xerox_Copy_Bill_Software.FormBase' already defines a member called 'FormBase' with the same parameter types.
I don't want to create visual inheritance.
 
Then you need to tell the base from which panel to resize
 
9:01 AM
Its ok. I will need to tell the base from which panel to resize but i don't want to tell it using the resize event of the Form. I call my method of the FormBase class using the PanelUtil(panel1, this); But this line i don't put in my resize event of the Form I want to call this from my Form's constructor. So Is it possible ?
 
Yes
You don't need to send this, PanelUtil will have the same this
Basically I would do this instead
add a property to the FormBase:
public Panel CenterPanel { get; set; }
Then add a resize event on FormBase:
if (CenterPanel != null)
{
    // code to center CenterPanel
}
And then finally set this property, you can even set it using the designer in your inherited forms, first drop the panel on the form, then set CenterPanel on the form itself to that new panel
ie. just click on the form, find CenterPanel (should be under Misc if you're using grouped properties), and set it to panel1 or whatever the new panel was named.
You might want to add code to the CenterPanel property to automatically center the panel when first set as well
This way, the second you set that property in an inherited form, that panel will move to the center.
Here, let me show you how I would do it
 
Thanks.
It works
 
one property named CenterPanel is add to the Form
 
It will handle both that the form is resized, as well as the panel (it will recenter after changing size).
 
9:13 AM
But I don't know how to add property to the FormBase:
public Panel CenterPanel { get; set; }
 
Check the code I shared.
 
9:33 AM
Thanks.
Thanks.
 
9:55 AM
anybody here that can help me with the following:
I have a ';' seperated text file, the file contains 2 lines of text. Line 1 is the column line and line 2 contains that values

Now I need a value from a specific column, but I have totally no clue on how to accomplish this.... Anybody???
 
Split each line by ; and pick the right value?
see String.Split for details.
 
isn't there a more simple way to do it?
because the file contains like 200 columns -_-
@LasseV.Karlsen and can you combine the 2 lines when splitting? so the value for each split would be: column name + value?
 
:16012998. Thanks very nice coding. I learned a lot.
 
So basically you have

key1; key2; ...
value1; value2; ...

?
 
jep

Line 1 -> key1; key2; ...
Line 2 -> value1; value2; ...
@dav_i Based on column in Line 1 I need the value which is on Line 2
 
10:13 AM
var text = @"key1; key2; key3
value1; value2; value3";

var lines = text.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries).ToList();

if (lines.Count != 2) throw new Exception("bad number of lines");

var keys = lines[0].Split(';').Select(x => x.Trim()).ToList();
var values = lines[1].Split(';').Select(x => x.Trim()).ToList();

if (keys.Count != values.Count) throw new Exception("more bad times");

var dictionary = new Dictionary<string, string>();

for (int i = 0; i < keys.Count; i++)
then you can do var value1 = dictionary["key1"];
 
wauw, that's awesome @dav_i
give me a few minutes to implement and test this!
but do I need to place both lines in "var text"?
 
Can anyone help me....???
I developed an installer type mini game using jquery+html.
Now I need login and register. Can anyone tell me, how to do this? bcz its an application, so anyone can install and play. So I can't install local database for all. So my need isI need to install all systems without any need of local database. How to do this???
 
@RaZor Well text just contains whatever string you're getting it from, hardcoded, from file, whatevs
 
okay so if I read the text file I can put both lines from the Text File in the var text?
but how does C# knows that there are 2 lines in the "var text"?
 
user1804599
Use a CSV library.
 
user1804599
10:23 AM
Don't write yourself what others have already written for you.
 
user1804599
Any decent CSV library allows for custom delimiters.
 
@rightfold I wasn't planning to re-invent the wheel man....
 
user1804599
Python's CSV library also reads headers for you and outputs dictionaries for every row, so you can do row['some_column']. Not sure what the .NET options are.
 
@RaZor because it contains a new line
All a new line is two characters... it's only displayed as a new line for your visual convenience
I mean it's all really 1s and 0s but it would be even more inconvenient to display that
 
user1804599
Whether it is zeros and ones or not depends on the encoding.
 
user1804599
10:28 AM
Oh wait, nevermind. C# uses UTF-16 for strings. :P
 
@rightfold I meant binary, everything is stored in binary.
 
10:47 AM
WTF!? How did this get approved. stackoverflow.com/review/suggested-edits/4638011
 
@dav_i really good question
 
how can i get real ip hidden behind proxy software?
 
@DaImTo I rolled it back and pinged the user who made the edit but I wish there was a way to slap reviewers
 
@programmer1 isn't that the point of a proxy? That you cant see the IP behind it.
@dav_i I don't have rollback powers or slap powers :)
 
10:57 AM
@DaImTo for example i use freegate and using ipconfig will return fake ip
 
@DaImTo Sure you do - just click on "Edited on ..." and theres a link
 
Couldn't find that but did figure out how to clean up all my favorite tags. Note to self: You cant like everthing
OHH I found it!
nice you can see all the revisions a question has gone tough.
 
11:17 AM
Ugh, not been able to work this week
Done the equiv of about 3hrs in the past 2 days
 
user1804599
@dav_i depends on the encoding.
 
user1804599
An encoding may specify that data must be stored in ternary.
 
user1804599
Or on paper.
 
@rightfold Encoding.Paper.GetBytes(...)?
 
user1804599
"Encoding" is an abstract concept.
 
user1804599
11:25 AM
For encoding text as paper you can use a printing API.
 
11:37 AM
@programmer1 you can't, thats why its called a proxy.
 
11:56 AM
:)
good morning!
 
12:33 PM
^_^
 
>_>
 
@Steve good morning sir
 
12:49 PM
can't think of a good variable name.... its for sending expiration emails out, so like 50 days out, what would I name that "50", daysAhead seems not descriptive enough... hmm
 
intDaysToGo
@Steve
 
not a fan of that either
 
emailDays
@Steve
 
has nothing to do with email, its used for setting the floor and ceiling date times for the query
:(
 
ohh
daysRequired
@Steve
 
12:58 PM
@Steve expirationInDays sounds plausible...
 
Does Telerik OpenAccess have API documentation? I can't find any.
 
1:21 PM
@Steve DaysLeft
 
1:48 PM
@KendallFrey you here?
 
hola
 
hey!
I've got this problem... It's kinda nasty :p
 
@RaZor Go see a doctor man...
 
@RoelvanUden lol :P
I have 2 applications.. Which will be installed on a network. Both applications need to communicate with eachother when running on a Terminal Service. but here is the thing.. How does app1 communicate with app2 if app2 is running for multiple users on the Terminal Service.
 
It.. connects as usual?
 
1:52 PM
for instance: if app2 is running for like 2 users, how does app1 communicate with the right app2 instance?
 
It doesn't
 
indeed...
 
The right app2 instance should contact app1
ie. don't make 1 client + multiple servers
 
Nope
 
app2 instances..? It's not one instance with multiple connections? o_o
 
1:52 PM
make 1 server + multiple clients
 
Lasse, you don't read
2 apps 1 terminal SERVICE
 
Good morning
 
ok, why are they communicating in the first place?
 
RaZor you don't write :P
 
you only said app2 was running for multiple users
 
1:54 PM
@KendallFrey true, it's called typing :P
 
you didn't say app1 and app2 was 2 instances of the same program
 
@LasseV.Karlsen Because app1 needs to perform actions in App2
 
So let's clarify
 
I know because App1 and App2 are 2 complete different applications
 
Are app1 and app2 two instances of the same program?
 
1:54 PM
App1 and App2 are 2 complete different applications
 
Ok
and you have app1 1 time and app2 many times?
 
both many times
 
ok
then why are they communicating?
 
on a terminal service only
 
get it straight lol
 
1:55 PM
@LasseV.Karlsen because app1 is for File management for Lawyers and App2 is for document management
App1 needs to perform an action on App2 which will show search results
 
Ok, how do you know which two apps should communicate?
ok
is app1 and app2 running for the same user?
 
yes
 
ie. those are the two that needs to communicate?
so, let's clarify
you have many users on a terminal server
 
ye
 
many are running app1 + app2
and for each user, app1 needs to talk to app2, and vice versa (possibly)
but you want to avoid app1 for user X talking to app2 for user Y
is that about it?
 
1:57 PM
vice versa is not necessary
 
app1 with app2 is enough
 
any chance you could say something like the above next time you ask for help?
 
"but you want to avoid app1 for user X talking to app2 for user Y" exactly :)
@LasseV.Karlsen I could try... but.. My mind is chaos atm... having a hard time to explain things ina clear way... :P
 
Does app1 or app2 know about the other application in any way?
ie. did one start the other for instance?
 
1:59 PM
nope
started seperatly
 
but you're the programmer of both?
 
nope, only the app for document management
 
the other app, can you change that, or get someone to change that?
 
but the dev of the other app is my colleague
 
2:00 PM
Hold on.
I need to explain 1 more thing
for MY app I have a WCF Service which I would like to extended with the functionality so that the apps can communicate with eachother
 
You should set up a server application
 
Why..... That would take to much time and my application needs to be live ASAP
 
You think creating a stable communication service between applications like this can be done ASAP?
Well good luck with that...
 
@RaZor That's no reason to hack together an application. You will likely find it much easier to have your app communicate with a central server application rather than trying to rush through getting the applications to communicate. It is no simple task either way, but the server application is the right way to do it.
 
2:16 PM
I have a Service which acts like a Server ;)
@LasseV.Karlsen I have a Service which should only be extended with the methods
 
2:30 PM
Hey everyone. I have a VS2005 solution with two projects (Smart Device and Deployment Smart Device Cab) in it. I now got a copy of VS2013 and would like to upgrade the solution to VS2013.

How would one do this (safely)?
 
Anyway, apparently you can make local named pipes with either a "LOCAL\" or "LOCAL/" prefix that will have a name unique to the logon session. You can try this and see if you can get something to work.
@seph Do you use version control?
 
@seph Back-up everything, then try the upgrade assistant? :D
 
@LasseV.Karlsen I'm using tortoise/visualSVN with both VS05 and VS13
 
Then just open the solution file in Visual Studio 2013
See what happens
 
Aye, it will likely open just fine, but always back up your code before trying something like this.
 
2:33 PM
Alright, will try that, thanks.
 
If he's using version control he should already have all the backup he needs, hence my question.
 
Never had too much luck with the assistant though :)
 
It only upgrades the project and solution file structures
 
@RoelvanUden Do you have an email I could send the document to?
 
@Greg roel.van.uden at hotmail losdotos com
 
2:50 PM
@RoelvanUden Thanks, I sent it to you.
 
Got it. Will take a look once I get home.
 
I sent the input, and in the email I used the first person as an example of structure.
@RoelvanUden Thanks. I'm going to be working on it again today, hopefully I can get it.
I'd like to solve it myself, but that doesn't look like it is in my future.
 
hi everybody!
Everybody wake up!!!
 
FYI: Just tried to upgrade my solution, unfortunately VS2013 does not seem to support Windows Mobile 6.5 project at this point, so I will stick to VS05 I guess...
 
@seph It probably never will. Windows Phone 7 is practically ancient as it is..
 
@seph That is because Microsoft doesn't even support Windows Mobile 6.5, they barely support 7.
@seph Their focused on Windows Phone 8
 
@RoelvanUden @Greg Yeah, I know. Would've been nice to use VS13 with older projects...
 
Do you actually support a Windows Phone 6.5 app? o_O
 
@seph - Yeah, I tried updating to vs13 only to find that it doesn't support mvc3
So I rolled it back
 
@LiquaFoo Juas juas juas, crazy guy!
 
2:59 PM
@RoelvanUden yes, one of my projects requires me to work with a device running on WM6.5
 
You poor soul, that is like supporting netscape navigator
 
Well its not that bad. And to be honest, I don't think there is a device out there, that fits the customers requirements AND runs WP7 or WP8.
Example device I have right next to me would be a PSION EP10
 
I feel your pain
@seph The latest for supporting 6.5 is VS2008, I use that
 
3:15 PM
Hey guys! I'm here to ask for something:
I know Microsoft visual studio 2010 does not support mobile apps!
But I need a page or a document which says that...
I were looking for it on several pages but i didn't found it...

Any idea about where i can find it?
 
@PETTA "does not support mobile apps" Can you be a bit more specific then that?
I can write apps using Xamarin in VS2010 but I'm sure that's not what you're asking.
 
@JohnD I developed a Mobile app in MVS2008. I tryied to open it on MVS2012...
I can´t do it
 
@PETTA And that means 2010 can't work?
 
"I developed a Mobile app" that's still too vague.
What's the target platform
 
VS2008, VS2010 and upwards does not have support for old Windows Mobile applications.
 
3:20 PM
@PETTA But you just said you developed it in 2008?!?!
 
@JohnD Yes, i developed an windows mobile app in MVS2008, but i couldn't open it on MVS2012
 
Oh. That was a poor use of a comma there.
Yes, the last version of visual studio to support Windows Mobile 6.x was 2008
That's what I'm using now for windows mobile
 
@JohnD but i need a document to show to my assh*le boss
And i didn't find it!
 
@PETTA Check the release notes for 2010?
 
Yep @JohnD
 
3:30 PM
@PETTA if you got an answer for your question yesterday, why are you asking again here?
 
@PETTA Why doesn't your boss trust your judgement? It's obviously not opening because it's just not supported, so just go back to what works
 
@JohnD Ojalá fuera tan fácil... Él siempre pide documentos para sostener lo que decimos
@JohnD juas juas juas sorry! I'll try
 
4:12 PM
Is there a really clean library to build a Comma Separated Value. Like for particular control of adding data to columns.
 
@Greg anything wrong with a List<List<string>>?
 
4:27 PM
@MikeAsdf I'm not visualizing how that would provide column support.
 
posted on April 23, 2014 by Eric Lippert

Today on the Coverity Development Testing Blog's continuing series Ask The Bug Guys I answer a user question about whether an impossible comparison should be an error or a warning. Check it out! As always, if you have questions about … Continue reading →

 
5:07 PM
hey all
 
mornin
 
how goes?
 
meh
Tons of bugs that somehow weren't discovered before.
 
ha. Just had a tab left open, for which the visible part of the title was "Adult D..."
wat.
"Did I have that interesting an evening's browsing?"
 
What was the rest of it? :P
 
5:10 PM
rinks and Mixers
 
"Adult D...oowop bands"
"Adult D...ouble penetration videos"
 
Adult D...iapers
@Pheonixblade9 As opposed to what? children?
 
...that was in poor taste
 
is it wrong to accept a linkedin invite from a recruiter because she's hot, having no interest in her ...er...positions?
 
5:15 PM
linkedin yes, facebook no?
 
fair
I might want a new job sometime, anyway
 
@TomW @KendallFrey @TravisJ What are your linked in profiles?
 
Non-existent
 
null
 
I am not currently up for hire, nor do I feel like being contacted by industry.
 
5:24 PM
My social media is pretty much Twitter, and even that isn't so social.
 
Oh, was going to add you to my connections.
Fair enough.
 
My social media comes in the form of wine tasting, bars, clubs, beaches, or vacations.
 
uk.linkedin.com/pub/tom-wolverson/39/586/b18/
 
:)
 
haaang on. y u no give hyperlink
yes, because it isn't, I know. I mean, why doesn't linkedin provide a hyperlink
 
5:26 PM
@TomW - You have a masters in physics?
 
yep.
 
That's pretty awesome
 
although the level of derp when I'm asked simple questions might not lead you to believe it
 
lol
I am really trying not to post this comment on a meta post. It is hard to refrain
"That sounds dreadful. Stack Overflow is not a call center. Why should users sit and wait in a chatroom for someone to post a bunch of content which was not researched? You realize how much it costs per hour to actually hire consultants in this industry right? It isn't free, and when it is, it definitely is not on call."
 
what's the meta?
 
5:28 PM
-1
A: Why is Stack Overflow so negative of late?

DaedalusAlphaI'm thinking that maybe one solution to improve the questions on SO (and thereby the answers and general tone on the site) could be to improve the chat part of the site. If I have say a WINAPI question that I don't think would help anyone else (or one that I can't formulate into a good quality q...

 
I have an updated LinkedIn and I get tempting emails weekly
 
??
 
@Pheonixblade9 - Has that recruiter gotten back to you?
 
@Pheonixblade9 yeah, I figure the reason we have so many damn recruiters around here is that the job market is so desperate for skilled people
 
@TravisJ haha, which one?
 
5:30 PM
also, it knows I know you, somehow
 
@Pheonixblade9 - The one that we talked about last week?
 
I have nobody from StackOverflow on there
 
yeah, I guess I qualify as skilled? I got rejected for a mobile job because "I didn't have enough experience". Bitch, I've been developing Android since 2010!
@TravisJ oh, I have some in progress but nothing solid.
 
@Pheonixblade9 - If they get back to you, is it generally with an offer from somewhere?
 
nah no offer
in person interview first
we'll see
I'm still not sold on leaving my current job. we'll see
 
5:32 PM
@TravisJ Well, if you accept me I have Ton, Reed, Jessica, Cody, and DRCH
 
Yeah, moving can be hard to do. Even if the work is hard, if the environment is respectable that can add value too.
@Greg - I don't have a linkedIn account
 
@TravisJ I meant @TomW
 
@Greg - Fine.
lol ;)
 
@TravisJ Did you try and add a Party Chat last night on Xbox? Were you playing Titanfall?
 
@Greg - Yes
@Greg - You have to check out one of the upload clips I took last night. It is the most recent one. Its only 30 seconds
 
5:34 PM
@TravisJ I was trying to beat Shadow Jago in Killer Instinct. He is so damn difficult.
 
@Greg - Haven't played that game before. Did you try turning it off, and then back on again? :P
 
woah. There's an article on there written by Stanley McChrystal about when he was (effectively) fired after 38 years
 
where?
 
I guess that must be pretty profound
linkedin
oh, and surprisingly short and vague
oh well
 
@TravisJ haha
 
5:49 PM
        var query = from table in document.GetElementbyId("_memberListGrid").DescendantsAndSelf()
                    from row in table.SelectNodes(".//tr").Cast<HtmlNode>()
                    from cell in row.SelectNodes("td").Cast<HtmlNode>()
                    select new { Table = table.Id, Node = cell.InnerText };
 
@RyanTernier hey
 
wouldn't it be easier to do simple xpath @Greg?
 
and congrats, you are the only person I have EVER seen on linkedin with no namesquatters :D
 
@RyanTernier What do you mean?
 
namesqatters?
 
5:51 PM
@TomW Name squatters?
 
nobody else with that name cluttering up the results list
 
@RyanTernier The tables are nested, so wouldn't it be better to get by the Element Id?
 
ahh
You can run LINQ against HTML tables!?
where have I been
 
@TomW Pretty sure I could become the second
 
@RyanTernier Well, I'm still not sure that is ideal though. I'm having problems placing data in the respective row for the columns.
 

« first day (1285 days earlier)      last day (3656 days later) »