« first day (2132 days earlier)      last day (2816 days later) » 

12:20 AM
Does anyone understand this question: "What basic type makes up a string"?
 
yes. If you're talking about Python, it's "string"
but if you're in a course that's using C or Java or something then the answer is going to be "char"
Though technically "int" would also be correct, as int and char are the same thing, except when you print them. And maybe operations? Hm...
 
@WayneWerner Interesting. It's a question I saw listed in an fb messenger app when i type "hacks". isn't language specific.
@WayneWerner Thanks!
 
I thought strings are made of bytes or unicodes:P
 
not in Python: type('hello'[0]) -> <class 'str'>
 
(I know, hence ":P")
 
12:42 AM
typo? probably a dupe somewhere... stackoverflow.com/q/38982323/344286
basically the problem is module A does import sys and module B does from A import * but then PyCharm says sys isn't used in module A, then there's some confusion about how that even works
 
1:23 AM
Cabbage.
 
cbg
 
@WayneWerner That's not really a typo, it's a logic error (presumably) caused by the OP thinking they can mutate an int arg in a function. The answer seems ok to me.
@WayneWerner I'd put that down to PyCharm not being smart enough to figure out what's going on. I've added a comment, and if you can find a good dupe target I'm happy to hammer it. I couldn't be bothered searching too hard for a target, the questions about star imports that I just looked at were probably a bit too specific or too technical.
 
@PM2Ring Yeah, I didn't see any good dupe myself or I would've hammered it :P
@PM2Ring ahhh. Yeah, that's fair enough. I didn't notice that the OP was passing the value into a function because that's not something I would ever do in that context, heh
 
I'm currently sitting in a park overlooking a stream. A few waterfowl are wandering by. I had to get out of the house for the day: the pest control guys are in, refreshing the anti-termite chemicals under the house. We had a minor infestation a few years ago & we really don't want them to return.
 
Sounds nice :)
 
1:32 AM
that sounds loverly
 
unclear (and wow that formatting) stackoverflow.com/q/38986696/344286
@PM2Ring Ew. Termites are the worst. But that's why termite contracts \o/
(also, yay slab homes!)
 
@WayneWerner I kinda like his novel approach of implementing his questions as a list of functions, but maybe that's a bit too clever. At first glance, I thought random.choice(quest_list)(points) was a syntax error. :)
 
Yeah, when you pointed out that there was something correct happening I was really confused because at first I thought oh maybe he doesn't know what's happening, but then I realized that would be trying to call an non-callable... but then I realized that it probably was a callable
Which, that's cool. Just I'd be doing something like score = random.choice(quest_list)(); points += score or something.
obviously one could do it on one line, but if I wanted to be clearer about what was going on
 
@WayneWerner This house is on the side of a hill, so it's multi-level; it would've required some pretty major excavations to put it on a slab. The termites around here aren't too bad: the ants tend to keep them under control. :)
 
we have a lot of those -_-
well... rbrb, it's time to feed
 
1:38 AM
Seeya
 
user559633
2:15 AM
@WayneWerner Live feed of javascript frameworks being born.
 
skdjfaskldgj
hi
you know what would be beautiful? If there was an option to create a tag when merging a pr
 
gesundheit @idjaw
 
cheers! :P
 
heh...drink would be nice....Hey! I still have a finger of whiskey left
:)
 
 
1 hour later…
3:46 AM
So, I really want to mark this massive compatibility example as a dupe of the example that is in a math topic and includes all the compatibility info anyway but considering the amount of edits - I think I would be destroyed for suggesting it
any thoughts?
 
user559633
I assume dupe into the more popular one
 
user559633
"Simple math" is probably a strange search string.
 
granted none of this matter cause the fact that everything can only be in one topic makes it un-maintainable
 
@idjaw You can do that if you're merging the PR with git...
 
I think I've messed with SOD enough and will let the newbie - I deleted your examples and rep - hate go down before doing anymore
but, yeah, simple math is a stupid search term...
 
