« first day (2082 days earlier)      last day (2859 days later) » 

user559633
12:00 AM
@MarkoMackic sys.getrefcount(some_obj)
 
user559633
>>> a = "something that wouldn't be a constant"
>>> sys.getrefcount(a)
2
 
user559633
the 2 is probably a temporal thing because time of check
 
@MarkoMackic it's called a leap year
and only roughly every 4 years:P
@MarkoMackic and no
 
@tristan thanks, I hope that'll help
@AndrasDeak what no ?
 
follow the reply arrow
 
12:05 AM
Ah, That's cool feature :D
@AndrasDeak Like this ? :p
 
12:21 AM
@tristan you can only know the number of references? not were they are?
I found it now, gc.get_referrers might work for me
 
DSM
I'm coming in late to this, but __del__ is never guaranteed to be called.
 
In my code it only prints the object is destroyed.. I don't need it for cleanup, just to make sure I destroy my object, and it is garbage collected. But for now I'm resolving references problem, that's why it doesn't get destroyed, probably.
 
@MarkoMackic possibly, yes:P
 
But why do you need to make sure you destroy your object? If you need to ensure cleanup, use a context manager.
 
12:40 AM
Unless you're really, really trying to do magic stuff __del__ is pretty much never do be used
 
@JonClements I don't use it, but what if object stays in memory and I don't know it?
 
@MarkoMackic it won't stay around if it has no proper references to it
 
well that's the problem
 
what are you trying to do that is causing you to think it is still being referenced improperly?
cause right now this seems like an X/Y problem
also, cbg all
 
@MarkoMackic it's pretty much not if your code is good :)
 
12:43 AM
cbg :)
 
unless you're keeping global references around to a variable - it's pretty hard to keep it going
 
I'm trying to get it working, I have a function that calls the class that should be destroyed , it's actually Tornado PeriodicCallback that points to a function in class, so I think that's the problem
Solved :)
 
where's the rubby ducky theme tune? :p
 
12:54 AM
And yeah, thanks tristan, joe and everyone who helped me resolve the issue of the century :D
 
1:07 AM
rhrb people, good night
 
user559633
look into weakref too, may be of interest
 
@tristan yeah... but then you really need to know what you're doing - so I was omitting from saying it :)
 
1:53 AM
does it annoy anyone else here when someone calls them a "techie"?
 
2:19 AM
@JGreenwell I normally used to get called "uber geek"
 
wouldn't mind that
honestly, it might just be me, but anytime I get called "techie" (after checking to see if I'm wearing my Spock shirt and simply misheard) it seems like a derogatory
 
Wow - I was never sure if nerd/geek was more derogatory - depends on context though I guess :)
 
where I grew up, technology was king (of jobs and other things) so being a geek was encouraged
nerd not so much but you said geek :P ;)
 
where I grew up - it wasn't - so it could been seen as a way of saying "you're odd" :)
 
^ "freak", but that was high school and I'm thinking more professional environment
 
2:25 AM
oh - never did education after 16 - so had a lot of flack :)
 
?? 16 as in age, Tertiary grade level (and I'm really off on Britain's counting then), or 4 year degree added in?
 
16 in age
 
ah, I would not have guessed
actually, I've never had anyone outside of tech industry/academia call me an "uber geek/nerd"
 
got 10 A*'s and an E at GCSE... was supposed to do Maths, Further Maths, Physics, Chemistry, and a Business Studies AS at A level, but decided to just get a job and see how it went :)
 
and "techie" I've only encountered in industry (not yet in academia) in statements like, the last one I heard for instance, "I am not a techie, I spend my time on more important matters"
 
2:34 AM
Ugh - yeah - phrasing it like that does sound a bit degrading
 
That's about what my Dad did; Said he just "prefer getting my hands dirty to reading about it in books"
yeah, one should not do that to unpaid, volunteers with root access btw.
 
you're too moral to make "mistakes happen" though - I've been tempted sometimes though :)
 
but in general, it always seems to have that feel of "I am not a techie and therefore superior" when I hear it.
unfortunately, yes....his calls might not be answered so readily by the regular guy I was doing a solid for though
 
