« first day (1732 days earlier)      last day (3440 days later) » 

00:05
:<>
00:33
is there a way of doing something equivalent to appending a list with an indexed list value? like, dateFixField.append(fieldCol[index1])
I'm using index1 from a for loop outside of this like... for index1,date1 in enumerate(dateCol[1:]:
so index1 is an index from another list
01:02
cbg and @AF2k15 are you trying to append that while running through the first for loop (and those ensuring an index out of range)
ya I'm definitely getting index out of range
instead of indexing with the other list's index iterator, I can just put in a integer value and it runs, but with all the same 'fieldCol' values corresponding to the integer
dateFixField = []
for index1, date1 in enumerate(dateCol[1:]):
    if date1 in fieldDateCol:
        dateFixField.append(fieldCol[3])
    else:
        dateFixField.append(None)
instead of '3' though, I'd like 'index1'
a = ["one", "two", "three"]
b = ["foo", "bar", "baz", "blah"]

i = 0
end = len(a)
while i < end:
    a.append(b[i])
    i += 1

print(a)
Maybe you're missing that index1 runs from 0 to len(dateCol)-1, and not from 1 to len(dateCol)?
Try the above (otherwise you keep adding fields to the original list (meaning it will always throw an out of index list_a + list_b is longer than list_b by itself)
alright, I'll consider.... my mind is swimming right now :)
thanks
01:23
ya i goofed... fieldCol has a much sorter length than dateCol
doesn't matter
what happens if index1 is greater than the number of items in the fieldCol list though?
if you keep appending list 2 into list 1: list one must be longer then list 2 and will led to an index out of bounds error unless you set the loop to end when it reaches the original length of list 1
ic
hence the while statement
as the loop will keep interating over all the new values you added to the first list from the second
yep, can use a for loop and range but you would again need a end = len(list1) before entering the loop (and used that variable as the end number for the iterator)
or you can move to another construct (like a class or dict) but that depends on what your actually doing
I only used the while cause I saw the 3 in your original code and thought you were performing operations on the interator
a = ["one", "two", "three"]
b = ["foo", "bar", "baz", "blah"]

i = 0
end = len(a)
for i in range(end):
    a.append(b[i])

print(a)
^ for version
if python 2.x use xrange
01:32
ah ok
makes sense
@Robert I like the +1s will not speed it up (we already know lots of people want it).
hmm...my code does not need the i = 0; just forgot to delete from while loop version
02:04
Hello
I'm trying to use passlib on a web service but the only thing I manage to get is an internal error and my tail doesn't give me any info why
@SwiftRabbit we'd need a bit more info. than that? Also - please check room rules sopython.com/chatroom
hehe...tail
played the "confuse office workers with Linux command names" today
02:21
@tristan It's all relative...
02:36
@AaronHall special or general?
I - don't know.
I was thinking of my in-laws...
there's some training modules on assembler at work, so I'm wanting to do those. But there's also training on SAS... which is ugly as heck. Why did I want to do those? Oh yeah, statistics... I'd rather just buy another R book...
ohh...I haven't done assembler stuff in years
too many things to learn
03:03
Still around?
I was in the Ruby room, and saw they've created some rules, and their rules linked to another site, which I commented on on Hacker News Can you read it there?
yep, I would add that codes of conduct are also helpful for new members who, having no reference for the rules that should exist in a place, may not know how to conduct themselves - avoiding "smackdown the newbie" or "pawn the noob" situations.
and that your definition of community is actually, part of, the definition of utopia
also, personally, I would argue that no place really exists where one is not subject to some form of a "code of conduct"
Sure, unwritten rules.
I'm fairly a realist
But I think rules should be as simple as posslble.
You can see my philosophy in the Core Python room.
Maybe this room needs a lot more spelled out, since it seems to attract a lot of noobs.
I apply conduct rules differently based on experience, knowledge, and location - ie. I try and give new programmers a little more room and trust that they are asking out of ignorance not malice
Though I admit that how much room is inversely proportional to how my own level of annoyance at un-researched/not searched questions
03:22
I just stop interacting. I don't think that we're required to answer dumb questions.
but, more on point with that post, my biggest take away from the "no code of conduct" was that no code of conduct means no frame of reference for "what the h*ll I did wrong" (as he states they will still close and lock discussions) when corrective action is taken - meaning that person will likely not learn from the locking of his discussion.
I like to teach, so it annoys me in general when someone refuses to try and learn....I'd usually say more than most - but on SO that might not be the case
I try to be nice. That means I'm fairly grimacing when I have to tell someone face-to-face that I can't decide on their operating system strategy for them.
I'm quite happy to wax eloquent at length on my own strategy of install Linux and run Windows in VM only when I absolutely have to.
I like to teach too. But I don't like interacting with someone who sits stupidly expecting me to do all of their thinking for them.
that would be like half of college students (in my experience).....yeah, at least half
particularly intro classes
Just curious, what sort of school do you teach at?
hah, none; do teaching assistance as part of one of my graduate classes this semester (and occasionally other semesters) and did tutoring as part of my volunteer requirements for the technical society at my college (Hodges University)
03:36
Hodges, is that a state school?
Private?
nope, local private school here in Florida that was good for veterans
I'm hoping to transfer my graduate studies though, it was improving its IT/IS courses and adding CS degrees when I started but now its lost that focus....but that would requiring knowing where in the world I'll be in a year which ain't predictable right now
NYC is a great place to be for tech, especially fin-tech.
It has its smelly armpits, but so does everywhere else you'd want to be.
my wife's from NY, and I'd love to move back up there, or at least to a more tech friendly area of florida but other problems keep me from moving
03:45
ok, well it's nighty-night time for me. Cheerio!
ehh, no use focusing on the negative. Just gonna build my skills and be even better when/if I do move
night @AaronHall
good night!
04:00
morning
04:37
Yes. It is duplicate. print is function in python3 — Ashwani Dausodia 3 mins ago
04:51
Cbg
05:18
@vaultah closed though technically this is a wrong dupe
the 3.4.3 print woes should be closed as dupe of the nick coghlan's new one
Yeah, technically
&rsaquo; and &lsaquo; look cute in text
@Air well AnttiPatterns is my trade name after all...
I managed to point sublime text 2 to my Anaconda bin (instead of the default), but it seems that I have to re-specify PYTHONPATH as well since my script can't import some basic libs
Am I supposed to specify PYTHONPATH in Python.sublime-setttings or Python.sublime-build?
05:54
Cbg
cbg Robert
@JonClements +1
Also, what was @JonClements doing up at that time?
I am new to python and while going through the python tutorial I had seen a lot of use of "foo" and "bar". Are they random choices or is there any reason behind it ?
The terms foobar (/ˈfuːbɑr/), fubar, or foo, bar, baz and qux (alternatively, quux) and sometimes norf and many others are sometimes used as placeholder names (also referred to as metasyntactic variables) in computer programming or computer-related documentation. They have been used to name entities such as variables, functions, and commands whose exact identity is unimportant and serve only to demonstrate a concept. The words themselves have no meaning in this usage. Foobar is sometimes used alone; foo, bar, and baz are sometimes used, when multiple entities are needed. The usage in comput...
06:17
Okay this machine learning course just hit some linear regression algebra and my brain exploded
06:30
I guess people only star my messages to express gratitude
resists
Hey up
07:42
@Ffisegydd cbg
@Ffisegydd time for you to explain linear regression to me
taps foot
Actually, the wikipedia article isn't too bad at introducing it
08:07
Also, I did a 5km walk yesterday and now my foot hurts. I complained to my gym trainer, who told me that correlation != causation, and that was that.
Also, while I have the (empty) floor: another reason I like edx for training is that they let you download the training videos, which I guess not everyone does
@RobertGrant Sorry was off having a walk.
Does your foot hurt?
It does not, but then again I'm well 'ard.
user559633
@RobertGrant Cool, so drink a bunch of beer before showing up and then when he complains that you're obviously thrashed, just say "correlation != causation"
08:22
Hmph. Then it definitely can't have been the walk
@tristan good plan!
Disclaimer: the personal trainer part of that story is made up
What don't you understand about linear regression? I assume you mean the more complex MLy version as opposed to the "easy" y=mx+c?
This disclaimer is only necessary for people who haven't met me IRL
Though really the "MLy" version is just a more general form of y=mx+c.
@Ffisegydd nah it was more that it was being introduced quite fast, and as a part of ML stuff so it had horrible equations on the slides all at the same time
I'm trying to separate the concepts, which is helping
It just got to some code, which generally helps
Yah.
I shared my Dropbox folder with you didn't I @Rob?
There's a good chapter in the "Statistics In A Nutshell" book in there.
08:26
Ah okay thanks, I may pause the course and take a look at that
Mornin'
@IntrepidBrit cbg
Hey up love.
An example of the first mathsy slide I scrubbed to:
Not the worst, but it still scares me because I haven't been remotely fluent in things with capital sigma in for a decade or so
Can't view it D:
08:29
That's weird, it's an imgur thingy?
Can't view it either
"image not found" yo
Can't view it when I click on it either.
user559633
I can view it. Maybe your browser isn't trying hard enough.
That's very weird. Even my phone can see it.
Maybe you should shut your <BEEP> mouth you <BEEP> <3
08:30
@tristan I think they're tricking me
Hey @RobertGrant, congratulations on your news (I missed my chance to say so yesterday)
I can view it on my phone D:
user559633
@RobertGrant If it makes you feel better, I haven't really math'd in years either
@JRichardSnape thanks :)
So we decided on Benny/Beni G for a name, right?
08:32
@tristan it's all cool until you do a distributed ML course :)
user559633
I like it when a question gets a comment about reading the official tutorial. There would be roughly 13 python questions if people read the tutorials.
@Ffisegydd I do like names that can be made into Japanese equivalents
I am robiji; child can be beniji
Less fortunate child can be keniji
Fizziji!
But no, seriously now, you should call your child Keiron.
So if I take that name and the name suggested by someone else, it'd be Keiron Waitforit Grant
Sounds like a winner.
08:38
I'm still wondering whether I could get away with either Hurricane or Bulletstorm as a first name
user559633
I plan on naming my spawn "TBD"
I wonder if I should create a homage to some of my favourite computer game characters: The Nameless One Batman Ryu Hayabusa Counter-Terrorist Grant
Pew pew
@RobertGrant Congratulations (and condolences ;) )
08:50
:)
Nah I'm now past the crapping myself stage, and am really excited
Not sure if the sequence of stages is unidirectional, but let's say it is
WOOHOO LITTLE ROB OR ROBETTE
Now we just need to pick a name, buy some stuff and decide which continent to live on, and we're set
goes back a stage
I feel that the child's name should be Grant
Then you can just write their name as Grant²
Yeah that could work
Though it already got vetoed
21 hours ago, by Robert Grant
Repetition, huh? So no Grant Grant Grant?
Ah shucks
21 hours late
Or maybe I was just early
@RobertGrant If it's a girl, avoid Ava. I don't think Ava Grant would make for an easy school career ;)
08:59
lol
Actually since the last Labour government I vowed to change my surname to Loan
How about "Leeroy"?
Hi guys !
@Ffisegydd I don't get it :)
And congrats Robert , if you're a math freak I'd suggest log N :)
(logan)
09:01
It's a great name (and definitely not a WoW meme)
Ah :)
@sonicMandelBrot hah. Thanks :)
Wife suggestion for a girl: Grace. But Grace Grant is Stan Lee levels of alliteration
You're dooming her to be a marvel superhero
Olivia (for a serious suggestion for once, apart from Keiron which was also a super serious suggestion)
Yeah we kind of like Olivia
Hi @sonicMandelBrot
09:03
Also, polysyllabic first name goes with monosyllabic surname
Hi Richard :) and vaultah
How about Leslie ?
@RobertGrant tend to agree there. I think wierdly some things just sound right.
@IntrepidBrit could be worse - could be DC
Trailer for Suicide Squad looks awesome.
Everyone was hating on Jared Leto for his Joker before it and now they're going all gooey over him. I never thought he looked bad though. If anything I'd have been more annoyed if they'd just done the exact same as Ledger did.
Yeah that would've been bad
09:10
It looks really good, though they've got a long way to go to catch up to Marvel.
The Joker from arkham knight is pretty Ledgerish, but actually works quite well
It helps that Jared Leto is a legend of an actor.
Wow, just reading about him, his dad killed himself when leto was 8. And now he's in a film called suicide squad. Wonder if that's weird for him.
(Fun fact: Rob's counter-strike name was Suicide Squad)
I've decided to go with BT broadband in the end. I'm living in a listed building so having Virgin Media installed would be a right pain, at least with BT I can use the existing infrastructure.
Makes sense I guess
What speed?
09:19
40MB/s for £26 a month (that includes line rental)
Nice
Then Netflix and you're done :)
It'd have been more like £40 to go up to 80MB/s. As I'm on my own it's not really necessary.
Yeah it'll be nice to watch Netflix on the highest settings and play vidya games at same time :P
I went from ~1.2 Mbps to 80Mpbs
I don't know how I existed before then
Nice. I've never had more than 20 (theoretical)
My old place was 15 Mbps theoretically but I'd only get 1-2 when downloading games on Steam.
09:22
It annoys me slightly that torrenting is punished by ISPs. When you're on a shoddy connection, it's one of the best ways of maximising your download speeds
(People always found it weird that I could download Linux OSes faster than games)
Sure. Linux OSs.
Maybe looking as though they're combating piracy is a good excuse for not letting you use all their nice bandwidth :)
I mean, I get why they do it, but I feel it's a shame because the whole technology is tarnished :(
At some point ima write a torrent program that automagically checks files against an independent checksum repo
user559633
09:26
What do you mean there's an issue with letting media companies self-regulate communication networks?
To be fair, when it comes to the UK government & technology, I'm happier with media companies self-regulating.
If it was left to Westminster, it would be a case of: "what's an internet? I know, let's block encryption".
I wish I was joking
Internet censorship in the United Kingdom takes diverse forms. It is achieved by blocking access to sites as well as the use of laws that criminalise publication or possession of certain types of material. These include English defamation law, the Copyright law of the United Kingdom, regulations against incitement to terrorism and child pornography. == Current restrictions == British citizens have a negative right to freedom of expression under the common law. In 1998, the United Kingdom incorporated the European Convention, and the guarantee of freedom of expression it contains in Article 10,...
"Think of the children!"
hi, do you know how to get all the variables for an imported module?
09:36
dir(your_module) probably.
Just to make you feel better about the UK :)
In [95]: import numpy as np

