« first day (1284 days earlier)      last day (3667 days later) » 
00:00 - 18:0018:00 - 00:00

12:02 AM
@BenjaminGruenbaum - I wonder if the HttpContext is being constructed. Place a call to HttpResonse.Cache right before it and see if that is available faster.
I have to go tho, be back tomorrow
 
 
7 hours later…
7:30 AM
quite today
 
8:54 AM
hello!
anyone here i can ask for TableLayoutPanel?
 
 
1 hour later…
10:20 AM
hi all, I'm using httpclient to call a rest service in c# mvc application. The response has a property that is no. of seconds to wait to re-call the same endpoint. Any help on what should be the clean way to write code to wait for x seconds...
for now I'm just using Task.Delay(). is there any other option ?
 
hi all i want to upload image from html input file using web service c#
but in my code always return files.count=0
please help me out
i want to upload image using web service, is it possible if yes then how?
 
 
1 hour later…
11:44 AM
lmfao Pajama Sam is on sale on steam
And Freddi Fish
and Spy Fox lolwut
 
"Tom Clancy's Ghost recon Phantoms" is this a tactical shooter? :O
These used to be my favourite type of games
 
idk, haven't looked at it much
 
Oh, it's free and multi-player... nope
 
woohoo Putt-Putt!
I haven't played these games for years
How does steam sell kids games anyway?
 
I think they're targeting you
They're expecting you to buy them
 
11:50 AM
har har
I'm not that nostalgic
 
Half life 3 confirmed
I was getting excited for this though :P
I love tactical shooters
 
I love tactical shooters, where tactical shooters refers to bacon.
 
That's random enough xD
Have you played the Tom Clancy's series?
 
Is there any way of knowing if any checkbox is checked? the checkBox_CheckedChanged() , take too much space in the code :P
(19 checkboxes)
 
WinForms?
 
11:57 AM
yes
 
thx, but dont see how that helps xD
 
It tells you if the checkbox is checked
 
there is a bit bigger problem with the checkboxes i have
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked == true)
{
button2.Enabled = true;
}
else if (checkBox1.Checked == false)
{
button2.Enabled = false;
}
}
 
12:02 PM
I am doing this online test .. does anyone know how to solve these?
 
if i uncheck any checkbox, then the button is disabled tho a checkbox is checked
 
sup brah
 
not much
 
@jyrka how is that not working as expected?
 
12:05 PM
ok let me think how explain this better.
 
@Damian We like to help people that have questions about what they have written.
If you're too lazy to write the code yourself, why should we help you?
 
@KendallFrey I am working a solution.. in parallel.
 
For example i have checkBox1 , checkBox2 and checkBox3 checked, but then i uncheck the checkBox2, and the Button2 will be disabled, although atleast one checkBox is checked.
 
Ah, I see what you mean
 
So you want the button to be enabled if 1 || 2 || 3?
 
12:07 PM
You want to only take action if all checkBoxes' Checked are equal?
 
yea atleast one of the 18 must be checked for it to be enabled
19*
 
oh, ok
 
You'll have a lot of 'or' expressions then
Unless they are in an array
 
i've been doing stuff with C# for like 2,5 weeks, so im not that smart to figure that out :)
 
1.Checked || 2.Checked || ...
It's not hard
 
12:10 PM
i did think or the or ( || ) , but i dont know where to put that when the checkbox state is changed. i have used the or operator to check if atleast one file exist.
should i put a timer to check after some time if its checked?
 
I found the answer to 1. peter-braun.org/2012/01/…
 
You want to change the button's enabled state when a checkbox's checked state changes? There's an event to help you with that.
Protip: You can connect all the checkboxes to one event handler
 
yes i know
thats why i dont know where to put it
 
In the event handler
 
1 sec
would it work like this?
private void timer2_Tick(object sender, EventArgs e)
{
if (checkBox1.Checked == true || checkBox2.Checked == true || checkBox3.Checked == true)
{

}
}
(didnt add button2 yet)
 
12:19 PM
No, don't use a timer
use CheckedChanged
 
why not timer?
 
It's like using tweezers to shave. It's the wrong tool for the job, it will be unnecessarily painful, and everyone will see the shitty job it does.
You want your button to update when they change a checkbox, so make it update when they change a checkbox
Not at some indeterminate future time
 
i left the timer2 Interval to 100ms
 
Stop trying to argue with me.
 
Im not, just saying that it works too.
 
12:23 PM
Using a tweezers to shave works too.
Just because it works doesn't mean you should do it.
 
ok
 
another priceless comment from @KendallFrey :)
 
12:47 PM
hi im trying to understand how to convert a decimal float to iee 754 double floating point but there are only short articles about this topic that i dont understand in detail. is there anything more in detial than the wikipedia article?
 
