« first day (743 days earlier)      last day (4206 days later) » 
00:00 - 20:0020:00 - 00:00

12:01 AM
The problem with that is, that I need the scrollbar itself to be displayed in a different location from the textbox itself.
 
that sounds weird
 
Is this WinForms/WPF/Web?
 
WinForms. I have the textbox on the left side of the form, but using the integrated scrollbar in the textbox ruins the classy look of the form.
Look at Microsoft Word, see how you have the white textbox to write into in the center, but the scrollbar is all the way on the right?
 
I would think moving the scrollbar away from anything would ruin anything.
But the scrollbar scrolls the entire document, not just the text on the page.
 
@KendallFrey are you referring to the Microsoft Word scrollbar?
 
12:04 AM
yes
 
So, how would you go about incorporating that in a Visual Basic program. I have the same concept. I need it to be laid out in that way.
 
you could use a panel i guess
 
But how would a panel's scrollbars scroll down when a textbox overflows?
how would that be connected?
 
Somehow make the textbox size to the text in it, and the panel size to the textbox
 
Well there is no autosize for the textbox :(
 
12:11 AM
WPF FTW
 
yea last time i tried something like that i think i had to calculate the number of rows the text would take up based on the width of the textbox and the font size
 
Except I can't use WPF :(
 
but yea as kendall said WPF is a much more friendly with these kind of things
 
or rather I am trying not to
 
Who, in their right mind, would intentionally avoid WPF?
 
12:14 AM
Me.
 
Well, you obviously aren't in your right mind.
:P
 
Anyways, should I assume that what I am trying to accomplish is not possible or far too hard?
 
Not too hard, but really hard.
 
and the results will be flakey at best
 
In WPF, easy peasy, I'm pretty sure.
Now I'm positive.
TextBox has a property for that.
 
12:16 AM
and it also has my all time favorite control viewbox
 
:( :( :(
 
just out of intrest why are you avoiding wpf ?
 
Its a project ;), its not an official project, a side project, but only in forms. I am still a high school senior ;)
 
If it's not a large existing project, you'd be crazy to use WinForms.
WinForms is only good for learning the basics of UI.
 
Its a already a huge project. A small part of it is to create a complete text editor, and I wanted to give it the Microsoft Word UI
 
12:22 AM
Is not.
Word.
A text editor.
 
I realize that, I just want that layout
 
What layout? Pages?
For a text editor?
 
No
Yes, the pages
Having the pages with a scroll bar on the extreme right instead of with the text
 
Why not make it like all other text editors and make the textbox the width of the window?
 
That kinda defeats the point of making it like Word layout.
 
12:30 AM
Hi all can you take a look at my question?
 
Do you actually use pages?
 
if you want pages you can still go back to the panel idea, just use fixed textbox sizes and have the user add and remove pages(textboxes)
 
Here it is:
0
Q: How to precisely track the mouse cordinates without skips

user1739957I need a way to track the mouse coordinates more precisely than this code. If you run this code and move your mouse really fast or change directions fast, the coordinates might look this: 50 and then 40. It seems that when the mouse moves fast it doesn't track all the points the pointer covers, l...

 
That would make your users (or me anyway) scream in horror.
 
whya/
 
12:31 AM
Oh, and what @E.LDunn said.
 
why?*
 
@user1079641 Because text editors never haver pages. Because text is not organized into pages.
 
THanks whoever uprated it
 
well i guess i used the wrong word. I am trying to create something like ms word. Not with the same functionality obviously since I have no clue how to do half the things they do, but that is what i mean.
 
@user1739957 may i ask why you need to know the mouse pos so precisely
 
12:35 AM
@E.LDunn Lets say for example I want to keep in a "box". If you move the mouse across a border fast enough it would escape temperaliy
 
@user1079641 This isn't a rich text editor, is it?
 
Say I want the x coord to between 200 and 800
move it fast enough, it will get to 900
unacceptable
 
Set a cursor clipping box.
easy
 
@KendallFrey How. SOunds great.
Never heard of it
 
Cursor.Clip = new Rectangle(0, 0, 100, 100);
 
12:38 AM
@KendallFrey Oh, but this is just for inside a form
Right?
I need it to work even outside the form
 
No, it applies to the whole screen.
 
What if say, explore has focus
 
It should still work.
 
@KendallFrey Well thank. I'll take a look at it.
 
However, "Generally, the system allows this only if the mouse is currently captured."
 
12:40 AM
@KendallFrey What if I used global hooks. could I still use it
 
You could hook the low-level functions you mentioned. That would pretty much ensure that no applications see when the mouse escapes the box, as you would reset it before they ever see the event.
 
@KendallFrey Yeah, but I don't want the user to see the pointer jump accross and then back
I want it to be like they hit the edge of the screen
 
They won't. I'm pretty sure.
And if they do, using Cursor.Clip won't. I've used it before.
 
@KendallFrey Okay, thank you for your help. Iv'e got to go
 
Peace out.
 
12:43 AM
I'll uprate you i you post an anwser to my question and If I find it to work
 
 
4 hours later…
4:51 AM
Anyone here?
 
5:24 AM
no one?
 
5:49 AM
?
@E.LDunn u there?
 
 
3 hours later…
8:36 AM
anyone here with xna/game creation experience?
 
hi
 
@E.LDunn Just the person I needed :p
 
lol
 
Do you think I should multithread tile collision?
i mean give it ,its own thread...
 
hmmmm, it would make sence i guess. but id say dont draw anything untill all threads have returned..
 
8:48 AM
what do you mean draw?
tile collision is just detecting what tiles are around the player
if there blocking/water/grass/sand
ect
 
ok i was under the assumption you ment determining if the direction the user choose was valid
 
I have the level drawn
and a array of tile types
for that level
 
and your little player walking around?
 
i pretty much just need to check that array to see what types of tiles are surrounding the player and determine what to do depending on what type of tile there is next in the direction the player is moving
I was just thinking that it should be threaded
 
have you got the logic working in non multithreaded form?
 
8:56 AM
no I haven't gotten to that point it seems like it would be easy to do
I was just not sure if I should thread it
 
ok well id suggest making it single threaded at first, this will allow you to iron out any logic issues that you might come across
 
the collision detection also is going to be used for projectiles
 
morning lews
 
Morning Dunn :)
 
9:14 AM
urggg ef im starting not to like you
 
Um, why not :(
Oh was that for me? Lol
 
lol no i was talking about entity framework... im starting to see some limitations
 
Oh "ef"
XD
I've never used it yet.
 
9:41 AM
hmmm is there a safe defualt email address?? like there is telephone numbers ones that are guaranteed never to be used
 
support@microsoft.com
 
hahahahahahaha
 
you're welcome
 
how was the rugby tom
 
not especially interesting as it turned out, switched off halfway through
pretty one-sided
 
10:19 AM
what tools do you use fro xml schema?
I tried XmlPad yesterday but the site is moving so the help was unavailable
 
shrug visual studio
 
@TomW VS is actually nice but dont give much support for keyref and stuff like that
(not that I have found at least)
 
oh man, tried to use keyref once, couldn't quite get it
 
me neither, not without intellisense and syntax highlighting
 
10:54 AM
many times I've had to resist the urge to try and build something like an RDB in xml on the back of key/keyref
that way madness lies
 
probably
But I live a large part of my programming life in madness so it will be like coming home!
 
Hey Guys. Does anyone here know about the Microsoft MMPPF?.
 
not me sorry
 
that question sounded like someone put their hand over your mouth
 
@AnujKaithwas Never used it, HTML 5 stuff?
 
11:08 AM
not truly, though it is meant to be based on either HTML5 or silverlight
@JohanLarsson: Can you suggest something for media streaming?
 
@AnujKaithwas No sorry, I suck at web. Have not done any media either.
 
that's refreshing
most people in this business are like web > all
 
@TomW WEB is > all
 
Not really. There's a ton of very important middleware and services stuff that never touches web technology that businesses will pay a load of money for
 
11:17 AM
Question : why should I use soap to access a web serivce where I can access it by get in url ?
 
although arguably a service that communicates over http is TECHNICALLY web, I suppose
@RoyiNamir maybe your existing system is XML-friendly?
maybe there are security issues with communicating over port 80?
 
" existing system is XML-friendly" ?
soap isn't on :80 ?
 
no, http is (usually) (IIRC)
and what I meant by xml-friendly is that your existing system might have a nice API for deserialising 'whatever' from XML, and a not so nice or nonexistent API for parsing, say, JSON
 
Im talking about the request . not the response
 
Ah...well one of my assertions there is bunk anyway, SOAP is also usually over http
 
11:42 AM
is this an asp.net footer?
</script>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Gallery Sample</title></head>
<body>
<div style="text-align:center">
<dotnet:Chart id="Chart" runat="server"/>
</div>
</body>
</html>
 
 
1 hour later…
12:47 PM
boo
 
1:34 PM
hi all
I am having a problem. I want to create realtime animation of bitmaps
I read a file, create a bmp class, and display it
a timer governs frames creation.
I already met the problem with having multiple BMP instances
and I _lock every frame (for the timer not to create overlapping frame generating threads)
Is this the best way?
do yu have any other ideas in mind?
 
1:57 PM
Do you have to use bitmaps?
 
no
but I have to be able to generate frames from images
 
Where is the data being displayed coming from?
 
ascii file
 
Does that represent pixel data? i.e. are you generating pixels in some fashion and displaying those, or could you for example construct your image using primitives? (e.g. drawing ellipses and lines using Graphics)?
 
it does represent pixel data
 
2:02 PM
OpenGL could definitely do a good job on this, I think...it's massively overkill, but will be able to cope with that job
wouldn't know exactly how to do it
and it's quite a steep learning curve to set the whole thing up to use
 
2:20 PM
@KyleTrauberman Woo. I feel like such a helper.
 
whys that bildr
 
I contributed to the leaderboard, my code is live.
starleaderboard.azurewebsites.net/Room/Index/7 <--images are no longer grossly oversized.
 
high five
 
I need to figure out how to write a chron job to scrape the site every 5-10 minutes; but the scraper is so effing slow I don't really want to do it.
First I'm going to write a paper on cpu architecture, then I'm going to teach my wife how to write some code.
It's going to be so cute.
Then I'll dig around in Kyle's code some more.
 
3:12 PM
heyyy
 
oh hai
 
whats up
 
I'm tring to figure out what the hell "Intell Centrino" actually is. As near as I can tell, it's a specification for everything attached to a motherboard.
 
@all hi guys :)
 
It's crap. I that's what it is.
 
3:21 PM
how are you ?
 
Hi Homer.
 
lovely sunday
:)
 