user559633
3:54 AM
meh newbies gonna newb newb newb
 
@WayneWerner even for an open pull request?
 
heh...put one of my own up for deletion instead cause I just don't care :P
 
user559633
i decided to walk the path of whiskey thinking it would keep my brain from trying to figure out how a framework works. now i'm looking for new groove metal. wrong direction.
 
exciting news "Intel will start making ARM-based chips in its factories"
 
fyi. "walk the path of whisky" means your a smuggler
 
user559633
4:01 AM
;)
 
or doing a pub crawl
or both
I don't judge
 
user559633
Why ARM instead of just x86-64?
 
Obviously ARM is a sweet spot.. and it would be great if the intel and arm got merged
 
user559633
Is it obvious? I'm actually asking
 
user559633
I thought ARM was "decent, all things considered, heat and power consumption-wise"
 
4:05 AM
well hope you find a competent answer to your question :)
 
user559633
@ProblemSlover if it's obvious to you, maybe you could be the one to provide it
 
intel and arm....wait why does that remember me of MS and Apple alternating from hating (and suing) each other to being friends
 
What is your question "Why arm of just x86-64". but my point is the first step towards possibility of unification these 2 giants.
 
user559633
@ProblemSlover Why is it great if intel and arm "got merged"
 
user559633
Is your thought that the quality would increase or price would decrease?
 
4:08 AM
like 70s we're friends, 80s we hate each other, 97 we actually shook hands, 06 we're suing each other again ....
I'm curious as well, not saying your wrong - I'm actually curious as I don't deal with chipset issues much
 
because it will speedup the technology advance in cpu world
 
oh, yeah - and last year they decided to be friends again
 
user559633
My experience is a bit dated, but ARM is more meant for power saving and prefers 32bit op
 
that's my point..
 
there finished it, hate leaving things open like that :)
 
user559633
4:13 AM
Oh, yeah, I doubt agglomeration of hard tech is going to lead to consumer-friendly change
 
my experience with Intel is nasty "survival of the fittest" corporate attitudes but that was a while ago
 
user559633
They're the only serious performance CPU manufacturer in the world right now, so I can't fault them for it.
 
user559633
AMD survived only by the grace of Intel being forced to pay them to exist
 
amd./ should pivot of the manufacturing cpus/ gpu. / hope they realise that soon
 
meant that to mean that, to me, the pharse "Intel merges with X" conjures nightmares about synergy
 
user559633
4:17 AM
@ProblemSlover I thought Nvidia was still regularly wrecking AMD on GPU as well
 
user559633
Intel merges with Facebook. Opcodes are introduced to suggest to bytes in memory that they might know other bytes.
 
user559633
 
damn. nvidia is getting like intel. game developers unable to keep up with its potential :). and looking at the recent release of the game No man sky and reports that it's buggy / unstable / gives poor perfomance with some nvidia gpus shows that no matter what gpu you have . game can be optimised only for limited number of cpus. and most likely only recent ones. :(
 
user559633
I love youtube comments sometimes
 
ah, the rare gem
 
user559633
4:24 AM
They're great when the context is purged and some response has to stand on its own. I imagine it like someone is standing in line behind me at the coffee shop, taps me on the shoulder, and out of nowhere says "hey, hey guy. I'm pretty sure I can take a 5 year old"
 
@ProblemSlover sounds like directx
 
damn. typo/ for limited number of gpus*.
has anyone tried to compete in algorithm trading? quantiacs.com
 
and with that I'm off to bed or like 8 other things then bed eventually
night all
 
user559633
night jgreenwell
 
lol. night man
 
4:56 AM
does anyone actually use tkinter?
do you have to use pipes with threads? there is not equivelent to wx.CallAfter(which calls in main thread) ?
 
5:14 AM
Cbg
 
cbg
 
5:31 AM
@JoranBeasley haha I'm writing a tinker app at the moment
I like that it's bundled with python installs and is fairly simple to use
 