I think it's in some cultures/regions/whatever even showing the signs of you may be smarter than the average bear scares other people
 
hmm....I could see that, particularly if combined with a perceived notion of needing to be superior to someone you see as a subordinate
 
2:41 AM
I think the professional programming industry is lucky as in that it's one where mostly most of the people that can do the job, will happily take criticism and can discuss/debates (admittedly - I know I've got into some heated debates) - but at the same time - see all sides, and analyse - rather than take anything personally etc...
 
yeah, I think the problem is when we assume other people are sane like us
 
What makes you think I'm sane? I'm a ninja puppy woof woof woof!
 
or are insane in the same manner as us
 
yup - that one works better :p
@JGreenwell anyway - all going well for you?
 
getting ready to teach + job search + interviews and survey results for my last research project at school (for Masters) - so busy and good
 
2:50 AM
very pleased to hear!
Awesome - just found a track I was trying to find for a bit: youtube.com/watch?v=ZDeTu6rpN-4
 
and you?
other then track finding happiness obviously :)
 
3:50am - fixing a server cluster that someone screwed up - so that part is not so much fun
 
I remember those days, both fixing the cluster and being the new guy who broke it
 
ahhh got it - seems there was a change to the config that affected the subnet proxying so it couldn't load balance
 
isn't always a "change to the config which...."
;)
 
3:00 AM
ugh - okay - not got it... sighs
w00t - got it - slight alteration to the firewall and bingo
 
nice
 
probably my fault for not documenting stuff properly
 
I just realized you have one of my favorite quotes from The Doctor on your profile :) :) :)
 
I think it was a great speech :)
Should I be worried you're checking out my profile though? :p
I think youtube.com/watch?v=GoVLhUxhdSw was what turned me from "bah - he's okay" - to "okay - I can see this working" for Matt Smith
 
3:16 AM
nah, I usually just click on people's profiles to check for new questions on SO cause I'm too lazy to do the two-click new tab->favorite option
 
wat!? You mean you don't always have about 15 SO tabs open at the same time? :p
 
my kids love Doctor Who cause Matt Smith was approachable or lovable or just wacky enough for them to start watching - this reminds me of watching my first episode with my Dad where Tom Baker threatened Leela with a banana and how this show became "our thing" - so its a sentimental thing
I have 8 SE tabs open (no SO at the moment)
 
I think "The Long Song" and "Vale Decem" (Tennant's parting song) - are two of my favourite DW songs
Mind you - a lot of Murray Gold's stuff is great - but those two in particular...
 
wait until school starts and I'll have BeautifulSoap scrapping both SO and Mathematics repeatedly looking for cheaters with multiple tabs and me just watching ;).....actually, this is true
I like those a lot, "Next Stop everything" is another favorite of mine
and yes, it is known by all three of those names which I also find very Doctor-ish
 
user559633
3:43 AM
@JonClements :) figured that while he was convinced playing with del was a good idea, might as well read about weakref
 
@tristan kinda like giving someone a bazooka that's just trying to play with a shotgun - but okay :)
 
user559633
fair. i end up reading about parts of the language or how things work when i've convinced myself of the wrong way to do a thing though
 
6:12 AM
cbg
 
 
2 hours later…
7:49 AM
cbg
lol... Great Britain is shrinking
 
Given the extent of the racism and bigotry that's been seen in the last couple of days, here's hoping. (Also: NI isn't part of Great Britain, it's part of the UK. ;) )
 
Cabbage
 
pedantic morning cabbage
 
@DeltaWeb Doing calendar calculations "by hand" can be a good learning exercise, but there is certainly a simpler way to print a sequence of dates in Python. As Andras mentioned, look at the datetime module, in particular the timedelta class and the date or datetime class. Personally, I'd probably create a generator function that takes the starting date as an argument. But if you're not comfortable with generators you can easily do it with a simple while or for loop.
 
Cabbage!
 
8:01 AM
Do you guys keep date and time with different timezones in a single table?
I find it really useless to have different timezones
 
I'd suggest storing UTC.
But then I'm not a DBA.
 
yeah that's what I do right now
and then convert it to show to the user
 
