« first day (2109 days earlier)      last day (2825 days later) » 

user406009
12:11 AM
@Aaron3468 Are you working with an arduino or something? For interest's sake, what are you making?
 
You know what's fun? Not being able to turn on a computer
 
user406009
@Darkrifts that's why you leave it running all the time :P
 
Something that's even more fun? Having a computer that only turns on SOMETIMES
 
@Lalaland Tiny45V and Mega168PA. I'm waiting for a shipment of resistors so that I can prototype a high-ish precision soil moisture sensor. Until they arrive, I'm getting them to interact with different IO modules. I can use the Arduino libraries for the tinies, but not the 168PA
 
throws hands in air
Also, I'm back
 
12:17 AM
@Rapptz here
 
I purchased the tinies at about $3 each, and the mega was $5 so I've had quite a bit of cheap fun
 
that's not luc
 
@Shoe explosions happen. Any more info?
Ah. In a bar. How was that not part of the original bulletin
 
v0v
 
CNN is plummeting. Hard
 
12:19 AM
@Shoe \0, because there's some stuff missing :P
 
@sehe What else is good?
 
No clue. Just - I remember when CNN was the go-to channel for international news.
 
Is there a way to call a C++ free function from another file?
 
I don't recall CNN ever being good.
 
This week? Sob story. CNN can't into journalism. Not even once.
 
12:20 AM
@MarfGamer Include it?
 
^ CNN, not even once.
 
@Rapptz Oh well. Maybe I've aged. Last time I checked you weren't EU, so very different notions of what is CNN I guess
 
@sehe what did they do?
 
@Rapptz Would you need a header for it still? Or would you just put the function outside of the class
 
@JohanLarsson edition.cnn.com/2016/07/24/world/ansbach-germany-blast/… Not even the most minimal context
@MarfGamer ... what else is in a header
 
12:22 AM
@sehe I know what a header is for, but I wasn't sure if you would still need it for free functions
 
@MarfGamer Perhaps extern?
 
@Shoe I believe that is for calling C from C++ only
 
@MarfGamer Godspeed
So much misinformation
 
I am very bad at C++ ;-;
 
All these things are googleable.
4265
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...

 
12:23 AM
@sehe Not sure if talking about @MarfGamer or CNN :P
 
The convo
 
lol
\0's himself out of the misinformation string
 
user406009
@MarfGamer I mean, technically you don't need headers at all in c++. As long as you declare the function, you can call it.
 
user406009
The same way you declare classes, etc, etc.
 
And....I'm going to get back to edge-case proofing a project of mine
 
user406009
12:26 AM
@Darkrifts the worst part of any project imho
 
Apparently, it can crash if you invoke certain instructions, like 34 or 35
Which, in the project I'm making, reads the top value in a data structure
 
@Lalaland Ah
 
It's just that headers traditionally contain the declarations for re-use
 
@sehe With how often information about C++ is incorrect, I almost think that it may be a great idea to sit down and read through the standard and a compiler's source. Almost.
 
They're all* implicitly `extern` by the way.
* almost
 
12:28 AM
@Aaron3468 that sounds like a bad idea
 
@Aaron3468 I wouldn't recommend it. It presupposes accute intellect
 
user406009
@sehe iirc isn't the main exception globals?
 
Any common edge cases I should check if I have solved?
 
@Lalaland huh.
How would locals ever have linkage
 
@Aaron3468 It's not easy to read.
 
user406009
12:33 AM
@sehe I meant in the sense that there is a big difference between "int a;" and "extern int a;". I originally misspoke and said "global statics" but I meant just normal globals.
 
It's most efficient to know enough coding to get by, rather than to know every detail. Naturally, the devil is in the details and that's usually how I get bitten. Finding a fair balance between knowledge and ignorance is difficult
 
@Lalaland they both have external linkage, a priori
 
@Lalaland There isn't, in your typical header file. Globals are extern, unless marked (file) static
 
Remember that time someone made C+= ("C plus equality")?
 
Ell
I'm going to buy a digital piano if I make it to 2nd year of uni
 
12:35 AM
#triggered
@Ell How many years? 1 more?
Wait. Doesn't that mean you /save money/ by flunking it?
 
Ell
Yes :P
 
Solid plan
 
Ell
I have an exam in a month or so
When I pass I'll reward myself with a digital piano
 
Oh, that close
I'm heading to bed though. If you ever want to buy a RD700 (used)... let me know
 
hey I got extern with C++ working :D
As in call C++ free function with C++
 
12:40 AM
Nice
 
