« first day (2140 days earlier)      last day (2800 days later) » 

10:00 AM
Good, good!
 
I am definitely an engineer, my major was industrial engineering
 
Ah - I didn't realise. Probably should have done some internet stalking before making assumptions.
 
which is exact opposite to theoretical CS :D
not that I get to do it at all
it always goes like this: "OK, we can't code, you can. Thus you will code and we will manage you".
 
Yes, indeed. I thought you were on a one man crusade to get people to understand big-O complexity and made the mental jump to "must be a frustrated CS graduate"
@AnttiHaapala yep - been there.d
 
@JRichardSnape Be more mercenary and charge a premium for out of hours support ;)
@AnttiHaapala You're not a very good salesman :P
 
10:03 AM
@IntrepidBrit that is my point. I mean, those are not me saying...
 
I am not given to mercenary at the minute. Prefer sleep, beer and time with kids. Maybe in that order.
2
;)
 
user6568562
@JRichardSnape You're describing* a train of living I would like to have someday : P
 
It's the beard.
 
It is surprisingly liberating.
 
Ah touche.
 
10:06 AM
Morning, purple @andras
 
@JRichardSnape still green to me
 
@JRichardSnape hey:)
 
I can't even write English.
 
Green here too still
 
He's green for me here, but purple for me chat.stackoverflow.com/rooms/info/6/python
 
user6568562
10:07 AM
@AndrasDeak Hey [ : How's the conference going ?
 
I know. I think it's something to do with settings in combination with the gravatar bug that Andras found. It's purple on this laptop, green on chromebook, purple on work desktop. As per the man himself, I Blame Caching.
 
@JRichardSnape btw, naturally I do care about that Big-O too... but only as far as the actual execution time is concerned.
 
Is it consistently purple for you everywhere?
I thought it might be something to do with image size
 
I still haven't seen purple anywhere except by taking that image and modifying query string.
 
@Ffisegydd No - green on chromebook.
 
10:09 AM
@Ffisegydd they're loaded through CDN
which lazily pulls them
 
Thank god we have a computer scientist to explain it to us \o/
 
Maybe browser difference? Dunno - some code somewhere has pulled an image with the wrong pixel count and probably hasn't refreshed a cache.
It's deeper than the browser cache and the same when I have different IP address, so - it's somewhere beyond my influence.
 
@Ffisegydd ....
 
The gremlins have taken over the machine.
 
I still haven't kick-muted anyone yet :D
 
10:11 AM
There's a first time for everything.
 
<3
loved the superhypermegaextended edition
 
Yeah good film
 
@AnttiHaapala I get you. It sounded okay to begin with...
 
@IntrepidBrit I can't do anything for 5 years.
@AndrasDeak WAT :D
I see purple in your chat profile now
 
10:18 AM
Can confirm
 
It comes to us all
I'm just a trend setter
You'll all have full Karl Marx beards by the time I finish.
 
I put forward the motion that green Andras is good and purple Andras is evil.
All in favour?
 
\o
touches face Oh gawds. The marx beard, it's already too late for me
 
Bloody liberals.
Go sit on the floor and tape it.
You and your beards and your lefthandedness.
 
user6568562
10:23 AM
Doesn't anyone take issue with the way Truecaller get their data ? From what I've understood, each time a user download their app, they agree to let the app access the user's contacts and send the data back to Truecaller's servers. But is giving y's number an x's right ?
 
I don't even know who they are.
 
@IntrepidBrit Early adopters will receive elevated positions in the New Republic ;)
 
Elevated positions? That doesn't sound very Marxist.
 
user6568562
Truecaller is an app that gives you the id of a phone number when its owner isn't registered in your contacts. And the way they get this data isn't by some genius way. They just mine the contacts of those who downloaded their app and share it to everyone. I don't believe they have the right to do that regardless of what the user agrees to.
 
Well they do, because the user has agreed to it.
 
user6568562
10:27 AM
Well, he agreed to let Truecaller mine data that isn't his own. I believe that's some bs.
 
That's an interesting distinction that I think you're misunderstanding. My Contacts List is my data.
 
@Ffisegydd Mmmm, indeed. Possibly I am not above self-satire...
 
Otherwise you'd have to get someones permission to add them to your own contacts list (irrespective of truecaller or whatever)
 
