« first day (1778 days earlier)      last day (3167 days later) » 

9:00 PM
good riddance
 
..etc
just for security
 
@Kened thats definitely not allowed
 
Here's a suggestion: Don't say things that are offensive
Then you won't be kicked
 
I know @TonyTheLion
 
@Mysticial I'm tempted to flag his message for mods
 
sbi
9:01 PM
ERROR: Failed to access device. libusb error: -12
Isn't that stuff lovely?
 
@TonyTheLion Please do so.
 
user1804599
wtf is it with all these trolls
 
I've already raised a mod flag. It helps if someone else backs me up.
 
DOn't please :(
I enjoy your disussions
 
@sbi well, -12, obviously. Are you stupid or something?
 
sbi
9:02 PM
@TonyTheLion You can have as many accounts as you want. Officially. Just don't do anything wrong with them.
 
@Mysticial ok done
 
i am not insulting anyone :( why you want me to leave ?
 
@TonyTheLion The custom flag box clearly doesn't get enough love. :)
 
@sbi yea but he isn't using them for the right purposes
@Mysticial yea
 
@TonyTheLion I read rules
 
9:04 PM
@Kened I find that hard to believe
 
@TonyTheLion why?
 
I want to keep Android (room 15) open but then I have to deal with this
 
Evening
 
@Reno People using socks to post in the Android room?
I've only seen it happen 2 or 3 times here in the Lounge. Today is one of them.
 
They used to
 
9:06 PM
What's going on?
 
Then the room got closed
 
wow
 
sbi
@TomW No, but I am running on instructions that do not fit the software I have downloaded... :(
 
Kenned is Sino?
 
yes
 
9:07 PM
@sbi That's open source for you
 
why is the android room private?
just wondering
 
Oh so @Kened is @Sino?
 
@ʞɔᴉN vampires
 
Hi again
 
I did Android programming for about a year. And I can understand how the situation is so bad.
 
9:08 PM
You talking about me ?!
 
lmao
 
sbi
Well. I did get a stock ROM flashed, now it fails even earlier in the boot process – by turning off the phone.
 
@nabijaczleweli What's the third one? @Sino, @Kened and ...?
 
@ʎǝɹɟɟɟǝſ I have 5 not 3
peace guys I changed my attitude.
Don't kick me again please.
 
@ʎǝɹɟɟɟǝſ Sino again, probably.
 
9:11 PM
what else do you do with your socks?
 
@jaggedSpire yeah there's 2 lol
 
@jaggedSpire ♬ MUMBLE PARTY ♬
 
@Griwes lol
 
@Griwes I for one am shocked.
 
9:11 PM
@Griwes lol
 
Chinese are unique
 
@Griwes god damn they're getting sneaky
 
aaaaaaaaaa make the pings stop
:P
 
Shocked, I tell you.
 
hi @Griwes!!!
 
9:12 PM
@Griwes Ping.
 
how you been?
 
Hi @Griwes
 
@ʎǝɹɟɟɟǝſ the second incarnation of sino
 
I expected they were hiding them in the mountains somewhere.
 
@TonyTheLion good
 
9:12 PM
@Griwes are you ok?
 
@Griwes :)
 
@TonyTheLion before
@TonyTheLion you
@TonyTheLion guys
@TonyTheLion started
@TonyTheLion pinging
 
I don't have sound so pings don't bother me
 
@TonyTheLion me
 
9:13 PM
@TonyTheLion :/
 
rekt
 
The plink is real
 
that's cheating
 
@Griwes Don't feel bad, he still has to click on the little number bubble.
 
@jaggedSpire get back to the kitchen
 
9:13 PM
@ʞɔᴉN Tirannosaurus rekt
 
hello how is porngrammar formed ?? thank you
 
@ʎǝɹɟɟɟǝſ REKTangle
 
REKTum
 
sbi
Why is everybody pinging @Griwes?
 
misdiREKTed
Not sure if that makes sense.
 
9:15 PM
> > Jon Clements comes into room
> > Everyone is making rekt jokes
 
One Direktion
 
@sbi he likes the attention :)
 
