« first day (174 days earlier)      last day (4757 days later) » 

sbi
3:00 PM
@Tony Toes?! You pervert! :P
 
ewww, foot fetishes
 
@sbi rofl :)
 
You started it.
 
sbi
@jalf No. It's not the address space that's affected by all the downloaded sex movies, it's the bandwidth.
 
hey
there's nothing wrong with downloading some sex movies
 
3:01 PM
@sbi yeah, but don't you think there'd be fewer people online? :p
 
not that I practice such regularly
 
hence fewer addresses used
 
sbi
@tina You need to proper attribute @GOD, in order for him to be notified of you addressing him.
 
haha
 
also fewer websites
 
3:01 PM
@sbi heheh :)
 
But then where would poor malware authors release their work. :(
 
lol
 
pr0n is what makes up the internetz... lulz
 
if the Internet didn't contain any sex, how would young people learn about it?
 
@DeadMG good question, not sure...
 
3:02 PM
I mean, all that hardcore pornography is excellent teaching material
 
sbi
@jalf Yeah, that's true. But I still think the main problem is bandwidth. I guess without all the movie streaming, global warming would hold off for another 20 years...
 
@Tony I'm sure young people would find a way to learn about the internet anyway
 
sbi
@PiotrLegnica :)
 
@jalf they prob would, but sex is a good motivator to learn faster. :)
 
lol
 
3:04 PM
@sbi interesting point...
 
@DeadMG Young people have learned about sex before the Internet, so there would be no problem. Learning about the Internet is another subject, but after they would have learnt about it, sex would soon be present.
 
lol
 
@DeadMG gone into "lolmode"?
 
ahahaha
did you know that LOL is now officially an English word?
 
@DeadMG no?
 
3:05 PM
got accepted into the Oxford English Dictionary today
 
Is it time to replace singleton by single in the room description?
 
@AProgrammer go for it :)
 
nah
I'm surviving just fine
 
@DeadMG heheheheheh LOL :p
 
@Tony Last time I checked, I wasn't a room owner.
 
3:08 PM
@AProgrammer oh I see
 
cpx
@AProgrammer lol I looked at the description too.
 
sbi
@AProgrammer I'm always in favor of regularly renewing the room description...
room topic changed to Lounge<C++>: Where we discuss about C++ and sex. And singletons. And sex.
:)
 
cpx
@sbi Cool.
 
sbi
@cpx No. That's a hot topic! :)
@tina Don't sound so goaty. :)
Wow. I can edit those status messages!
Apparently, I can't delete them, though.
 
@tina I don't know where you are from, and this might be quite related to our different backgrounds and education, but where I am from, people joke about many things, including sex. We also use strong words in different contexts and don't necessarily get offended by it... I did not think that joke offensive, as a matter of fact, these chats (from my point of view again, this will differ) are quite well behaved
 
3:22 PM
No, its not.... it's the internet.
The world's garbage bin of conversation.
 
No, it is perfectly fine, as I said, we come from different backgrounds. There are many jokes that I've heard from my friends and would not dare to mention here. On your particular problem I cannot help at all. I have never done any UI programming, mostly backend, if not, I would be trying to help.
 
Apparently somewhere along the line, public thought aligned with sex being an offensive topic due to the imbalance between the power shared between the genders. Which is ironic, since the same debate poised to argue that there was no difference between the genders.

How both thoughts can coexist defies any logic I can come up with.

Either conversing sex is offensive because it casts an imbalance, or it is free reign because there should be no imbalance.
European culture doesn't have this problem.
Apparently, they shrugged..... and wondered why westerners were being so childish.
 
@tina: www.stackoverflow.com
 
Gasp
 
@DeadMG did you know that it was used in the 50's to mean Little Old Lady?
 
3:28 PM
no
 
at least according to some of the articles which mentioned that it's now an official english word. I haven't checked the primary sources ;)
@tina well, remember that SO is for getting help with programming, and the SO chat is for, well, chatting... About sex and singletons
2
 