@AndrasDeak a miracle has happened
I got an answer to my decimal question, from an actual woman, who posts with her own photo and her own name, and with good rationale as to why I should choose her answer (timings), and she even fixed her answer after I pointed out problems with it. Even though perhaps my answer is simpler in lines of code (and slower), then this might be the first time I could actually award a bounty to someone :D
 
6:38 AM
@poke yeah thanks pentatonix looks good for this purpose
 
cabbage
 
7:12 AM
my coworker asked me to look at matlab error. It was supposed to download some file and a wrong link was given. The error message said "check your proxy settings"
weird
 
7:34 AM
I can't decide which of these is a dupe of the other or not
3
Q: Customizing Django allauth's socialaccount signup form: adding password fields

bad_keypointsI'm trying to modify the signup form which the user is shown when logging in from a socialaccount provider. Here's me custom signup form code: from allauth.socialaccount.forms import SignupForm from allauth.account.forms import SetPasswordField, PasswordField class SocialPasswordedSignupForm(...

0
Q: How to save in Custom User model a field from allauth's customized SignUp Form?

TitanFighterI have custom user # custom_user/models.py class MyUser(AbstractBaseUser, PermissionsMixin): USER_ACCOUNT_TYPE_CHOICES = ( (1, _('organization')), (2, _('personal')), ) user_account_type = models.IntegerField(_('account type'), choices=USER_ACCOUNT_TYPE_CHOICES) ...

3
Q: django allauth custom signup form to assign different groups

Chirdeep TomarI have two types of users in the system, I want to assign the appropriate group at the time of signing up. Referring to How to customize user profile when using django-allauth, I thought I can override the Signup form and do something like: class CustomSignupForm(forms.Form): login_widget = ...

looks canonical
 
7:49 AM
@CameronA please read our room rules, don't post recent questions in chat.
 
where should I ask?
 
@CameronA you've waited a whole hour, I'm sure you can wait longer.
Not here.
 
my question is Trash ?
 
Also, you did get a response on your question: you have a circular import.
 
@davidism bit late, no?
 
7:51 AM
I was playing No Man's Sky and didn't notice the time. :-/
 
:D
I need to play it again, hopefully they've patched PC some more.
Think I've got 5-6 stone thingies so far.
 
I keep having swings between "this is still good" and "there's nothing interesting any more".
 
Yeah I agree.
It requires a certain mindframe.
 
rhubarb
 
Hi Can I ask here or it is the same group ? also where is rules and where can I find flask python group ?
 
8:01 AM
Cbg
 
Morning all
 
@Ffisegydd Why was that flagged?
 
Please don't flag off-topic stuff. The report spam is for people advertising viagra pills.
 
guys Im really confused , I read the guidelines , is it the place to talk about python or not ? because I see you guys post about video games and consider my question as offensive ?Its not fair at all
 
Read the room rules.
 
8:14 AM
another dumb error message: "Something went wrong"
 
@davidism how many hours have you played in total?
 
nice job. I can clearly debug
 
user6568562
Cabbage all [ :
 
user6568562
@khajvah "An unexpected error has occurred unexpectedly"
 
how can I solve Cicular Import problem , I moved my files, lines, the problem is I get the problem but I dont get the concept, how python see the structre of my code and how address the modules, maybe that's because I srarted from the flask instead of Python
 
8:22 AM
have to use quandl. First impression was nice but docs are terrible and limitations too make no sense
 
can any one tell which files compile earlier, ? the init.py or the file I run on the command line ?
 
Thank you I read it, It said for each package I need one 'init.py' is that true?
 
well, you can't have two __init__.py files
 
yes I write like you but I dont know in chat it transforms to init.py
 
8:32 AM
@CameronA yea, and it is run before importing the package
if that was your question
 
thanks a lot , another question is in the command line if I am in directory X how can I address a package in the upper directory
address a module sorry
 
still-not-released (bugrit) morning cabbage, all
We do, however, now appear to have a stable release on staging (hooray)
 
@CameronA You can add parent directory to your python path
184
Q: Importing modules from parent folder

Ram RachumI am running Python 2.5. This is my folder tree: ptdraft/ nib.py simulations/ life/ life.py (I also have __init__.py in each folder, omitted here for readability) How do I import the nib module from inside the life module? I am hoping it is possible to do without tinkering with...

 
But the Jupyter log stream clogs up our windows and slows it down (boo)
 
thanks guys
 
8:40 AM
@Cerbrus Why was what flagged? Sorry was AFK. Must have been an annoyed user D:
 
@RobertGrant too complicated. Mine is either 200 or 500
 
@RobertGrant Nice
There are a number of websites that I'd like to see replaced by something simply returning status code 406
 
user6568562
@RobertGrant I'm gonna print that and put it on my wall
 
I'm going to print it out and put it on my 6 month old's wall. He needs to learn!
 
user6568562
8:56 AM
We should purchase a fridge and put starred chat messages on. And specify that it's a fridge of recognition, not one of shame
 
A fridge ego, rather than a fridge id?
(Caveat: that probably isn't right, but it makes another word so I said it.)
 
9:15 AM
@RobertGrant Mine are better
4
 
Cabbage.
 
cbg @pm2
 
[range(*x) for x in zip(lst, lst[1:])]vaultah 4 mins ago
@vaultah I think I prefer [range(start, stop) for start, stop in zip(lst, lst[1:])]
It's not obvious to me which form is better, but maybe that's because I'm not Dutch. :)
 
@PM2Ring if you're only ever going to need start and stop, then yours. If you're going to use the 1-3 form of range, then I'd go for controlling it via the zip and doing the unpacking
 
Hi, JRS.
 
9:25 AM
@PM2Ring I just like unpacking :P
 
:32336382 Yes it is. And it's more explicit than using splat unpacking. :)
@JonClements Ok. I guess in that scenario the step could be coming from a separate iterable eg zip(lst, lst[1:], steps). But if the step is a constant then I prefer [range(start, stop, step) for start, stop in zip(lst, lst[1:])]
 
does firefox have memory leaks?
 
9:41 AM
@khajvah Dunno, but it wouldn't surprise me if it does.
 
Does anything that complicated NOT have memory leaks?
 
it was using >4gb of RAM, after reopening with the same tabs, it's <1gb
 
@Ffisegydd they are good :)
 
it had been open for 2 days I think
 
I always run the free command just before I shut down. I only have 2 GB on this old machine (running a fairly ancient distro in the Debian family) but I rarely see any use of my swap space. I use Firefox 29.0.1, and I installed the Firebug add-on a few days ago and since then I've noticed that I'm now using swap space. :(
 
9:49 AM
@davidism finding Fate/Stay Night (or whatever it's called) to be a good balance of cool and no seminudity
 
@khajvah That happens loads. Not entirely sure why, but it absolutely is repeatable.
My guess is that it holds onto loads of session information for each tab and then when you reopen it just "flushes" anything volatile
Whether you call that a leak or not depends on your definition, I guess.
 
I just got sent a "full stack developer" job spec
 
@RobertGrant Are you full stack? Can you program in assembly? Can you build your own PC from raw, unrefined silicon?
 
Oh no, tristan's got hold of fizzy's account!
 
9:55 AM
@RobertGrant You have entered the final dojo.
 
"What makes me a full stack developer? I have onion rings inside the burger bun!"
3
 
:D
I have realised that in my current lab, I can actually build chips. And I can program in assembly. Don't know ember.js, though, so can't be full stack.
 
That's pretty cool
 
N.B. Note I said can, rather that do
 
Ember also looks quite good, but never the cool option
 
9:58 AM
It's a purely theoretical capability. My mate Shashi just got a nature paper published on a new way to make memory, though, so I'll take the reflected ability by association ;)
 
guys I solved the problem ,Thanks from the Admin of this group who told me It was the circular problem and actually It was not the circular problem, then He accused me to being rude and downvoted my question , No problem, But I just want to tell Im someone new to python , It doesnt mean I disrespect anyone with my question , anyway hope you all doing great
 
C programmers doing OOP are so cute. All this procedural code I don't know what to do.
 
@CameronA Glad you got it sorted. Sorry if you feel you were unjustly treated - it's just that there's a rule in here not to post your own question that's less than 2 days old. Ideally you should post a self answer, as it must be interesting to future users if it looked like a circular import, but your solution shows that it wasn't....
 
Thanks for checking Richard , appreciate it and really love to communicate and learn more
anyway what does mean cabbage ?
 
10:06 AM
It's worth looking around sopython.com - it's got a few good resources, as well as room rules.
 
Olympiad is rigged
 
sure , guys I find out I have problem to debug my code in the console, it there any other way ? still unfamilliar with blueprints
 
@CameronA You can download an ide, they usually have interactive debuggers.
or there are plugins for text editors
 
I use Sublime 3 and Anaconda package
 
dunno about sublime but it must have an interactive debugger
 
10:20 AM
@khajvah To be fair, some people use the term "CPU" to refer to the computer itself, i.e., the main box as distinct from the peripherals that get plugged into it. But if you think that's bad, I've also heard people calling the box "the hard drive". Yes, it has led to hilarious confusion. :)
 
well, it's hard
yesterday somebody asked me what's my job. I said I am a programmer, he said "like hacking and stuff like that?"
 
@PM2Ring It used to be common in schools over here to refer to the box of any PC as the hard drive. You've just reminded me. I think it was in the era when having a hard disk drive at all was still a novelty.
 
@khajvah It's tedious, but do-able. But yeah, if you don't know the C idioms for doing that stuff it gets messy. FWIW, Gnome, the basis of the GTK GUI framework (which was originally developed for GIMP) is written in C.
 
In Armenia people refer to the box as "the processor"
@PM2Ring I mean, the C programmer was trying to do OOP in Python
 
At work, I insist that people refer to me as The Processor
 
10:27 AM
ended up with pretty much a procedural code
 
@khajvah Maybe he meant "hacking" in its original positive sense catb.org/jargon/html/introduction.html
 
I really want to study CPython implementation but I hate C
@PM2Ring highly doubt that :D
even tech-savy people don't know the actual meaning of hacking
 
Make peace with C - there's not so much to hate really.
 
I find it boring
 
in django, can i assign values to form field inside template tag
 
10:34 AM
@khajvah Oh, ok. It is hard to get your head around OOP stuff when you've only ever done procedural; it took me a couple of years, but I had been programming for a couple of decades before I started on OOP. :) And I guess I'll always have a procedural bias to my code.
 
like {{ product_update_form.has_disclaimer == instance.id}}
 
@khajvah Kids these days. :) Sure, it doesn't have the high-level stuff of more modern languages, but you can't beat it for the degree of control you have over the CPU without going to assembler. But of course C is portable, and far less tedious than coding in assembler.
 
@PM2Ring my first real language - still have a soft spot for it, even if when I have to do stuff with it, I do break out in a sweat thinking about the work I'm going to have to do :p
 
lol
I have a cool professor who told me same stuff
except he preferred doing assembly than "these high level C kidz"
 
I started on C in 1980, but I hardly use it these days, and it can be a bit scary reading some of my old C sources. :) I really should make time to do some C stuff, I'd hate to forget it.
 