Why people are inversing pseudos like ʞɔᴉN and ʎǝɹɟɟɟǝſ ?
 
@jaggedSpire You could be making rekt jokes in Mumble.
 
@Nooble Or I could be making breakfast at 4PM
 
9:16 PM
oh man too bad they're voiec joeks because I'm textonly
 
> Children, is this really the way to behave?
 
I need food.
 
Get REKT
 
@jaggedSpire :(
 
@Nooble Food, I tell you.
I think I'm going to eat a handful of granola just to take the edge off.
 
9:17 PM
Just eat Nutella sandwiches is it that hard
 
Nutella <3
 
@nabijaczleweli I don't keep nutella in my apartment because nutella doesn't keep in my apartment.
 
nutella is french product ;)
 
Italian, actually.
 
9:19 PM
Last warning, if you don't stop posting crap I will kick you
 
sbi
One thing I should have thought of having at hand is a spare SD card. :(
 
Ok @TonyTheLion
 
FFS
this is bullshit
utter bullshit
 
@sbi I'm sorry for your difficulty, whatever it may be
 
Quelqu'un parle français ?
 
9:21 PM
Quelques personnes, oui.
 
gl::VertexAttribPointer(0, 1, gl::BYTE, gl::FALSE_, 0, nullptr); ---> gl::VertexAttribIPointer(0, 1, gl::BYTE, 0, nullptr); was the answer
 
sbi
42 mins ago, by sbi
Trying to update it to a new CM version, I just bricked the phone I want to give my wee one for his birthday. Tomorrow.
 
@sbi Oh man, that really sucks. :(
 
@Borgleader oh bby you need some love <3
 
> This user has been temporarily suspended by a moderator and cannot chat for 23 hours 58 minutes.
9
Well.
 
9:23 PM
rip in peace
 
@TonyTheLion <3 <3 <3
 
user3883753
@EtiennedeMartel tu viens de quel pays ?
 
I think I might be bad at determining avatars.
 
sbi
@jaggedSpire You tell me.
 
I thought Jon Clements had a cartoon ninja.
 
sbi
9:25 PM
@EtiennedeMartel Which one would that be?
 
@jaggedSpire thought that was that martijn guy
 
@sbi The guy who just came back with a new account (and the same name).
@Sino C'est écrit sur mon profil.
 
@EtiennedeMartel All 3 accounts that I'm aware of are out for 24 hours.
 
sbi
@EtiennedeMartel Ah, must've missed that.
 
@ʞɔᴉN shrugs
 
9:26 PM
1 min ago, by Sino
@EtiennedeMartel tu viens de quel pays ?
Oï.
 
Has to be all this fun on what was going to be a night off hey? :p
 
@JonClements Thank you. :)
 
hehe
thanks for helping out :)
 
@JonClements I was promised a blue name by Shog.
 
Agreed
 
9:27 PM
#Nooble2015
 
@sbi Also, he speaks French. How low can these people go?
 
How do you use `std::unique_ptr<>` when the resource is logical?

void init();
void cleanup();

using ptr = std::unique_ptr<?, decltype(&cleanup)>;
ptr resource(?, &cleanup);
 
get out
 
@villageidiot Hello. Please read our very special rules.
 
@villageidiot when resource is logical?!?
 
9:30 PM
@Borgleader init() doesn't return a pointer, and cleanup() doesn't accept a pointer argument.
 
@villageidiot Yeah, but what does those function do?
 
write a handle class
 
Make a wrapper class that calls them on ctor and dtor respectively v0v
NEXT
 
