« first day (3100 days earlier)      last day (1853 days later) » 

12:00 AM
@Code-Apprentice I am. I've done a few. I work in heuristics so that's what I would use here but I think that throws them off-course. They said the pyramid is bigger than shown
 
@roganjosh also, they didn't specify clearly what the expected output is supposed to be
 
Nor should they, IMO. The whole task is a filtering mechanism
And, as I said, it's fine to submit a broken answer
 
I mean that Pawel only paraphrased the task here, so we are only guessing what the interviewer is looking for.
@PM2Ring yah, the general flavor seems like an AoC problem. PE came to mind first because it has two problems that are exactly the same: traverse a pyramid of numbers and do X.
 
I can only guess at the entire thing, but it's just to test how the candidate approaches a problem
 
yah, most likely
 
12:05 AM
If they're gonna post it on SO Chat, then I might personally ask for their perpetual motion machine
 
I suspect we are missing some details in this conversation that the interviewer gave him.
 
Always gonna be broken, but how did they tackle it?
 
such as find the path with the greatest sum or greatest product or something like that.
 
Luckily I don't have to do interviews :P
(luckily for me and probably the candidate)
 
I get to participate in interviews, but my contribution is usually just to be sure there aren't any serious problems I'd have working with the person.
at least so far...that might change when we do another round of hiring. I've been here the longest other than the owners.
 
12:09 AM
@Code-Apprentice Oh, ok. I've never worked through PE, but I have solved a few random ones, and they occasionally turn up as SO questions. And on xkcd, back when it was busy. But I did discover a really clever algorithm from PE for finding the sum of all primes less than a given n. That's really handy for testing algorithms that generate primes.
 
I sacked someone after 43 minutes. They were remote working and decided to interrupt their induction by catching a flight on the first day of work, 3 months after agreeing to work for the company I was at. They picked their own start date and decided to book a flight on the same day too
 
@PM2Ring I worked through over 50 of the problems but haven't done any for a long time.
 
I've never done AoC, but it does get discussed in here, and I sometimes watch from the sidelines, so I'm familiar to a degree with the tasks that turn up there.
 
Soo, I'm in favour of decent challenges before interview
 
AoC has some interesting exercises. I have attempted the last three years, but putter out when it takes me more than an hour to solve the problems.
 
12:12 AM
(this was after they demanded, behind my back, they get a $2500 laptop)
 
@roganjosh wat?
getting a flight for the day you are supposed to be at work seems like poor planning.
 
Not poor planning, exploitation
 
when did you find out? when they finally walked in the door?
I guess I'm assuming incompetence rather than malice...but I can see the later might be the case.
 
It got passed off to our India office and I got copied in to an email trail very late on where they were demanding health insurance for the whole family, relocation allowance, a mega laptop and then they interrupted my induction with having to get a flight
I shut all of the rest down before they started. I cut the Skype call when they said they needed a flight
It was a bad day for them. They just graduated and realised that you can't pick a start date 2 months after what was suggested and then fly off to see relatives for leisure 43 minutes into it all. I hope they didn't cancel the flight while I was getting them sacked, then it would really suck. Anyway, I do need to go to bed. rbrb again :)
 
12:36 AM
1 question
Python hosting
I am able to install flask, redis and everything in ubuntu, is it same in vps hosting with just command line
and no c panel
 
 
1 hour later…
2:04 AM
hello
anyone here?
 
2:52 AM
@roganjosh I finished my implementation of the mini-server for each of my vms.
I will show it to you tomorrow
thank you for all your help
 
 
2 hours later…
4:25 AM
@ksalf if you have a VPS then pretty much that's how you do it, yes ... you probably could install cpanel or something if you think that helps you manage the box but the point of the offering is pretty much that you get root on a box and take it from there yourself
and installing cruft like that increases your attack surface, so if you can get by without it, you probably should not install anything extra
obviously if the VPS uses a different distro, what exactly you can install on your Ubuntu box might differ slightly from what you can get onto the VPS for various reasons (different repos, other versions, different installation tools ...)
for example, attempting to install MySQL on a Debian box these days usually gets you MariaDB instead if you don't know how to ask super nicely
but that's an odd anomaly, per se
 
 
2 hours later…
wim
6:39 AM
@MartijnPieters I think your edits on this answer (adding a Python 3 syntax version) looks suspect. The __init__ signature of the metaclass is wrong. Is that a real REPL session?! I'd expect it to crash out as soon as class foo block exits.
 