sundays are never lovely
 
ahahah
 
they come too fast
 
3:23 PM
every good thing come too fast :)
it's a kind of rule i guess
 
Is there now, or has there ever been an "Intel Centrino" cpu?
 
i suppose
 
no i dont thnik so i think it was a name given to a combination of cpu/chipsets
 
That's what I thought
My assignment is to compare "Intel Centrino" and "AMD Sempron" cpus.
 
i need a new mobo for my desktop, mine crapped out the other day, and since im buying a new mobo, i might as well buy that new i7
 
3:26 PM
And I think that means comparing apples to oranges.
 
lol sounds like it
 
I know Centrino is not only a cpu
it could be union of cpu, chipset and wireless configuration
for notebook
 
I'm just going to write a paper about Celeron vs Sempron and call it a day.
 
3:43 PM
Need to find an android app for so chat.
Making a Windows one would be easy... But I don't have my wp anymore
 
The site has reactive design, just use your browser.
 
4:33 PM
Has anyone made a really simple messaging program for LAN communication?
I'm trying to come up with something to show the Mrs after we do hello world.
 
search for z socket communication example
 
@Billdr yeppers
 
Is it on GIT or something I can take a look at?
 
look up c# tcp server/client on google, theres are tons of examples, its really easy to implement too
 
