« first day (649 days earlier)      last day (4301 days later) » 

12:24 AM
@kush - IOU $1 million
2
 
@ScottSelby I have starred your IOU note. (: It is US dollars though, not Zimbabwean Dollars.
 
@kush - en.wikipedia.org/wiki/Peter_Sunde - read The Pirate Bay Trial , then in the paragragh "After the verdict a press conference.... "
 
Yes!
 
haha
 
 
2 hours later…
2:26 AM
Updated our video about FaultTrack on Kickstarter based on feedback and questions. If you like bug tracking, check it out!
http://www.kickstarter.com/projects/dcomproductions/faulttrack-a-modern-desktop-bug-tracker-for-net-de
 
 
1 hour later…
3:31 AM
no
 
 
3 hours later…
6:54 AM
@all is any one here
 
 
3 hours later…
9:47 AM
Hi all
 
Hi @shambulator do you know about how/when(what event) aspxgridview form query when the sorting?
 
'fraid not, BallCutter. The closest I get to ASP.NET is using IIS for hosting WCF services.
 
10:03 AM
morning
 
Hello, Does .Net in memory cache serialize data or not ? Any article reference would be useful. Thanks
 
10:24 AM
@Dusko Are you talking about MemoryCache?
 
Yes
 
I would like to know this as well. There is very little documentation using MemoryCache with C#
 
more precise System.Web.Caching.Cache class
 
Ah, similar but different. Not all that different I should think
Mine is System.Runtime.Caching
 
Yes, i think that difference is that Cache can be used only in Asp.Net
 
10:29 AM
Do you know how .NET handles the Cache? Like disposing of data and all that
 
No, sorry, still reading about all that stuff :)
 
10:44 AM
Is anyone here familiar with AvalonEdit? I would sincerely appreciate some help
 
Not that I know anything about it, but is that part of DevExpress
Naw, nvm.
 
11:37 AM
goood morning lovers
 
@Nadal i hope ur refering to @Caroline as the rest of us are guys from what i can see
 