@khajvah That sounds like a recipe for disaster. I'd keep all the timestamps in UTC, and store timezone data with each record (or wherever) if you need to handle multiple timezones.
 
a friend of mine asked me to make digital sun clock. must be fun
 
I've done a bit of sundial-related stuff.
 
8:07 AM
THe digital sun clock, is that with 3d printing?
 
:)
oh there are already equations
nothing left for me to do then
 
Here's a sundial I did in POV-Ray several years ago. i2.photobucket.com/albums/y43/PM2Ring/SundialM1S90.jpg You feed the POV-Ray script the latitude, longitude and current date & time, and it builds the sundial for that location, and puts the Sun in the right celestial latitude & longitude so that the shadows are correct.
 
nice
 
Thanks! FWIW, getting the pseudorandom grass to look vaguely realistic was a lot harder than doing the sundial. :)
 
lol
at first I thought it's a real box
it does look real
 
8:18 AM
The shadows are a bit sharp though, because my Sun is a point source. It should really have an angular size of roughly half a degree. But I figured that sharp shadows make it easier to tell the time. :)
 
can't find anything in play store. Will make one
also practice my mad android skilz
 
i need help anyone there
 
@sql_lover Please do not link your own fresh questions from the main SO site here. Give it a least a day or two. See the room rules
 
you need to put your stack trace in as text, not a screenshot, it's unreadable. I also suggest taking a look at the room rules in the top right.
 
8:28 AM
beaten to it :)
 
One of these days someone will explain to me why using screenshots for stack traces is a good idea, and I will refuse to believe them like a good Bayesian because my prior is literally 0.
 
cbg Robert.
 
Certification day in Bracknell. Half an hour's revision in Starbucks this morning. Now for four hours of exams.
 
Whacha getting certed in?
 
8:35 AM
I think some people post screenshots of text because they don't know how to copy & paste from the Windows command prompt...
rbrb
 
mornin'
Good luck BobbyG. Not that you'll need it ;)
 
@Withnail internal products
I should be fine, but I haven't had any time to revise before now. Partly because any spare dev time I spend on Python dev or Hackerrank :)
 
Meta is somewhat frustrating..
 
HTTPError: The HTTP server returned a redirect error that would lead to an infinite loop.
The last 30x error message was:
Moved Temporarily
 
@Technolohic27 does the page redirect to itself?
 
8:46 AM
@Technolohic27 Good for you, but what's your question?
We can't read minds here.
And even if we could read minds, we wouldn't use it to help you be lazy and rude by not posting a proper question, instead we'd have used it to short the pound.
 
Thanks for two snorts in two minutes Fizz
 
@poke go on?
 
Don't leave us hanging, we haven't left the EU yet.
 
Person having one answer on a slightly off-topic question on a tag wants to explain me (gold badge) when it’s appropriate to leave another irrelevant tag on questions.
Arguing that OP likely added that tag on purpose (because we all know that OPs always know what tags to use…)
 
medium.com/@ageitgey/… interesting looking post at ML from an intro POV.
 
9:01 AM
Ooh, nice
 
The maths problems with symbols erased all have the same symbols. Am I focusing on the right part of the article?
 
haha, that’s the one thing I actually paused for when scrolling through the article :D
 
I liked this: price = <computer, plz do some math for me>
My entire programming desire wrapped up in one sentence.
 
Bleh. I don't like writing algorithms.
Got an O(N**2) solution but I think it can be better.
I also miss itertools and collections D:
 
Add a delay so that the algorithm always takes one week. Ta-da, O(1).
 
9:11 AM
Time to break out underscore.js.
Got an array of nodes (js objects) and I need to create an array of edges (js objects) between nodes that share a property value.
 
@Ffisegydd hi, I am sorry. The first time using the chat.
@Ffisegydd
@Ffisegydd I would like to ask this:
 
You really don't need to ping me 3 times.
 
I typed this in python
url= 'http://www.magicmillions.com.au/'
g.extract(url).title
But I get the following error:
IndexError: list index out of range
Why is this the case?
 
And it may be your first time using chat, but you've spoken to other human beings before now I assume? Treat us as you'd expect to be treated yourself, with respect.
 
That doesn’t appear to be a question.
 
