« first day (745 days earlier)      last day (4189 days later) » 

12:02 AM
Do you see anything wrong with this code?

Dim bit As Bitmap = New Bitmap(Me.Width, Me.Height)
Dim g As Graphics = Graphics.FromImage(bit)
Dim myPen As Pen = New Pen(Color.Blue, 3)
Me.CreateGraphics.DrawLine(myPen, 0, 228, Me.Width, 228)
 
It's in VB.
I don't know if you forgot to display the bitmap or you skipped that code.
Also, I'm assuming you neglected the fact that a Form's width and height include borders.
But if you actually described the problem, we'd have a better chance at solving it.
 
Damn that hurricane is destroying the east.
 
@KendallFrey, 1. That is all the code I have to draw a line. 2. I didn't look into the form borders and don't really care. The line itself is not even showing. 3. The problem is that the line is not showing up. I have multiple controls on the form like panels and textboxes. Could that make the line hide behind the controls?
 
How are you displaying the image? In a PictureBox?
WAIT A BLOODY SECOND
That code is horrible.
For one thing, you have 4 IDisposables that you don't dispose.
another, the first 3 lines don't do anything but leak resources.
And where is this code? In a Paint handler or something?
 
I might as well use a picturebox
 
12:16 AM
Woo, made another $10 off my crappy android app. Publishing to a market place like Android is literally free money.
 
@user1079641 Yes.
 
what app bill?
 
gf bought a Samsung Galaxy, is it normal to have to charge it every day and sometimes more?
 
I can barely get a day from a charge on my phone. I don't know about a Galaxy.
 
I have a G3, and with BlueTooth, GPS, WiFi, LTE, Phone, and getting mail from 5 mail boxes and about 30-200 texts a day I charge it once a day
 
12:22 AM
ok, it is normal then
I'll take good care of my old stupid-phone
 
Who was that lol?
 
I pressed the wrong key, tried to edit haha
 
oh lol
 
I think the default is iPhone if I want a new phone at work now. Imagine it will be painful to try to deviate from that standard
 
There, crazy mouse
@Billdr what android app?
 
12:24 AM
sorry, went back to writing this dumb paper.
 
That seems like a very simple app
 
That it is.
I want to do a complete rewrite on it now that I know better. Just gotta find the time.
 
>good ratings!
 
Yar. I think I've issued 3 or so refunds on it.
 
DId you use Mono or Java?
 
12:26 AM
Java
I'd still be paying the license fee for monotouch.
I think I covered my android dev license within three months. I don't remember what I paid for the amazon app store, but I'm in the black there too. I think I've made about $200 profit so far. That breaks down to about $.76/hour. :/
 
haha
 
I suppose if I squeeze out about 200-500 more apps I could quit my day job.
 
how does it work if I was to try to write an app using mono. Is it wpf?
 
No, it's a port of .NET.
 
I'd think the UI stuff would still be xml, but I'm not sure.
 
12:32 AM
"The Stack Exchange network may be temporarily unavailable while we fail over to our Oregon data center due to Hurricane Sandy."
 
Gadzooks!
 
SO doesn't even have 4 9's!
 
YES I HAS A GOLD BADGE
 
@KendallFrey Grats
 
12:34 AM
Thanks. :)
OK, everyone, call your boss over, then scroll to the top of the page.
:P
 
@KendallFrey why call the boss?
 
;)
lol
 
haha
how did you get that up there?
 
What?
I just noticed it was at the top.
Gone now :(
 
Crap. @zneak It was POP and ...?
 
12:39 AM
push?
 
It was push
it didn't scroll off yet. Go back to sleep, @zneak.
 
how expensive is that mono-touch?
 
stackoverflow might go down beause of sandy
 
I though mono was oss
 
what are you going to do with you free time Kendall?
 
12:43 AM
@AmmarAhmed google cache?
 
F5... F5... F5...
 
@JohanLarsson I think the monotouch license is about $300. Been a while since I looked. It may be OSS, but they're charging a license for it.
 
I wonder if its possible to add css code to visual basic so you can have custom designed buttons
 
@Billdr is there some free alternative or trial?
 
12:45 AM
Remember, free (libre) software can still be expensive.
@user1079641 No.
 
@user1079641 I know you can with win8. I assume it's possible to write an html5 ui in win7
 
I dont think I will ever write anything to sell, just want to try (maybe)
 
lol @Billdr
 
@user1079641 You can style controls in WPF, but not with CSS.
 
@JohanLarsson I think it's free for personal use.
 
12:46 AM
@Billdr sweet
 
@JohanLarsson, no, I don't know of any tool that can answer your question (stackoverflow.com/questions/9638789/…)
hey guys I just remembered that I used shadowing once
I used it in a factory-like pattern, so that if you had a concrete factory class it would return the concrete type
and that was basically just wrapping the cast
 
Since you're back, @zneak: I can't find documentation on push/pop. Is there some sort of MSDN/MDN/Oracle Docs equivalent for this silliness?
 
push/pop is easy
 
I think @Travis made heavy use of new when brute-force-inheriting from JavascriptSerializer
 
I need to be able to cite it. Also, I've got no idea what it is.
 
12:49 AM
Ah.
I suppose wikipedia is out.
 
....
 
I was searching "CISCO." Google must have autocorrected me and I didn't notice/clicked it out of habit.
 
What I do is look it up on wikipedia, then go to the cited page ;)
 