It's an interesting point, though. Do you implicitly get their permission when they give you their details? And is that implicit permission also permission for you to then share that?
 
user6568562
I see your point, Fizzy. But I give my phone number to x, so x can use it. Not so he can spread it to the whole world. Also, I would've understood if this service only works when user gets called, but it works when the user call. So I can get the id of random phone numbers, then go to Truecaller's website, erase my id from their servers and start stalking everyone that seems to have a girl's name
 
10:29 AM
I think once you've divulged the data, unless you specifically restrict them, you can't argue much.
 
You're probably right - I think you'd have to explicitly restrict the data.
 
It's murky though.
For example, if someone rings me at work asking for a colleague's details, I can't just give them to them.
 
user6568562
Fair enough. The solution then will be to push legislation authorities to specify what the x agrees to when y gives him/her his number.
 
Even if I know the person.
 
user6568562
Exactly !
 
10:31 AM
And even if I know the colleague would be fine with it.
But that's because it's written into our work rules.
It's not some intrinsic rule.
 
Yeah, I mean I think ethically what you're describing @random is dodgy, but legally it's probably at worst challengeable.
 
Oh yeah I'm not discussing ethics as I have none.
 
user6568562
I see both your points and they're valid, I believe. Bottom line is : "Watch your own back because no one will do it for you." Fine with me.
 
It's a bigger problem than Truecaller, really.
There are lots of services out there that do similar things.
LinkedIn asking you to share your Google contacts so you can find your friends? Whatever, they offer that, but then they have access to all of your network for analysis.
 
10:37 AM
@AnttiHaapala magic ;)
 
Especially if they can tie separate networks together for the same entity.
 
@randomhopeful hungry (otherwise so far so good)
 
@JRichardSnape I just assumed I would get a job pressing buttons in a lift.
 
user6568562
@Ffisegydd That's true. Facebook using your contacts to recommend you to other people you might know. Maybe when this ad revenues mania will blow over, corporations will calm down a bit about these shenanigans.
 
Depends,,, How tall are you... ? Also, I'd have to see you in a pillbox hat before making a final decision.
 
10:40 AM
"ad revenues mania". I assume by that you mean "trying to make a profit as a company that provides functionality"
 
8 mins ago, by Ffisegydd
Oh yeah I'm not discussing ethics as I have none.
 
<3
 
user6568562
Fair enough : D I just believe that if all these companies find another way to make profits, the web could finally breathe a bit.
 
10:55 AM
@randomhopeful what other ways?
 
user6568562
@khajvah I have no idea. But if there were one, I believe some genius who patronizes others to not be evil should be able to find it.
 
the only other way is donation based but that doesn't guarantee anything
 
user6568562
I don't believe that because a way wasn't found yet it would implicate its non-existence. Also I'm conscious that it's easy to be at my spot : whining and casting blame. I was just sayin'
 
11:18 AM
I don't know if it is against rules to ask questions like this but can anybody please guide me to a good resource(Book or Course) for learning python? And what should I learn python 2.7 or 3.X?
 
FWIW, I tend to hate advertisement as a funding mechanism, mainly because I dislike commercial advertisement at all. We have an interesting case study in the UK, with three terrestrial TV stations funded by adverts and two by a compulsory levy. I would say more people consistently whine about the levy than the ads. However, the fact they all persist has got to mean both methods are viable, I guess. And now, people voluntarily subscribe and endure ads on non-terrestrial in the name of choice
 
Cabbage
 
Definitely 3.
 
@vishurathore You should learn Python 3. And take a look at What tutorial should I read?. Do you already know how to program in another language?
 
Yeah I have moderate knowledge of C
 
11:21 AM
Ninja'd by the potions master.
@vishurathore Ok, the official Python tutorial should be pretty easy to follow - it was written with C programmers in mind.
 
I have also completed a course on python at edx.org(offered by MIT). I wanted to move on
It seemed to offer so little and python seems to be gigantic!
Learning python the hard way advises to learn 2.X . Could you please elaborate why 3.X?
 
user6568562
@JRichardSnape Yes, ads in cable channels. I agree with you. I wouldn't mind if the levy I was paying went to the BBC. Top quality programming! But you know, whining about bills is a biological need, it seems : D
 