9:23 AM
@Technolohic27 without knowing what g is, how can we tell you why g.extract(url).title gives you an IndexError exception?
 
@Technolohic27 what's the exact error you get? Does it point to a line?
 
yup, it points to this
File "C:\Users\EDAWES01\AppData\Local\Continuum\Anaconda2\lib\site-packages\goose\extractors\title.py", line 61, in clean_title
 
Cbg!
 
@Technolohic27 please have a look at stackoverflow.com/help/mcve and provide a full MCVE.
 
@holdenweb i'm sorry g is g=Goose()
 
9:25 AM
Otherwise we're just grasping at straws, and trying to read minds again.
 
@Ffisegydd what am i lacking in my question?
 
@Technolohic27 well without a definition of the Goose class - which looks like it comes from a third-party library - that doesn't help at all, does it?
 
Please read the website and you'll see, but in short, we should be able to copy+paste your code and see the exact issue you're having. We don't know what Goose is for a start.
 
And PLEASE don't just paste the whole program here :-)
The issue is that there are many things that might be wrong with your program. By isolating the cause of the issue you remove spurious and/or confusing extraneous detail and allow focus on the real problem. It's another programming skill
 
9:35 AM
Heh
 
In Finland there is an official tool for petition to parliament...
... but you need to sign your petition electronically
so the numbers there hold.
 
@AnttiHaapala That’s a lazy edit.. didn’t even change the text nor the progress bar…
@AnttiHaapala We have that too in Germany, you need to sign up with your passport id
 
in Finland you must use your electronic ID card or your bank must authenticate with e-banking id.
though yet,
 
Yeah the petitions in the uk are a joke.
 
this is a petition asking for a referendum on EU membership
 
9:38 AM
You just need to put a valid address in IIRC.
 
got 20k signatures already, need 50k for a debate in the parliament
 
I can't read it, it's all in foreign.
 
just look at the graph
 
Can't read graphs unless they're in English.
 
@Ffisegydd sorry forgot that the dates are written with Finnish numbers.
 
9:39 AM
Exactly.
 
there is additionally a time limit of 6 months so that they could remove those petitions that'd never make it
 
@Ffisegydd valid UK address plus a valid email address. But clearly they are also logging geoip info, as they are invalidating a number of fake votes where geoip info clearly shows that multiple registrations to the same address are coming from very different locations.
 
@MartijnPieters actually you didn't need a valid UK address for that even
because you were required to be a British citizen
 
@MartijnPieters Yeah my ex-friend (he voted Leave) was blasting the petition about fraud.
 
so many were living in North Korea or Vatican...
 
9:42 AM
@AnttiHaapala yes, you can vote from a foreign location, and that does make it easier to game.
@Ffisegydd yes, there is some fraud going on there. However, not 4 million votes worth of fraud.
@Ffisegydd: there's a lot of anger about what happened around this referendum, and I fear the gap between camps is only widening.
 
Yep
 
The whole 'rematch' joke petitions are not helping here.
 
It's a pretty febrile atmosphere at the moment.
 
Thankfully our political leaders are trying to keep things calm and reduce tension:
Nigel Farage calls for "grown up attitude" from Brussels - then tells MEPs "I know many of you have never done a proper job in your lives"
 
I wouldn't ever categorise Farage as 'ours', not even in jest.
 
9:45 AM
in any case, it is so funny that the leavers still genuinely believe they've got any edge in the negotiations with the EU
 
Pretty delusional.
 
there is the sentiment that "UK wouldn't be punished" yes,
but it wouldn't get any exceptions either.
get the benefits and responsibilities like Norway, Switzerland, Canada or North Korea. No mix'n'match.
 
I hear Finland's nice, too. ;)
 
of course we've got our own delusional minister of foreign affairs who has started to promote "fixit"
 
Goodness. It seems stupidity is contagious.
 
9:58 AM
I’m curious what happens with Scotland though
 
he belongs to the eurosceptic populist party though
 
What, the Finnish equivalent of UKIP? That worked out well for the UK...
 
I really hope the Britons really decide somehow to stay in the union "and most of them happy" :D
 
^ while that would probably be the best, that would give out a terrible signal..
 