Ell
@sehe it looks out of my price range to be honest
 
I edge-cased accessing null data, divide by 0, and reading/writing data to execute
 
Ell
I was looking at the Korg LP-180
 
I've actually had this weird issue where in any of my IDE's if I call printf from a C function and call it with C++ the IDE just closes the program (I know the DLL works, as any function not using printf works fine)
 
Sounds weird
 
Ell
12:41 AM
But I dont know anything about them really. Night anyway!
 
I can even include stdio.h and do extern "C" printf(const char* format, ...); and it'll still work
^ in C++
 
user406009
@MarfGamer did you try running under the debugger?
 
Actually, no. I can't believe I didn't try that ._.
I noticed how if you simply use extern it defaults to C++ freefunctions, while extern "C++" still works, is it common practice to specify the extern language type even if the language the freefunction is written in is C++?
Wait I should google that
 
user406009
No. Don't do that.
 
@MarfGamer you can probably leave that out for now and focus on the basics
 
12:46 AM
@LucDanton k
Hey, extern works in C too :D It seems that the extern call type defaults to the language the extern declaration was declared in
So declare in a C file defaults to extern "C", and extern in C++ defaults to extern "C++"
I need to stop loggin all this stuff in public chat and start using my journal ._.
 
1:25 AM
It hadn't occurred to me that the lcd was using a valid encoding scheme. Feeding it strings directly is almost perfect aside from the fact that the encoding is shift-jis instead of ascii
 