Please explain what you mean by a decimal float. Do you mean you want to convert from System.Decimal to System.Double?
 
i still have a problem regarding tablelayout :/
 
well at least it's not regex ;)
 
lol
i miss coding regex
 
Try REBEL
 
12:52 PM
what is it
 
Enough regex to give you a hole in your heart
 
@KendallFrey I mean i want to convert a decimal number for instance 12.67 into IEE 754 double floating point by hand. theres a guide in wikipedia but i dont get the step after the conversion into binary....
 
is that your own p.L? @KendallFrey
 
By hand?
What input format? string?
@Elegiac yeah
 
wow cool
ill try it when i got freetime
 
12:54 PM
@KendallFrey you could use some bootstrap magic on your website :P
 
by hand I mean with a piece of paper and a pen :D
 
@RodrigoSilva If I ever start caring again
@JulianHerbold ooh, pretty
 
@KendallFrey well, just to make it more pleasent, I'm sure the content is very good, the UI should match it
 
So, you've converted 12.67 into a binary fraction, right? 1100.1010101...
 
@KendallFrey yes but the step afterwards isnt really clear to me. i got a meeting now "I'll be back" :D
 
12:56 PM
peace
 
@KendallFrey i already dl your zip
whats with start stepping / start running
 
That's the debugger
I really should finish up Visual REBEL
but it works fine for me, and I'm too lazy
 
ok
 
If you want a sample to step through so you can understand the debugger, I can write one for you
 
yeah i want 1
anyone here can help me think of my prob for tablelayoutpanel?
 
1:00 PM
a/a/bb/b/c
That should show you a bit how it works
 
its

a
bb

a
bb
b
c
 
then press step
and watch what happens
 
it changed to
bb
cb
a
bb
b
c
its related with regex?
 
yeah
 
so the letters below was the matches ?
 
1:03 PM
The bottom section shows the program, the top section shows the string it's using
 
i see
 
at every step it replaces the red text with the green text
 
how do you do that highlighting @KendallFrey
 
wpf magic
:)
 
i thought its winforms
 
1:05 PM
HAHAHAHAHAHAHA no
 
too bad ...
 
but its cool man ... hope i can make that 1 also
a/
try selling it maybe @KendallFrey
 
No one would buy it
It's just for fun
Just like brainfuck
 
when it will be useful
haha ok
 
1:09 PM
I haven't found it to be useful for anything other than code golf occasionally
 
........
so you cant sell it till you know when it will
 
Why would I want to sell it?
 
to have $ maybe haha
 
I already do
 
give me some haha jk
 
1:14 PM
Did you look at the quine example?
 
nope
 
I actually wrote a game engine in REBEL, but it's too long to post here.
Several times longer than the quine
Look at the quine and you will see what REBEL typically looks like
 
by zip then upload it
 
it's on my website
 
h
ok now i know hehe
 
1:18 PM
hosting: $0 - domain: $11/y I think
 
0
g2g bye all :) adios amigos
 
can someone help me in how to construct a somewhat simple sql
 
SELECT * FROM brain
Here's one
 
not that
i need to update some fields on the server but how many and which fields are to be updated are determined at runtime
so if i write UPDATE x set y=a
and if a is null then theres a chance that y will be set as NULL when in reality it should not have updated at all
since that param wasnt supplied by the client communication system
 
set y = ISNULL(a, y)
 
1:27 PM
instead i would need it to skip a since its a blank string or null and go to be
 
blank string should be ignored as well?
Any chance you could write this logic into the code that builds the SQL instead, skipping y completely?
 
yeah actually but thanks looks like i can detect the blank strings
 
set y = CASE WHEN a IS NULL OR a = '' THEN y ELSE a END
 
and replace the params of blank strings with DBNull.Value
 
1:28 PM
or opposite:
 
Innuendo and food. What a great combination.
 
set y = CASE WHEN a IS NOT NULL AND a <> '' THEN a ELSE y END
But yes, if you can fix some of these problems before they reach the server, it's probably better
 
query is long since i have a number of fields i think i would with fixing the blank strings first
@LasseV.Karlsen thanks.May Allah guide you.
 
no9
argh
sigh
ughh
i need some advice
 
Go eat some bacon
That's pretty good advice I think
 
no9
1:33 PM
true
but that does not solve my problem
 
I found cake that's just as good
 
no9
i havent eat anything today
so please
0
Q: Missing manifest file in ApplicationFiles folder with msbuild in NANT task

no9I have an application that is deployed via ClickOnce deployment. I have used NANT in order to automate the publish process. This is the Build part: <target name="Build Client" depends="Clean" description="Build"> <echo message="Building..." /> <exec program="${msbuildExe}" workingdir="...