>>> class foo_meta(type):
>>>     def __init__(cls):
That should never happen ^
 
7:02 AM
@AndrasDeak as expected, this has failed
Announcing the project up-front, the Engineering Manager now has to put a full case together for what he needs, to see whether they can do it in-house or put it to tender... for a project that their internal IT dept. started and abandoned 8 months ago
You couldn't write this nonsense
 
hard not to draw wide-range political parallels :P
 
It's fine, I don't blame you :)
Anyway, the executive decision, made by me, is that I'll just build it anyway
 
oh, that does remind me.
 
Guesstimating a month for something that's too functional for them to turn around from
 
Had to talk myself out of a claim in front of upper management that python should not be used because it is "open source".
I think i managed okay, but wondering, is there some good articles/other things you can think of that i can cite to say why the claim was bogus?
idea being open source means virus.
i was like wtf but..yeah.
 
7:14 AM
Well, I had the incompetent IT manager constantly say that they didn't want "the python" anywhere near their other systems but that's another level :O
 
@ParitoshSingh =0
 
yep, yep.. lets just say i had to compose myself really quickly in that meeting.
Fortunately, i think i managed ^^
 
do they also think that linux is a virus, since it's open source?
 
do any of them use android phones?
 
I mean, we use windows everywhere. So you know, i dont quite know :P
 
7:17 AM
@Arne these people usually use virus-ridden windowses
 
never mind that a lot of the systems with the highest demands on security and stability run with open source components at their core
@ParitoshSingh fwiw, windows is starting to develop some of their stuff in open source now as well
I remember azure cli, it was even pretty good code
maybe that will get the point across
 
Oh, i mean, im all for it. I stated open source stuff like python has enough critical mass that it may be more secure than many closed source stuff. There's more pair of eyes around, big organizations use python and have a vested interest in keeping the code safe. (i sadly couldn't think of any names. blurted out google - slightly feeling guilty about that) .
And i said that you cannot just willy nilly add code in, the master branch only accepts code in after scrutiny etc
I do not think the statements alone from me would change their minds though
 
IBM writes parts of their system-z mainframe drivers in python
 
@ParitoshSingh I suspect you will not change their mind. Is it blocking you?
 
The deployment of my current project would be on the servers directly under control of the person/people with that opinion. It will get bad down the line if i dont get them on board now.
 
7:23 AM
I was not allowed any form of git (it was Wim that pointed out I could get set up a repo file). They told me I just needed to save backups... for what is now about 60K lines. I just found another IT guy to set up gitlab for me
I don't envy you :(
 
oh yeah, we're not allowed to use github :P So i have started to use git on my local system and then manually copy files over to our share drive once in a while
I am not yet as hands on with it as i'd like, but i dont mind. picking it up slowly
 
alright, i have to do something else for a while, this chat is giving me anxiety
 
@ParitoshSingh this sounds more like they are thinking of the "viral" nature of the GPL license -- i.e. if you use this license for something, any derivatives will be forced to have the same license en.wikipedia.org/wiki/Viral_license
 
I suspect they made absolutely no consideration of licensing whatsoever
 
@ParitoshSingh try.github.io is a good resource for learning git
 
7:26 AM
oh nah, they were very clear in their terminology from what i could tell. that being open source means its prone to viruses
 
The interactive lessons are really nice (learn by doing)
 
I'm saying that's probably where the "virus" idea came from, no claim that they had any idea what they were talking about
 
@tripleee wishful thinking
 
If you work in places that don't have an established development department, you really do get this crap. "I don't know what you're talking about so I don't like it because it's dangerous. So no"
 
@shad0w_wa1k3r ooh, thanks. i'll keep it marked
 
7:28 AM
@roganjosh Quit?
 
Not a chance
The point is to blast through it, somehow
 
he's deep in the matrix :-p
 