In [96]: dir(np)
Out[96]:
['ALLOW_THREADS',
 'BUFSIZE',
 'CLIP',
 'ComplexWarning',
 'DataSource',
 'ERR_CALL',
 'ERR_DEFAULT',
 'ERR_IGNORE',
# ...
]
@RobertGrant, i used dir, but it only gave me ['builtins', 'doc', 'file', 'name', 'package']
that is not what I need
user559633
@RobertGrant film, advertising, and SA government. nope, no way this is going to be a mess.
I presume you meant to ping me, not Bob?
09:38
@Ffisegydd
Cabbage :-)
yes. sorry about that
user559633
@Alex you typed dir() and not dir(numpy)
@Alex you'll have to be more specific, what code did you use for example? It looks like you just typed dir() without supplying a library.
09:42
my directories are like
a/
- b/
- __init__.py
- settings.py
- mymain.py
- settings.py
how to get it indented?
@tristan it's...yeah. Guaranteed to go very well, and everyone senior involved will definitely have had a post-primary school level of education
user559633
@Alex Don't just post the output of whatever you ran. Make a pastebin with the command you used and its output there. Conflating running "dir" in your command line and running dir() in a python REPL is exactly why sites like StackOverflow have guidelines for asking questions.
dir a has a setting.py and dir b
@RobertGrant ... how? what? eh?
dir a has a setting.py and dir b
dir b also has a settings.py and my main.py
user559633
09:45
@Alex Read my comment.
@IntrepidBrit :)
Actually bananamental
in b/setting.py, it imports a.setting.py
user559633
@Alex Alex, either read what I wrote, ask a well qualified question, or you're out of the room. Last warning.
main.py only imports b/settings.py
09:47
Every time you ping him he adds a line
ok, i will try to open one question on SO
@Alex it's not that you can't ask questions in here and have to ask one on the main site, it's that you're asking a broad and awkward-to-answer question and that's very annoying. Tristan was trying to explain this to you.
If you do decide to add a question on the main site, please make sure you add the full details, or it'll just get closed.
waits for the question
sorry that , because the code belongs to my employer, so i can tell very specifc details.
09:55
I am writing one question on the main site, try to be as specific as I can
-2
Q: cannot find name in imported module

