« first day (1654 days earlier)      last day (3292 days later) » 

6:00 AM
> my code is compling and getting output as “image not found”, please advice something
hang yourself
 
You need more RAM
 
good morning Lounge
 
@khajvah Morning.
Why does my company give this computer with Pentium 4 CPU and only 4GB RAM for programming?
 
@DeanSeo What kind of work do you do?
 
6:08 AM
programmings obviously
 
@khajvah I am not sure. I think I program many stuff that my company tells me to.
I've been MSTSC.exe-ing to compile on my better/personel computer.
 
rip
 
Windows is complaining about low memory at 82% ugh
 
well, that depends on kind of projects you work on. On almost all cases, you don't need anythign more than pentium 4
 
Famous last words
 
6:10 AM
@Cicada MCR?
 
lol shitty dev machines is waste of everyone's time
 
@DeanSeo No it's a saying
 
@khajvah Does your PC also have Pentium 4 at work?
 
@DeanSeo No, mine is core i5
 
even a random android dumbphone is better than a pentium 4
 
6:11 AM
 
@khajvah .......
 
@Mysticial IT WORKS!!
 
The good thing about having a shitty comp is I can slack off hours while compiling.
 
The only thing Pentium 4 is good for is setting the multiplier to maximum, taking off the radiator and seeing how long it takes for it to explode
 
There was a video on yootoob like this
 
6:13 AM
I still have a Pentium 4 sitting around. Only 512 MB of ram though.
 
That's not even a phone
 
honestly, even in case of huge projects, you compile the whole thing only once
 
Bullshit
 
lol someone has not been doing C++
 
Also improving speed and responsiveness across the board is always a good thing
That shit adds up fast
Dev machines should be more powerful than typical desktop, not less
 
6:16 AM
I think replacing with SSD can improve the whole progress of compiling to be fast enough. I am gonna ask for it tomorrow.
 
10
A: What is the difference between Java and C++?

Daniel PaullA C++ programmer will tell you that Java is rubbish. A Java programmer will tell you that C++ is rubbish. Therefore I conclude that they are indeed the same thing.

lol
 
@fredoverflow The worst thing is, that question didn't get 200 downvotes.
 
Back in 2008 this was still acceptable
 
@fredoverflow lol
 
@khajvah It's not too late to fix that!
 
6:19 AM
@fredoverflow I did all I could do, 199 left :)
 
Ok I gotta go back to work.
if (bWorkingTime)
Work();
 
STAY
Don't let capitalism win
They are exploiting you
 
@DeanSeo b, what is that? Hungarian?
 
@Cicada I have to code for food.
@fredoverflow I think so.
 
0x0BADF00D
 
6:22 AM
Windows doesn't deal with memory pressure too well
 
@DeanSeo is_work_time reads much nicer, doesn't it?
 
wtb another 16GB of RAM
 
wtb = way to blow?
 
@fredoverflow I agree, but I prefer less readability because then the comp will never be able to fire me.
Lol.
 