10:47 AM
I consider it weakness in myself that I don't know enough low level stuff
but I can't force myself into actually studying it.
maybe writing Python extensions in C can be both interesting and will teach me a lot.
 
Yeah, it can be hard to get the motivation to study stuff if you don't have an actual use for it, so learning C so you can write Python extensions in it could be a good plan. But it's probably a Good Idea to get comfortable with the boring core C stuff first before you try and write Python extensions.
 
I used to do C++. Although it was higher level but I am aware of the concepts and how the language works
my hands are not used to manually managing memory though
 
11:02 AM
I once (back in 1983) built a dynamic RAM controller clocked at 12MHz and using a bipolar PROM to implement a finite state automaton. So I go pretty far down the stack
 
@khajvah Ah, ok. Yes, managing memory in C can be "fun". Of course, when writing C stuff for Python you don't have to worry about that too much, you just need to use the existing CPython memory stuff. However, I've never attempted to write a C extension for Python, (although I have explored the CPython C sources a bit) so feel free to ignore me. :)
 
Wow... I think I know how to do stackoverflow.com/questions/38994758/… :p
(or at least I use to do SAS for about 3/4 years - so I think I remember some of it :p)
 
:)
 
@holdenweb Nice. 12 MHz was damn fast back in those days.
 
11:18 AM
Yeah - Schottky TTL. Was when I was teaching at Manchester Uni. Staff were either "programmers" or "engineers" and I was damned if I was going to let them pigeonhole me
 