found some documentation. I'll stop being retarded one day, I swear.
I try to find previous academic papers or white pages. Makes me look cool.
"cool."
 
12:52 AM
The basic underlying code to push is memory[stackpointer] = arg0, stackpointer -= sizeof(arg0)
yay pseudocode
 
push <reg32>
push <mem>
push <con32>
 
next time you need a reference I can put one up on my website and you can cite me lol
 
[x] generics
 
So, Push is for the operand and pop is for data?
 
12:54 AM
push is to put stuff on the stack, pop is to delete it
 
oh, woops
 
both are rarely used in production code these days because it's just so much more efficient to just change esp
 
That's not how x86 works, but is a valid model.
 
pop is rather to put it back in a register and delete it in the x86 isa
 
12:57 AM
So POP will load the register and delete the data from the stack? Push just copies it from the stack and puts it in the register?
 
push copies it to the top of the stack
pop copies it to the register
push makes the stack higher, pop makes it lower.
 
@Billdr Can you write a little about nop too?
 
nop exists in most RISC architectures too unfortunately (well, fortunately)
 
@JohanLarsson If I have to fill space :p
 
In computer science, a stack is an area of memory that holds all local variables and parameters used by any function, and remembers the order in which functions are called so that function returns occur correctly. Each time a function is called, its local variables and parameters are "pushed onto" the stack. When the function returns, these locals and parameters are "popped." Because of this, the size of a program's stack fluctuates constantly as the program is running, but it has some maximum size. One way of describing the stack is as a last in, first out (LIFO) abstract data type ...
That's how a stack works.
 
12:59 AM
got it
push unloads the register, pop(ulate?) loads it.
 
I don't think push actually changes the contents of the register.
 
gah
 
Likewise, I don't think pop actually changes the stack data, only changes where the top is.
 
(or bottom)
 
Well, I call it top whether it's the highest or lowest memory address.
I think that's correct.
 
1:05 AM
Per that link, POP moves the 4byte data element to the specified location (either in memory or register)
 
well it's even more CISCy than expected then
 
Why? How much did you expect?
 
I thought the only possible target was a register
 
I'm still trying to work out what PUSH does. Will the data be at the highest memory location or the lowest?
Does it literally push everything else down to a lower location? That seems... expensive.
 
1:17 AM
the stack grows downwards
so esp - 4 actually expands the stack
 
Okay, so the data is put in the lowest address
If ESP is at 400, PUSH sets it to 404, and writes the data in 401, 402, 403, and 404.
I realize the numbers are probably off there; but that's the idea.
er
ESP is at 400, PUSH sets the counter to 396, and writes to 399, 398, 397, 396.
 
loving this conversation btw
 
because counting down is more fun than counting up.
Is this why HIMEM exists?
 
the used positions are right, but keep in mind that the specific order in which they're written depends on the endianness of the CPU
 
Sure
 
1:31 AM
if you're referring to the HIMEM driver, I don't think it has anything to do with that
 
Alright
I'm wondering how x86 chips determine the highest memory location now.
but that can wait until after I write the bibliography.
 
x86 chips probably never have to do that
with virtual memory, there's hardware support to map any software address to physical memory
 
er.. what? Didn't we just say they start at the highest location and count down?
 
at the highest stack location
which can be anywhere
if it always started at the far end of your address space, you could only have one thread
 
Aaaah
 
1:34 AM
the stack is just another block of allocated memory
you could malloc your stack if you wanted to
 
and the OS and whatnot handles those allocations for the CPU
 
well I'd say it handles those for itself
the cpu doesn't really care
but that's the idea, yeah
 
Alright. I've been in this room for 15 hours plus about an hour break for commuting. I need to unplug. Good night.
Thanks for the help @zneak and @KendallFrey. I now know 100000000000000000000000000000000000000000000% more about assembly than I did a few hours ago.
(add zeros at will, I knew nothing before.)
 
'night
 
I couldn't locate the "leave" link. Yikes. Okay. Found it. Good night.
 
 
1 hour later…
2:56 AM
What are some C# wtfs you've seen here
 
 
3 hours later…
5:53 AM
posted on October 30, 2012 by Scott Hanselman

I've been on a podcasting kick lately. Not for any particular reason, but a number of things have come together that have found me as a guest on a number of podcasts. I've also had the good fortune to have a number of great guests on Hanselminutes lately. Lots of folks who listen to podcasts are doing it while commuting. I hope you enjoy these additional podcasts and perhaps they'll edutain y

 
 