@vishurathore We aren't fans of LPTHW in here. See sopython.com/wiki/LPTHW_Complaints
 
user6568562
Cbg @PM2Ring [ :
 
Hi, random. How's it going in Tatooine today?
 
11:25 AM
@vishurathore learn Python 3 because Python 2 will (okay, hopefully) die soon
 
k! so documentation is the way to go! anyways how's Learning Python -5th edition (O riley's)?
 
user6568562
@vishurathore Without getting into details, I would remind you that the argument made by the author about 2.x is : It will take ten years for Python 3 to be spread. Would you consider that point, valid ? I would really recommend Data structures and Algorithms the theory is right to the point and the examples are fulfilling.
 
@vishurathore we have a page for that too sopython.com/wiki/What_tutorial_should_I_read%3F
"Learning Python" is fine
 
@vishurathore To be fair, when LPTHW was originally created Python 3 was still very new, so there wasn't much support for it in 3rd-party libraries, and it had a few "unfortunate" features that have since been addressed. Apparently, a new LPTHW for Python 3 is in the pipeline.
 
user6568562
@PM2Ring Forgiving sun and calm streets. As good as it will ever get : P How's the magic land doing ?
 
11:34 AM
It was a nice day today, although a little chilly in the wind. Winter's not over yet, but spring is just around the corner.
 
ahh... there we go
this'll confuse people :)
 
@vishurathore: You should take a look at Code Like a Pythonista: Idiomatic Python. It was written for Python 2, but much of its information is still relevant for Python 3. Also check out Facts and myths about Python names and values, which was written by SO veteran Ned Batchelder.
 
Permanent?
 
Thanks everybody! I have decided to learn from Automate the Boring Stuff with Python
 
@Ffisegydd toying with it
 
user6568562
11:51 AM
@PM2Ring I always forget about the seasons in the southern hemisphere. Never ceases to amaze me. On another subject, you introduced me to Ned Batchelder's blog. It's an amazing read. I was glad to see that he's in SO
 
It's a shame that Ned doesn't post as often on SO as he used to. But I guess he has a rather busy life.
 
user6568562
@vishurathore Automate the Boring stuff is a very good book. Make sure you're reading the one online and don't limit yourself to just one book, and make a habit of verifying what you've been told in Python's reference guide
 
thanks, one last thing where should i practice are the exercises enough or someplace else like hacker rank or something?
 
Whatever you choose.
We can't answer that for you.
 
fair enough :)!
 
user6568562
11:58 AM
@vishurathore I'm the noobest of all noobs in here, and for that I'd recommend installing Python and using a simple IDE so you get to rely on yourself from the start [ : (But this is an opinion) For installing Python and troubleshooting errors that may appear to you, YT is great for that.
 
I'm currently using Atom(editor) and python in the power shell.
 
does str("123") waste considerable time?
 
user6568562
Text editors are great since the statements we're feeding to the interpreter are very basic. And a personal tip, take advantage of the Interactive Interpreter (When you type Python directly to Powershell) its tough love will make you write instructions over and over until you get rid of noobs' typos.
 
','.join(map(str, ["hello", 23, 34])) Anything nicer for this?
 
@khajvah It wastes a little bit of time, but not much. Calling str() invokes the object's __str__ method, and for a string, that just returns itself.
>>> dis('str("123")')
  1           0 LOAD_NAME                0 (str)
              3 LOAD_CONST               0 ('123')
              6 CALL_FUNCTION            1 (1 positional, 0 keyword pair)
              9 RETURN_VALUE
 
12:07 PM
good enough, thanks
 
Will people get jon'd by Ninja now?
 
@khajvah My guess is that any test you do to avoid calling str on the strings in the list will take as long as if not longer than just calling str on them.
 
If it's just a single function call that just returns, it's good enough
my cute one-liner is unreadable but it is so cute that I won't remove it
 
12:23 PM
@davidism We were just a couple of days too early: aur.archlinux.org/packages/powershell-git
@khajvah you could also do ','.join(str(_) for _ in ['hello', 23, 34])
 
wait is this Microsoft doing open source?
 
doubt there's any speed difference, though
 
Oh blech now my avatar's messed up for me in my profile:(
 
gravatar what have you dooooooone!
 
Yes:'(
 
12:26 PM
I've actually known some people to save their gravatars. I wonder if the internet archive could help you
 
I'll have to set my old one manually if this persists.... can also be that the old ones are stuck due to caching, and they've simply been changed...
@WayneWerner saved it a long time ago;)
It's also exactly reproducible from any old screenshot
 