I love working here, the team is awesome. you very rarely get to interact with the other teams, unless you're building something for them.
 
How come? Why?
 
I want the place to work. I don't like broken systems. Their systems are borked.
 
7:29 AM
Hmmm, I mean that sounds good, then then I would want more power to decide the course if they have no clue
 
I do have power in a way. None of the highest levels of management will talk to me. At all.
So I just do whatever I want
 
Hahaha I see :P
 
Which happens to be going around the factory asking people what they actually need to do their jobs, rather than their approach which is just to decide what system they want to implement and tell everyone that it's the solution to their problem
God forbid these guys had to talk to people on the shop floor. THE HORROR!
 
7:54 AM
Is this question similar enough to CV with a general answer for the CSV module? The fact that it's Pandas doesn't seem enough of a distinction to warrant another answer
 
imo yes, the OP is happy, the issue wasn't with pandas, but with how carriage returns are handled in windows according to your comments.
 
Gone for it
Woken up to more tabs than usual today. Slowly working back through them :)
stackoverflow.com/questions/55642125/… typo. Using conn.commit but not calling the function
 
user7437554
Hello over there guys, I'm with this question:
 
user7437554
How should I write a code to iterate over strings named string1, string2, string3
 
user7437554
each string is string1='some text'
 
8:04 AM
You need them in some kind of container e.g. a dictionary or a list
 
user7437554
I know a for cycle is needed but not sure about how to do it
 
Probably a dictionary. This sounds like you've created a "variable number of variables" and are discovering why it's not very practical
my_strings = {'string1': 'something', 'string2': 'something_else'} would be iterable and doesn't involve individual objects
 
user7437554
It worked with a list, thank you @roganjosh
 
A list is fine if you only have a few named variables that you're happy to add manually. Otherwise, you'll want to go with a dictionary
 
user7437554
Oh, I see what you mean now. I was thinking on that but then I left the question cause it seems too complicated for me
 
8:11 AM
What part are you struggling with?
 
user7437554
But in the dictionary I should write them anyways, isnt it?
 
user7437554
I guess I'll train a little bit more and then ask again, no worries
 
maybe :) In most code after getting to grips with Python will generate dictionaries for you. They can have 100,000's of key:value pairs, and nobody is typing that lot out :)
 
user7437554
ahaha nice
 
user3064538
can someone code review my spaghetti please?
 
user3064538
8:13 AM
0
A: How to insert large amount of numbers inside a number efficiently?

Borisimport itertools def gen_candidates(number, indices): # inserting at an index will make all larger indices off by one powers_of_ten = [10 ** (i + index) for i, index in enumerate(sorted(indices))] for power in powers_of_ten: everything_less = number % power number = ...

 
user7437554
I'll look some example though
 
my_dict = {}

for x in range(100):
    my_dict[x] = 'something_{}'.format(x)
Stupid example, but it's just to illustrate that dictionaries can be created in loops too, not typed out by hand
@Boris I don't think I even understand the question
"I then want to go through all possibilities and do an "if statement" to return the correct one." What is "the correct one"?
 
user3064538
I tried to make my code more understandable than the question
 
user3064538
he has a number and a list of indeces where he wants to stick a new digit
 
I've voted to close as unclear. IMO there's quite a jump to getting to a solution and the OP hasn't made any effort either. It's not a useful question for the future.
 
user3064538
8:21 AM
my code is the solution
 
user3064538
lol
 
user3064538
but I agree
 
Raj
Hi Everyone, Need some help regarding the file handling and RDFlib parser. I am trying to parse the .ttl file by using rdflib parser but the content in the file is separated by multiple special character such as semicolon, new line and space at the new line My code looks like this
 
To your interpretation of the question :P
 
user3064538
well
 
user3064538
8:21 AM
it's the right interpretation
 
user3064538
basically
 
user3064538
someone gave him a password and said "oh btw I removed the digits at locations 8 5 and 3"
 
user3064538
and now he's trying to brute force it
 
Raj
from rdflib import Graph
import pprint

#Entry = namedtuple('Entry', 'pdm address phone')