can someone explain this?
the purpose of *.application manifest in root folder and ApplicationFiles subfolder?
 
anyone here...
 
Some people here, yes
 
I have a doubt in windows application
I have two forms, form1 and form2
I want to show the form2 when clicking a button on form1
but I want it as same as click in browser
 
1:41 PM
@Illaya use javascript or jquery to listen to that button's click event.
 
i.e just navigation, not a hide and show of form
 
what do you mean by "but I want it as same as click in browser"?
you want to replace form1 with form2?
 
he justs need to call Form2.show()
 
@Illaya I think are you looking for a tab or wizard like behaviour..??
 
@LasseV.Karlsen yes
 
1:42 PM
hide form1, show form2
 
@Yoda no. just replcement
 
or, create a single window, and put content into it using user controls which you can replace
 
@LasseV.Karlsen thanks. I'll try and back to room soon
 
note that you cannot close form1 without more plumbing, as closing the main form will terminate the application
you can hide it though
but that creates some issues if you want to navigate back, in that case you should not create another instance of form1
so think it through
 
OK
 
1:49 PM
Good day
 
2:27 PM
anyone know the date time format for AU?
 
You could check via DateTime.ToString()
 
got it
 
FlowPlayer any good?
 
hello all.
 
@Shoe Sure.
 
2:41 PM
is anyone able to navigate to sourceforge.net ?
seems to be down for me.
 
@abhi Yes, it's up.
 
ALSO did caprica6 die?
thx @RoelvanUden
 
user1804599
@NETscape Why would you format astronomical units as datetimes?
 
@KendallFrey Question for you, would a Regular Expression be feasible to remove the following:

"Name"
"Phone (*Primary)"
"E-mail"

Then individual characters after a phone number:

"C"
"H"
"W"

Before the phone though, there is a variation of stuff like:

/ C / A3 / English
/ C / A1 / English
/ FD / T0 / English

Is that possible or too complex and not worth the time?
 
!!hello
 
2:43 PM
@KendallFrey Hi
 
caprica ain't dead
@Greg Looks feasible, give me an example of the input and output string.
 
@KendallFrey Well, an output is a different. Each customers list will be different.
@KendallFrey The data is coming off a third party web-site.
 
I'm confused. Explain what you're trying to do.
 
Well, I've grabbed the data off the list and stored it in a CSV. The problem is right now I have all these variations stored in a List<string> but was hoping that stuff above could be removed with regex to avoid that loop for the replace.
          activityLevel.Add("Name # ");
            activityLevel.Add("Phone (* Primary) # ");
            activityLevel.Add("Address # ");
            activityLevel.Add(@"E-mail # ");
            activityLevel.Add(@"/ C / A1 / English ");
            activityLevel.Add(@"/ C / A2 / English ");
            activityLevel.Add(@"/ C / A3 / English ");
            activityLevel.Add(@"/ C / I1 / English ");
            activityLevel.Add(@"/ C / I2 / English ");
            activityLevel.Add(@"/ C / I3 / English ");
That is almost all the variations I believe.
 
And what are you trying to do?
give me sample input, expected output
 
2:52 PM
Well, the input would be:

Name
Phone (*Primary Address)
Address
E-mail
Greg Arrigotti 3259BD / C / A3 / English 111-111-1111 H 952 Some Address, Portland, OR 97007 change@mail.me

There is more to the list then that, it can have up to 1,000 entries. The "/C" portion is variational which I can't expect at all times.
And I have to break the name away from those digits.
 
In a List like you show above? regexes can't do lists
 
It is from one giant StringBuilder that was generated by screen scraping a web-site table.
 
ok, and what output are you looking for?
 
Columns:
Name
Consultant Number (example 3259BD)
Phone Number
Address
E-mail

Basically.
 
I am very confused
 
2:56 PM
@KendallFrey ...?
 
Give me a string of input and a string of output
That's what regexes do
 
Input: Name
Phone (*Primary Address)
Address
E-mail
Greg Arrigotti 3259BD / C / A3 / English 111-111-1111 H 952 Some Address, Portland, OR 97007 change@mail.me
Output:
Greg Arrigotti 3259BD 111-111-1111 952 Some Address, Portland, OR 97007 change@mail.me
And I want to store each one in a unique column.
 
each what?
 
Forget that part, I'll tackle that later.
 
regex doesn't do columns
Do you just want a CSV parser or something?
 
3:00 PM
@KendallFrey I know, it is in ` StringBuilder`. I'm formatting the string to strip some content out and place into columns.
 
I have no idea what your question is
As is, it's too complicated for regex
 
That is what I thought, basically my question is can it strip it then help position data into the proper columns.
 
You can replace patterns with empty strings...
 