@Withnail in Finnish, "perussuomalaiset", who someone translated jokingly as "basic Finns"
now they've said that their name in English is "The Finns" :D
of course no one calls them by that name
 
10:04 AM
@AnttiHaapala To be honest, I think that's all we're asking for at this point.
 
@poke So there's two really interesting things, one of which is that the Scottish parliament (technically) needs to ratify the withdrawal of Scotland from the areas that are devolved and subject to EU law - the Sewel convention says Westminster can't/shouldn't interfere with those areas.
 
@IntrepidBrit it is not true.
@IntrepidBrit Norway and Switzerland are in Schengen.
so now you're joining Schengen as well?
 
...seems unlikely.
 
Indeed, but that's only if we remain in the EEA.
 
yeah, so quit :P
all of the delusions that mr Boris laid out in his recent writing were kind of not like that...
 
10:07 AM
Frankly if the SNP took on the consequences of veto'ing brexit then I'd be waving a Sturgeon banner tomorrow.
 
hehe :d
 
Well, ideally I'd like a General Election so I can hopefully vote in someone with more competence than Osborne OR BoJo
 
Osborne has said he won't be running.
 
Well thank yam for that.
 
Liam Fox has thrown his hat in.
 
10:09 AM
Every time Georgey O opens his mouth, the £ devalues. We need to sew his mouth shut.
 
Eh.
He fought against the referendum in the first place, so he gets a bit of leeway just for that.
 
shouldn't you choose the best leader, not the least worst...
 
May.
 
The current likely contenders form a sentence (in headlinespeak, anyway): Johnson May Hunt Fox.
 
Currently, with British politics in free-fall, the best leader we have is the Queen. #wishIwasntjoking
 
10:11 AM
Look at that photo. Don't you think we need a bit of Thatcher right now to sort stuff out? :P
 
I know right, in what world do we live in, that May is the Least Worst Choice right now?
I'd take just about any of them over BoJo though, he's a dangerous, dangerous flip floppy specimen of a human being. Will do literally anything that will advance the cause of Johnson.
 
I need to read telegraph. Surprisingly no one n my Facebook is not sharing links to it
 
@Withnail My greatest political success was convincing swathes of Edinburgh University students that BoJo really wasn't the best choice for Rector.
 
o/ nice work
tbf
i went to Glasgow, and we had Jonny Ball and Ross Kemp
 
10:15 AM
@IntrepidBrit here, have a star
 
but then latterly Mordechai Vananan, Charles Kennedy and Edward Snowden. ¯_(ツ)_/¯
 
Predictions for the no conf. vote in Corbyn? I'm thinking of opening a book on all the politics going on lately, we'll only be accepting euros though.
 
+1 for Charles Kennedy
 
Man, it'd be good to have him in his prime around now :-(
 
I know, right?
 
10:17 AM
@Withnail with respect to Sewel, I thought it was literally only devolved powers, and nothing to do with the EU. I thought the best the SNP could do is withold consent, not "veto"
@Ffisegydd I honestly don't know about about in inner mechanisms of the Labour party to have a hope in hell of predicting it. But even though I'd never vote for Corbyn-led Labour, I hope he wins the scuffle
 
Yeah, that latter bit's right. So the problem is that many of the devolved issues are Scottish implementations of EU law, right? So under Sewel, the UK government can't (again, technically ) interfere with the application of EU law on devolved issues; the counterargument, is of course that the EU treaty operates at UK state and inter-state level, so overrides domestic convention, and is a reserved power.
 
Yep - but if Holyrood can lawyer up, and makes decent headway, those protections would likely be stripped.
 
Oh yeah, for sure. But that plays right into the #Scexit hands. :)
 
@Ffisegydd He'll lose it, probably by a lot. It has no consequence per the rules, and he seems very firm on not resigning, so their next step has to be to put a challenger forward. Legal action over interpretation of the rules re: whether Corbyn can automatically stand looks likely.
 
your British parliamentarians.
 
10:23 AM
Such a split between the party at large and the Parliamentary PArty.
 
I wouldn't be surprised if he did not get the same mandate now that he did 9 months ago. Not willing to say whether he'd still win or not.
 