csvdata = "\r\n".join(",".join(map(lambda x: '"' + str(x) + '"', row)) for row in self.data)
is this too unreadable?
 
Str formatting?
Why not?
 
basically, turns a list of lists into csv
 
Why not just use the csv module?
I mean, it is there...
 
12:32 PM
@khajvah Sure, but instead of that lambda, use '"{}"'.format
I assume that none of the items in the row contain double-quote chars...
 
import csv
with open('file.txt', 'w') as f:
    writer = csv.writer(f)
    writer.writerow(row for row in self.data)
I mean, that's what I would do if I wanted to write out csv data...
 
morning guys
 
and if I wanted it in memory I'd just use io.StringIO
morning cabbage @Ming
 
@WayneWerner I am not writing it to a file
ah
 
ninja'd ;)
 
12:35 PM
@WayneWerner You might as well pass .join a list comp rather than a gen exp, since it has to gather the result of a gen exp into a list anyway.
 
I find io.StringIO solution a little hacky
 
morning @WayneWerner :)
 
@PM2Ring nice thanks
 
i got a problem with python imports
folder1
	__init__.py
	- file1.py
	folder2
		- file2.py // << how to import file1.py from file2.py
how can i import file1 in this case?
 
@khajvah That's what files are for... or io.StringIO. Use them where you want to take advantage of a file API without writing to an actual file
 
12:36 PM
technically, I don't have a file
 
@Ming Do you have folder2/__init__.py ?
 
it gets the data from db, and throws a csv at the user
 
@khajvah Yeah, that's the point. You want CSV data, and csv.writer is a robust solution that's already tested and actually works. Like, AFAIK, in all conditions
 
@WayneWerner yes
 
@khajvah I'm a bit suss of that "\r\n".join. Unless you have to write that to a file opened in binary mode I'd be just doing "\n".join and writing it in text mode, letting the file IO routines handle the EOL conversion.
 
12:38 PM
Traceback (most recent call last):
  File "file1.py", line 1, in <module>
    from thinkbayes2 import Pmf
ImportError: No module named 'thinkbayes2'
 
@khajvah your "simple" solution is going to end out about as long as the csv module is anyway, if you actually want it to not fail.
@Ming from .. import file1.py, assuming that you're using python3
 
yes
if im in the same directory as the file, then it works
 
@khajvah Oh. Is this going to a Web page? In that case, you probably do want explicit "\r\n"
 
otherwise, different folder, it does not work.
 
@PM2Ring yes, it's a downloadable exported data
 
12:40 PM
@Ming I'd make a setup.py and just pip install -e . your module. Then it will work from wherever
@khajvah what web framework are you using (are you?)
 
@WayneWerner Django :(
 
Django probably can serve files from memory, e.g. BytesIO or StringIO
 
@WayneWerner it can. But my use case is quite simple in this case. There is nothing else in here to fail, so that one liner should be fine.
 
What happens when someone changes the data? Or you want to use a similar process in another workflow?
unless you have a contract that says you're going to get paid a million dollars if either of those things happen, I can pretty much guarantee they will.
 
@WayneWerner how to do the setup.py?
 
12:44 PM
@WayneWerner the structure is gonna stay the same no matter what
 
@khajvah If I had a dollar for the number of times that's been said ;)
 
well you can add/delete columns
i have fail-proofed that
but not sure what more could happen
 
(which I found by searching google for simple setup.py)
@khajvah What happens when you have 'hello","foo' in your data?
(or whatever quote character you choose)
 
yeah I guess that would fail
 
@WayneWerner thanks.
 
12:52 PM
@WayneWerner How about writer.writerow(self.data) ? :)
 
morning everyone
 
@WayneWerner how does csv module deal with this btw?
 
user6568562
@PM2Ring @WayneWerner I know this is an opinion seeking question, but I couldn't chase it away from my mind and would like your opinion on this :
Since I'm planning on learning every tool I will need in the future, and that I am my own deadline. Wouldn't it be better to rely on my own to build the modules I need for my web application and not rely on out of the box frameworks ? My design will be : JS for the bling - SQL or NoSQL to fetch and rest data - Python for basic arithmetic operations.
 