g = Graph()
g.parse("C:\python\example.ttl", format="ttl")
len(g)

for stmt in g:
pprint(stmt)
 
@Boris so an interpretation. No where does the OP mention a password.
 
8:23 AM
@Boris The code looks fine for a solution that operates on numbers, but working with strings would probably be much more readable and fast
 
user3064538
@roganjosh I'm giving you an explanation of his problem and how it might arise in the real world, obviously he's not literally hacking passwords
 
user3064538
and I'm trying to be a little humorous about it
 
Fair enough :)
I mentally discarded the question after the second read. It's my coping mechanism for the Python main feed kicking in :P
 
user3064538
there's something fun about trying to code a toy problem with the added challenge of it being written in freeform, broken english
 
user3064538
@Aran-Fey thanks
 
8:28 AM
a very minor improvement is that you don't need the enumerate if you just sort the indices backwards: powers_of_ten = [10 ** index for index in sorted(indices, reverse=True)]
 
question
my ide is complaining about me writing a bare except like this
except:
    with open(log_file, "w") as f:
        f.write(level1)
    raise
is there a better way to do this? i wanted to just figure out my current position during an iteration, including when keyboard interrupted
or if code stops for whatever reason
 
I'm curious whether it stops complaining on except (Exception, KeyboardInterrupt)
 
oh. it does actually
 
:P
Now you have a totally targeted exception handler. Progress :)
 
user3064538
@Aran-Fey that's not true
 
8:35 AM
isn't it?
 
user3064538
you're thinking about the general case of insert()ing multiple times into an array
 
user3064538
but I need the powers of ten to line up with the number
 
user3064538
err that didn't make sense
 
user3064538
say I have a number like 11111 and I want to insert into 1 and 2 so it should look like 1110101
 
Oh yeah, you're right
 
user3064538
8:37 AM
10^1 and 10^2 would refer to the wrong place
 
user3064538
well
 
user3064538
10^1 would still be right
 
8:48 AM
@ParitoshSingh Just cite all the leading companies using Python. Even Steve Ballmer stopped making insane claims like that. If your senior mgmt are still that clueless and 20+ years out of date, it's easier to quit and find a less stupid company.
 
Stop quitting, guys :/
 
hello
 
user3064538
hi
 
The answer to these problems isn't just to keep packing up and moving on. People totally removed from this nonsensical crap actually rely on the company working for their livelihood. The fact that these challenges exist doesn't mean you just abandon the company to ruin
 
is this a correct python regex for 8 numbers followed by an _ and then 6 numbers ?
[\\d{8}_\\d{6}]
 
8:54 AM
@roganjosh Just for curiosity, what spec laptop?
 
user3064538
have you done re.DEBUG?
 
it is if you remove the square brackets
 
@smci Gosh, that would be a push to remember. It was an Alienware-type thing with a beefy graphics card for all their machine learning that they never did
 
@ParitoshSingh "He who knows not and knows not that he knows not is a fool; avoid him" as the sage old advice goes
@Joseph Please use r'' rawstring in regexes, so you never have to do double-escaping like \\d
 
In their list of demands (and they really were demands, like "it's totally untenable if I don't have all these things") they made the fatal mistake of saying "I could use my own laptop in the meantime". That gave me more than enough to cancel the purchase order
Why it took nearly 2 months for me to be copied into that email thread is beyond me. They'd never have even started if I'd seen it all from the start. Instead I got copied in to like a 30-email-long thread of demands
 
8:59 AM
@smci can i have an example please ?
 
@roganjosh If you're talking about Paritosh's company, then it depends on how endemic and pervasive the stupidity is and how high up the mgmt chain. It's one thing to ask "is Python safe, we've never used it"; it's entirely another to claim "open-source is a virus", even if you live on a diet from enterprise salespeople.
 
user3064538
@Joseph r'\d{8}_\d{6}'
 
@smci They didn't. Arne said that as a joke
 
@roganjosh Oh haha then...
 
And seriously, people here keep saying "quit" to me here and I won't say that they're wrong, but it does dishearten me that people would rather just keep moving on to something that serves them rather than put up a fight to change things for others
 