14
A: make the meaning of /* for dereference and dividing not for commenting by adding some special character

fredoverflowFirst, you can replace *ptr with ptr[0], as both have the same semantics: int quotient = 100/ptr[0]; And since array indexing is commutative, you can swap the operands: int quotient = 100/0[ptr]; To the casual reader, this may look like division by zero, but of course [] has higher preceden...

 
6:24 AM
want to buy you filthy casual
 
What the buck
Ok I gotta go back to work seriously.
Bye Loungers.
 
@DeanSeo We can send you food if you stay ;)
 
잘가~
 
food is for weak
 
6:36 AM
@CREW: No! You shouldn't be doing anything with pointers and the keyword new. C++ is not Java. Keep doing what you're doing, you're on the right track. The difference between the way you do it and Student* mystudent=new Student(); is that Student* mystudent=new Student(); is just a stupid way of asking for trouble with practically zero gain. — R. Martinho Fernandes Jan 26 '12 at 12:16
words of wisdom
 
Hey guys
 
And girls
 
Would requiring 256 values in a char break compatibility with ones' complements by nature?
 
There are already 256 values that can fit in a char
 
@Cicada Not in the older standards.
 
6:40 AM
Does anyone care about those
 
@Cicada Like in C++11
 
Then I don't understand your question if any
 
@Cinch No, because there are also 256 values in a one's complement byte. It's just that there are two zeros, namely -0 and +0.
 
@fredoverflow Mmmm, I see...
I guess the misnomer is that +0 and -0 are the same but different
Fickle me timbers.
Now wtf do I do about my shitty question
It's -6 and it's staying there.
 
Is that a practical problem, or is it simply nagging you?
 
6:43 AM
@fredoverflow I can't ask any other questions anymore. It's been about... a month?
I've gone from about 350 to 500 rep too.
I've been active almost everyday and I submit okay answers.
 
user1804599
Does Lua have some kind of standard serialisation mechanism?
 
@rightfold Good question
 
user1804599
Meh, that's only strings.
 
It's a Google search away
 
user1804599
coool
 
6:47 AM
Ugh
I just watched the Python in 45 minutes video. I find Python really convenient and nice.
 
@rightfold I used pickle in the past IIRC
And then rolled my own
 
user1804599
I'm working on a nice tool I thought about.
 
Ah gee Lua
But seriously, is there no way I can lift my question ban?
 
@fredoverflow of course not:)
 
user1804599
Write lots of good answers.
 
6:51 AM
@rightfold ...
I have a pretty neutral record but I've gotten some accepted
I mean wtf am I supposed to do?
I do have a lot of deleted answers, though
 
Hello Guys !!
 
@PiyushGupta What homework do you have for us?
 
No any home work mate !!
 
@PiyushGupta ...
 
6:57 AM
@PiyushGupta It's just I find that the lack of communication from the middle eastern/indian groups to be bad for some reason
It's a pattern I see but w/e
 
No. Nothing like that. We are more convince.
 
user1804599
src/main.cpp:17:10: error: variable has incomplete type 'void'
    void gather(program const& program, record_queue& records) {
         ^
 
user1804599
that's a function not a variable you idiot
 
@PiyushGupta "We are more convince"
 
> variable has incomplete type 'void'
whoah
 
user1804599
7:03 AM
Screw C++.
 
Exactly
 
user1804599
Ugh, lua_open is a macro.
 
user1804599
Terrible.
 
@rightfold I can send you the Lua programming in Lua 3th edition if you want. It decribes that pretty deep.
 
Guys, I have a question
 
user1804599
7:13 AM
No.
 
I need to run multiple instances of the same program and I need to share data
should I use memcached?
 
@rightfold hint: most of the functions are
 
user1804599
Please don't.
 
user1804599
@Rapptz Terrible.
 
user1804599
Good job at being embeddable Lua using macros that can only be used from C and C++.
 
7:14 AM
any windows programmers in the house? I need a little insight and help into something.
 
install gentoo
 
@rightfold If you don't have to only use C/C++ for that in Lua, you can work around with C# and LuaInterface.
 
@gideon I have +8 years of windowsgramming experience
 
The macros resolve to actual function calls.
 
@Cicada excellent! I need your wisdom! Here is my question:
 
user1804599
7:16 AM
@DeanSeo I don't want to use C# either.
 
user1804599
But I got it working already, so don't worry.
 
:)
 
@Cicada I had little tristes and nibbles at Win32API programming, started out with Charles Petzolds bible. Eventually, the world moved and I moved to the Web with it.
 
(+ㅁ+)v
 
Sorry I have no experience with tristes and nibbles at all
 
iLQ
7:17 AM
Hey guys, anyone here has used boost.asio to download a single file and put it on a iostream?
 
@Cicada Ah. hear me out, brevity is not my strong suite :/
 
@gideon Nibbles? The Basic Snake clone?
 
@Cicada I want to learn windows programming for this side project out of fun. I picked up Jeff Prosise's book and began.
 
Gideon, don't fall into Cicada's trap.
 
@fredoverflow nope, simple dumb applications but I know how windows messages etc work.
 
7:18 AM
Oh god
 
@gideon Yes yes I see
 
Oh god windose
 
The Win32 API is fucking shit. Do yourself a favor and learn C# or something.
 
I was typing that
 
yea yea I did. But lets not get into C# vs C what not.
I want my application to be lean and mean
 
7:19 AM
So what is the question
 
@gideon It is not C# vs C. It is about how much win32 sucks
 
43
Q: What does #defining WIN32_LEAN_AND_MEAN exclude exactly?

fishfoodI found the explanation defining WIN32_LEAN_AND_MEAN "reduces the size of the Win32 header files by excluding some of the less frequently used APIs". Somewhere else I read that it speeds up the build process. So what does WIN32_LEAN_AND_MEAN exclude exactly? Should I care about this pre-proces...

 
He hasn't even spoken his question yet lol.
 
so my question is: How do I build a windows app in pure C and structure it right?
 
Most people start with #include <windows.h> but that's personal preference
 
7:20 AM
too broad
 
I'm seeing how, MFC can be odd, old technology but it helps structure things out.
 
@Rapptz like your mom
 
lel
MFC is a C++ library
and it's ancient
 
read: old as f
 
writing a Large Windows app in pure C is alluring but and I know people have written apps like it, but how does one structure windows C code?
Thats really my question.
 
7:22 AM
@gideon Do you mean, GUI code?
 
your question is way too broad
 
@gideon around an event loop
 
No and Yes, the whole application.
 
@gideon Google "Win32 API tutorial" or something. Nobody in the Lounge does windows programming in C.
 
@Cicada yes, that insipid windows message loop
@fredoverflow cicada does.
 
7:23 AM
lol
4 mins ago, by khajvah
Gideon, don't fall into Cicada's trap.
 
Time to play Rebirth.
 
I've got some code even in the linux kernel, I've used and seen linux style C and it's neat and clean somehow.
But the whole windows message look, resources, etc etc make it difficult to structure an app nicely.
 
Writing a WIN32 code in "the pure C" ends up being massive long message loop handler.
 
@DeanSeo precisely, and I'm asking is there some way out of that.
 
Why... Why would you want to even handle Win32 code?
 
7:24 AM
Eventually it becomes unmanageable, to me.
 
Split into functions
 
It's like... Why would you want to go stick your head into a pig?
 
And components
 
Don't write a GUI
 
@Cinch He wants his app to be "lean and mean".
 
7:25 AM
@Cinch Because I want to (2) I'm a masochist.
 
@gideon If you want I can give you some very short code that creates a window that reacts with messages.
 
@gideon Um...
You go do that
K.
 
@DeanSeo I would really appreciate that :)
 
@BartekBanachewicz HE LIVES
 
7:25 AM
why don't people keep to either side of the road when driving
 
GUIs suck
 
@DeanSeo Can't you find that sort of code in every Win32 tutorial ever written?
 
@khajvah I agree!
 
@BartekBanachewicz What do you mean don't you have to do this to not crash and burn
 
but people do want a GUI!
 
7:26 AM
@Cinch s/road/lane/
 
@gideon Then why don't you just go with Qt?
 
@fredoverflow What do you mean by find that sorta code?
 
morning chaps and chapesses
 
@BartekBanachewicz Uhhh because we want to be in the center
@thecoshman Hi cosh
 
@fredoverflow nope, once you start building a smallish app even it's an big freaking loop with a giant switch case.
 
7:27 AM
@DeanSeo 1) Google "Win32 tutorial" 2) click on random result 3) scroll down a couple of pages 4) find example code
 
Is there any reason I should ever have to ever interface with Win32 code? Ever?
 
@gideon That's because the Win32 API is ugly and C is ugly.
 
5) see how fucked up the code is, 6) give up
 
--------------------------------
       AAAAA
ME     AAAAA  BBBBB
              BBBBB
----------------------------
 
Ah now I get it.
 
7:28 AM
@fredoverflow That is true, nonetheless, if you need to make a windows app you have to confront this fact.
 
@Cinch ^
 
@BartekBanachewicz Oh so you're just mad you can't be a speed demon and start weaving
 
@Cinch exactly
 
@BartekBanachewicz That's so Bartek, lol
Also WHEN WILL I GET my question ban lifted
How much more must I take?
 
@Cinch that's so "don't be a dick and block the road for others", more like
 
7:29 AM
@Cicada so you're saying that you write function/handlers over various .c files and then call them from the message loop ?
 
Stop asking Cinch shit questions
4
 
@BartekBanachewicz huh?
 
well most of the people were standing ok, but it only takes one guy
 
@Cinch precisely 5 more dicks
 
@gideon I'd rather write Swing apps in Java than Win32 apps in C.
 
7:30 AM
@gideon Modularize, componentize. Keep complexity manageable at every level of abstraction.
 
@fredoverflow yes, I can see the loathing feeling you posses for win32, I get it.
 
@fredoverflow That was a really terrible curse to win32 api
 
My comp has some strict policy that prevents me from uploading a simple JPG file here. So hang on.
 
@Cinch Why don't you ask on meta? We can't help you with your issue.
 
@fredoverflow Because I BET I'm going to get downvoted
They're going to be like, "omg just be patient bitch"
 
7:31 AM
@Cinch So what? Then you get question-banned on meta, too. Who cares.
 
@Cicada synergize!
 
@fredoverflow Then I make an alternate account
I don't want to do that
 
@thecoshman scroll up
 
That's against the rules, anyway.
 
@fredoverflow It's not.
It's just not good.
I'd prefer I don't
 
7:31 AM
@Cicada so first off I see you saying it's possible if done right.
 
@BartekBanachewicz yeah... I did... still can't work out what that is trying to show... cars on a lane of a road?
 
Trust my +8 years of win32 programming experiences
 
:)
 
> trust
> Cicada
 
@thecoshman yep
 
7:32 AM
@Cinch rightly so, if you just look on meta, I am sure you will find the answer.
@BartekBanachewicz and?
 
@Cicada can You think of any app out there that is like this, I've looked at Notepad++ but the VS2005 rc files get screwed in VS2013.
 
Damn uploading restriction
 
@gideon don't believe you, no one can stand 8+ years of win32.
 
You have a VS2005 project? Call your local town archaeologists for further excavation.
4
 
So this is like..basic.

#include <windows.h>

LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
HINSTANCE g_hInst;
LPSTR lpszClass="First";

int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance
,LPSTR lpszCmdParam,int nCmdShow)
{
HWND hWnd;
MSG Message;
WNDCLASS WndClass;
g_hInst=hInstance;

WndClass.cbClsExtra=0;
WndClass.cbWndExtra=0;
WndClass.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);
WndClass.hCursor=LoadCursor(NULL,IDC_ARROW);
WndClass.hIcon=LoadIcon(NULL,IDI_APPLICATION);
 
7:34 AM
@Cicada also, that is another detour question, do you think what Don Ho did with Notepad++, (use C++ just around the Wn32 api). Do you think this is the usual or perhaps more pleasant path.
 
@thecoshman they block the whole road so people on 2 wheels can't move trough, come on use your imagination :P
@DeanSeo don't post gigantic code blocks here
 
@Cicada nope, the notepad++ guys do. I know what you mean.
 
@DeanSeo ...
 
@BartekBanachewicz I was going to not to do that, but I just had to.
 
@thecoshman bah.
 
7:35 AM
I can't post any pics or HTTP PUT uploading here.
 
I think I'm just going to ask for a system change
 
@DeanSeo Why do you hate code indentation?
 
@gideon In all seriousness I would not recommend learning w32
 
@Cicada lol, really?
 
yes, really
 
7:36 AM
Where I work here has a very strict security policy. Well, I am sorry for the inconvenience.
 
@DeanSeo who the hell forced you to?
 
@BartekBanachewicz you mean they use the road properly?
 
@DeanSeo HEY PEOPLE BEHIND HIS SCREEN HE JUST LEAKED SOURCE CODE
 
@fredoverflow precious bytes man!
 
@thecoshman "properly" and "being a dick" are orthogonal
 
7:38 AM
TIL Bartek's dick is properly orthogonal
 
@Cicada does that come from the fact that the api and what not is a mess or you think MFC, or Qt or some XY library is better?
 
@BartekBanachewicz Nobody. But I already told @gideon that I was going to give the basic code, and I am just keeping the promise.
 
Xeo
mornin
 
@thecoshman Save 3 bytes by using a space!
 
@gideon It's a) old b) messy c) non portable
 
7:38 AM
@DeanSeo The post it to some shitbin and post a link here
We don't want to see your terrible code, not on 9 am on monday before my first coffee
 
If you wanna go for a GUI app in C++ Qt is excellent by far
 
nvm if it makes him go away
 
@Xeo std::gehts
 
@BartekBanachewicz As I said, it's not easy here. I already said sorry to people here for the massive code posting that I just did.
 
@DeanSeo It's alright don't take it personally.
 
7:40 AM
ㅋㅋㅋ
I don't.
 
@DeanSeo what's not easy, using any of the tons of code pasting services on the internet?
 
Never know with Koreans
 
@Cicada When it comes to Qt, what about the fact (a) not native UI, also, not for windows specific stuff I'll need to call the win32 api at some point (example: writing to the registry for file associations..)
 
user1804599
Very nice.
 
@gideon What is the problem with being non native?
 
7:41 AM
@BartekBanachewicz Exactly. Most of the sites are banned here.
ㅋㅋㅋ
 
@gideon Doesn't Qt render to native UI when it can?
@DeanSeo what
 
@Cicada I mean specifically the UI being non native.
 
@DeanSeo stop posting this FFS
oh man
this week is starting great
You have startled The Witch The Bartek
 
Bartek-on-a-monday-morning best Bartek
 
@Cicada There are little subtleties that end up being missed out and then the app gets annoying..
 
7:42 AM
Fuck mondays, they are the worst
 
Lol.
 
@BartekBanachewicz For us is already 4-5 pm
noob
 
@gideon if you care about those little subtleties you don't run around internet chats asking "how do I gui in C++"
 
Lol, Bartek is shitting on everybody today
 
> The fact you own and wear pajamas after a shower says everything about you.
Hehe (from this post).
 
7:43 AM
the answer to that question is always "with immense pain and effort"
 
PMS?
 
Pre-Monday Stress?
sounds about right
 
@BartekBanachewicz well I'm not, I simple wanted an opnion about whether a pure C win32 api can be structured right. that's all. Thats why I came to the chat room in the first place.
 
lol
 
yep. A lot of you guys really seemed (a): stressed (b): pissed about windows (c): (b) and and I'm talking about it.
 
7:45 AM
@gideon "right" tends to be different for a lot of people. IMHO it's not worth it to do it generally. For one specific app it's always possible to create proper abstraction.
it's the OpenGL-wrapper-in-C++ problem all over again
 
Do you guys know PSY?
 
IOW, if you take a subset of winapi you need, you can make more assumptions about the usage and the API gets saner
 
@BartekBanachewicz right so all I'm asking is if anyone has experience with abstracting and maintaining a large pure C win32 api app.
 
I heard every westerners love PSY and Kangnam Style. Is that true?
 
Any source you'll find out there is all basic examples.
 
7:47 AM
Yes an hour left to get off !!
Yay
 
shshshhshshsh, i still have 6 hours
 
@DeanSeo Sadly yes
 
@Cicada say I'm still adamant on Windows app in C, will making learning GTK-C help me understand how to structure my app better?
 
:)
 
@gideon The best Win32 apps are usually structured around a chair (alternatively a stool) and a tight rope.
8
 
7:49 AM
lol
 
Lol
To be structured around a chair and a tight rope.
New expression learned.
 
@Cicada haha. Ok.
I'll back off now...
Thanks everybody, have a good day :)
 
starts writing helpful stuff, gives up
@DeanSeo and I've heard eastern people all look the same and just eat rice whilst praising their communist states. Shall we carry on with the sweeping generalisations?
 
@Cicada I don't get it, are you talking about death by hanging?
 
@fredoverflow o_0 how did you pass as a non idiot for so long?
also, you coming uncon?
 
7:59 AM
@thecoshman Seriously, is that a figure of speech? Never heard of chairs and tight ropes before.
 

« first day (1654 days earlier)      last day (3292 days later) »