So they invented a third role: pigeon.
So amazing:
 
11:48 AM
@holdenweb Takes hat off
Also - I like the dedication to not being pigeonholed as engineer or programmer. I am still attempting the same (although not by building computers, I must say).
 
Is it good or bad practice to check in a virtual environment from venv with my django project?
 
you mean commit it to your vcs? don't do that
do python -m pip freeze > requirements.txt and commit that file. Or, put setup_requires in your setup.py. Or populate your setup_requires by reading your requirements.txt file.
 
@Moshe Just keep a requirements.txt up to date for dev/production etc... virtualenv's can get quite large to say the least :)
 
but no, you don't want to commit your venv, that's not a good idea
any time you think you might be committing dozens of files or more, think again
there are very few reasons you should ever do that
 
Bottm line: the venv can be re-created from the requirements file, so checking the venv itself in would be completely redundant
 
12:08 PM
Hm, this is a bit of a head scratcher.
 
@IntrepidBrit a comb?
 
Two identical bits of code, two machines on a local network to a local server via SSL, one is getting its connection rejected and the other isn't. Guess which one is Windows
 
@idjaw Well, I mean you do a git merge followed by a git tag - you could do git merge --no-ff --log -m "Merge pull request #<PULL_REQUEST_NUMBER> from <ACCOUNT>/<BRANCH>" <BRANCH> && git tag 1.2.3 && git push origin master
 