9:03 AM
@Boris but my string is quoted with " and not '
does it make any difference ?
 
in python, no
 
The way tech moves now, these companies really will drown if someone doesn't at least try and make a change
 
@smci hehe, fortunately we're pretty happy to do what we like within our own team, and my immediate superiors are awesome.
 
Ignorance is not bad intent, in other words
 
@Joseph btw, a good place to test regular expressions is regex101.com. Here is yours, for example: regex101.com/r/TqErt0/2
 
9:04 AM
@roganjosh Honestly, i dont think so.
 
@ParitoshSingh the one I'm working for now will, for sure
 
I dont forsee these companies going out of work just because they're afraid of using python or some open source tool. The work still comes and goes
Ah i see i see
 
@Arne thank you , it's being executed in a YAML file
 
The guy that maintains their 1980's system will retire soon and you couldn't recruit anyone to maintain it if you tried. It runs the entire company, from HR to orders
 
Ah. the giant legacy system problem.
 
9:07 AM
With the best will in the world, I wouldn't be able to make a dent in that system. It's got to the point that making changes tramples things in the system for other people. It's a convoluted mess. The best I can do is try break functionality out into separate systems
But the point is that company loyalty just seems to be completely gone. The attitude of just moving on when facing pushback does frustrate me. No, fix the problem.
 
Its good that you take a stance in favour of fixing issues. At the same time, i wouldn't begrudge people for moving on. It takes a lot to get these things fixed, and can not always work out for the person trying to get things to change, especially if they themselves are not experienced or confident enough to know what they implement will be genuinely better or not
 
And, honestly, I couldn't give a yam if the management hates my guts while I do it.
@ParitoshSingh I could see that. All I need is that when I walk around the factory, the people who actually make the products have my dashboard on their screen. The people in the offices sit on their phones all day, but there's 400 people doing proper manual labour. It has probably employed half of the entire town at some point or other.
And I should say that I'm not overly confident that I can actually build the systems when I set out to do it. Only 2 days ago I looked back and realised my code base could be about 1/3 of what it actually is in a system that has ballooned. But it's as good as any proving ground to actually at least try
 
9:23 AM
@Joseph Like this?
 
9:52 AM
@PM2Ring I've improved my meta
 
 
1 hour later…
11:05 AM
"Please upvote and/or accept answer if you like it :-) (I work for internet-points :-) )" <angry fist>
 
that's a good sign to downvote
 
The answer is not wrong. A downvote might just be in spite
 
your point being? :D
 
:P
 
the friendlier option is to edit that out
 
11:06 AM
It's a comment. I can't do anything about that but report it, and that seems silly
 
first ever quiz I asked that people came with wrong answers even some not the actual output yet still being upvoted -.-
 
"question", not "quiz" :) A quiz is a competition that you sit in a pub doing in the hope that you win free pints from general knowledge.
 
doesn't matter im on phone blame autocorrect
 
Ha, I thought it was a genuine language error
 
nah, but English isn't my native lang, they will be errors somewhere ;)
 
11:14 AM
@AndrasDeak "Yessir, just waiting for the initial 15 min to pass" well, glad that all worked out nicely
stackoverflow.com/questions/55647639/… too broad. smci raised it once but now it's getting more answers
 
@roganjosh poof it's gone
 
Thanks :)
 
11:29 AM
cbg
 
cbg
 
11:51 AM
hey, sorry to ask an embarrassing basic question, but I have a nested loop and iterate over two quantities like that, with if statements, like
loop 1
>loop 2
>>4 if statements

and in them they assign a value to a new variable if the criteria happens, which is then used below, on the same level of indentation, but it's saying that i'm referencing the variable before its assigned, does anyone have a clue about what im messing up?
 
Hi. Nope, not without the actual code
Please see this before posting, though
 
oh well, thanks anyway, I wouldn't want to pollute the chat with my filth haha
 
@Phase it's not filth. If you have a question, don't be intimidated by the fact that there are some rules on how it should be presented. Personally, I'm not sat here waiting to pounce on people asking questions.
Nor do I think anyone else in the room is
 
modifying the stuff you are looping over is a common Python error but this sounds like a different problem
trying to modify a global in a function which hasn't declared it as global is also a common error
 