@PM2Ring ah, right. I guess that should be writer.writerows(self.data)
 
Howdy folks. Back to Selenium nonsense today... I setup a little virtual machine to work in , fresh copy of Ubuntu Mate (latest w
 
user6568562
12:54 PM
If you think that I will get my own answer once I'll fully understand what I'm talking about, it would be a fair answer [ :
 
Why re-invent the wheel?
Just use a framework.
 
@randomhopeful Well,you can use Flask if you're not concerned about getting all the bells and whistles. Then you can pick which modules you also want.
unless you're a glutton for punishment/really want to know how HTTP works
Django is very batteries included. But it's also opinionated. Flask has almost no opinions whatsoever
@khajvah properly escapes the quotes ;)
 
Are there any alternatives to Selenium for browser automation? I heard of "Mechanize" but I believe that project is dead or isn't being updated any longer.
 
user6568562
@WayneWerner @Ffisegydd I see [ : I'm not gonna reinvent anything, for sure, and probably would end up learning other people's code so I should assess my needs and find what's available for them.
 
@ToddLewden things like phantomjs are all the rage
 
12:58 PM
@WayneWerner I guess that's the best part -- you don't need to know how it is escaped by the standard
 
If you don't use a framework, then yes you will reinvent everything.
 
@ToddLewden nothing I would assume is worth it. If you don't actually need browser automation, there's requests
 
That's kind of the point of them.
 
@Ffisegydd no?
you can use libraries
 
@WayneWerner , saddly I am wanting to fill in fields, hit buttons, and return the results to automate the stability/accuracy testing of my company's web product. :| Selenium is just being a twit at the moment for me.
 
1:00 PM
a framework forces you its architecture, which can help for familiarity across companies, if you want
 
@FlorianMargaine if you look back through the conversatiom. randomhopeful seems to be talking about writing things themselves, building things from a low level.
 
@Ffisegydd ah.
 
I may have been over-generalising with the term "framework" though, I actually more meant "other peoples code" :P
 
doesn't mean he has to use a framework though, a library can be just as good
 
user6568562
@Ffisegydd I understand. I like what Wayne said about opinionated frameworks. I guess I'm still in PTS from Wordpress. But yes, you are right.
 
1:01 PM
@FlorianMargaine I don't think it forces you its architecture. At least not all of them
 
@ToddLewden ah. Yeah, well, selenium is what you want, then.
 
You can still learn plenty from using libraries/frameworks/whatever
 
@khajvah that's the entire point of a framework: IoC
 
@WayneWerner , ty for saving me from a wild goose chase
 
@randomhopeful I've only ever built "toy" Web applications, nothing serious, so I've never used any of the Python Web frameworks, so there's not much point asking for my opinion on this topic. :) But for anything substantial I suggest that it's a good idea to use some kind of framework.
 
1:02 PM
@ToddLewden n/p. Sorry you're having troubles with Selenium. I haven't used it much but I never had any problems using the chromedriver
 
@FlorianMargaine how does flask, for example, force?
 
user6568562
@FlorianMargaine Yeah, that's what I understood and saw. I'm not counting on being hired. That's the real incentive of my question, I don't want to adapt to a structure that didn't focus essentially on what I have in mind + All this is still new to me, so I'm projecting previous experience for sure
 
@khajvah forces you to use flask
 
@khajvah from quick reading: you need to respect their conventions
 
@WayneWerner , well the issues I am facing are odd ones. They aren't related to the script I wrote as it is a copy/paste from the SeleniumHQ site to test the basic functionality ( ensure it works type of deal ). The errors that are tossed at me are regarding it going into the webdriver/safari folder ... But I have it pointed to the Chrome one. Even designated the path manually in the script itself.
 
1:03 PM
@randomhopeful I highly recommend starting with Flask. It's simple and unopinionated enough that you'll start getting a feel for how all the things work.
 
So. Nyeh. Just going to retry on another virtual machine and see if I get any better luck.
 
user6568562
@PM2Ring Seeing your reply reminded me of your advice on not playing Zweistein and rolling your own untested ideas.
 
Morning cabbage.
 
I started with Django and there was a lot of confusing magic. Once I picked up Flask I started to grok all the things that Django was doing under the hood, re: routes and templates/views.
 
copyright law is confusing... you can use logos freely, right?
 
1:05 PM
@corvid No
 
@ToddLewden Might be time for SO question ;)
 
@WayneWerner , yeahhhhh ... I know.... I'm being terribly stubborn in attempting to circumvent the issues myself though for some reason.
 
@corvid definitely not. You might be able to use them with a note that they're (C) their respective owners, blah blah blah.
 
IANALBIRSSOHNWMIAE, etc.
 
@corvid absolutely, as long as you write ©orvid next to it
 
1:06 PM
@RobertGrant i guess the word framework is too broad :D
 
user6568562
@WayneWerner Thank you [ : ! You're the scout that saved me from taking a long road : P
 
I see people use logos to things like React on their youtube thumbnails. Does Facebook just not really care?
 
Was it a serious question? Definitely don't do what I said.
 
@ToddLewden Document your steps in your question. If you don't solve the problem by the time you've written a good question that someone can follow, then you should actually ask the question ;)
@randomhopeful n/p. I try :)
 