Awesome.
 
4:36 PM
or this
it would be easier
 
I think a client/server approach will be more useful in our case.
 
5:01 PM
anyone watching Rams/Patriots in London?
I just put the radio on for the anthems, which are fairly dire
a guy I know from work is officiating there tonight, which I thought was pretty cool
 
5:45 PM
so back to the question from yesterday, how would you go about creating microsoft word-style "pages" visual basic
?
 
@user1079641 question not clear. Can you explain more what you're trying to do?
 
enyone?
You know how Microsoft Word or the new WordPad that comes with Windows 7 and 8 has microsoft word-style "pages" where if you exceed the margins of the first page, you automatically move to the next printer page to type your text in?
 
Ah. That's a bit clearer.
 
well, you need to know the height of your text lines?
 
Can I not just answer "Write some code that does what you want"?
What's the real problem here?
Is it a programming question or a design question?
 
6:00 PM
Sorry for the late reply. Its kind of both.
I am confused about how I would go about it.
I was advised to use panels but it was not clear exactly how panels would accomplish this.
@TomW
 
Well, I got the Mrs through "Hello World" - all the way up to encapsulating getting input and displaying output in it's own method before her eyes rolled in to the back of her head and she got "lost."
 
@Billdr inevitable, probably. You can talk about this stuff, but grokking tends to involve coming to the same conclusion yourself
 