@Tina : The wisdom in posting a question instead of asking in chat, is to make the information both available to the wider audience and increasing its lifespan. If a question has an answer too specific to benefit a wider audience, then ask here. If the question is as general as yours is, it is better to post the question.
 
feel free to ask for programming help here, but remember that SO is more likely to get you good answers
 
Posting a question also forces you to formulate your question better. Asking for general help about cursor shape isn't helpful, because shape doesn't have a well defined meaning in your case. Unless I'm ignorant of the issue, cursors don't have shapes... they have cursor files which are basically images. Carets have shapes, but those are limited to block and again a bitmap (an image).

Shape could mean vector image? It could mean the appearance of a shape that an image gives?
Do you mean changing from mouse pointer to crosshair, or I-beam???
Generate from an image?
Well of course not
You're loading a cursor and saying it's a handle to a font
 
9 mins ago, by jalf
@tina well, remember that SO is for getting help with programming, and the SO chat is for, well, chatting... About sex and singletons
@jalf So... where do Singletons come from? :)
 
3:39 PM
@FredOverflow Hell.
 
LoadCursor returns a handle to a cursor
You're returning a handle to a font in your method
You're trying to convert a cursor to a font
That doesn't make sense
Ok, logic here.
What's the return type of LoadCursor?
What is your method trying to do?
Your method is loading a custom cursor from a dll.
It wouldn't help....
You would need to draw the cursor to a bitmap, then get the bitmap bits and do your XOR with your mask.
 
@tina what course would this be for anyway?
 
Course? That would be an oddly wasteful assignment.
What benefit do you get out of converting a cursor to a bitmap
 
HCURSOR win_XCreateFontCursor(unsigned int shape)
{
    static HMODULE hXCursorDll = LoadLibrary(TEXT("xcursors.dll"));
    return LoadCursor(hXCursorDll,MAKEINTRESOURCE(shape+1));
}
 
Well.... that's not something that's all that useful to learn
 
3:47 PM
As near as I can figure tina is trying to create a windows cursor from the id's in this Xlib file: tronche.com/gui/x/xlib/appendix/b
 
It's bad practice IMO. Either you need to edit your cursor file to look different, or you need to use a drawing method that can apply your XOR for you
@Chris but she wants to get the bits out of cursor and XOR with another image?
 
@Xaade once the cursor is loaded - as an HCURSOR - that part is easy.
 
woah.... engrish
slow down
How do you create a bitmap FROM a cursor?
 
Of course, if the cursor is never to be used as aan actual windows cursor
 
You have the cursor.
 
3:50 PM
this is all very roundabout
 
Pretty much useless for self learning.
 
in which case that page is just a list of bitmaps that are, incidentally X-cursors
don't worry. so are we :P
 
What I'm saying is that you're doing something that doesn't have a practical application.
If the resource is already a bitmap, then you shouldn't load as a cursor if you want to XOR the bitmap bits with another image.
 
@tina try explaining what it is you need to do, not how you think you need solve it. That way people can offer advice on how to solve your problem rather then trying to work out what your problem is in the first place
 
Thanks.... so far I can't recreate the design purpose..... At least I can't come up with one that solves any practical problem.
The problem with coming up with some random design goal so you can learn about a topic, is that you run the risk of learning bad programming practices.... or come up with problems that never need solving and learn something useless.
 
3:56 PM
@tina So you want a way to determine if the current cursor that is being used is a bitmap? Not that you want to use an image as a custom cursor
 
You can't really.
Do you have any documentation on the usage of xcursors.dll?
@tina : If you want to learn. It's better to pick up a book or guide to give you practical design goals to learn from. Again, learning something from a dreamed up design goal without it achieving a practical application will result in you learning useless methodology, or worse yet, learning BAD programming practices.

And generating a XORed bitmap from a cursor and a bitmap is screaming BAD programming practice to me.
 
xcursors.dll doesn't even exist. it would have to be made.
 
