WTF Bites
-
Ah... If only we had smarter editors:
-
If we could all just use tabs so I can just do
:set tabstop=7
if it strikes me fancy without getting into anybody's way...See, we're getting into semantic territory: two things that look the same to the writer but might have different meanings on different machines depending on their configuration, and that never works out because there's no incentive for people to do it right. Especially since the reason people use "plain text" is that it's as simple, "nothing hidden", WYSIWYG as it can be.
I say we abolish tabs, just like we (unofficially) abolished all the other ASCII control characters.
-
Ah... If only we had smarter editors:
Ooh, I'd been looking for that but couldn't remember the right words. Thanks!
-
@anonymous234 said in WTF Bites:
I say we abolish tabs, just like we (unofficially) abolished all the other ASCII control characters.
Like linefeed and carriage return?
-
@anonymous234 said in WTF Bites:
just like we (unofficially) abolished all the other ASCII control characters
Yeah, let's never use the backspace, enter, or return key ever again.
-
@anonymous234 said in WTF Bites:
If we could all just use tabs so I can just do
:set tabstop=7
if it strikes me fancy without getting into anybody's way...See, we're getting into semantic territory: two things that look the same to the writer but might have different meanings on different machines depending on their configuration, and that never works out because there's no incentive for people to do it right. Especially since the reason people use "plain text" is that it's as simple, "nothing hidden", WYSIWYG as it can be.
I say we abolish tabs, just like we (unofficially) abolished all the other ASCII control characters.
Nah, I think we just need to enforce correct use. Tabs are for indentation, spaces for alignment. Anything else should be an error, and the languages should make that detectable and enforceable.
-
@ben_lubar said in WTF Bites:
backspace,
Does not actually produce any ascii character in 99% of cases.
enter, or return key
E_SAME_KEY
-
@boomzilla said in WTF Bites:
If you're going to use spaces to indent: USE MORE THAN ONE PER LEVEL.
And in related work, showing a particular slice of data would use nearly 2,000 round trips to the DB. That's now less than 10.
ORM style.
-
@anonymous234 said in WTF Bites:
I say we abolish tabs, just like we (unofficially) abolished all the other ASCII control characters.
Like linefeed and carriage return?
Or (on virtual terminals) escape and bell.
Filed Under: I think formfeed works too but I don't know anyone who uses it.
-
Getting things mixed up here, Google.
-
@anonymous234 happy packets on the pipes ?
-
If only we had smarter editors
Next you'll be wanting moderators that do work!!!
-
@anonymous234 said in WTF Bites:
So the only remaining thing is p.stdout.read(), which there's a big scary warning telling you not to use
That warning is overzealous. They wanted to keep the complex rules—reading/writing is safe as long as you only
PIPE
one of the stream, just don't forget to read everything (if reading) beforewait
ing—and got it totally wrong.
-
@ben_lubar said in WTF Bites:
Yeah, let's never use the backspace, enter, or return key ever again.
Key != Character
ETA: And to elaborate, "control character" is kind of a contradiction in terms all by itself.
-
@ixvedeusi said in WTF Bites:
@ben_lubar said in WTF Bites:
Yeah, let's never use the backspace, enter, or return key ever again.
Key != Character
ETA: And to elaborate, "control character" is kind of a contradiction in terms all by itself.
Yes, ‘character’ is a bit of misnomer here. Still, the key codes are part of ASCII, and we didn't abolish them.
Yes, there are some other control codes in ASCII that did fall out of use like end-of-text, record-separator, acknowledge, shift-in/shift-out, device control 1–4 and more.
On a side-note: there is ‘end-of-media’, 0x19 (^Y), so how comes old DOS files were terminated by 0x1A (still used for end-of-input from terminal in Windows in it's ^Z form), which is ‘substitute’?
(In contrast, Unix uses ^D, 0x04, which at least makes sense as it is ‘end-of-transmission’).
-
Windows store is failing to update any apps (error 0x80073CF9).
If it were an isolated case, it would not be that big a deal, but the amount of mysterious errors I've encountered when trying to install/update apps through that store is staggering. How the fuck are they doing it? It's just download file, unpack somewhere, replace older files.
With Windows Update, at least they have the excuse that it's an old system and it has to deal with many complicated cases and all that, but there's nothing of that sort here.
-
@anonymous234 said in WTF Bites:
With Windows Update, at least they have the excuse that it's an old system and
it has to deal with many complicated cases and all that, but there's nothing of that sort hereit was very poorly designed, but this is a completely new system that seem to be designed by the same bunch of mentally retarded devs.FTFY
-
@RaceProUK said in WTF Bites:
@boomzilla said in WTF Bites:
I actually like using 2 spaces with SQL
I use 10 spaces with SQL; anything less just looks weird.
Two spaces makes conjunctions in the where clause line up nicely with each other:
select * from table where really_long_and_complicated_condition and another_really_long_and_complicated_condition
-
Two spaces makes conjunctions in the where clause line up nicely with each other:
select * from table where really_long_and_complicated_condition and another_really_long_and_complicated_condition
So do 10:
select * from table where really_long_and_complicated_condition and another_really_long_and_complicated_condition
:P
Then again, I prefer this way:
select * from table where really_long_and_complicated_condition and another_really_long_and_complicated_condition
-
So... At work we ordered 3 TVs + cables and a tablet. They arrived today.
Yeah. The tablet and cables had just been strapped directly onto the TVs. Guess how the tablet looked after that treatment.
It's almost the Atari logo!
-
@Atazhaia Incompetent courier aside, that's terrible packaging to allow that to happen.
-
@RaceProUK Apparently, the company we purchased from were too cheap to get a box for the tablet and cables, which would have prevented this incident. I have decided not to make any more purchases from them as they have gone absolute shite lately and lost all sense of quality, as well as posting blatant lies on their product sheets. (For swedish people: That's NetOnNet.)
-
Hmm, something seems to be missing from this "AC Power adapter Cable Cord for Microsoft Surface book, Surface pro 4, Surface Pro 3, Surface Pro 2 , Surface 2 Tablet and Surface Dock, 6-Feet"
Think it might be important?
-
@Benjamin-Hall What is the problem? It's a cable cord, isn't it
It's even compatible with other brands!
-
@Benjamin-Hall said in WTF Bites:
Hmm, something seems to be missing from this "AC Power adapter Cable Cord for Microsoft Surface book, Surface pro 4, Surface Pro 3, Surface Pro 2 , Surface 2 Tablet and Surface Dock, 6-Feet"
Think it might be important?
Or ... Fucking finally! They eliminated the massive brick!
-
That warning is overzealous. They wanted to keep the complex rules—reading/writing is safe as long as you only
PIPE
one of the stream, just don't forget to read everything (if reading) beforewait
ing—and got it totally wrong.It's in large part a consequence of Python being rather weak (at least historically, and definitely in its training materials) in its support for nonblocking I/O, without which it is “awkward” to handle more than one pipe at a time without threads. Now, this is one of the few areas where Python's threads actually work as intended and advertised, but even so it's pretty tricky. Also, even if you're doing everything right with pipes you can still get in a mess if the other side decides to switch to full buffering anyway (a common decision!)
I think the weakness on nonblocking I/O was originally a consequence of using the C standard library I/O code, as that's also weak. Doing it right pretty much requires rebuilding all that stuff from the real OS API upwards, and there are some bits which are very non-obvious indeed.
And damnit, I don't really want to know as much about this as I do…
-
[…] without which it is “awkward” to handle more than one pipe at a time without threads.
… but the warning does not say more than one pipe (as it should).
-
developer.android.com has broken search as of today. I even checked in incognito window to make sure it is not broken by some plugin or cookie, but it's still broken there.
-
… but the warning does not say more than one pipe (as it should).
Shitty warning is
-
So I'm looking at alternative places in Brighton that I might want to look at as a place to move to.
£22,000 per calendar month is a little steep, even for a 4 bed flat in a not especially central (though close-ish to the sea-front) location.
(Easier to post here than in Error'd even if it is technically so because pretty sure that's meant to be £2200 pcm rather than £22000 pcm. And if it's not an error'd, it's completely )
-
@Arantor
Maybe they forgot to mention the golden loo?
-
@Luhmann It isn't golden. There are pictures.
-
-
@Luhmann the pictures aren't of inside the bowl, but there weren't shit stains down the outside.
-
there weren't shit stains down the outside
serious indication of quality right there!
-
£22,000 per calendar month
Which is about $341,400 per year for one place in some shared accommodation.
a little steep
My Understatement Meter was broken by what you just said…
-
@dkf Technically, it's a 4 bed flat (which you would presumably let out as individual units), in the same way the next listing is a 9 bed flat for £6k pcm.
But there's no way £22k pcm is correct. I am English, so understatement is completely typical, of course.
-
which you would presumably let out as individual units
I was reading it as a quarter share in the flat. Which is even nuttier.
-
@dkf Given the 9-bed flat listing, I assumed it was for the whole thing, as even £2k for a single flat in the block would be prohibitively expensive, as compared to nicer, cheaper 2-bed flats for rent elsewhere in Brighton (which is what I'm looking for - a good 2 bed flat is about £1300/month)
-
@dkf flat hunting in the U.K. is the real wtf. Bathrooms and kitchens with carpet and everything gets painted a washed out lemon yellow. Just why. And all that for a ludicrous price.
-
@royal_poet Flat hunting in general is a .
-
-
@dkf That was the second listing on the page.
Comparable items:
£6k for a 8-bed student flat seems feasible.
-
£6k for a 8-bed student flat seems feasible.
Around £175 pppw? Or almost exactly £9k for one person for a year?
-
@dkf which means a profit of 2k per month assuming perfect tenancy for the year for that whole building.
-
@Arantor I'm in the wrong business. I'm too honest for my own good.
-
@dkf 2k profit per month with being able to drop 6k per month as a cost in the first place and you still have to get people into the building.
-
@Arantor Ideally, market to postgraduate students as they tend to be less messy and stay for a larger fraction of the year. Finite supply, but still should be enough to get yearly ROI of over 10%, which is frankly wonderful right now.
As I said, I'm too honest and too keen on being able to look at myself in the mirror without flinching…
-
Which is about $341,400 per year for one place in some shared accommodation.
No, the 22 grand is for the whole place, otherwise it's 1300 quid per person per week.
-
@coldandtired That's still astronomical. £22k/month even for the whole building is insane.