Hey Everyone , um my operator << is giving me a segmentation fault for some reason :(
If i erase that line where i std::cout << player . then there is no seg fault
line 26 causing seg fault :(
 
user406009
@user5600875 where is the player implementation file?
 
player implementation file?
Player.h ?
if you scroll down i tel you where it is
 
Player.cpp
 
Scroll even more dwn
down*
Sorry i forgot to post
 
1:35 AM
Segfaults are fun
 
uPDATED
updated*
Now there is Player.cpp @Shoe @Lalaland
please @Darkrifts i would rather die
 
Player& Player::operator+(const Player&rhs)
{
	Player *ret;
	ret->attack = (this->attack + rhs.attack);
	ret->defense= (this->defense + rhs.defense);
	ret->life = (this->life + rhs.life);
	return *ret;
}
That's your problem
 
hmm?
@Shoe i am seeing no problem there
 
user406009
@user5600875 You never initialize the pointer ret.
 
You are dereferencing an unitialized pointer
 
1:39 AM
why do i need to?
 
user406009
Also, you might want to enable warnings on your compiler. GCC was able to point the mistake right out.
 
ik
It said i didn initalize
but i didnt know that was a problemm
so how i initalize? nullptr?
 
user406009
Well, you would have to allocate memory. Do Player* ret = new Player();
 
user406009
The big question is why are you using a pointer here?
 
user406009
Why not just use a value?
 
user406009
1:41 AM
Player ret;
 
hmm yea your right
i tend to overuse
pointer sorry :(
 
user406009
Also, I would highly recommend using smart pointers instead of raw pointers.
 
Moreover you should return a value, not a ref
 
user406009
@Shoe Good catch.
 
user406009
1:42 AM
But avoid pointers in C++ unless absolutely necessary.
 
Still no work
Player& Player::operator+(const Player&rhs)
{
	Player ret(0,0,0);
	ret.attack = (this->attack + rhs.attack);
	ret.defense= (this->defense + rhs.defense);
	ret.life = (this->life + rhs.life);
	return ret;
}
Ok @Lalaland
 
user406009
@user5600875 Shoe pointed out another bug :"Moreover you should return a value, not a ref"
 
hmm? Im sorry but i dont understand your statement there
 
user406009
Right now you are returning Player&, a reference to a player.
 
user406009
You should be returning just a player value: Player
 
user406009
1:46 AM
The problem is that you your ret variable becomes invalid when the function ends. Making your reference to it also invalid.
 
Hmm?
a player value?
wow. confusing :(
 
user406009
Oops, let me be more clear.
 
how can i just return a Player?
 
4265
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...

 
user406009
We are talking about the return type for the function.
 
user406009
1:47 AM
Player Player::operator+(const Player&rhs)
 
@Shoe @Aaron3468 already linked me to a great book :)
wiki *
ohh i see
 
user406009
@user5600875 Eh, that wiki is of variable quality. I would highly recommend getting an actual book.
 
You are lacking basic knowledge
 
Yes, but that's not to say buying books is a poor idea
 
user406009
The problem with the online sources is a lack of direction.
 
1:48 AM
i cant buy :( . not old
 
user406009
@user5600875 Do you have any libraries around?
 
"Mom, I really like C++ would you mind buying this book for me?"
 
sec
 
user406009
If not, then there is always pirating. (Note: I do not condone pirating in general, but if someone doesn't have any money ...)
 
@Aaron3468 .. life is more diffcult than that. you would understand if you were me
 
1:50 AM
I've been in similar situations. My experience shows me that parents are a lot easier to talk to than you imagine they are when you're young
 
@Aaron3468 sorry im back. No seriously , i dont have normal father. Plus im african,so even harder.
And yes ive asked my mom privately to buy me a book and she said yes. But thats when my birthday come up. And ill be nice till then, i hope :)
@Lalaland libraries? Hmm... you mean did you make your own libraries before?
 
user406009
@user5600875 I meant like public libraries. Their selection can sometimes be limited though. It's an extremely unreliable source for technical books, but every now and then they have something useful.
 
user406009
@user5600875 Also note that "Thinking in C++" on that book list is free.
 
@Lalaland no. Aaorn linked me to a Wiki Book. Its preety good im liking it :) en.wikibooks.org/wiki/C%2B%2B_Programming/Chapters/Fundamentals
Whatever it mentions and i dont know. Google!!!
@Lalaland im not a online book guy :( . Its a wierrd character but i like online articles, wiki's , and Actual Paper Book(By that i mean real books.. in real life :/ )
After reading the wiki , i would learn Design Patterns from here: sourcemaking.com/design_patterns
Not sure if it is good though. would love if you guys can link me to a better one :)
 
user406009
@user5600875 one other thing which might be useful is en.cppreference.com/w
 
user406009
2:05 AM
It's not a good tutorial, but it is a very good c++ reference
 
ya @Lalaland i go there time to time , when i google about keywords :)
Speaking about keywords , explicit constructor is being troublsome here :(
 
Oh right, they totally cut halfway through a cliffhanger to have 2 filler episodes.
 
I got it :)
Hey Guys one question that popped from my head :D
 
2:23 AM
I realized something about the environment I'm currently working on
Would be suitable for a kind of core warfare, but not the same semantics
Shared data is fun. Especially when you can modify it directly at any given point
 
2:48 AM
Guys um quick question i got top of my head @Lalaland , @Darkrifts , etc.. :D .
 
mkay
 
Can yo make your own << operator(btw what is it called again? xD) . for example cout << . comes from the iostream library. Im thinking there must be a way to create your own , cause a library did it. Like custom_stuff <<
 
Yep
Just overload the operator
 
hmm?
I dont think you understand what i mean
i want to create like:
 
Yes, just overload the operator
 
2:52 AM
whatever << some_thing << ends something
 
Yep, just have to overload it
 
yea but when you overload the << operator. it pretains only to the cout
std::cout
 
Maybe this or this will help
 
@Darkrifts for example this
std::ostream& operator<<(std::ostream& out) const
   {
      return out << a << " " << b;
   }
 
IMO, the best way to learn a programming language is to actually take a beginner class on it. If your school doesn't offer it or you're not in school, I'm sure there's gotta be a gazillion online ones.
 
2:54 AM
that pretains only to cout << "Somtehing" << endl;
@Mysticial haha your fnuny. Do you really think school will offer C++?
 
Well, idk how well that'll work, since there's no second argument
 
@user5600875 Yeah, I learned C++ and Java from school.
Just the basics, but enough to get the ball rolling.
 
@Darkrifts its one of examples of the stack overflow you linked :(
@Mysticial high-school ?
 
I just linked the first couple things I found :P
lol
 
@user5600875 Yep, C++ in the summer between Junior and Senior year. Java during my senior year.
 
2:57 AM
I learned everything I know (which isn't much lol) by online tutorials and just messing around till something works (and later testing to see how come it works)
 
Nice @Mysticial ! well i normally learn by my self.
but ask questions here since you guys kind :)
6
 
@Darkrifts I've found tutorials to be a lot more frustrating. I've lost track of how many times banged my head against the wall trying to learn JavaFX from tutorials. And that's with my strong-ish Java background.
 
and i just witnessed 5 keywords in one single line :(
well if you guys can link me to a anwser to question that would help :)
"Can you make your own << operator(btw what is it called again? xD) . for example cout << . comes from the iostream library. Im thinking there must be a way to create your own , cause a library did it. Like custom_stuff << "
 
Hey!! Thats Visual C++
 
3:00 AM
Orly
Never noticed it
 
Link dosent show what i intend to do @Darkrifts :( . maybe its not possible?
 
How about the non-VC++ thing
 
Thats the one i checked :(
 
Research... It's possible to cout << MyType, and it's possible to create a new stream type as well.
 
3:07 AM
And I've run into my own problem now
 
kk i think i got it now. thanks for help!
ill just ask stack. gotcha
 
Any suggestions on how I should wait for a keypress outside of a console application?
 
3:28 AM
Meh, I'll scrap my idea in favor of a working application
 
3:44 AM
Hey guys decided to help out C++ Docs before i sleep :) . stackoverflow.com/documentation/c%2b%2b/drafts/40727
Good Night everyone!
 
4:16 AM
did someone just call Lounge kind
what
 
4:31 AM
I renamed the things that I wanted to save on the backup disk to tell the difference in versions, then I remembered that some stuff worked softlinks
but I can still work on what depends on what based on the saving date
except now this becomes a all manual system ... but only if I ruin the current working set
 
So I can't figure this out at 12:30pm
error: invalid use of member function (did you forget the ‘()’ ?)
int diff = MinHeap.getSize() - MaxHeap.getSize();
 
min - max, I like that
because very logical
 
yeah lol
I'll change that to Left - Right heap
 
I finished Accel World and I'm both disappointed it doesn't have a second season, and that it had a decent ending. /cc @Mysticial
 
@Aaron3468 Yeah, and the show's 4 years old now.
A movie just came out which isn't good.
It doesn't look like a sequel. And the fact that they made a movie instead of a full series implies that the second season isn't going to happen, or that it won't be for a long time.
Btw, it's worth rewatching Accel World after you go through wikia.
A lot of holes get filled in.
 
4:52 AM
Well, I now have an environment that may or may not be suitable for a type of core warfare. Anyone wanna help test it?
Runs off of FOS-X (A monstrosity of my creation) but without waiting commands and input, mainly because that would cause it to be way too slow (potentially)
 
Considering that fosix is basically an assembly language, it would be helpful to create a simple compiler and give each function a mnemonic
 
@Aaron3468 Well, my other monstrocities( Calcutape and FOSCode ) both can be reduced down to FOS-X, so I could make a quick thing for that maybe
 
btw, does the stack begin empty?
 
Yes
Unless you run some other program beforehand, but I'd say that assuming it's empty is usually fine :P ( 2A, 2B, and 03 are for people worried about it though)
 
5:09 AM
@Aaron3468 When main is invoked, there's usually at least one frame on the stack (and sometimes a couple of them).
 
Well, corewar mode blocks access to operations 1F-29 (Excluding 23), because getting input and waiting is probably not what you'd want. 23 isn't blocked, because it's the crashing operation and you need it to stop the other program's execution
@JerryCoffin Talking about my monstrosities of languages, namely FOS-X
 
@Darkrifts Oh, in that case...who cares?
 
Idk
 
I was asking if anyone wanted to help test the core warfare functionality of it
 
5:11 AM
How many bytes are values in stack?
 
Do you mean how many values the stack holds, or how large each value is?
Holds 2^16 signed 32bit integers
Same for the queue, but FIFO instead
 
Nice
 
I mean, I think that's enough lol
Also, 'mem' is a single signed 32bit integer
 
5:27 AM
Have you got an interpreter somewhere?
 
Yep, but still in development
You have .NET 4.0?
 
Probably, and if not it's easily fixed
 
K, I'll slam it into a .NET 4.0 package
I removed the starting programs and file I/O, but meh, makes it much simpler
I think we can live without file management
dropbox.com/s/qvo1x93nevgwzo3/FOSX_ConsoleV1.0.zip?dl=0 In a .zip file, and .NET 4.5 package (I think that's the version anyway)
 
You'll need to create a link (share button), not copy the address
 
dropbox.com/s/xipipfmfqvtmgnq/FOSX_ConsoleV2.0.zip?dl=0 Remembered that you can't start .NET things like that with parameters in the same way. Added a console line read
10/10 would application again
dropbox.com/s/7tnv7ijrvmsnc3t/… You know what would be nice? If I could get my crap together and make a version that works
Slinks away for tonight, delay complaints till later
 
5:53 AM
> I pledge to never sign any trade agreement that hurts our workers, or that diminishes our freedom and independence. Instead, I will make individual deals with individual countries.
Trump talks like a Brexiter
 
6:47 AM
morning
 
repost :D
 
@Darkrifts I couldn't get the FOS-X interpreter running, however you'll like this program if your documentation is correct. If not, it shouldn't be too difficult to see what it should do. It assumes output is ascii encoded.
03 2A 2B 01 04 06 06 04
01 04 06 01 04 04 3B 0A
41 0C 34 0A 36 39 44 1A
41 1B 23 15 0F 2E 48 65
6C 6C 6F 2C 46 4F 53 2D
58 21 00
 
7:33 AM
Correction to the final lines: 6C 6C 6F 2C 20 46 4F 53 / 2D 58 21
 
7:54 AM
@Aaron3468 Best version. I couldn't find it :D
 
ok
so I got upgraded to Windows 10
I love thin window borders
Still not OSX 0-pixel borders but getting there
 
How to ignore certain bits of code with LLDB: set list target.process.thread.step-avoid-regexp
Geez
With GDB I can just do skip file and it ignores the current file.
 
fun to see that Win 10 still has the Win 98 code bits inside
like they never bother with a proper refactor
 
@R.MartinhoFernandes cool, I didn't know that
 
they just copy that over and over again
oh wow the task view is ther
not sure why it utilizes like 50% of my screen but ok
 
8:07 AM
Wait, that LLDB thing only works for functions.
Not whole files.
:/
 
> but in Xcode 4.5.x that's the best that can be done.
lel
 
Ell
@BartekBanachewicz you like 0px?
 
@Ell sure
windows don't need visible borders
give me all the space you have for content
Lubuntu's default WM also pursued this idea, but that's a linux so they made it impossible to resize windows
which always makes me giggle
 
Err, someone wants to hang around Friday eve, Saturday and Sunday almost every weekend. A bit too clingy for me. One day per fortnight is my comfort level for anyone who I would like to hang around with, one day per week for amongst those who I already know for more than 5 years. What's a polite way of telling people "I think you are nice buddy to hang around with, but I don't really want to spend all my weekends with you?"
 
also my company posted actually a non terrible thing
our financial markets rest upon this level of intelligence and stability http://www.theverge.com/2016/7/25/12269466/nintendo-stock-plunge-pokemon-go?utm_campaign=theverge&utm_content=chorus&utm_medium=social&utm_source=twitter https://t.co/mdUVLoQEiO
 
8:26 AM
QGraphicsRektItem
 
(lldb) watchpoint set expression -- inProcess
Watchpoint created: Watchpoint 3: addr = 0x00000000 size = 8 state = enabled type = w
    new value: (null)
Well, fuck you LLDB.
(lldb) p &inProcess
(bool *) $17 = 0x000000010eea9ca8
This works.
ARRGH.
 
@BartekBanachewicz Planes take like 2 years to be delivered once they're ordered, and this is for stuff that is already engineered.
 
@R.MartinhoFernandes What would you think if someone said that they will deliver such a plane in 2 months at half the cost from a small company?
 
That they had a cancellation and I was lucky.
:p
 
8:37 AM
Eh, but you get my point. The quality standards are driven unacceptably low.
People don't think they need high quality sites or apps.
 
software tends to be crappy
 
That's what the article (and my company, lol) is about.
 
Software has trivial replication; those 2 years are the replication time for planes.
The actual engineering process takes a decade.
@BartekBanachewicz Maybe they don't. Though the crashing reviews referred to in the article should be evidence that they think otherwise.
 
Ell
@BartekBanachewicz I tried 0px borders but couldn't do it
Looks too weird
I need 1px so the content isn't contaminated by the adjacent window :P
 
@Ell add drop shadow vOv
 
Ell
8:47 AM
I wouldn't see it
I rarely use floating windows
 
get a better OS
 
Ell
There aren't any ;)
 
someday you'll grow up Ell
I stronly believe that
until then you're gonna be the symbol of the 1px revolution
riding on GNU
on the side of the erupting kernel
 
Ell
Do you use drop shadows?
 
I am p sure both windows and OSX have them on by default yes
 
Ell
8:50 AM
But if your screen is full of content
When do you see them?
 
@Ell I typically have one window on my whole screen on OSX, because I use it for my laptop
and on Windows I always have at least two screens
 
My monitor has only one pixel so I have to be very careful with how I use it.
 
@StackedCrooked wow dead pixels are totally deadly for you
 
laptops are too small to have reasonable window splitting anyway
my laptop is the size of ~1/4 of my normal screen
 
Ell
I guess drop shadow just seems pointless to me
 

« first day (2109 days earlier)      last day (2825 days later) »