« first day (741 days earlier)      last day (4207 days later) » 

user142019
12:00 PM
@sehe laaaaaaag
 
@thecoshman only you would know that
 
Aw man. First French, and now Dutch?
 
user142019
@R.MartinhoFernandes Inderdaad.
 
@WTP'-- I like how you match the number of vowels there
 
I could speak Portuguese, but I'd be talking to myself.
 
12:00 PM
@R.MartinhoFernandes Hey, we're not neeearly as bad
 
user142019
@sehe Of course, I’m not PHP.
 
@R.MartinhoFernandes What else is new, Marvin
 
I should speed up the German just to piss you off.
Wait, most of you understand German. I'm hopeless.
 
user142019
Learn Irish and talk to the pirate.
 
0
Q: Using try{...}catch(..){...} instead goto

Alexey MatveevIs it bad practice use try-catch like goto? For example, simple code try{ if(argc<2){ std::cout<<"no inputfile"<<std::endl; throw 1; } STARTUPINFO cif; ZeroMemory(&cif,sizeof(STARTUPINFO)); PROCESS_INFORMATION pi; if(FALSE==CreateProcess...

Oh boy.
 
user142019
12:01 PM
Or Flemish and talk to StackedCrooked. :D
 
@sehe oh because it is so obscure
 
@thecoshman No, because you're a coke addict.
 
@R.MartinhoFernandes of course
 
user142019
 
user142019
^ Coke addict.
 
12:03 PM
@WTP'-- no, that is a can of coke, not and addict
 
user142019
Crack Coca-Cola
 
user142019
Snow isn’t really snow. It’s just coke but nobody knows that.
 
user142019
Or maybe God’s jizz, like rain is God’s pee.
 
Ok. Time to shut the fuck up.
 
user142019
I agree.
 
user142019
12:05 PM
Time to get out of bed and make myself a sausage roll.
 
Ell
who uses octal anyway?
and what for?
 
user142019
Morons.
 
@Ell File access permissions
 
@Ell For chmod. That's it. That's the only justifiable usage of octal in the whole world.
 
Ell
ahh okay
I just couldn't think of a use
 
12:07 PM
@R.MartinhoFernandes was god cum too much for you?
 
But even then, most of the time you should be using +x.
 
Ell
That's all I use chmod for
 
@thecoshman What part of "time to shut the fuck up" didn't you understand.
 
Ell
Woah, ladies!
 
Ell
12:08 PM
You two :L
 
@R.MartinhoFernandes I never thought that would be the line
@WTP'-- he he he
 
What's up with that Pi GPU driver snafu ? I can't bother to look that up.
 
No idea what you're talking about. I haven't powered up my Pi yet. Too lazy to go out and buy a power cable.
 
Ell
@kbok what do you mean what's up with it? o.O It's the open source driver
 
@Ell It appears to be crap.
 
12:11 PM
@R.MartinhoFernandes ah, I thought you had one, I guess it would be pointless to ask what you are doing with it, other then paper weight :P
 
@R.MartinhoFernandes You should've bought the power cord with the pi. Less effort.
 
perhaps a door stop?
 
Ell
@R.MartinhoFernandes oh o.O It was provided by broadcom o.O
 
@R.MartinhoFernandes Well, turns out you actually know, do you ?
 
@kbok oooh, they open sourced all the drivers for the broadcom chip
AFAIK they are one of the first folks to do such a thing for this type of hardware.
 
12:13 PM
@kbok I'm only citing headlines. ;) I have a tab open somewhere, but have not read the contents yet.
 
I guess that's all there is to it then.
I though there was maybe something more than "1. Raspberry pi driver open sourced 2. Raspberry pi driver turns out to be crap", but I was wrong.
 
Sometimes I prefer to say I know nothing than say I do and then end up replying with "I don't know" to any question that follows.
 
potentially, we could start seeing some much better drivers that squeeze that little bit more power out of the device. Perhaps drivers suits that sacrifice certain aspects for gains in other areas
 
Sure.
 
Ell
internet suicide is a shame :/
 
12:15 PM
@R.MartinhoFernandes you could say "...but that's all I know" in the first place
@Ell who you referring to?
 
Ell
@thecoshman _why in the ruby community. Was a great contributor, but then mysteriously dissapeared off teh interwebs in like 2007 or something
 
@Ell oh right
 
user142019
@Ell maybe he/she died?
 
same with dom here. He came along, was helping out with kyrostat stuff, even brought us a domain, then vanished... along with our .com :(
 
@kbok It appears that what they open-sourced is nothing but a shim that passes messages back and forth to the actual implementation, which lives in firmware.
 
Ell
12:18 PM
@WTP'-- Don't think so. All traces of him were gone in like a day or something o.O
 
So, it's open-source, but you cannot make any improvements, or fix any bugs.
 
@R.MartinhoFernandes so nothing meaningful basically
 
user142019
@Ell lol
 
Ell
I think he even referred to himself as _why at conferences and stuff too
 
user142019
@Ell Well maybe he had a burnout?
 
12:18 PM
Is RasPi not powered up with a USB lead, then?
 
@MartinJames Yes.
 
Ell
@WTP'-- maybe o.O
 
@MartinJames it is
 
Ell
@MartinJames I'm guessing that doesn't provide enough power
but obviously I'm wrong :3
I thought USB could only do something like 500mA
 
@Ell it provides enough for the chip it self, but if you want to attach further devices, you need to do so through a powered hub
 
12:19 PM
@Ell Power comes through a mini-USB port.
 
@Ell only has to provide at least that much
 
user142019
@Ell maybe he got a new identify because his personal details were published?
 
user142019
> _why never publicly revealed his own identity while he was active as _why. Shortly before he left the public eye, an anonymous blog was posted, identifying him as Jonathan Gillette, and offering detailed information about his identity, including his schooling, his address, his membership in the band The Child Who Was a Keyhole, and the identity of his spouse. At the time, he did not make any statement on his being outed.
 
Ell
Who would do such a thing :O
 
user142019
/b/tards xD
 
12:21 PM
Oh - I got the impression from robot that there was some special cable.
 
@kbok I thought I could find a cheaper one locally. But then laziness won.
@MartinJames It's one of those regular AC->mini-USB charger things.
I have the one I use with my phone but it's... damaged.
 
@MartinJames well, due to the sheer number of options for USB, each one is special
 
Ell
I need a wall->usb lead
 
@R.MartinhoFernandes 'damaged'?
 
@thecoshman The cable is held in place by duct tape.
 
12:23 PM
Expecting my Pi to come some time net week, should be fun fun fun
 
@R.MartinhoFernandes Can you not just plug it in to your PC, or do you have an iPhone and so are always using the lead charging that?
 
@R.MartinhoFernandes oh that's perfectly fine :P
 
Xeo
@LucDanton As I said, I had the misconception about Python slicing from the beginning. :/
 
@MartinJames Plug it with what? I don't have an USB->mini-USB cable (and I am not sure if any of my USB ports provides enough power).
 
@MartinJames I think it draws more power then standard port provide, so idealy you would use one of the wall adapters
 
12:25 PM
Oh, OK.
 
@R.MartinhoFernandes is it 700mA it draws? something like that I think
 
Dunno. It's written somewhere in the papers that came with it.
 
user142019
A classmate has his hard drive mounted with duct tape otherwise it’d fall out of his laptop.
 
@thecoshman I have a relay board like that. Using the USB cable, I can only hold 5 out of 24 relays shut at the same time. For more I .have to plug in a wall-wart.
 
@thecoshman Yes, "5V, 700mA regulated power supply with micro-USB connector".
 
12:27 PM
@R.MartinhoFernandes called it!
christ, I hate phone interviews :S
 
TIL mini-USB and micro-USB are not the same thing.
 
I have to dread it till Tuesday :S
@R.MartinhoFernandes close enough to be really annoying
 
@R.MartinhoFernandes Pity - I have boxfulls of 5V, 2A regulated wall-warts, but sadly, with jack-type connector:((
 
@MartinJames soldering iron... sorted!
 
user142019
daknok% rm -rf *                                                  /data/db
zsh: sure you want to delete all the files in /data/db? (waiting ten seconds)





 [yn]? n
 
12:30 PM
Christ, if this goes well, I could be moving back to England... o_0
 
user142019
Z shell just saved my life. I was in the wrong directory. >.>
 
@WTP'-- lol lol lol
 
Xeo
@WTP'-- What does it do after 10 secs?
 
user142019
@Xeo ask yes or no.
 
Xeo
ah
 
12:31 PM
@Xeo Shoots him.
 
user142019
You can hit Ctrl+C if you don’t want to wait, of course.
 
Xeo
Heh
 
@WTP'-- Pro-tip: don't fucking rm -rf *.
Pro-tip: rm also works without -rf.
 
user142019
But not when you want to delete all directories also.
 
user142019
I need the -r flag anyway.
 
user142019
12:32 PM
And -f, I don’t even know what that does. xD
 
user142019
Force, but what does it force?
 
force
It forces the deletion.
Seriously, use fucking absolute paths when you use rm -r.
 
@WTP'-- That's why M$ made Windows file explorer deliberately slow - to give you time to think before hitting ^A and Enter :)
 
Xeo
@MartinJames Wat.
Also, the bin.
 
user142019
I sometimes select all files and then I double click. ;_;
 
12:34 PM
@WTP'-- that's the one you REALLY shouldn't use
 
@MartinJames ".......discovering files................."
 
user142019
Once I selected 10000 files and I double clicked. xD
 
".......preparing to delete.............."
 
user142019
Had to force shut down my computer.
 
user142019
It was fucking slow.
 
Xeo
12:34 PM
That's why I always make an alias that just moves stuff to a specific trash folder, not immediately deletes it all.
 
@WTP'-- Windows Explorer warns when you're trying to open many files at once. "Are you sure you are this stupid? you want to open all this?"
 
@Xeo just don't let the cat here you talk about using a recycle bin
 
user142019
@R.MartinhoFernandes Well, Finder just opens them. xD
 
Xeo
Not like I care what the cat thinks about that.
 
@WTP'-- I hate that 5-second delay on the power button - I keep the box on my desk so I can yank out the power cable.
 
user142019
12:35 PM
@MartinJames I have a laptop.
 
Xeo
@MartinJames wtf!
 
@Xeo but do you really want to sit through one his rants?
 
@R.MartinhoFernandes it does?
 
user142019
And yanking out the power cable a a terrible thing to do.
 
@WTP'-- Yank the battery?
 
12:36 PM
@MartinJames ಠ_ಠ
 
@R.MartinhoFernandes "battery"
 
user142019
@R.MartinhoFernandes I’d need a screwdriver. Too much effort.
 
Xeo
You can change a setting to make it instant-hard-shutdowm in the BIOS, usually
 
@WTP'-- Try it! (I don't know the exact threshold, so try with at least a hundred). (And make sure you're running at least Vista; I'm not sure if it was introduced in XP or Vista)
@WTP'-- Oh right. Crapple.
 
@WTP'-- ..depends on what horrible operation you have just asked the box to do.
 
12:37 PM
@LuchianGrigore What about it?
 
Xeo
@MartinJames If you're yanking the power cable that often, you're clearly doing something wrong.
 
user142019
I think removing the battery yourself even voids warranty.
 
You're doing it wrong.
 
Also, out here, the power frequently gets yanked anyway.
 
12:38 PM
@WTP'-- oh no! not the warranty!
 
@Xeo Not that often!
 
user142019
CherryPy + MVC is the best thing ever.
 
@MartinJames I thought that something that only happened in Portugal.
@WTP'-- Yeah. Nonsense.
 
@R.MartinhoFernandes but of course you have a UPS and geni
 
meh python for web
fanboys gonna fanboo
 
12:39 PM
@R.MartinhoFernandes Nope - we are at the end of a longish overhead line. Lightning, Canada Geese, rabbits, ice on cable, all lead to power outages :(
 
running a virtual machine off the new SSD is pretty quick. neat :)
 
Once I get my new place, i'll build a machine I think
 
@R.MartinhoFernandes I once had a simple chess engine where coordinates would be neatly expressed like 042 -> 044 (e2-e4)
 
stupid people with better money management skills then me able to save up to get shiny SSDs
 
@melak47 Absolutely - my Dell XP VM is faster than the box it was cloned from.
 
12:40 PM
@kbok what will it do?
 
@sehe You'll be second against the wall.
 
@thecoshman The same thing my laptop does, but faster :p
 
@thecoshman They suck at wasting
 
Spending. Not wasting.
 
user142019
How would I name an exception that gets thrown if no row could be found in the database?
 
12:41 PM
"better money management" probably means "not eating at the restaurant every day" :(
 
user_not_found
@WTP'-- Return an empty set of rows?
 
@WTP'-- throw std::runtime_error("no row found")
 
NoRowCouldBeFoundInRadeksDatabaseException ?
 
user142019
@R.MartinhoFernandes it’s a findOne().
 
@WTP'-- throw y_u_no_has_row
 
12:42 PM
E_UserCannotType
 
user142019
@thecoshman I prefer a strongly typed error.
 
@R.MartinhoFernandes Why so aggressive? It's not like I did actually use it like that. I actually had proper operator[] and a 'coordinate' tuple type. (I did consider benchmarking replacing the tuple with a bitfield implementation. Don't remember whether I ever did)
 
user142019
class EntityNotFound(Exception):
    pass
 
user142019
meh.
 
RTTI abuse
 
user142019
12:43 PM
Python.
 
@WTP'-- still, not finding any rows is not an error per-say, you just return no rows of data, like @R.MartinhoFernandes said.
 
abuse.
 
user142019
@thecoshman I could return None.
 
@sehe I don't like binary nor octal literals, so I just shoot down any suggestion of their usefulness. Sometimes I do that rationally.
 
user142019
So either return a User object or return None.
 
user142019
12:43 PM
But I prefer exceptions.
 
@thecoshman If it's a findOne thingy, an exception seems ok.
@WTP'-- Different usages.
 
Binary literals very useful, but octal?
 
@WTP'-- That would not normally be an exception, right? Otherwise, it depends on the context: if you were told to query by 'ID', throw InvalidArgument("ID"), IllegalData, DataNotFound, EntityUnavailable, InaccessibleData
 
@WTP'-- put it this way, you have a bowl of fruit, I ask you give me all the apples and pears, you give me 3 apples and a pear. I ask for oranges, you give me nothing. You don't go storming out the shop crying
 
@WTP'-- If it's a function to retrieve something that exists, throw. If it retrieves something if it exists, return None.
 
12:45 PM
@R.MartinhoFernandes well, depends on his situation really. the DB interface should not be upset by returning no rows.
 
user142019
def find_by_username(self, username):
    row = self.db.find_one({ u'username': username })
    if row is None:
        raise EntityNotFound("No such user.")
    else:
        return self._user_from_row(row)
 
@R.MartinhoFernandes Well, chmod is not a usefull use. You can have literals, UDLs, things like MOD_UX | MOD_UW | MOD_UR | MOD_GRWX (constexpr or enum, not macro, of course)
 
@thecoshman It should if it was supposed to have it. Consider what happens if instead of zero rows, there are two.
What would find_one return?
 
@WTP'-- Fine for my taste
 
@WTP'-- are you wanting to test if this user exist, or should it already exist?
 
12:47 PM
@thecoshman no; only an dopey piwate would ingest cocaine instead of snorting it
 
user142019
@thecoshman well, I want to return a user object with the given username from the database. But if no user is registered with the username, it should return an error in one way or another.
 
Xeo
@LucDanton: We might have tackled the indices generation for the slicing the wrong way anyways. The mapping is done way too late (directly before accessing the tuple), which causes all kinds of problems to make generate yield the right indices. It'd be mighty easier to map both indices in FromTo right at the beginning and not bother with negative indices generation.
 
@sehe Dammit, I'm using dirty argumentation tricks here. Mentioning chmod gives me enough momentum to ban all the other usages. Then when that is accepted I can get rid of that single usage by mentioning decent alternatives.
 
Xeo
@Cheersandhth.-Alf: You can't write auto const&&
That will only bind to temporaries
 
@WTP'-- but is the no user case expected or not? if it is a regular expected outcome, you should return None, if not you should continue using an exception.
 
12:48 PM
> QObject lethread;
 
@Xeo Since he's not currently around (AFAICT), you might want to spell @LucDanton out completely, I'm pretty sure otherwise the plink mention won't work
 
le thread
lol
 
#define LuckyStrike 0777
 
@sehe Three characters is enough.
 
@Xeo You can write it. On paper, preferrably. Then, toss it
 
12:49 PM
@Xeo auto const without the &&.
 
@WTP'-- it doesn't really sound like an exception to me. You should either return the user that matches, or nothing. If nothing is returned, present an error message or what not. You don't need to throw exceptions for this.
 
Xeo
I wonder if both Luchian and Luc get pinged when you write @Luc
 
@R.MartinhoFernandes Not for offline mentions. Makes no sense. Otherwise, Luchian would be notified as well!?
@Xeo My point. They don't. Luchian will have been plinked, possibly, because he was online. However, Luc wasn't
 
Xeo
@sehe I meant generally, when both are present
 
@Xeo You might try it. I don't know (due to "simple things are more likely" I'm inclined to think both will get plinked)
 
Xeo
12:51 PM
@Cheersandhth.-Alf You might aswell ditch the auto then. I wrote it that way to make it generic for all kinds of maps.
 
@KillianDS ^this.
 
@sehe I get plinked by short names when I am not on... but I leave this thing logged in all the time, so I think this is a moot point
 
@thecoshman Not a moot point. Just: no point, since it is irrelevant. Go back to fetching peaches from the fruitbowl
 
afternoon gents
 
@Xeo if they are both on, they do. That's why Cicada dropped 'dead', she was fed of people trying to get the puppy and getting her as well
 
12:52 PM
@sehe And bring me one.
 
@sehe wouldn't mind a nice peach right about now
 
@thecoshman Explain that to your aspergian
 
@sehe o_0
 
@Xeo i think of auto as a means to reduce verbosity, not anything mroe
 
@Cheersandhth.-Alf agreed
 
Xeo
12:55 PM
@Cheersandhth.-Alf I think of it as a means to generalize code, next to its function of reducing verbosity.
btw auto const* might have been another option
 
@Xeo hear hear. It takes some of the tedium out of meta programming
 
Xeo
And I really don't see why you'd specifically want a const-pointer? Because that's what auto const would yield (same with a theoretical auto const&& -> MyClass* const&)
 
@thecoshman An example where you cannot pass everything in the constructor: Mutual dependencies between two objects. (Note that I didn't say a good example)
 
12:58 PM
And there I realised that I hadn't scrolled for a while, sorry.
 
http://stackoverflow.com/questions/13087292/leveraging-python-for-improving-productivity-in-c-based-desktop-application
Kill..
 
@Xeo no, an iterator isn't necessarily a pointer. plus (if we're in nitpick mode) you then meant auto * const. anyway, i think it's sound to be explicit about things, so that code can be understood without too much analysis. i think, when code is massaged so that it's "plug and play", then its purpose and working is often so obscured that the reuse suffers. then it sort of defeats the purpose...
 

« first day (741 days earlier)      last day (4207 days later) »