@JonClements Very good :P
 
@IntrepidBrit the one that has just restarted for some odd reason
 
12:11 PM
@IntrepidBrit I was going to suggest you use something like um... tcpdump jvns.ca/blog/2016/07/03/debugging-tools-i-love
 
Always a pleasure to help - I won't even charge you this time :)
 
You might be able to just use wireshark on Windows? shrugs
 
Well, I'll try on a third machine to see which is the odd duck
 
@WayneWerner yep
 
Poke all of 'em... if one of 'em doesn't make a noise, or goes "woof" or "moo" or something... that's your odd duck
 
12:15 PM
If another *nix machine works, then I'll install wireshark on windows and delve deeper
 
ducks moo?
 
@FlorianMargaine very confused ducks might do...
 
@JonClements so that's what duck typing is about, eh?
 
Yup... if it walks like a dog, moo's like a cow, then it's a duck... the current phrase has all been lies...
3
 
12:19 PM
Looks genuine to me...
Umm... Frances - Say It Again is a pleasant enough song...
Wow and a related link I haven't heard in years: youtube.com/watch?v=SqdWTeXWvOg
 
oh man
I think I was singing that song to myself the other day
 
@AnttiHaapala wait, which part is the miracle?:P
cabbage
> The uploader has not made this video available in your country.
I love teh interwebz
 
@AndrasDeak have you tried a VPN?
 