Dunno about that @TomW. Everyone starts with Console.WriteLine("Hello World"); right?
 
Yep
 
so no possible solution?
 
6:14 PM
@Billdr I mean, encapsulation sounds straightforward when you describe it - but really understanding why you'd bother requires having seen how it goes wrong when you do the opposite
 
It was cute, after I showed her string input = Console.ReadLine(); Console.WriteLine(input); she copypasted it 15 times.
Then I had to explain why having string input = x 15 times in the same scope doesn't work.
 
@user1079641 What question did you ask?
 
this tends to apply to advanced concepts more - but we're used to understanding basics and moving swiftly on to advanced concepts. Grokking means having personally experienced what programming is like in the absence of that concept
 
well, it seemed to flow naturally from that situation, Tom.
Her: I wanna do this over and over!
Me: Okay, well, to save work let's give it someplace to live by itself, then we just need to go to it, instead of writing it a bunch of times.
 
@LewsTherin, I am trying to create the Microsoft Word-style "pages" where if the enter text in the textbox exceeds the margins then a new page is created where you continue to type.
 
6:20 PM
@user1079641 There is a solution, but it depends on a lot of variables (margins, font sizes, etc). Giving you an answer would almost require writing the program.
You first need to determine how much space you have on a page, then you need to determine how much space your text takes up. If pageSize<textSize, add a page.
 
I just need the concept design and how I should go about it. You can leave the programming to me.
Yes, but how do you exactly "add a page." You initiate and add a new textbox inside a panel?
 
and, I'd think you need to do that math on every keystroke.
That'd be a way to do it, I suppose.
 
@Billdr Since when were you a room owner?
I just noticed your name was italicized :P
 
last week
 
Handshake!
 
6:25 PM
ty
 
Is TCP IP model widely used in comparison to OSI model?
I just need confirmation.. I can't remember.. but I think it is TCP IP
 
not really, since they live on layers 2 and 3
It's used to talk about the OSI model, since they're common examples of those layers
 
OSI model is used to talk about the TCP IP ha ha.
OSI is used as a reference
 
isnt the OSI model the basis for tcp
 
Yes
And hi
 
6:28 PM
@KyleTrauberman Damnit, your changes to my js broke it again!
 
hey hey
 
osi has 7 layers where as tcp combines 3 of them
so 7-5
 
what made you look into that?
 
Some discussion in the java room.
Talking about networking.. ended now :)
 
6:34 PM
IP is layer 4 of OSI, TCP is layer 5, Sockets is layer 6. When did this change?
 
@Billdr it didn't change, but one of the entire models is called "TCP/IP" which contain a tcp layer and an ip layer (in addition to other layers), i can see how its confusing
google OSI model vs TCP/IP model
 
I will do that one day.
For now, I'm going to eat a hotdog, shower, and get ready for the most awkward gathering of my life.
 
Is there any practical use for the OSI model?
 
If anyone sees Kyle, berate him for sucking at JS.
 
@Billdr What gathering? And send me your hotdog
 