do you get 1 string you want to split up?
ie. you get "Greg Arrogotti 3259BD ..." and need to split this up?
 
You can't split that string without some deliminator character
 
3:05 PM
@Greg Sounds like you want csv with a header
 
@RoelvanUden I actually want the header even removed, but basically.
The problem is this third party web-site did four tables all nested together.
 
You can't magically re-position data without some kind of header that indicates what to map on what column, hence the header part :P
 
Rui
Hey guys :) i have a question but i will use vb as a linq example is that ok with you guys?
 
@RoelvanUden True.
 
Rui
My question is about database performance: using linq as such (Klanten = (From k In db.klanten Where (k.isGeblokkeerd = False Or k.isGeblokkeerd Is Nothing) And (k.mobiel1.Contains(strzoek) Or k.telefoonnummer.Contains(strzoek) Or k.telefoonnummer2.Contains(strzoek) Or k.achternaam.Contains(strzoek) Or k.adres.Contains(strzoek) Or k.bedrijfsnaam.Contains(strzoek)) Order By k.achternaam Take 30).ToList) if i divide that in parts will the database connection be faster?
i mean the performance will change or i will see no improvements?
 
3:11 PM
No
Try a stored procedure
 
Rui
Will a store procedure give me any improvements when searching for a client?
 
It's faster than LINQ
or can be
 
Rui
ok! Thank you i will give a try then!
 
3:30 PM
I'm having trouble finding recent comparative benchmarks
 
3:54 PM
@RoelvanUden Is there a way to grab the contents out of a table, to keep the columns correct?

Unfortunately someone who built this decided that each table row, should alternate between class names.
 
@Greg css? yeah that's often done for alternating colors.
 
@MikeAsdf What is the best way to grab each row out of a table?
@MikeAsdf I might of figured it out.
 
@Greg "best" might depend on situation
maybe something like this? stackoverflow.com/a/7012494/251011
 
The problem I'm having is keeping the columns sorted, I end up loosing the column positioning.
 
?
What the hell is the input? Is this a web page or a text file?
 
4:08 PM
@MikeAsdf Web-Page.
@MikeAsdf They have all the tables super nested.
 
sounds like you'll need very custom-tailored transformation logic
 
Kendall Frey™: Now Fueled By Cheap Post-Easter Chocolate
 
Yeah, forst time with something so complex.
 
Pretty sure I've not done any work in 4 hours
I achieved something by 10am so have basically been coasting on that for the rest of the day
 
5:04 PM
My all forms contains the following event code :
panel1.Left = (this.ClientSize.Width - panel1.Width) / 2;
panel1.Top = (this.ClientSize.Height - panel1.Height) / 2;
above is the resize event. i want to write this event only at once and call it from all the forms. so how to do this ?
 
All the forms have a panel in the middle?
 
You should just be using WPF. It can do this automatically :P
 
A bit overkill switching to WPF just to center a panel though
 
too bad css isn't an option
 
@LasseV.Karlsen Of course, but WinForms is overkill to start with.
 
5:10 PM
Still, it's a known quantity to many programmers
 
top0left0right0bottom0marginautopositionabsolute win
 
I want only this in my windows form not in wpf how to do this ?
 
And WPF, that's not a bet I would want to take any more to be honest
 
using class file this is possible ?
 
Create a base form with the panel in the middle, and the event, and inherit all the other forms from that
or, separate out the logic into a method, and call it from the resize event of all the forms: PanelUtil.Centre(panel1, this);
 
5:17 PM
Thank you so much.
This works.
But now resize event of the form contains the following line:
PanelUtil(panel1, this);
i don't want to write above line in all the form's resize event
i want that when i inherit the base form than it automatically panel is opened as a center position
 
@user3216114 I'd make a utility that does that by attaching an event handler, and just call it once in the constructor of each form
 
How to do this ? What is this utility ? so i call it once in the constructor of each form. any example.
 
subscribe to the resize event, and add your code
 
5:33 PM
Woohoo! Just completed my ACH payment solution =) Good times.
 
Can't stop eating chocolate
 
Reed Copsay, i subscribe to the resize event and i call it from my constructor but this is not worked.
 
@KendallFrey - Move it out of arms reach. Or don't if you aren't worried about eating all of it.
 
I've eaten about half of it in an hour and a half
        foreach (var item in ListOfButtons.Items)
        {
            Border border = ((Border)VisualTreeHelper.GetChild(ListOfButtons.ItemContainerGenerator.ContainerFromItem(item), 0));
            Button button = (Button)VisualTreeHelper.GetChild(border.Child, 0);
            button.GetBindingExpression(Control.VisibilityProperty).UpdateTarget();
        }
yeach
 
00:00 - 18:0018:00 - 00:00

« first day (1284 days earlier)      last day (3667 days later) »