12:08 PM
 
you are supposed to hold for 48 hours before escalating here, I think this makes sense even if the question isn't yours
and yes writing 24 substantially identical functions is a bad idea
 
what would be a better method instead of 24 identical functions
 
1 function
 
like the first comment says, parametrize it and call it with 24 different sets of parameters
 
you have an example
 
12:20 PM
Taking a step back, why have you taken an interest in this question?
 
are you sure you are not the person who wrote that question? your questions echo theirs exactly ... and really, these are trivial basic programming 101 topics
 
@tripleee i am the author actually
@tripleee and no, its not a trivial 101 question
 
so there, you are violating the room rules, come back in 46 hours
 
And the reason for the multiple accounts?
 
no multiple accounts
i have never understood why chat has never echoed my top account name
 
12:22 PM
@Phase I assume you assign the value if criteria is met, but if it's not met, then you try to use the value that's not been assigned ;-) the other thing is you may be trying to use the variable outside its scope
 
@objectiveME WTF, you're right on that. How weird
 
ideally my so and chat should be the same name but somehow i changed the username for one and never changed for chat
 
top google hit for ... whatever I searched: stackoverflow.com/questions/27812292/…
 
@roganjosh true, it is weird
 
Would this be the right room to ask about Flask(-Admin)?
 
12:25 PM
Yup
Though I don't know that particular package
Others might, though
 
@tripleee hmm, so am getting thrown of chat for 46 hours for what exactly
 
You're not being thrown out of chat?
 
cabbage
 
The rules just say that a question should only be linked here if 48 hours have gone by
 
It has async_1() to async_6()
 
12:28 PM
cbg toon
 
So @tripleee how would i use 'parameters' to combine async_1() to async_6()
 
probably pass in a couple of callbacks to the generalized function, how long to wait and what to do finally
 
You wouldn't refactor it
It is a deliberate demo of different approaches. Pick one.
 
So with flask im trying to link it to this database. However, the database has column names with spaces in it, and the way i understand it you need to have the exact names as 'variables' which wouldnt be possible when there is spaces. I'll add a quick example
```
class thetablename(db.Model):
id of product = db.Column(db.Integer, primary_key=True)
id = db.Column(db.Integer)
```
So this obviously isnt possible but how do I work with column names that have spaces?
 
That shouldn't be valid python
 
12:33 PM
@tripleee Interesting approach, i shall try it
 
i know this but without the spaces it doesnt find the column
 
@mtbrands I'm not clear on the problem. I'd bet money that that code couldn't execute in the first place
 
I know it doesn't and shouldnt
 
Ok, so how was the DB created?
 
From excel via pandas to sql
 
12:36 PM
I'd like to say that I can't believe it would do that, but, well, pandas
You'll almost certainly have to rebuild that DB
 
So it's not that I can do that rebuilding in place in Flask?
 
No
This has absolutely nothing at all to do with Flask
Flask doesn't even have a DB engine
 
I'm just wondering why linking the columns isnt done via strings but via variable names
 
flask-sqlalchemy does.
Because it also has to be a valid Python class at the same time?
 
it is also using flask-sqlalchemy yes, sorry. Flask-Admin does that I think
 
12:39 PM
Seriously, the DB is borked. You need to fix that before anything else.
 
Alright, that's gonna be annoying later down the road but if thats the only way :D
 
Nah, it's annoying now but it will make life easier down the road
 
No I mean the output of the entire application needs to go back into Excel with the exact same structure
 
.replace('_', ' ')
 
Oh massive facepalm on my side
Sorry
 
12:46 PM
@tripleee: Thanks for the reply, sir.
One more about vps.
I have 2 flask restful API's , among others. On my localhost, I run uwsgi --ini /path-to-ini-file on command prompt. For 2 API, I run 2 such commands on different terminals.
How do I run those 2 on terminals in vps using ssh. Should I create a bin/bash script to achieve that?
 
\o cbg
 
cbg Mooing
 
1:00 PM
oh the developer survey results are out. Time to read and be disappointed
 