@tina Well, at run time, once the cursor image is load into memory, it will be just a bitmap. A bit map being an uncompressed image file. A computer can't draw the image directly to screen with out decompressing it.
 
If you can't describe what your program design with a practical application... then we can't help you....
Because we need to know if you're simply going the wrong way altogether. We don't want to encourage you to learn something that's bad to do in practice.
 
@tina How the cursor image is stored on disk however is a different matter. And your best bet is probably to look at documentation that will say how exactly the platform stores cursor images on disk.
 
4:01 PM
@thecoshman yeah, but it's then a handle to a cursor, which is a pretty protected form of bitmap. I'm not sure if you can even get the bits, without drawing to a DC and getting the bits out of the selected bitmap.
 
@Xaade well, @tina did not say, that I have seen, that she actually wants to edit the cursor at run time, just weather or not a cursor is a bitmap. Which at run it will be
 
Which is a lot of work, if Tina simply wants to draw the cursor different (inverted or something). Those things can be accomplished by using specific methods from a drawing class....

Drawing to a DC to get bits from a cursor is bad practice unless there's no other alternative.
 
@tina stating the <insert operation system of choice> stores cursors as bitmaps at run time?
 
I don't even know that tina has a cursor
 
@thecoshman
She says that here
 
4:03 PM
merely that they have a number from this page: tronche.com/gui/x/xlib/appendix/b
that needs to get "drawn somewhere"
for some, as yet undetermined, purpose
 
@tina you do realise that the X display server is a rather low level display system. Windows does not use it, and most common linux operating system run ONTOP of it
 
@thecoshman According to that reference I just linked, Tina makes it sound like she wants to edit the cursor at runtime by getting the cursor bits and XORing with another image's bits. Unless I mistranslated.
 
@tina that is not 'generating' a cursor, it is telling the display server to use that bitmap. Their is no reason for the API to give you access to image data for the cursor, so it does not
 
That method would give you an HCURSOR generated from some resource inside xcursors.dll.
 
@tinia why can't you just load a custom cursor from a file?
 
4:07 PM
Either way, what's the purpose of XORing the bits?
 
@Xaade You can extract the bitmaps from a cursor with GetIconInfo.
 
@PiotrLegnica thanks... that's useful to know
@PiotrLegnica I'm not very well versed in bits from images.... It gets a little difficult to navigate for my taste.
 
Now I have no idea what this is about.
 
@tina do you just want to have your own custom cursor loaded into your program?
 
sbi
@tina Programing is mostly a very intense exercise in being anally obsessed about details. Start with your spelling. Really, if I see cryptic statements as "becasue i ma not strong in progrmaing", then I'm not surprised at all that you're not good at it. Spelling matters. Capitalization matters. Explaining your problem matters. You yourself understanding your problem matters. Details matter.
 
4:17 PM
If you ask questions, it's in your best interest that they are as much understandable as you can make them.
For other people, that is.
 
@tina @sbi makes a very good point. The easiest way to solve a problem is usually to spend time trying to work out EXACTLY what your problem is. More often not, being very precise about your problem will provide you with the solution, or at least a very good start on solving it
 
sbi
@tina You answer with one word, which by itself might mean many different things ("I know", "Know that..."), put a spelling error into its four letters, and, fixing it, don't see that you put another error into my three-letter nick. What can I say? I just said it in the message you attempted to answer to.
 
Some times I do actually think better of posting sarcastic comments
@tina A C++ programming book...
@tina internet guides can work, but in my opinion do not compare to a proper book
 
@tina Since you are struggling with Windows programming then perhaps "Programming Windows" by Charles Petzold is a good choice.
 
@tina don't take this the wrong way but "C++ for dummies" a dam fine intro to general programming in C++
@tina I would strongly advise that you learn the basics of C++ and get used to 'console' programs before moving onto using more advanced things
 
4:26 PM
@tina in that case Effective C++ by Scott Meyers is good.
 
@tina putting it bluntly here, then go back and make sure you understand them concepts. There is a little old saying "Don't try to run before you can walk"
 