1 hour later…
6:59 AM
yawn morning
 
7:51 AM
Hi, this is a little of topic... but,, are there anyone using trac?
and know if there is anyway to add a CamelCase word to some kind of ignorelist?
I know about the ! "operator" and the ignore_unknown flag.. but would rather lika an ignore list
 
8:41 AM
Morning guys
 
hi all
 
hi everyone :)
anyone can help with a asp.net question i have? would be nice :)
 
8:57 AM
ya say...
 
alright here it goes
i have a checkbox
when u press the checkbox
i want a panel to appear/desapear
it works fine for me
but when i press the checkbox
it retrives data from the database but i only want it to update the panel and the data to be retrived by pressing the search button
 
so where you have issuse...
you ahve tcken update panel
*tacken
 
yeah
i have a search
with one textbox
and a checkbox saying: Advanced Search, when u click there a panel pops out with more textfields
the problem is on the postback here:
else if (CheckBoxStatus.Checked)
{
i want it to be like: if this checkbox is checked then u are allowed to perform the search
and not retrieve data right away
 
checkbox is in the update panl
 
no its outside
 
9:09 AM
so put check box in panel and write <Triggers>
<asp:PostBackTrigger ControlID="" /> </Triggers>
it will postback whole page.
 
ahh
i solved the problem
dont worry
basically
 
ohk what was the issue..
 
i make the checkbox.checked in one method with the other data
the method that retrives the data
 
ohk...
gr8.....
 
i just pasted it under the button search not under the if(checkbox.checked = true)
thank u for helping me
its very complicated to explain only, when u have so much code in ur program
only=online*
 
9:14 AM
ya even i also not understan propely yur que
 
yea i know it's not because my english is bad, i just don't know how to explain it lol
 
ohk...
 
thx anyways
:)
 
user868935
9:27 AM
hello all
 
sup
 
user868935
Question: how would I make a desktop application that looks like similar to VS2012 (visual style)?
 
9:41 AM
hello guys....
@SpicyWeenie, you want the features or just the look??
in wpf, right
 
user868935
just the look
 
user868935
I dont like the default borders with the title and buttons mostly
 
remove the borders
make it a borderless form
and play with some images to get a desired look
my friend does it all the time
 
user868935
cool cool
 
AMH
10:16 AM
0
Q: how to combine two keys or more

AMHhi I have a Key variable represent the E charachter I want to add the Ctrl and shift modifier to it I tried Key test = Key.Ctrl | Key.E ; but the result is J not Ctrl E any idea how to achieve that Best regards

 
you keys are going to kill you mate :D
 
AMH
am in mess I work in silverlight4 project and not support keygesture
 
Hello everybody, it's Tuuuuesday!
 
hi @Billdr
 
How's it going Hans?
 
10:34 AM
@Billdr so so. trying to finally upload data into my server n then start figuring out what ill do with it. How about u?
 
Trying to determine why this API is effin broken.
Actually, I don't care that it's broken. I need to know what broken approach they need me to take to make it do what it's supposed to.
 
@Billdr sounds like we are both in for a fun packed day then
 
@HansRudel Yea. Fun. That's right.
 
lol
 
10:49 AM
None of the groups you selected are valid!
...none of the groups I selected were valid guys.
 
@Billdr what groups?
for an SO tag?
 
I'm talking to myself.
Why I feel compelled to do that in a chat room is beyond me.
 
11:15 AM
@KendallFrey, @LewsTherin, @JohanLarsson morning guys
 
Hello @HansRudel
 
Lews is here!
How's it going?
 
Lol :)
@Billdr Why is that a surprise?
@Billdr Good, thanks. You?
 
I'm not 100% sure.
 
I finally finished a most boring assignment.
 
11:16 AM
But that could be said of most things today.
 
@KendallFrey hows the weather bro?
 
@Billdr Rofl. You and El exclaim surprise whenever I visit the room :P
 
Morning All, quick quiz


I have two classes, in one class I am passing a parameter int a while calling a method of class b in a foreach loop, but in class b I am setting a global variable let say int c =0;

and then this global variable is increments after few code lines, I want to setup variable c values as value b, but I just want it to happen for once, not sure what to do
 
Wut..
I got lost here: " I am passing a parameter int a while calling a method of class b in a foreach loop,"
 
hello
 
11:24 AM
Hi
 
Hello All
 
@ShilpaGurnani hie
 
for(;;)
   Console.WriteLine("Hi") ;
 
@LewsTherin Infinite loop
 
Lol
 
11:31 AM
Morning people
 
11:44 AM
@HansRudel Cold.
 
any flooding where u are?
 
lucky man!
saw this this morning
looks like the final battle from Iron Man
 
I just solved the internet. I'm pretty baller.
 

« first day (745 days earlier)      last day (4189 days later) »