1:10 PM
@roganjosh you can and should flag that as "no longer needed"
@roganjosh 5 more minutes than necessary
 
My 2 minds stems from the fact that the "bullying" (mild, but I see it a bit like that) has already occurred and I really couldn't give 2 yams about the comments remaining. I just don't wanna push it into the review queue for mods.
 
that's what they're for
 
Yes, we are the most wanted language :D -feeling wanted-
 
@MooingRawr :'( noone uses Autocode anymore.
 
I had to google what autocode is.... :\
 
1:15 PM
Autocodes, roll out
 
Singer/songwriter Peter Noone uses Autocode? That's quite an endorsement. Good job, Autocode.
 
time to find a Python job now ! time to ditch this dying language of c#
 
@MooingRawr Don't feel bad, I had to google to find what they used on really early computers (EDSAC in this case). I first thought of FORTRAN and COBOL, but for * reasons they are still in use.
 
fortran is fast and not at as bad a language as people who don't know it make it seem like
 
@AndrasDeak Nice. Autocodes, object orientated transform.
@AndrasDeak Fair enough, and that one I do understand, although I presume in practice there's some calling of fortran by other code. I have heard that a lot of older languages are still in use primarily because they're legacy and noone wants to change or break things, even if they're insecure (like COBOL and financial stuff).
 