Alexmy directory structure is like the following: a/ - b/ - __init__.py - settings.py - mymain.py - settings.py a/settings.py #the common names ES_HOSTS = ["localhost"] b/settings.py: from a.settings import * #the names that is specific to b.settings b/main.py import settings ...

Please don't link your newly asked questions here
OK, i am new to python. I just want to consult some senior guys
Ah there's your problem - we're all senior women
user559633
@Alex This has nothing to do with your level of comfort with Python, this has to do with respecting the time of others and bothering to read the responses that others have given you.
09:57
I learned the lesson
(Don't really know why I wrote that)
i will be more careful next time
sorry if i bothered you
user559633
@Alex Also, add your Python version to that question and the contents of __init__.py. Don't apologize, just take it as well-meaning advice that will help you in future similar interactions.
It's not about being careful here; you should basically be approaching everything in this way.
@RobertGrant Envisions a monty python-esque drag scene
10:00
Cbg all
I EXHAUST ALL THE RAM A LOT
user559633
10:20
If anyone is running IronPython, will you please run import platform; platform.python_implementation() and tell me the result?
1
Q: Can't clear my notification email address

vaultahI like this behaviour for a number of reasons, however I'm stuck with my current email. When I try to unset it: the button fades and exactly the same XHR request (with exactly the same response) is made: But the email is there after the page reload. I've found a few related questions, e.g...

No more random avatars :(
user559633
@vaultah You could generate your own codegolf.stackexchange.com/questions/49566/…
11:02
cbg
cabbage @JonClements
cbg(jon)
user559633
cbg
Cole's law applied
11:20
@IntrepidBrit what's your thoughts on SNP going back on saying "We won't vote on England/Wales only matters" and deciding to oppose the new hunting vote?
"Earlier she had explained her party's decision to take part in the vote, saying there had been "overwhelming demand" from people in England."
It's brilliant! More ammunition for my "politicians are politicians yo, regardless of nationality" train of argument
Tautologies gonna tautolog...ise?
@Ffisegydd the people from England she doesn't represent? :)
Also, I should point out that fox hunting is nowhere as near as LAX in Scotland too ;)
Is a bumpy array a numpy array of binary data? :)
Ie - you can use as many dogs as you want to shred foxes in Scotland...
11:23
A bumpy array is an array of 1s and 0s, each 1 is a little hill/bump.
Ah, of course.
The SNP have a majority at Holyrood, so there's no excuse
Yeah I'm not discussing the issue of hunting in general, just made me laugh when they stuck their noses in and completely went back on their word.
@Ffisegydd yeah exactly
Aye, not debating the merits/cons of fox hunting, just saying that she's planning to retain the more restrictive laws in England, when the laws are more lax in Scotland. So additional hypocrisy points there
11:25
Oh I see
5 time's the charm haha
Wait - I don't see. One more time?
hi fourth eye
FWIW, there's an interesting proposal currently being discussed on Meta: Add Meta posts about main site posts to linked questions sidebar. It might be a good thing, but I have some reservations.
11:41
@PM2Ring a more drastic one was to automatically lock a main site question if it got mentioned on meta (to try and avoid the meta effect) - didn't take much convincing to point out how open to abuse that would be :)
Oh dear. :)
@IntrepidBrit ahh... the government has now canceled the vote apparently
Yep - smells like a Tory PR trap to me :)
In other, less petty inter-UK political, news - Pluto flyby is happening soon
Not that we'll see anything until tomorrow
There was one early shot they sent through - pretty amazing
Yep - my inner nerd is excited :)
11:51
The orange one
finds a link
How crazy is that?
Nobody's ever been that close before gawks
:)
Coincidentally, the brand new pic is orangey
Looks like God couldn't really be bothered with that trans-neptunium object. He's still left a thumb print on the paint. "Oh, they'll never come out this far. It's fine!"
:)
Wait til the probe bumps into a a badly-painted black wall, à la The Truman Show

« first day (1732 days earlier)      last day (3440 days later) »