user6568562
@corvid There's no pattern for legal suits. And others are doing it doesn't hold up in court. Licensing laws may be tedious to read but they aren't complicated in their essence [ :
 
1:07 PM
@corvid They may have given explicit permission for specific use cases.
 
@randomhopeful: Antti would probably suggest Pyramid if you want a minimalist framework that doesn't get in your way. From what I understand, Flask gives you more features, and Django even more so. But of course the bigger the framework, the more you have to do stuff they way the framework expects you to. But as I said earlier, I'm certainly no expert on this stuff, and those opinions are almost entirely derived from hanging around in here. :)
 
bthinkforward.com/media-logos seems sensible (IANALBIRSSOHNWMIAE)
 
@RobertGrant oh my previous comment: s/framework/architecture
 
Sorry, I was directing that at corvid
And yes you're probably right, although Flask's architecture it forces on you is pretty minimal, and kind of no more restrictive than the http spec needs it to be
 
user6568562
@PM2Ring I see ! It's reassuring to know that I'm not alone in what I want to achieve. Once I'll finish up with the very basics, I'll start browsing the available frameworks with Wayne's, Fizzy's and your recommendation in mind [ :
 
1:13 PM
Hey guys! I am trying to generate a confusion matrix from my predicted model. It gives an error, list indices must be integers, not tuple. However, the classifier works well.

I am using scikit-learn. Can somebody pls help me?
 
Please provide an MCVE if you want help.
 
IANALBIRSSOHNWMIAE reads like you sneezing while typing
 
I Am Not A Lawyer But I Read Some Stuff On Hacker News Which Means I'm An Expert
 
https://gist.github.com/anonymous/2c42c47b3bad78d3c8088289eb26e69d
here is my machine learning classifier, which works pretty well. I am trying to read the model metrics. but line #16 is giving an error list indices must be integers, not tuple
 
@Ffisegydd I was wondering what the last part of that meant
 
1:17 PM
 
@tourist what is idx?
 
@ToddLewden I worked for that company in the past ;)
 
labels
 
I think I currently work for them
 
I suspect it's a list, and you think it's a numpy array. Or, it's a typo.
@tourist sorry can't help, that's not an MCVE.
 
1:19 PM
What are with the commas, e.g. ::downsample,:?
that makes the thing a tuple
 
@Ffisegydd let me check the type.
 
so unless your __getitem__ on that stuff accepts tuples, you need to remove the commas
 
@WayneWerner the training data is a downsampled
 
@WayneWerner Numpy arrays
 
Well, that's probably where the source of your errors are - one of those occurs where it shouldn't. I'm pretty much 100% sure that your traceback will tell you which one
 
@corvid Companies tend to be very protective about their logos. Sure, some companies are happy to see their logo plastered around the Web: they see it as free advertising. But generally, they have very strict conditions over logo use. Logos are a form of trademark, and trademark infringement is taken very seriously in most jurisdictions in the Western world. You can even get sued for using a colour from a logo without permission.
 
@tourist yep, idx is a list.
 
i am learning machine learning using kaggle projects, and i understood the whole code, just adding the metrics is bugging me.
 