here, MPs must obey the party, not the opposite.
 
De-selection at the next general election isn't much of an incentive to behave, really, that's all we have here.
 
in Finland not many gets elected by their own votes alone...
 
@Withnail Quite probably
 
10:26 AM
... do against the will of the party majority and risk being not nominated again :D
 
@Ffisegydd The farce that this has descended into will obviously have some effect, but the membership has doubled since he became leader, and most of those will have been Corbyn supporters.
 
I'd vote for Corbyn led party, if I wasn't living in Scotland, where I'd vote for SNP, but then no one asked me :D
 
@ZeroPiraeus Or Tories who think that Corbyn will guarantee a Labour loss and so join to be able to vote for him, though I suppose you could count them as "supporters" in a sense :P
(I literally have friends that did that)
 
Most likely £3 supporters rather than members, and there are mechanisms for rooting that kind of stuff out, but yeah, there'll be some of it.
 
Ah yeah, I didn't know there was a distinction.
 
10:31 AM
looking at the British parliamentary democracy, I do not think at the moment there is something to be particularly proud of... :D
 
see also: most of the last 15 years.
 
I think British Parliamentary democracy is fine, it's just been hijacked.
 
Can't really say it's been hijacked. They're voted in, you may not like the fact that X, Y, or Z is voted in, but they're voted in democratically.
As a wise man consoled me with on the morning after brexit:
Jun 24 at 15:23, by Ffisegydd
10 hours ago, by J Richard Snape
Democracy is the worst form of government, except for all the others.
 
there are better systems than "choose between 2 local village idiots"
(1 needed)
 
10:48 AM
1 more
 
Yeah, but unfortunately all the prominent MPs in the parties are of a particular demographic, and folks like Corbyn are a rarity.
 
I wonder who brought that idea to those countries :D
 
@IntrepidBrit question for you: were there to be a Labour Party by the time the next GE rolls around, would you support an electoral pact between Labour & the Lib Dems (maybe with Plaid and the Greens too) to run the best-placed non-Tory? Do you think other Lib Dems would? Seems to me an enormous win from where you guys are right now, and the way things are going I can imagine Labour going for it too.
(excluding the SNP from this because why would they?)
I expect a deal on PR and Devo Max would be in there.
 
There's a considerably higher chance the conservatives will lose the next election because they're haemorrhaging support to UKIP in traditional tory areas, at a faster rate than Labour are. So it'd make sense.
 
10:57 AM
@ZeroPiraeus It's a good and difficult question. By far, my biggest problem with Corbyn is that he would NEVER press the red nuclear button, therefore completely invalidating our nuclear deterrent. 10 years ago, I wouldn't have cared that much. Then Georgia and Ukraine happened...
 
hmm?
 
"Nuclear deterrence is a far less persuasive strategic response to a world of potential regional nuclear arms races and nuclear terrorism than it was to the cold war"
 
I can see the argument (although it seems we disagree on nukes being any use in the first place). You'd likely get a Lib Dem Foreign Secretary, of course. Menzies Campbell springs to mind.
 
Crikey, is he still alive? I genuinely thought he'd passed away.
 
11:03 AM
Ah, but he's a Lord now.
It's been a while, but I suppose that's technically still possible.
 
Lol Farage telling MEPs that none have done real work, Schultz tells Farage to look into mirror.
 
Yep Antii. A pity no other nation has reduced their nuclear capabilities to match our disarmament. We got rid of all our air delivery "first-strike" capabilities years ago. So I'll seriously consider disarmament when other countries decide to catch up.
That includes our allies as well as our enemies.
I thought it was the PM who wrote the letters of authorisation to be places in the subs, and nobody else
 
It is, IIRC.
 
But one thing I REALLY like about Corbyn is the fact he actively wants to talk to our enemies. Keeps diplomacy back in the toolbox. I know the media likes to paint him as a traitor-kisser
 
As far as I know, no ex-PM has ever revealed what they actually wrote in those letters. I like to think that, when it came down to it, they were unprepared to commit to megadeath. Thatcher excluded, obviously.
 
11:10 AM
That cher <3
 
I know what I'd write.
 
Supporter of Khmer Rouge
 