@thecoshman However, as programmers we all tend do do that. Don't we?
 
@StackedCrooked do we? I am fairly sure I learnt to walk first, then quickly got onto running. Problems is now I see so many options and things to play with!
That's not to say I wasn't look at subjects more advanced then I knew I could move onto straight away
 
@thecoshman Well, perhaps it's just me. I remember creating my first projects knowing only a few bare minimums.
As long as it "worked" I was happy.
But that was the very beginning.
 
@StackedCrooked but you where learning the basic wearn't you.
 
4:31 PM
@thecoshman I remember implementing my first GUI calculator application in Java without knowing how to write methods/functions. I just started of a sample and wrote a huge blob of code in the event handler.
I worked :)
 
@StackedCrooked :O
 
I actually felt proud too..
 
@StackedCrooked Event handler = method
 
@Xaade Yes, I started from a sample application from the book and worked from there.
 
I taught myself how to draw by starting off tracing other people's stuff and adding to / taking away from.
 
4:36 PM
@thecoshman When I wrote my first Tetris game in Java I made the gamestate grid extra large so that I would have extra margins to the left, right and bottom. I did this to get rid of those annoying out-of-bounds exceptions.
 
I don't think anyone this century learned how to draw by picking up a naturally occurring stick of charcoal and rubbing it on a cave wall.
 
@Xaade I can at least confirm this for myself.
 
user379888
Hi
 
user379888
I have made a paint application, I need to add some unit tests to it but I dont know what unit tests should I include as the paint program only uses mouse not the keyboard,nor there is any sort of memory allocation
 
@tina are you working alone? do you have any colleagues you can ask help from?
@tina if you know a good programmer then ask him to review your code. you will learn a lot in a very short time.
 
4:44 PM
@fahad, Unit test is testing at the most basic units (functions/classes). You seem to speak about application level test. Testing graphical application, there are two possible paths: adding instrumentation and controllability so that you are able to test the engine independantly of the rendering, and testing the rendering and some kind of user interaction which need graphical snapshot and feeding events. That still can be automated.
 
user379888
@AProgrammer: Do you know any Unit Testing Tool that can work on Turbo C?
 
Turbo C? As in, 16-bit Turbo C?
 
1994 called, they want their compiler back
:)
 
user379888
@PiotrLegnica: Yes :(
 
user379888
Actually I was working on VS but because of some reason had to use Turbo C for this app
 
user379888
4:48 PM
Now I am getting stuck on every professional debugging stage, dont know how to do unit testing :(
 
Try using a modern compiler with 16-bit target, if you really need 16-bit target.
Most likely, you don't.
 
Yeah, Watcom should be good.
 
user379888
Do you think it would have everything Turbo C does,like the header files espeacially graphics.h
 
graphics.h targets DOS
you're making an app that targets DOS?
that stuff almost certainly won't even work for Windows
 
4:51 PM
16-bit images certainly won't run on a 64-bit Windows.
And NTVDM is not that good on 32-bit, either.
 
@PiotrLegnica depends what you mean by 16 bit images. 16 bits per channel is happy enough on windows
 
@thecoshman I mean executable images.
 
user379888
Well it does run, but yes it is a very basic app. Just draws some shapes
 
For your future sanity, I recommend ditching this target altogether, and using SDL or Allegro.
 
user379888
Thanks :)
 
4:58 PM
@PiotrLegnica sanity is overrated anyway
3
 
Because by targeting 16-bit with no good reason, you're making your life unnecessarily hard.
 
user379888
It made me use most of my concepts of OOP. I learned a lot
 
sbi
@jalf: What are FF's tab groups? Where do I find them? What do they do?
 
in other news, looks like I'm going to have to figure out gdb again :(
 
user379888
I think my OOD is good enough. I used graphics.h so that I can do everything myself
 
4:59 PM
@sbi ctrl-shift-e, or the little down-arrow thingy to the right of the tab bar
 

« first day (174 days earlier)      last day (4757 days later) »