Also, why use ìnit` and cleanup when you can use a constructor and a destructor?
 
9:31 PM
@EtiennedeMartel they initialize and cleanup a logical resource. They come from an external C library I have no control over.
 
you can't change Deleter::pointer if it can't fit the requirements of NullablePointer
write a generic handle class
 
@villageidiot You are probably better off with a proper class for this resource.
 
@unordered_meow That's the code I have right now. I thought I might be able to eliminate some lines of code if I reuse std::unique_ptr<>, but for what I see that demands a pointer and a cleanup function that accepts that as an argument.
 
std::unique_ptr is for memory ownership mainly.
 
@nabijaczleweli what I answered to @unordered_meow
@ʎǝɹɟɟɟǝſ man you have to peek a better username. it's hard to @ respond! :-S
@ʎǝɹɟɟɟǝſ That's what I have right now.. But seeing std::unique_ptr can a cleanup function as a type parameter I thought I could eliminate lines of code by reusing it. Now I see it's tricky and maybe not worth the trouble...
 
9:35 PM
use arrows anyway if you respond to actual messages
if the resource you're managing fits the requirements mentioned there, you can use std::unique_ptr with Deleter::pointer being a typedef to your type
tbh though I'd just write a handle class
 
@unordered_meow reading that now
 
sbi
I got a full-blown boot loop now. Is that progress?
 
@sbi possibly
 
@sbi progress from no boot at all? Not only can it do the thing you wanted, it can do it repeatedly
 
sbi
@TomW Actually, I want it to boot into a GUI, and it can't do that.
 
9:40 PM
@villageidiot Aaaah.
But what do they initialize or cleanup?
A global variable?
 
sbi
This, among other things, advices to to flash CM 9.1.0 (twice). However, I can't find that here. Sigh.
 
@EtiennedeMartel Presumable. It's an external C library that isn't mine.
The cppreference docs for unique_ptr mentions nothing about NullablePointer ...
But it does make sense it should require that. Otherwise how would converting to bool work..
 
I don't think using unique_ptr is the right choice.
I mean, you don't even own the resource.
 
I think my options are to either stay with my custom resource manager class, which defines move and deletes copy; or, wrap the init and cleanup functions with a pair of functions that std::unique_ptr can work with.
@EtiennedeMartel ... well, that's the point of a resource manager, no? to manage the ownership. I must call init(), and I must call cleanup(). I'm not sure whether these can nest. But yeah..
 
@villageidiot Yeah, but what do init or cleanup apply on?
 
9:47 PM
@EtiennedeMartel ?
 
You're saying init returns nothing and cleanup takes nothing.
So what does init() inits and what does cleanup() cleanups?
 
@EtiennedeMartel okay why am I being so vague. What I'm doing is wrapping SDL_Init() and SDL_Quit().
 
Aaah!
Since those are library init functions, they should be done once per process.
So put a that in some scope guard in your main.
No need for unique_ptr wankery.
 
they don't even need to be movable
 
A library is not a resource.
 
9:51 PM
I call it a "logical resource". Something not concrete, but that still needs init and cleanup.
 
@EtiennedeMartel It most certainly is if it has global state.
 
like matching parens. init would +1, cleanup would -1, and there's no need for something concrete like a pointer to express the current paren pair...
anyway. thanks. i'll stick with the resource manager i have. i suppose the problem of a nice generic raii class to use is still unsolved and we have to create a custom one every time.
 
Well, you could have a class that takes two functions and calls the "init" in its constructor and the "cleanup" in its destructor.
 
"every time"?
write a generic one and you solved a problem
 
10:01 PM
@EtiennedeMartel Thanks
@EtiennedeMartel Usually resource handlers accept the resource at construction. They don't create it themselves. That would even simplify the code further.
Oh wait. No. better this way. :)
 
sbi
@EtiennedeMartel This is mine.
 
@sbi Hm, yours definitely looks better than mine.
 
sbi
@EtiennedeMartel It's from our toolbox. It had a few years to mature.
 
Yeah, I whipped mine in about 5 minutes.
 
sbi
Well, guess what? The damn thing now booted into the factory-provided system. Phew.
 
10:04 PM
@sbi how is deriving from boost::noncopiable better than deleting the copy functions?
 
sbi
@villageidiot We don't have C++11 yet. :(
 
what
 
sbi
In fact, I edited out the tr1::, but forgot about boost.
 
ah. it's one of those macros that handle all the things.
 
sbi
@ʞɔᴉN Embedded platform.
 
10:05 PM
oh
 
@sbi I know that feel. Our "legacy" version cannot support C++11 because one of our target platforms is stuck with GCC 4.2. So working on new code is all sunshine and rainbows, but whenever I have to do maintenance on the old stuff I cringe.
 
wait you compile your code on the embedded device?
 
sbi
@ʞɔᴉN for
 
it's actually interesting. when new standards come out boost becomes ever more useful, not the other way around.
 
so you just haven't upgraded your toolkit for C++11?
 
sbi
10:07 PM
Wow. The Galaxy S had some gaudy animation on startup.
 
@villageidiot I see Boost as transition tool for C++03 code bases.
 
@sbi Oh, did you manage to fix it?
 
@sbi that flashy blue animation?
 
sbi
@Borgleader Well, I kinda "unrepaired" it. Whereas it had an old CM version before (and I wanted a newer one), it's now down to Android 2.3.6. :( At least it's working.
@ʞɔᴉN It's rather colorful, actually. And has sound.
 
android.. 2..
lol I had to work with a device running android 4 and I thought that was ancient
 
10:11 PM
@sbi Hmm, well that's a start. You could always upgrade it later no?
 
sbi
No.
Now or never.
 
hmm
 
sbi
Once the boy has his hands on it, I can't pull it away, wipe all of his data, and update.
I have found CM 9.1 and 10.1.3 and am currently moving it to the phone's SD card. I believe the latter was what was installed when I started all this...
Mhmm. Oh. CWM is gone now, too. Too bad. I might have to install this again as well, right?
 
Ell
I remember doing mine was a pain, I didn't really understand it either :/
 
sbi
Sigh. It's already his birthday. And I also have to bake a cake tonight. And be merry tomorrow morning.
 
Ell
10:14 PM
I had to install clockwork something
Then from there I had to root the phone
Then do adb sideload
I would start the cake now, you can fix the phone while the cake is in the oven
 
Installing CM on my Galaxy S4 was super easy, I guess I'm lucky I got into the game late/with a non-ancient phone? :/
 
sbi
@Ell Nononono. You can't trick me into this. half of the cakes I tried to bake while sitting at a computer I had to bake twice. because the first one burnt.
 
I'm not even going to try to install CM on my Galaxy S5.
 
Ell
Set an alarm!
 
cba with all the possible trouble
 
sbi
10:17 PM
Well, the stock ROM refuses CM because its signature is wrong.
Sigh.
 
Ell
Write a cronjob which shuts down the computer
 
@Ell haha.
These pancakes are good with this cucumber. :)
Such a tasty breakfast.
I now have: vanilla beans, cinnamon sticks, buttermilk, heavy whipping cream, raspberries and kahlua in addition to the stuff I had in my kitchen before. :)
 
Ell
Man
I want to be in your kitchen
 
@Borgleader Nice.
 
10:24 PM
about fucking time i manage to get this to work
 
@Borgleader H e l l o, B o r g l e a d e r !
 
1
A: Books to refer for learning OOP through C++

StackedCrookedThe best way of learning OOP is by learning Design Patterns. I started out with the book Design Patterns Explained. However, many people recommend Head First Design Patterns, so that's probably a good choice too, even though it illustrates the concepts using the Java programming language.

 
Ell
Congrats
 
lol, i suck
 
sbi
What item in the "About phone" settings section do you have to click repeatedly in order to enable the Debugging section?
 
10:26 PM
@Ell :3
 
@sbi Android Version Whatever
I think?
 
sbi
Nothing works.
The "Firmware version" item comes up with a strange easter egg pic, nothing else.
 
@Borgleader Your designation implies a notion which is superfluous.
 
@StackedCrooked At least you don't anymore...?
 
maybe less hard now
4
 
10:29 PM
@StackedCrooked aand star
 
lol
did you watch the sabo movie?
 
not yet, haven't had the time
you?
 
I am a bit reluctant
2 hours...
 
I watched the first few minutes and got bored.
There was lot of recap.
 
10:31 PM
I read a description, some of it was even alternative to what happened in anime
which is just strange
 
@StackedCrooked :D
 
@StackedCrooked Well that's a bit embarassing
 
lol, yeah
 
great advise from stack overflow as per usual
 
I forgot I ever posted this. Noticed it because I got an upvote today.
 
10:34 PM
let me upvote that real quick as well
there; golden advice
 
15
Q: Where are the developer options? Android 2.3.6, SGH-T679

T. WebsterSamsung Galaxy Exhibit 4G SGH-T679 Android 2.3.6. I do not see the developer tools anywhere in the Settings menu. Is there something special needed to get it to show up?

 
sbi
@melak47 Thanks!!!
 
Oh hey, my weird two-level heap thingy worked (...allocating memory :D). Time to implement free.
Granted, this ain't a gigantic achievement, seeing how I've been writing this on and off for several months now. ;_;
 
What's a good talk about OOP? Like the real thing Cat usually refers to?
 
Design Patterns Explained was an interesting book. The author told stories about his past failures in OOP design.
That should have been a hint.
 
10:41 PM
Funnily enough, in the "test" file for this, I'm avoiding actually releasing the memory for the parts allocated explicitly... but I forgot the heap uses itself for internal allocations. lol
And that causes a "TODO" assertion fire at the heaps destructor :(
 
are you using static storage as well?
I wonder how software was designed in the 70s and 80s. Did they use dynamic allocation? Or was each component assigned a static range of memory.
 
sbi
@StackedCrooked What? Are you kidding?
 
Ell
I imagine the latter
 
@StackedCrooked There's some preallocated space used to bootstrap when it's not using a native vector for the dynamic internal storage - otherwise bootstrapping would probably mean a hell lot more of magic. Though now that you asked it, I wonder if it's possible to lock this thing down by using up so much memory it goes back into initial state... :/
 
Ell
Isn't that what happens now? Devices have a range of memory mapped
 
10:51 PM
I might need that bootstrapping hell after all :/
 
@sbi no. I'm genuinely stupid :(
 
sbi
Wow, the CM 9.1 boot animation looks like I'm on LSD.
@StackedCrooked Have you looked into the history of allocators? When they were invented?
 
what did you put in that cake dough?
 
@sbi Implying you know what being on LSD is like ;)
 
sbi
@Borgleader Well, now I do. :)
 
10:52 PM
I don't know when stack and heap were first used.
 
sbi
Ha! I got the damn thing on CM 9.1!
 
Congrats :)
 
@sbi :)
 
sbi
Still behind what I had in the evening, but better than the 2.3.
 
Ell
I thought in the good old days DOS would just give the program all of the memory
Then after the programme was done it would hand it back to DOS voluntarily
 
10:53 PM
> LISP in 1959 started a new technique called Automatic Memory Management known by the more popular term Garbage Collection (GC).
 
Ell
But I remember sonething about cabinets.
 
@Ell nope. there were the TSRs, DOS itself and the (UMB-loaded) drivers
 
@ʎǝɹɟɟɟǝſ Get on Mumble.
 
sbi
Damn, they didn't have an download and install menu item for CM updates in 9.1.
 
they do now? I always just download zips in the browser...
 
sbi
10:57 PM
"About phone/Cm Updates"
 
@sehe Will you be streaming today?
 

« first day (1778 days earlier)      last day (3167 days later) »