Here's some Aussie pop from the late 90's that I heard a little while ago on the radio: Pash Kate Ceberano. There's an official Warner's "clip" with better sound, but no video. And it's probably blocked outside Oz.
 
@Programmer it's just one of the songs Jon posted, I could piratebuy it any time:)
and I'm sure there are locally available youtube links too
 
12:32 PM
Does that happen to you often though? I don't think I've ever seen that message before.
 
very rarely, and mostly with US stuff
of course just because Jon linked to it, it could be US (facepalm)
 
@holdenweb How would I do that? Just make a new venv and pip install -r requirements.txt?
 
it might be a Hungarian specialty: our pirate culture has caused some movies to debut a week later in cinemas, in order to prevent a flood of crappy cam torrents:D
 
@Moshe exactly
I've used virtualenvwrapper in the past for its great convenience
 
how did I get here? also, I love that the male colors aren't even colors
I actually use virtualenvwrapper for the workon script, but I create my venvs a la python -m venv ~/.virtualenvs/whatever
 
12:43 PM
@WayneWerner I found it funny that I could've spelled fuchsia correctly, but I don't have that in my active colour vocabulary
 
@WayneWerner That's peculiarly perverse
 
morning everyone
 
@holdenweb Cool, thanks!
 
Is this a good regex to match a name mention? (\s?\@(\w+|\d+)\s?)
 
no
@πάνταῥεῖ is a valid ping
 
12:45 PM
has to be a valid github username though, can they use special characters?
 
can have single hyphens
 
Would it be better just to do .+?
 
/\B@([a-z0-9](?:-?[a-z0-9]){0,38})/gi
is what I used to use in something else
 
@corvid oh, on github
 
but I know that could be improved a lot too
 
12:48 PM
Doesn't have to be perfect
 
oh, wait found the place I got that from and it has a better one in the other answer
2
Q: Regex: parsing GitHub usernames (JavaScript)

ScottI'm trying to parse GitHub usernames (that start with @) from a paragraph of text in order to link them to their associated profiles. The GitHub username constraints are: Alphanumeric with single hyphens (no consecutive hyphens) Cannot begin or end with a hyphen (if it ends with a hyphen, just...

 
@holdenweb I think it might have something to do with the fact that virtualenvwrapper was installed in my python2, and I could never remember the flags for mkvirtualenv
 
Ignore that it is JS - a regex is a regex
 
3
A: Reading python variables during a running job

QuirliomWithout editing your program, you're going to have a bad time. What you are looking for is some form of remote debugger, but anything that gives you python specific things will probably have to be at least somehow given a hook into your program. That being said, if you feel like fiddling around i...

 
@JGreenwell (there are slight differences)
 
12:49 PM
I'm impressed that there's actually sort of an answer for that
 
yes, but if you know regex it shouldn't be hard to use as a base
 
Yeah, I'm looking forward to finding out how to access Python variables from gdb
 
@JGreenwell Ah excellent, but wouldn't it need to be padded with \s+ so it doesn't match something like an email?
 
@holdenweb that mathjax library you linked to (near your starred iPython statement) is awesome btw
 
The interactive fork?
 
12:53 PM
\B is like ^ meaning it just checks that first character is @
 
Isn't \B non-word-boundary?
 
or was that \b...sorry, yeah \b is beginning \B checks for boundary
 
no, \b is word boundary:)
cat\b matches "cat dog" but not "catamaran"
and \B is the other way around
in the same way that \w and \W are negatives
 
"complementary"?
 
@holdenweb possible. Whatever is the noun form of "negation"
as in logical NOT
 
12:57 PM
my brain is not on.....stupid broken coffee pot
 
not a is, I beleve, technically the (logical) complement of a, not its negative (which would naturally be -a)
 
"opposite" is way too colloquial for my taste
@holdenweb you're the native:)
 
yes, the interactive fork @holdenweb
 
And ~a is the (ones') complement of a
 

« first day (2132 days earlier)      last day (2816 days later) »