haven't seen Cute & Modest Hairy dude anymore :'(
 
11:54 AM
@DavidDV good riddance
he/she/it was a pain
 
im still lost as to who we are talking about
 
don't worry baboon (or get bitchy) you are still the cutest
 
@DavidDV You have to see my latest freckles, I look like a diva!
 
"Developers: The Prima Donnas of the 21st Century"
:P
 
guys, does anyone know of what this device is called, market/product name atleast. It is a powerful camera that allows you to take pictures and possibly sort them into a folder automatically.
I am looking to get a usb camera that I can use during lectures to take picture of the blackboard and possibly record lecture videos
i cant find anything on the web relating to it....Something that comes with a software that lets you organize your video/pictures taken into separate folders
 
12:27 PM
@Nadal I don't understand your question and how it is related to C#. For me, the problem you describe, can be solved by any standard compact camera and some discipline from your side to organize the pictures and movies. For organizing pictures, there are many programs on the market, but I just use the standard folder structure of Windows.
 
@ChristopheLambrechts wouldnt certain cameras be designed for this task? It would be good if they had some software they came with that allows you to snap shots and use a quick GUI to specify where the picture video should go
 
damn you discipline !! :(
 
kind of like, "The next picture or video taken should go to this folder"
 
If I have a DependencyProperty typeof myEnum and I would like to set two controls's visiblity based on it, which approach would be the best? Triggers or a Converter? Would a converter be dynamically shown by the designer?
 
if not a software I guess I could write a C# application
discipline and programmers dont go hand in hand :P lazyness always spooks in
 
12:35 PM
@MemphiZ Pretty sure a converter functionality will be reflected in designer mode. I use converters myself.
 
hi
an offtopic question
 
@justI see because I cant get it to work with Triggers. For the triggers property property it tells me the member is not accessible
 
@Nadal maybe the http://chat.stackexchange.com/rooms/14/photography chat room is a better place for this kind of question or maybe ask/search in the stackexchange for something. I found something that can send pictures immediately to a PC: http://photo.stackexchange.com/questions/6276/are-there-any-cameras-which-transfer-photos-to-pc-without-interaction
Maybe also a kind of tablet with integrated camera can do the job and maybe gives you the change to add additional information.
 
also @ChristopheLambrechts normally for cameras you take pictures and they are put into memmory, I am talking about a camera that is usb connected to computer and any picture or video taken is sent right away to a folder on a computer
 
i launch a new product>software great success>competitors know it>release their version to compete with me
 
12:37 PM
that PC thing sounds more relevant to what I want
 
To send pictures directly to your computer using wireless you could use a eye.fi card
 
@Nadal I thought Canon has camera's that come with software that gives you the possibility to control it through USB. I wouldn't be surprised if they also get the picture straight to your pc. Let me search for that.
What about a webcam? Maybe resolution and quality is a problem, but is worth giving it a try.
 
@ChristopheLambrechts You are correct. My canon DSLR came with such software.
 
nadal what are you trying to do?
 
I am trying to take pictures of a blackboard for lecture notes
 
12:41 PM
lol what are you taking pics with
 
and then sort them in each folder depending on course
 
automatically?
 
I usually take pics with my camera but I am kind of fedup with how disorganized and time consuming it gets, I kind of want just the lens and some usb connection to laptop so that whenever i take a pic its put in a folder
ahh screw this ill just make my own >.<
 
@ChristopheLambrechts Youtube blocked at work :(
 
12:45 PM
@Nadal you can make things interesting if you can connect them with the course schedule/calender and maybe use location information like wireless hot-spots and other stuff. So that the software automatically knows in what kind of course you are and in with room it is going on (auditorium, labo, class-room, ...) Don't think here is already something for, maybe a nice business idea for a (C#) program
 
@ChristopheLambrechts I looked at it but the youtube links look like a hassle and would stand out too much in a class
probably ^_^
i guess ill add it to my next project list..
 
@Justin to bad, I'm working as a consultant and at my current project the customer we are working for on site blocked the professional social network, Yammer, that my company is using
 
isnt that ironic...
 
consultant for which company?
 
okay now a C# related question, how do you make desktop applications/exe that auto run on startup and control your pc
 
12:53 PM
Plunk em in the Startup folder.
As for controlling the PC, that's what Windows is for. What precisely do you want?
 
moving pictures around from folder to folder
 
Oh, that's easy.
 
the last time I counted, there were SIX android chatrooms
 
1:14 PM
@KendallFrey is it possible in C# to navigate remotely/through code to a certain spot on a webpage and have the program screenshot and store the image?
I guess this is more of a PHP screen scrapper
probably a job for PHP
 
@Nadal You need to write an HTML renderer for that, or take a screenshot from a web browser.
 
Hello guys.. Can I ask my doubt here that relates to C#?
 
go ahead, shoot
 
Wow great. Simple thing.. I have 3 textboxes.. One table with 2 columns..
One column is auto incrementation..
One column is the one that comes from TextBox control..
 
winforms?
 
1:19 PM
C#.NET
VS 2010..
 
are you using windows form builder or windows presentation foundation
winforms or WPF?
 
I'm not aware of the both that you're talking about.. :(
 
Is there a XAML file in your project?
 
Is there XAML?
 
okay go to your gui and right click any gui item and click properties
it'll at the top either say blahblahblah System.Windows.Forms.blahblah
or the equivalent for WPF
In think it's system.windows.control for WPF
 
1:22 PM
It says System.Web.UI.WebControls;
 
Oh, ASP.NET
 
Yes :)
 
okay
 
So I have this simple form..
Can I post my code here?
 
keep it short ;)
 
1:24 PM
:) Sure.
try
{
conn.Open();
for (int i = 1; i <= 3; i++)
{
//string skill = (TextBox)((Page.FindControl("TextBox" + i.ToString()))).Text;
var skill = "";
var control = Page.FindControl("TextBox" + i.ToString()) as TextBox;
if (control != null)
{
skill = control.Text;
}
const string sqlStatement = "INSERT INTO Skills (SkillName) VALUES (@SkillName)";
SqlCommand cmd = new SqlCommand(sqlStatement, conn);
cmd.CommandText = sqlStatement;
cmd.CommandType = CommandType.Text;
cmd.Parameters.AddWithValue("@SkillName", skill);
There is something wrong here which I'm unable to find out since hours.
Only the SkillID is getting incremented..
 
what is your error
 
loop is right the values is not passing from textbox.
There is no error.. The values are not absorbed from textboxes :(
 
Is it setting SkillName to an empty string?
 
what is triggering this code segment?
 
No .. I need the values of textboxes to go into the Column "SkillName"
 
1:27 PM
are your TextBoxes named TextBox1 TextBox2 TextBox3?
 
Yes..
 
try this, under the if (control != null) block add an else statement
 
have you tried putting a raw value as a replacement for skill?
 
Raw value?
 
else
{
    throw new ArgumentException("TextBox"+ i.toString() + " cannot be found.");
}
 
1:28 PM
cmd.Parameters.AddWithValue("@SkillName", "some possible value for skill");
this should first verify if that SQL statement works properly
 
I will try now.. :) Gimme few seconds..
thanks,.
Bullseye.. It is working @Nadal..
But it is weird..
 
why? it is working as in that "some value" gets inputted to the DB?
 
I entered only in 2 textboxes.. But the "some value" got inserted thrice.. (Because of the for stmt)
 
Try @HansZ's suggestion.
 
Sure.. But where do I include if statement?
 
1:33 PM
you already have an if statement
 if (control != null)
{
   ...
}
else
{
    throw new ArgumentException("TextBox"+ i.toString() + " cannot be found.");
}
you know it's working if your code doesn't run
 
Girish it is always good coding practice to have an else statement after an if or else if statement as a net to catch any unexpected behaviour--much better than an unhandled situation
 
@Nadal, that's not really a good rule of thumb
 
Oh great.. Sure guys.. Wil try.. thanks for suggestions.. :)
 
why not ?
 
most of the times we don't care what happens in those weird situations
 
1:35 PM
it helps with the debugging though
 
What if there are two options: do or don't do? No need for an empty else here.
 
@KendallFrey there is no try
 
Yep..
I got the error..
TextBox1 cannot be found.
 
If...else is for do this/do that. if is for do/don't
 
if I have a 26k line ASP.NET app and I have 5000 if statements and one of them is tripping how can I know which one? else statement will atleast give controlled response
 
1:36 PM
@HansZ There is no spoon.
 
I use catch() but I never got any errors there..
 
@Girish okay do you have an object named TextBox1
do
{  }
!do
{  }

error: try not found
 
Not textBox1, not TextBox_1, not txt1
 
kendall do/dont you can implement by just saying do this if this is true. If your dont is suppose to change the behaviour in some way then you should have 2 if statements one for do and other for dont
 
@HansZ : I do have 3 controls.. Textbox1, textbox2 and textbox3
 
1:38 PM
No, don't means do nothing. What good is if (!Condition) { /*empty*/ }
 
@Girish what are their exact names?
 
@Girish But your code required TextBox, not Textbox or textbox.
 
is it TextBox1, Textbox1, textbox1?
 
CASE SENSITIVE
 
if I did do this or else do this that also implies in some imroper case which you are possibly not aware of still do the ELSE statement which might be a problem, with dedicated if you can know the test cases you are targeting...else is always taught in programming textbooks to be a catcher
 
1:40 PM
Yes @HansZ.. It is textbox1, textbox2 and textbox3..
 
if (n % 3 == 0)
{
    Console.Write("Fizz");
}
if (n % 5 == 0)
{
    Console.Write("Buzz");
}
change the line after var skill = ""; to this:
var control = Page.FindControl("textbox" + i.ToString()) as TextBox;
 
if/else -> do this or do that. if -> do this or don't do this. Simple.
 
Is still says "textBox1 cannot be found."
 
textbox not textBox
 
Hey guys, how do I grab a file from a network share?
Can I just use regular File I/O but for my filename put in the network location?
 
1:43 PM
\\host\path\file.ext
Yes, I think so.
 
    additionally,

    if (rand.Next() % 2 == 0)
    {
        return "heads";
    }
    return "tails";
 
Same error @HansZ :( I'm not sure how to solve this.
 
@Girish it's very simple here is your error: You are looking for "textBox1" when your control is called "textbox1" or something like that. You need to have the exact name of the control, including capitalization.
the place where you look for it is var control = Page.FindControl("textbox" + i.ToString()) as TextBox;
 
Neat. Thanks. What I'm trying to do is create a service on an external site that can retrieve files internally from an Active Directory home folder. I'm probably going to retrieve the file, and serve up a base64 stream so I don't have to host a temporary file on the server. Do you guys see any possible issues that might arrise from this approach?
 
the constant string you put in there must match the name of the control
 
1:46 PM
@HansZ.. My textbox names are- TextBox1, TextBox2 and TextBox3.
This is how my ASPX goes..
<asp:TextBox ID="TextBox1" class="box" runat="server"></asp:TextBox>
 
That's not what you said.
 
@HansZ, just a quick question about the heads/tails code. If you removed the "== 0", and switched around the return of heads and tails, would it still work?
 
@KendallFrey, are you talking to me?
 
@Girish are the TextBoxes in class?
do you have anything around them?
 
1:48 PM
You need the == 0 to return a boolean, since this isn't C.
 
I sort of miss doing that in C, C encourages bad coding style lol.
 
@KendallFrey, alright, I was just wondering, been doing most of my coding in PHP as of late, so no wonder I'm curious about C trickiness. Thanks.

As far as the network shares, I'd probably have to be able to grab out of one of three network shares, or out of the Active Directory home folder, can you think of anything I should watch out for.
?
 
Me too...
while (*ptr) ...
 
@KendallFrey xD
 
Classic string manipulation right there, with a bug.
Fixed.
 
1:50 PM
Well @HansZ.. I have not included in the class.. This is because Multiple text boxes are assigned to "control" and then that has been inserted into the table..
 
@KendallFrey Ah yeah.
 
for(char*j = i; *(buffer++) = *(j++););
 
@Vap0r The boogieman.
 
But unfortunately I'm not able to ..
 
@Girish I mean <stuff><morestuff><asp:TextBox ID="TextBox1" class="box" runat="server"></asp:TextBox></morestuff></stuff>
 
1:51 PM
@HansZ That's not C. You can't decalre a variable in a for.
 
@KendallFrey What?
 
@KendallFrey, yeah, I was worried about him.
 
that's c++
 
You might in more recent standards, I don't know. But I do know that for (int ... BAD
 
Good morning all
 
1:53 PM
I write most of my c in c++
 
@HansZ This is how it is-

<asp:Label ID="Label1" class="caption" runat="server" Text="Skill Name"></asp:Label>
<asp:TextBox ID="TextBox1" class="box" runat="server"></asp:TextBox> <br /> <br />
 
hi guys.
 
I write most of my C# in C#-generated C#.
 
Similar things for Label2, TextBox2..
 
what is the easiest way to completely clear a textfile using streamwriter?
 
1:53 PM
I've never used a raw C compiler. Maybe once or twice.
 
@Girish try using jeff atwood's code instead of page.findcontrol codinghorror.com/blog/2005/06/recursive-pagefindcontrol.html
 
@LewsTherin I pity you.
 
@KendallFrey Why?
 
Cause gcc -c -o main.o main.c is fun
 
@KendallFrey I think they eventually added this in C99
 
1:56 PM
Don't quote me on the syntax there.
@l46kok Not use a StreamWriter.
 
i need some help please writing a parameterized sql statement in a for loop. i want to update a couple of rows but i want to build one query instead of executing an update statement several times
 
@HansZ Ok sure will do it..
 
@l46kok File.WriteAllText("C:\file.txt", "");
 
or should i consider another approach?
 
@KendallFrey -o3
 
1:58 PM
this question is going to sound weird but is it possible to clear a text file that is being used by another process? I know FileStream has FileShare.ReadWrite option that might make it work
 
@Peter Sounds good to me.
 
@Peter example?
 
4
A: Multiple SQL Update Statements in single query

IcarusSomething like this is the best you can do: UPDATE [STORESQL].[dbo].[RPT_ITM_D] SET F1301 = case F01 when '0000000000001' then '1.29' when '0000000000002' then '1.30' end Other than that, running multiple updates is the way to go.

 
@HansZ no...
You meant -O3
 
yeah
 
1:59 PM
I did have to look it up though.
 
me too
 
haven't command line gcc'd in a while
one of the benefits of having bash scripts to make for you
 
The other day my X window system quit working. I wish Ubuntu CD's had a repair option.
I'm smart enough to turn it off, but not to fix it when it breaks.
 
string [] stringArray = requestString.Split(new Char[] { ',' });

var updateSortOrderQuery = "";

for(int i = 0; i < stringArray.Length; i++){
updateSortOrderQuery += " UPDATE Table SET value = " + i.ToString() + @" WHERE this = @stringArray[i]";
}
 
2:02 PM
And I was dumb enough to reinstall, so now I gotta set it up all over again.
 
the request string is posted into the function so i am trying to prevent an sql injection vulnerability
 
good morning yall
 
@Han
 
Solo
;)
 
heeeey it's @HansRudel
 
2:04 PM
@HansZ thanks for the link but it doesnt show me how to use params though
 
@HansZ sup buddy?
 
it's not that big a deal to do multiple updates
unless you've tried and got performance issues?
 
no i haven't yet
but something about putting db.Execute inside a for loop just doesnt look rightp if there is no way around it then i just might
 
how many updates do you think you're gonna have to do?
 
Don't you love the C# compiler? return ... translates to:

IL_000B: stloc.0
IL_000C: br.s IL_000E
IL_000E: ldloc.0
IL_000F: ret
 
2:07 PM
lets say about 10 - 12 at each go
 
i've had C++ code compile to

movl $1, %eax
nop
movl $7, %eax
movl $12, %eax
movl $1, %eax
 
lol
Wait, that's all good but the last line.
 
hey @KendallFrey , you werent here yesterday when I asked this
 
$1 = $12 = $7 = $1
 
@Peter what I usually do is make a stored procedure where I use arrays as parameters
 
2:11 PM
@KendallFrey I'm sure my bank would agree
 
is there a way to only allow permission to a certain folder based on session state?
 
I have no <insert adjective> idea.
 
@ScottSelby you can run apache on your computer and only allow access to the folder via network connections
 
somebody downvoted this answer I did, I have no idea why stackoverflow.com/questions/11552004/…
 
quick question guys, got a problem with a gridview button. I have the code GridViewRow row = Workflow.SelectedRow;
string x = row.Cells[1].Text;
 
2:13 PM
@HansZ I have that for a specific admin folder , but I need something different for members
 
but it gives the exception "Object reference not set to an instance of an object."
 
are you sure you don't mean cells[0]
 
@ScottSelby No downvote.
 
yea, I had 3 upvotes
 
someone took away their upvote
 
2:14 PM
then I lost 30 rep for 2 downvotes
 
I guess some were removed.
You lose 4 rep for 2 downvotes.
 
it's +1/-0 right now
 
@Scott hey still doesnt work
 
that was just a random guess, you are most likely not selecting the right row
 
@Mobius does row == null?
 
2:15 PM
It's pretty lame that you don't see who is downvoting you
 
oh, wouldn't you want rows.column[1] ?
 
Agreed, but SO wants to protect your identity.
 
SO is for pussies then ;)
 
@DavidDV mods and 20k rep users can, I think
 
im on my way to 20k
just got 485
 
2:16 PM
I've already been slammed because somone else downvoted all answers I commented on, and quite a few people put two and two togther, and came up with downvotes for me.
 
@HansZ I don't think so, actually. Maybe though.
 
@HansZ yes its null, which doesn't make since to me why it is.
 
try putting the entire row ToString() , it won't read right , but you can see if the whole row is null
 
@Mobius what's WorkFlow.SelectedIndex?
 
2:19 PM
@HansZ turns out to be -1
 
that means it didn't select anything
 
do you have an entire row selected in workflow?
or just (a) selected cell(s)
 
I have the onclick function as CompleteButton_Click(object sender, EventArgs e), and I see online people using "GridViewRowEventArgs e" but that throws an exception
 
@DavidDV Ok thanks. I haven't done that before and I don't have access to that side of the db at the moment
 
I need to click a button in a row and for the function I need to know the data in the button's row
 
2:22 PM
what's WorkFlow.CurrentRow?
is it null?
if not, then do CurrentRow instead of SelectedRow
 
stackoverflow.com/questions/11671319/… if you can't answer it, you should upvote so it gets answered quicker :D
thanks
 
klut good luck finding a telerik user on stack overflow in a timely manner
 
2:38 PM
worth a shot. I posted on telerik 2 days ago and they haven't responded to me within my guarenteed 24hr support :/
 
I had to write them a couple months ago , and I don't remember them ever responding
 
>Boss doesn't listen to my suggestion
>30 mins of debugging
>Oh, you were right, it was a form submission
Can i leave 30 mins early now?
its only fair, he wasted half an hr of my time, i should get it back
 
@KendallFrey
 
Why am I so bad in SQL ? :(
 
@ScottSelby well I have a purchased license, and they were usually good about responding to other stuff, but now its getting stupid. lol
 
2:50 PM
@Andredseixas - yea , i've been learning Sql lately very quickly - there's always @TonyHarmon for that
 
PRACTICE! PRACTICE! PRACTICE! (+ a little bit of google)
 
I practice everyday, but I know that I suck badly...
Can't freaking create a procedure without struggling all the way until it is finished :(
 
yea, I still would have trouble writing one , I usually copy and paste parts of other ones I wrote
 
I know how to do simple stuff @Steve ...
 
2:52 PM
:/
what are you having trouble with?
 
I have to check for some pending of a registration with a top 10 and return the amount left. And if I send an ID I will have to get the next 10 ones. But the IDs that return are not in a sequence since the pending are not always specific for a single administrator :(
 
not to mention, telerik has the more bland documentation. stupid 3rd party libs
 
what. the f.
 
I think it's done..
 
i didn't even understand the problem lol
 
2:57 PM
Yeah, I have a serious problem explain my problems :(
 
network admins block it
 
--'
How can I send it to you? Know any website ? The code is a bit big to paste it here
 
meh, post it in here anyway
 
USE [Condominio]
GO
/****** Object:  StoredProcedure [dbo].[spRetornaPreCadastro]    Script Date: 07/25/2012 16:31:05 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[spRetornaPreCadastro]
	@UsuarioID VARCHAR(50),
	@RecursoID INT,
	@CondominioID INT,
	@LastID DECIMAL(18, 0) = 0
AS
BEGIN
	SET NOCOUNT ON;

	DECLARE @QtdPC DECIMAL(18,0)
    DECLARE @Top   INT

  SELECT @Top = 10

   IF @LastID = 0
    BEGIN
      SET @LastID = 999999999999999999
    END


  SELECT @QtdPC = (COUNT(*)-@Top) FROM
 
"sp" - prefix ??? thank god not a "sp_" prefix :P
 
2:59 PM
I'm brazilian so the variables are in portuguese...
 
something with condoms :p
 
I don't like to use numbers / special characters for my stuff
 

« first day (649 days earlier)      last day (4301 days later) »