I'd worry about learning Python before you start looking at learning ML.
 
o.o Does Uninstalling Python from windows via the Windows uninstaller thing remove installed modules too?
 
1:24 PM
Believe me, the investment will be worth it in the long run.
 
@Ffisegydd , What is ML?
 
Google is your friend, dude.
 
You say ML I think Merrill Lynch
 
user6568562
@PM2Ring True ! + Fizzy's link brought up a distinction I wasn't aware of : Trademarks are there to help consumers not to get confused. I see it as a valid demand that companies don't want anybody to make it seem they're part of said company, or in anyway affiliated to said company without prior explicit agreement.
 
@Ffisegydd i agree with you.
 
1:25 PM
Just googled ML and I got exactly that company lol
 
@Ffisegydd could you please suggest me how to fix this?
 
@tourist No. Your issue is that you've got a list but you're trying to treat it like a numpy array.
The best solution is to go away and learn more Python and practise your debugging skills.
 
@Ffisegydd : numpy.array(idx) would help?
 
I've given you the best solution, that's all the help I'm willing to give.
 
2 mins ago, by Ffisegydd
The best solution is to go away and learn more Python and practise your debugging skills.
^ this looks like solid advice
Applies to me as well. It's a bit like every time I read "Keep away from fire" on a t-shirt. It's useful life advice.
 
1:31 PM
Grrr, I'm getting less and less impressed with Flask. I cannot seem to get flask shell to work.
 
pebcak
 
And when I do get it to work, it breaks imports from when I actually run the thing.
Maybe I'll just go use PHP instead, I hear that's user friendly.
3
 
Never used flask shell
 
Have you ever played the game where you try to get exactly one google search result? Well "php user friendly" now brings back one link to this room.
3
 
@RobertGrant I'm just going through the official tutorial. It said to use it to create the DB.
 
1:35 PM
I think I've used it successfully in the past.
 
Dave Gormin would be proud
 
But then I'm a better programmer than you, and a better person.
 
@MorganThrapp what in the world is flask shell?
 
I'm just starring everything at the moment.
9
 
@MorganThrapp what's going on?
 
1:37 PM
@Ffisegydd Googlewhack
 
Ah davidism's here - he'll fix it! He swigs from a Flask daily! (Don't ask.)
I punctuate muchly
 
@davidism I tried what you sad last night about not needing PYTHONPATH set, and setting FLASK_APP equal to the __init__.py for the module, but it's still not finding my app.
 
@RobertGrant I thought swig was a drawing library. What does that have to do with Flask?
;)
 
This sounds very confusing. I'm pretty sure you can just pip install flask, write about 6 lines including imports and it starts working.
 
And when I go back to PYTHONPATH=., it gets confused about imports.
 
1:38 PM
@MorganThrapp That's OK, sometimes I get confused about imports, too ;)
 
DSM
Another day, another morning database problem, another offering of cabbage from me to everyone!
 
One day I'd like to visit NA just to try out firing a gun.
On a range, I mean.
Not, like, shooting Tristan.
 
DSM
Aren't there any in England? They practically invented a lot of the shooting sports.
 
Unless a picture of tristan was on those dummies.
 
Can't you just do that anywhere?
 
1:44 PM
There are air rifle ranges, and you can go clay pigeon shooting.
 
I did it in SA, it was quite fun.
 
Handguns are illegal here though.
I don't think you have shooting ranges that use actual bullets
 
Shot a desert eagle, that was pretty recoilicious.
I didn't get a second go on it when I said that.
 
Though apparently they do exist here orionfirearmstraining.co.uk
 
recoilicious: definition: make them wrists go lazy
 
1:48 PM
fun fact: they take you to shoot from ak when you are at school(10th grade) in Armenia
 
user6568562
Amazing military equipment manufactured in South Africa. Not that I condone any military action but I admire mechanical efficiency. Like this beast : Casspir
 
Join the Air Cadets?
Adults can volunteer too.
My kids have been out shooting several times.
 
@randomhopeful The Fort Smith PD has one of those (or similar)
 
Right there, if you're interested
 
1:58 PM
I just vectored out a drawing of a raven as "custom" art to replace it
 

« first day (2140 days earlier)      last day (2800 days later) »