6:47 PM
I'm doing a "practice thanksgiving" dinner - let's start there. Why is what a thing?
In attendance will be two men who weigh over 400lbs.
The hosts are conservative Christians. I'm a staunch atheist. Hopefully they close their eyes for grace.
One person will be bringing his girlfriend. She is a stripper.
My wife likes to agitate this sort of pot of awfulness for her amusement.
Also, my hotdog. NOM!
 
snort
 
@Billdr :(
 
Not to be prejudice, but the black stripper chick is probably not going to be the classiest dame. The hosts are upper middle class white folk.
This is going to end in tears.
 
Why did you hire a stripper in the first place?
 
I didn't. She's the girlfriend of one of the guests.
 
6:53 PM
@LewsTherin lol
 
Right..
So a christian is dating a stripper.
Blood and bloody ashes.
 
no... the guest isn't particularly religious.
the hosts are the religious ones.
 
@Billdr how exactly do you "add a page"?? That's the part I am completely confused about.
 
@Billdr Ah I see, sorry.
 
@Billdr Perhaps you can request saying grace to satan?
that could serve as an icebreaker
 
6:57 PM
Dear Flying Spaghetti Monster, blessed be thy noodely appendages. Thank you for this carbohydrate rich meal, may it hasten our assent to bask in your starchiness. Ramen.
 
RAMEN
 
Oh christ. They might ask me to say grace.
@user1079641 I don't have a good answer for you.
 
@Billdr will you do it?
 
No. I'll politely decline.
 
7:00 PM
If I get lucky they'll kick me out before the waja overwhelms me.
 
@Billdr I figured it out. Thanks for your help.
 
Cool! Glad to hear it.
 
Is it at all possible to change the scrollbar steps for a panel? Like when you are scrolling down, instead of scroll down per click from 1 step to like 50 steps?
 
I gotta go get ready. ttyl.
 
My me gusta face so far ^
 
7:27 PM
anyone here
 
nope
 
@Steve Is that so!
Hey I had a question
 
i'll try to answer, what is your ?
 
2
A: How to precisely track the mouse cordinates without skips

GuffaThe mouse pointer doesn't move across every pixel, if you move the mouse fast, it will move a whole bunch of pixels between events. The hardware simply doesn't send a signal for each pixel that the mouse moves, it reports the distance that the mouse has moved since the last report. Instead of tr...

The answer says to use the cursor.clip
I like it and it works perfectly
Do u know how it works
down deep i mean
 
nope, i have absolutely not a clue
 
7:30 PM
@Steve Well your a big help. LOL
 
lol
 
Lol
 
No sweat. I'll ask the person who help last night, when they come on sometime
Why was it deleted?
 
was it kendall? lol
 
Nah
It was meant for the Java room.
 
7:33 PM
I ought to write a chat program for this chat room
rather than using a browser, use a cool application
 
And a chat program for your chat program
 
@LewsTherin Thanks. :(
 
@LewsTherin lol
 
Hey, when looking at the newest questions like: stackoverflow.com/questions/tagged/…
How do you filter out the ones that have comment
see its easy to tell if there is an answer
 
Hello
 
7:36 PM
but half the time comments also asnwer the question
 
Can someone help me reversing this foreach loop? pastebin.com/DBxAWXEv
 
@SpecialK. I To reverse it change i++ to i--
originaly set i
to the largest
element
 
...
@user1739957 Not possible in this case.
 
@LewsTherin Wats wrong with mine?
 
Or at least I don't think so..
@SpecialK. Why do you want to reverse the loop?
 
7:40 PM
Oh well. I didn't look at it very closely
thought it was one of those duh questions
 
@LewsTherin because I need them in descendant chronological order
 
.reverse() it
in the linq
or
order it desc
which is probably the best option
 
@Steve Exactly what I was thinking.. but couldn't be sure.
 
yeah, just put an order by clause in your linq statement,
 
7:54 PM
@Steve thank you so much, such an easy solution, I did tried with reverse() but I forgot why it didn't worked, although this time did, maybe I've done something wrong back then
@Steve again, thanks.
 
Go Steve!
 
@SpecialK. yeah np
 
00:00 - 20:0020:00 - 00:00

« first day (743 days earlier)      last day (4206 days later) »