1:28 PM
COBOL yes, but I'm in computational science and it would be a pain to write what we do in C/C++
fortran natively supports complex multidimensional arrays of arbitrary size
(as well as intrinsics such as matrix multiplication but that's just bells and whistles)
 
Banks, banks need them too.
TBH COBOL and Fortran and what else language/modules like scipy, that are heavily used in complex math scares me
 
for what it's worth a lot of scipy is fortran ;)
25% fortran, 54% python according to github
 
In university, I met this Math major student, who was beyond what I could be in math. The way he describes how he sees math in his head was beautiful and so different than me lol
I didn't know that about scipy, I knew I was terrified of trying to "learn" it for a reason :P
 
yeah, math people, especially math people working with higher-dimensional abstract spaces have a very unique way of thinking
I can't even think in 3d
 
That shocks me
 
1:33 PM
Which part?
 
I remember being profoundly surprised at uni while I was answering my cousin's homework. I can make a Rubick's cube in my head and rotate it however I want, but my best friend (whose knowledge vastly outdoes mine) just can't
And yet, put mathematical notation in front of me and I just see nothing
 
when someone can think in n-dimension with ease and see numbers as just puzzle pieces, you know you've been outclassed .
 
Yeah. Imagine the solid defined by the intersection of a cube and a figure-8 rotated around its symmetry axis (an hourglass-shape). Well, I can't.
 
Oh, come on :P
 
I feel like, don't take this the wrong way, but seeing a Rubick cube in your head and rotating it feels more pattern recognition.
 
1:36 PM
But it's fascinating to me what these limitations are
 
@MooingRawr it's not strictly speaking a class, it's just different minds work differently. And training helps a lot.
 
I can imagine a solved Rubik's cube, and I can imagine rotating the cube as a whole. But if I try to rotate a side individually more than once, there's no way I could keep track of the colors.
 
Not pattern recognition. I'm also awful at solving them. But it was a GCSE question about adjacent blocks and their colours and I can just make that object in my head and rotate it as I choose
 
perhaps, I thought I was decent at math when growing up. I loved math, my parents always bought me math text book that I would read during the summer time, until I hit university math, and then I realized the statement of "there's always someone better than you no matter what" was true
except that "someone" was a lot of people :D
 
hehe
 
1:38 PM
@MooingRawr: You seem to be interested in Mathematics, Sir. Could you suggest me a nice calculus book.
 
No clue. :D I just like reading about Math, Wiki most of the time or any study papers, I suck at Math though. If you see PM 2Ring, you could ask em.
 
And really I probably can't keep track of the colors on a solved imaginary Rubik's cube with any degree of regularity. If blue and green start on opposite sides, there's no guarantee that after a minute of rotation they won't be adjacent, having moved around while their sides were on the far side of the cube.
 
@MooingRawr To me too, but then, that's probably more related to my go to method to solve the problem - more pattern recognition (move this when xyz are here, there, and there), rather than move x like this so it becomes y.
 
Yet I can't remember a name beyond maybe 5 seconds. A good 50% of names I have forgotten before the end of the first sentence they say after introducing themselves
^ not an exaggeration
 
Thanks, shall ask Pm2Ring
 
1:40 PM
@toonarmycaptain I do that a lot too. Pattern recognition, and then success through trial.
 
Even if I memorized that blue is opposite green, and red is opposite orange, and white is opposite yellow, I still might screw things up by somehow reflecting the cube so its chirality changes
 
For example, if there's a problem placed in front of me, I try to recall any other problems I've seen or solved that is similar or has pieces of the problem, and build a solution from there. Basic problem solving 101. If it's a completely new problem well time to poke it from all angles and see what happens. :D
 
@MooingRawr That doesn't necessarily mean I can't visualise it in a 3d rotating solid way, but I've never tried to do it that way.
 
Whatever the science, I guess there's just a portion of your brain that can only be honed on something, and that "thing" is determined in your formative years
 
might even be genetic (nature vs nurture etc)
 
1:44 PM
To me, when I try to think of a rubick cube rotating, I just remember playing with a rubick cube and rotating and remembering what I saw, and try to process a new image. I get messed up after the "5 turn"
 
I fell like it's my duty as a Hungarian to note that it's rubik with a k after Ernő Rubik, the inventor :P
 
In terms of maths (I'm in the UK so using the metric term) I'm totally hopeless without someone describing the physical phenomena. I just couldn't be a physicist because there's too much of the abstract, yet others excel
 
Oh. I actually never knew that... no wonder when I order Rubik cubes they are spelt with a K if I have to import them from Europe, I thought it was just Europeans being Europeans and Americans being Americans
That's what I love about reading Math papers and wiki entry, getting lost in math theories you have no idea what they are talking so you start to dissect it slowly, you can spend so much time not even noticing.
 
5 turns? Man alive. I struggle with visualizing 2.
 
@roganjosh *the correct term.
 
1:47 PM
I remember reading the top rubik players can imagine and visualize the whole solution and rotation before they even start... I wonder how they think.
 
@MooingRawr Have you seen the savant that visualises numbers as coloured shapes? He made them out of plasticine
 
No. you got a link or a name ?
 
He does ridiculous multiplications by pushing the shapes together in his head. They asked him to describe loads of numbers with plasticine and then he recreated it pretty much exactly months later
Sec, I'll find it
 
he entered the cheat codes
 
Daniel Tammet is his name
 
1:51 PM
alrightly I got something to read at lunch, thanks.
 
He's one of the few savants we can actually communicate with
He's autistic but can articulate what he sees/thinks
 
I can't tell whether everyone is thinking "look at this brainlet who can't track the position of all 54 tiles on a Rubik's cube after only five rotations", or whether they're thinking "Kevin has misinterpreted what it means to visualize a cube - when we say we can picture it after N rotations, we meant that we can sort of estimate how scrambled it would look, but we don't know the actual tile positions. But I don't want to disappoint him, so I'll stay quiet until the subject changes"
 
he's artistic so he can visualise numbers
 
I wasn't even thinking about the Rubik cube any more :/
 
oh Kevin, I think we might need to free you by defining what "visualize a cube" means lol
to me I have a cube in my head, 6 colours, i rotate, i have a new face that has new colors, i dont think of the 54 tiles individually i think of the sides and what the color of each side looks like
i guess im not super accurate this way in my visualization
 
1:55 PM
There's another savant that flew in a helicopter over Rome and can draw the entire city-scape from memory. Including the exact number of windows on each building. He cannot communicate well and apparently he's getting worse the more times he does it :'(
 
does the * operator only work in python 3?
 
no
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
>>> 3*2
6
but also no
>>> zip(*[(1,2), (3,4)])
[(1, 3), (2, 4)]
some extended unpacking tricks are missing
>>> x,*y = 1,2,3
  File "<stdin>", line 1
    x,*y = 1,2,3
      ^
SyntaxError: invalid syntax
 

« first day (3100 days earlier)      last day (1853 days later) »