Too right. I would have been fine if Corbyn had declined to comment, but chose the option of "don't launch the bloody missile"
Mind you, I'm sure the media would have found a way to drip feed another reason to not vote for him ;)
 
I'd write a shopping list for eggs and milk.
> Although the final orders of the Prime Minister are at his or her discretion, and no fixed options exist, according to the December 2008 BBC Radio 4 documentary The Human Button there were four known options: retaliating with nuclear weapons, not retaliating with nuclear weapons, the submarine commander uses his own judgement, or the submarine commander places himself under United States or Australian command if possible.
 
> Buy ten eggs. If they have milk, buy six.
 
11:13 AM
Yeah exactly.
 
cabbage
 
Huh, I thought it was merely "allied" command, not just NATO.
Which could have ended up in a hilarious, "well, NATO is dead. Our only living ally is Japan..."
 
Nice entry, Andras
Are you making pancakes?
 
> At the end of the Cold War the U.S. Fail Safe Commission recommended installing devices to prevent rogue commanders persuading their crews to launch unauthorised nuclear attacks.
the existence of sentences like this creep me out
 
11:15 AM
Also of interest:
> "the chief of the defence staff, if he really did think the prime minister had gone mad, would make quite sure that that order was not obeyed... You have to remember that actually prime ministers give direction, they tell the chief of the defence staff what they want, but it's not prime ministers who actually tell a sailor to press a button in the middle of the Atlantic. The armed forces are loyal, and we live in a democracy, but actually their ultimate authority is the Queen.
 
"The royal corgis seek the destruction of Sealand through nuclear hellfire, we are inclined to agree and are not amused by their antics"
 
@Withnail it was a reference to this
 
haha, hadn't seen that. :)
 
Brilliant
AAV is being particularly vocal
 
Is anyone good with vim here?
 
11:26 AM
@IljaEverilä ^
 
Goodish, I suppose. Unless you want me to write vimscript.
 
I have lines ending with windows line breaks (visualized by ^M in vim). When I yank and paste those, that line break disappears and appears to get normalized to unix line breaks. Is there any way to turn this off?
 
:set ff=dos
 
At least, I think that should do it. Surprised vim didn't automatically recognise the filetype though; it does for me.
 
11:34 AM
It’s a git interactive patch, so it’s likely mixed
 
@ZeroPiraeus I had the same problem too
 
@poke so you were screwed before already
 
not really?
 
some incompetent windozer used notepad? :D
 
No, we’re using Windows line endings deliberately.
 
11:35 AM
damn
 
Maybe open the file as binary (vim -b filename)?
 
It’s not a file I open, it’s a prompt from Git.
 
cbg, all. Bad day today, regression error on production :-(
 
@ZeroPiraeus Doesn’t work for this one.
 
@IljaEverilä I added a comment there about sqlalchemy-migrate vs alembic
 
11:37 AM
Alternatively, I would be interested in how to enter a ^M control character in vim.. I read Ctrl+V Ctrl+M but that didn’t work.
 
Ctrl+V Ctrl+M should work.
 
:D
@IljaEverilä I guess OP hasn't heard about foreign keys...
 
On Windows it’s apparently Ctrl+Q Ctrl+M but that just produces a line break (no idea which kind), but not a ^M control code appearing at the end of the line
 
@poke CTRL-V CTRL-M works on my Ubuntu 15.10 system just dandy - you on windows or something?
 
yes
 
11:43 AM
hmhmm
 
$ EDITOR='vim -b'
$ your_git_command
 
 
Sorry for that. Have you tried using the digraph CR?
That should be CTRL+K C R
 
Ohhh! That works!
 
As three separate keystrokes
:-)
 
11:46 AM
Nice, thanks!
 
2
Q: How to enter non-ascii characters using hex or octal codes in vi

luser droogI'm trying to write a golfing library for postscript. But it needs to be condensed itself. So I need a convenient way to type-in arbitrary bytes within mostly ascii text. I know this can easily be done with absolutely any programming language, but can I do it in vi? (:help octal was no help).

 
This makes my life strangely a lot easier.
 

« first day (2082 days earlier)      last day (2859 days later) »