« first day (2314 days earlier)      last day (2637 days later) » 

2:00 PM
that will tell pip don't look at pypi pls, look here instead. That way you can actually verify that you know exactly what version of code was installed in the case that you need to go back and do some kind of audit.
 
so far I've been working a proof of concept ("mycode") with a fake app ("app_using_my_code"), but in order for the fake app to find mycode I had to insert the path.

@WayneWerner Im saving that comment! looks like exactly what I want to do. Awesome!! and thanks!!
 
While pypi is probably pretty safe, there's always the risk that say, it goes down because of a DDoS. Or that someone targets you with an advanced MitM attack.
The latter is less likely, probably
but the former, or something like it, has happened in the last 6 months
 
Does Anyone know how to bring a process with given "pid" to foreground or maximize the program using Python In "linux mint environment"?
 
wat?
 
"if we know the pid of a process than how can we maximize that process window using python?"
 
2:04 PM
@Purefan BTW, you should seriously think about the migration path to Python 3. Python 2 will reach its End Of Life in 2020. I guess you're using Python 2 because your company already has a substantial Python 2 codebase. Otherwise, it's not a good idea to be writing new code in Python 2. Try to write code that will work correctly on both 2 and 3, or at least write code that won't be painful to convert to 3.
 
@Purefan at least if you have your packages all installed and all of the CDNs that host pypi packages are nuked from orbit, worst case you could scp them from server to server to do a new upgrade. I mean, unlikely, sure, but risk management is all about managing the smaller risks ;)
^ also that
if you're just getting started on stuff, it'll be fairly easy to swap to py3
 
@PM2Ring surely it wont reach end of life by 2020 :)
 
@AmanTiwari that's kind of tricksy business
 
@wa
 
@marxin well, no, they won't nuke all cpython binaries
but still
 
2:05 PM
I think you can send it some sort of signal via the window manager/X11
 
@marxin It was supposed to be dead by now, but too many people kicked up a fuss.
 
@WayneWerner Please help if their is a way.
 
@PM2Ring Yeah... I already hit that wall :/ started writing python 3 code and at the first code review people were like "naahh... that wont work" and I had to rewrite a bunch of prints and stuff
@WayneWerner Totally agree :)
 
@Purefan Should've just written from __future__ import print_function, unicode_literals, division ;)
 
hahahha
 
2:06 PM
might be a couple of others.
 
Wait! That's a serious thing! double hahahah
 
also, fwiw: print('hello {}!'.format('world')) is valid python in both 2 and 3
and it will do exactly the same thing
 
found it here and it starts with "future is a real module, and serves three purposes:"
 
if you have to write Python2, write it as 3-like as you can
 
@Purefan You can totally use the Python 3 print() function in Python 2.6 and later, you just need from __future__ import print_function
 
2:08 PM
Yeah, __future__ imports are to help you make your code forward-looking
geeze my internet uplink is dumb yesterday and today
 
Ninja'd by Wayne. I was just checking to see if it worked on Python 2.5. :)
 
loving this :) feels like Im going to bring all this new magic to the table and people will be dropping jaws
 
Excellent. :)
 
Gained a few IQ points today with you guys :) much obliged
 
Unfortunately, 'hello {}!'.format('world') will raise an error on 2.6: it requires format field numbers or names, eg 'hello {0}!'.format('world'), that's optional in later versions. But that's no big deal. And hopefully you aren't stuck on 2.6
 
2:11 PM
The reason the print "function" works in Python2 without the __future__ import is that python2 sees it roughly like this:
 
im on 2.7 :)
 
x = ('hello {}!'.format('world'))
print x
 
@Purefan Phew!
 
where Python3 is more like
x = 'hello {}!'.format('world')
print(x)
 
Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print(23, 42)
23 42

Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print(23, 42)
(23, 42)
It bothers me that these are different (although I recognize why it's the case and why it's better than the alternative)
 
2:13 PM
> on win32
oh no
 
I mean if you want to know exactly what it looks like you can always dis it
Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import dis
>>> dis.dis('''print('hello {}'.format('world'))''')
  1           0 LOAD_NAME                0 (print)
              2 LOAD_CONST               0 ('hello {}')
              4 LOAD_ATTR                1 (format)
              6 LOAD_CONST               1 ('world')
              8 CALL_FUNCTION            1
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import dis
>>> dis.dis('''(print('hello {}'.format('world'))''')
          0 STORE_SLICE+0
          1 JUMP_IF_TRUE_OR_POP 26994
          4 JUMP_FORWARD    10356 (to 10363)
          7 <39>
          8 BUILD_SET       27749
         11 IMPORT_NAME      8303 (8303)
         14 <123>           10109
         17 <46>
So, different, for sure. But the output is the same :)
 
\o cbg
 
morning cabbage @MooingRawr
 
how goes it ? did you spend some time with your SO yesterday?
 
Stack Overflow belongs to no one man.
 
2:21 PM
@Kevin wrong
 
Fight me irl
 
gets into mud
 
oh, random +10 rep from an old answer. Great way to start off the day ^^
 
o/
 
@MooingRawr I got +5 rep today from docs :D
@AndyK \o
 
2:24 PM
@MooingRawr Meanwhile, Martijn gets random 200 rep every morning
 
@MooingRawr I've had a few of those lately. Although yesterday I was greeted with a downvote & comment on a 2 year old Bash answer that I'd made a mistake in one part. I fixed the mistake, but the downvoter hasn't responded.
 
@khajvah And sometimes 215, a random accept
 
@PM2Ring Wow it took them 2 years to find out :D
 
Yesterday I crushed an OP's dreams by telling him that what he wanted was impossible. Those upvotes were tinged with defeat.
 
Interestingly, I get upvotes on posts that are exact 1 year old.
 
2:27 PM
I wonder if we will ever get rep for comments
 
I dunno if it is because of some college repeating their syllabus every year.
 
Can you promote your answers with google ads? :D
 
@MYGz True, but it was a pretty obscure thing, and only a minor part of my answer, but it was in the 2nd paragraph, so I guess that made it look like a fairly significant part of the answer. But it was embarrassing to realise that I mustn't have tested it properly when I wrote it. Oh well. :)
@MooingRawr No, because comments are not supposed to be important. They're intended to be used to get questions and answers into shape, not to hold info of permanent significance.
 
@PM2Ring I see, I find myself answering questions more and more in the comment section, but they aren't full answers (not good enough to stand alone in the answer section due to the lack of examples and what not). Oh well... moving on
 
Answers in comments should only be used when the question is destined to be deleted, eg typos.
 
2:34 PM
I try to limit comment-answers to posts that I hammer, if I think OP will have a hard time applying the lessons from the target to his own work.
"duplicate explains the general principle, but in your case you need to do x = [w.num_spindles for w in widgets]"
 
@MarcusS nice and lubricated
recbg
 
I sometimes put suggestions into resource request questions, but there are plenty of people who disapprove of that, since it encourages resource requests, which are off-topic. But if the OP has written a clear question & doesn't realise it's OT I don't like to totally disappoint them when I'm voting to close their question.
Also what Kevin said. And in some cases, it's ok to write an actual answer if you need multi-line code, even though the question is being dupe-hammered.
 
and you can post that as a community wiki if you feel like being an extra-nice guy
 
But the other thing about answers in comments is that they evade the normal SO voting process, since they can only be upvoted, not downvoted, so people can post bad suggestions in them that can't be downvoted, only argued against, which can get messy. Although I guess if the info is dangerously wrong you can flag it.
 
an interesting clash of the "we don't judge technical correctness" and "comments are only here to stay as long as they don't bother anyone" principles
 
2:45 PM
He thought what an ungrateful OP, downvoting our efforts:P. OP's don't generally downvote.
 
most of the bad OPs are low-rep and they can't downvote
 
hehe
can't downvote would be better fit :P
 
@MYGz It does happen sometimes. I'm pretty sure I saw it once with a chameleon question. The OP changed the question when they realised that all the answerers had the same misinterpretation of their (admittedly ambiguous) question. When the answerers didn't sit down & re-write their answers like good little slaves but started to complain instead, they all got downvotes and the OP disappeared.
IIRC, there was a bit of a rollback war on the question as well.
 
@PM2Ring haha :D
 
It wasn't very amusing at the time...
 
2:51 PM
yup ^
that never is
 
So, can it be protected from OP editing it?
 
no
moderators do lock quesitons in case of rollback wars, but it shouldn't come to that normally
and you need idiots on both sides to reach that situation
 
Yep. They should close that question by accepting and ask a separate one if it's so much different.
 
preferably yes
 
Generally new joinees get bashed either ways, If they post large code chunks, people bash them for mcves, then they create very small mcves and fall into xy trap :P.
 
3:00 PM
only the bad ones
most properly posed questions solve themselves while you're working on an MCVE
 
yep, the ones who "Learn \w+ the hard way" :D
 
@MYGz but but, something something ego, and something something it's OP's question and something something entitlement
 
well, hooray internet
 
why?
 
for what?
 
3:03 PM
Cox just living up to their name
 
3:18 PM
Sanity check: os.path.split and os.path.join are opposites of one another. Does os.path.splitext have an opposite?
 
'.'.join?
 
ctrl-f-ing for "ext" in the documentation gives no results outside of splitext itself, so I'm guessing not.
 
splitext(p)
    Split the extension from a pathname.

    Extension is everything from the last dot to the end, ignoring
    leading dots.  Returns "(root, ext)"; ext may be empty.
that sounds pretty specific to me
hmm, except the last part, "ext may be empty"
 
@AndrasDeak Yeah, but by the same logic you can use "/".join instead of os.path.join, but everyone says not to do that.
 
but \ vs / is a thing on win vs unix
FWIW there's an os.extsep so who knows
 
3:24 PM
In other words, for all I know it's a best practice to do filename = os.path.joinext(s, "png") instead of filename = s + ".png"
 
>>> os.extsep
'.'
>>> os.extsep=':'
>>> os.path.splitext('file:out')
('file:out', '')
 
In KevinOS, the OS I'm writing specifically to annoy people that make generalizations about how OSes usually behave, all file extensions are preceded with a caret instead of a period.
So if you try to do filename = s + ".png", it's going to throw a fit
 
I'll exclusively use ő and ű and whitespace (including carriage return) in file names
heeyyyy
@Kevin splitext doesn't eat the delimiter!
''.join(s)
>>> ''.join(os.path.splitext('dir/extension.pdf'))
'dir/extension.pdf'
 
Ok but if we're creating filenames from nothing, we don't have the results from a previous splitext call to work from
 
or do you want to replace it?
well there's os.path.extsep then
DATA
    __all__ = ['normcase', 'isabs', 'join', 'splitdrive', 'split', 'splite...
    altsep = None
    curdir = '.'
    defpath = ':/bin:/usr/bin'
    devnull = '/dev/null'
    extsep = '.'
    pardir = '..'
    pathsep = ':'
    sep = '/'
    supports_unicode_filenames = False
 
3:29 PM
So the KevinOS compatible way is filename = s + os.path.extsep + "png". Yuck.
 
filename = os.path.extsep.join((s,'png')) # better?
probably not
espcially with the double parentheses
 
Hmm, better than manual concatenation, I suppose.
 
f'{s}{os.path.extsep}png', splendid
 
If only it were more widely version-compatible.
 
the only blemish on an otherwise flawless solution
 
3:36 PM
Making sure that the user includes an '@' symbol in their input exhibits the same "if-else inside a for loop" antipattern that we saw in here the other day during the discussion about that one guy's Battleship program.
 
@Kevin + concatenation for a small number of shortish strings is pretty fast in Python 2.5+. And you save a little bit of time by avoiding a method call.
 
I see this same mistake occur pretty frequently, maybe twice a month or so. I wonder if it would be good to put together a canonical post for it.
@PM2Ring Maybe I recoil away from manual concatenation more than is warranted, since I was traumatized at an early age by using C++ which was lacking in the string formatting department.
 
Traumatized at an early age by C++?
1. weird childhood, 2. either C++ is older than I thought or you are younger than I thought
so many useful answers streaming in to for char in email...
 
I'm 28 and modern C++ gradually took shape in the late 80's and onwards
 
hmm
so it's partly 2/a, and partly 1 + maybe cultural differences
 
3:43 PM
My dad intermittently writes programming textbooks as a side business, so I may have had an earlier introduction to the craft than most people.
 
@Kevin Well, using .join is the proper Python way, but so many people were using + that some core devs took pity on them and did a couple of optimizations. But not everyone was happy about that - Alex Martelli has a classic rant about it.
 
DSM
std::cout << "Cabbage!" << std::endl;
 
Feb 11 at 11:07, by PM 2Ring
For those who don't get the Alex Martelli ref, please see http://stackoverflow.com/a/1350289/4014959
 
Let's see... Apparently I already upvoted that post, so I guess I enjoyed it the first time it was shared.
> they optimized += in a certain hard-to-predict subset of cases to where it can be maybe 20% faster for particular stupid cases than the proper way
 
DSM
I could be convinced either way on that. The people who care about wasting their time chasing minor optimizations -- as opposed to just switching to a language with faster runtimes -- are going to continue to chase them.
 
3:49 PM
I'm curious what exactly that optimization is. Fifteen quatloos to whoever finds it in the source code.
 
cbg
Am I right in saying the hardest part of a new project that includes using a new tech for the first time, is the initial project setup?
 
DSM
Depends on the tech. It's certainly a major hit, though.
 
@Kevin I mostly find it weird to have C++ be an early intro
 
I wonder how hard it would be to design one's language so that strings can exist in a "half-concatenated" state right up until some operation needs its precise value, at which point it joins all its separate bits together.
 
This would include the main project skeleton, and the properly setting up the framework you are using
 
3:50 PM
but that's what I meant by cultural differences: here it's exclusively pascal, and I could understand C too
 
DSM
@Kevin: aren't a lot of the functional languages lazy-eval that way?
 
@idjaw \o cbg, and initial set up is always the slowest
 
@idjaw That's how it is for me, but I think I have a peculiarly low tolerance for setup frustrations.
@DSM I have no data on that but I would not be at all surprised if they were.
 
@Kevin I don't know much about C++, but I assume that it's a little better than plain C with strings. Try doing string stuff in assembler, on a CPU that throws a bus fault if you accidentally dereference an odd pointer, like the early Amigas.
 
@PM2Ring I'll make do with what I've got as long as I can add two strings together without having to manually allocate memory to hold the result.
 
3:54 PM
@idjaw btw I looked up the coaching change. the same thing happened in 2005... no details on contract yet, but should have a new conference in 7 minutes....
 
DSM
I ported most of the Python string methods to C++ because I missed them so much.
 
@PM2Ring I like the word "hoisting"
 
Same. I had a sloppy equivalent of format, although it didn't work quite as seamlessly due to the weirdness of C++'s variadic functions
Namely, not being able to tell at runtime how many arguments were supplied.
 
@DSM that's basically what I do whenever I am forced to use an inferior language ;)
 
IOW, the machine would crash and reboot if you attempted to load or save a byte string to a memory location that wasn't 16 bit aligned.
 
3:56 PM
wait, can't you just use C's sprintf in C++?
 
Yeah but at the time I didn't want to. I forget why.
 
rhubarb again for a bit...
 
Cya
 
I'm diving in to my first real big boy pants node project
 
You're gonna go far kid
 
DSM
4:10 PM
We lost Fizzy after he started doing more JS. I guess soon we'll lose idjaw too. ;-(
 
no
I will not let that happen. I refuse.
I was reluctant to do this in node....but we decided to see how it goes.
 
Joe, you better not leave us. One less sports fan in room 6 = sad news :(
 
I like that one
I've never managed to use another language or framework that I've not felt, "You know, this would be much better if it were Python"
I wouldn't even mind if it were like... any Python3 implementation done in Jython/IronPython style
 
I often feel "this would be much better if I was as familiar with this language as I am with Python", but there the flaw exists within me, not the tech.
 
4:23 PM
I just don't like writing stupid things
 
I'm willing to be open minded to try to new things. What I don't agree with are false statements of x is better than y for reason a b c
 
@Kevin flagged!
 
when a b c are fallacies
@MYGz huh?
 
I'm perfectly willing to admit and accept that in my case, a, b, and c are subjective. But they're objectively subjective.
 
As in, my patience for reading through the documentation is flagging? Yep, accurate
 
4:24 PM
Like, whitespace is fine and braces are annoying
and, lists are vastly superior to arrays when it comes to usability
 
I like braces. I use them even in contexts where they're optional.
//this is just asking for trouble
if(a)
    b();
 
I just never want to space or tab anything. Just leave it one long vertical line with all the code in a single page
 
When your clueless intern comes along and adds c(); right below b(), expecting both to execute only when a
 
and, changing return thing to return thing, other, cool_thing is way better than having to change my function return type to whatever C# is doing these days ;)
@Kevin If I'm using a language that has optional braces, they're not.
 
def foo():
    print('hurr')
why is not actually returning 'hurr'. This language sucks
 
4:26 PM
When I need multiple return values in C#, I like to use the out or ref keywords.
Bonus: free heterogeneity.
 
@idjaw are there languages that actually do that? I know there are ones (Ruby?) that would do it for something like...
def foo():
    bar = 'hurr' + ' de durr'
 
DSM
I don't like automatically-return-last-target, though I can't put my finger on why.
 
Why?
 
@WayneWerner None are coming to mind. I actually don't understand the reasoning behind a design decision in a language to allowing x = foo() where foo is doing what my example showed, just printing. Unless you explicitly do something like "grab from console"
that would make sense
if I don't explicitly return something in my function, then I expect that whatever language's equivalent to None to be "returned"
 
@DSM @MYGz probably "explicit is better than implicit"
 
4:30 PM
^^
 
@idjaw Here, let me help
import sys

class PipeToString:
    def __init__(self):
        self.value = ""
    def write(self, s):
        self.value += s

def return_instead_of_printing(fn):
    def fn_(*args, **kargs):
        old_stdout = sys.stdout
        sys.stdout = PipeToString()
        fn(*args, **kargs)
        result = sys.stdout.value
        sys.stdout = old_stdout
        return result
    return fn_

@return_instead_of_printing
def foo():
    print("Hurr")

print("About to call foo.")
s = foo()
print("Called. Result:")
C:\Users\Kevin\Desktop>test.py
About to call foo.
Called. Result:
Hurr


C:\Users\Kevin\Desktop>
 
You're a wonderful creature, Kevin. Thank you
 
rbrb
 
Meanwhile, Alex Martelli snaps to attention. "Someone is using += on strings again". He reaches for his pills.
7
 
What's wrong with += on strings?
 
4:34 PM
yes what's wrong?
 
49 mins ago, by PM 2Ring
Feb 11 at 11:07, by PM 2Ring
For those who don't get the Alex Martelli ref, please see http://stackoverflow.com/a/1350289/4014959
 
DSM
Quadratic behaviour.
 
Eventually.
 
Maybe if you're doing it over and over again rather than ''.join() or something
 
DSM
I live in the limit. B-)
 
4:35 PM
Sensible place to live
 
"you'll be hit smack in the midriff by the oncoming trailer truck of a 200% slowdown (unless you get unlucky and it's a 2000% one;-)"
 
That rant is the programming equivalent of the haggard scientist that nobody listens to in disaster movies.
 
heh :D
 
cbg
 
cbg
 
4:38 PM
do anyone know php here
codeigniter
 
This may be a silly suggestion, but perhaps try the PHP room
 
upload multiple image in codeigniter is not working properly on live site. on local host is working perfectly
 
@SohaibAsif This is the Python room. Please do not bring non-Python questions to the Python room.
@MYGz Please don't suggest that. If you are joking, the joke will be missed by people not familiar with the humour in this room.
@SohaibAsif Again. Take your PHP question to the PHP room
 
Ok.
 
The rotating knives are precision instruments. They're liable to clog if you throw too many angle brackets in there.
 
4:42 PM
hehe
 
This morning I had an idea for a tool that would automatically run my Python script every time it detected a change had been made to it. Because yes, I really am too lazy to type python myprogram.py every time.
 
@Kevin I think the latest update for PyCharm supports enabling running tests on changes
something along those lines.
 
DSM
Can't you history scroll? It's just up-arrow enter..
 
I can, but why do six key presses when I can do two? ctrl-s alt-tab up enter just becomes ctrl-s.
That's like a 66% savings!!!
 
Or ctrl+r is a killer feature in terminal. We had to start scripts with many flags, it was a life saver.
Dont ask me why so many flags, I didn't write that code :P
 
4:48 PM
cbg
 
C for Cbg
 
The easy way is to write a script autoloader.py which you pass the name of your intended main module, like autoloader.py myprogram.py. Then it can execute your main program and then sleep until the file's Last Modified date changes, and then reload it.
The challenge is being able to run myprogram.py directly, and inside that script have import autoloader at the beginning and autoloader.wait_and_rerun_when_changed() at the end, and do it without spawning a new process because what a waste of resources amirite
 
5:12 PM
If I was 1st position in a race, then I become third, after that I once more overtake the 2nd position, which position I'm in?
 
I know this one. The answer is "water" but people tend to say "milk". Wait, that's not right. I think my notes are out of order.
 
DSM
"Time". It's usually "time".
 
wim
if you overtake the 2nd position then you are 2nd position .. what am I missing??
 
^^
 
hehe. Many people quickly say 1st.
 
wim
5:14 PM
oh
I thought it was a trick question somehow
 
DSM
Maybe the idea is that people will think that if you pass second place you're in first? That was certainly my first thought before I realized my mistake. [I started this before MYGz confirmed it..]
 
It's kinda like those annoying Facebook math questions that say only geniuses figure out
 
hehe
 
The formulation I typically hear is a little shorter: "You're in a race and pass the person in second. What place are you in?" which I think does a little better in leading you down the wrong train of thought, because there's only one number in the question.
 
Designed to get you to answer quickly and be laughed at, when you all of a sudden realize there is One package of fries and not two. And it is an addition and multiplication and not two additions
hurr hurr hurr so much genius
 
5:16 PM
"2nd - 1 = 1st, obviously"
 
wim
also you "once more overtake the second position" is strange wording
because it is not necessary that you have ever done that previously
 
If you mention explicitly that you're in third, then the listener is more likely to correctly subtract one from 3 instead of 2
 
Yes right @kevin. "once more" was to mislead :P @wim
 
@wim Perhaps a better wording would be "once more change positions, this time by overtaking the person in second"
@wim I know, I know... I should be using finally to restore sys.stdout in case foo throws an exception.
 
wim
5:18 PM
better yet, we already have a built-in context manager for it docs.python.org/3/library/…
 
Ooh, nice.
 
DSM
I.. I just learned that there are lights under one of my desk-mounted cabinets, because I accidentally turned them on. I've been here since last June.
 
I have a dim memory of discovering this before, and then forgetting about it.
@DSM Blame the manufacturer for their unintuitive UI.
 
Was it an LED atleast?
 
wim
looks like just a placeholder to camp the magicstack name
but, 0.5.0a1 is a very specific release number for a placeholder ...
 
5:32 PM
Does it happen with everyone? You are programming and someone is talking to you and won't stop, so you smile and nod, But neither can you understand them nor can you concentrate on the things you are doing. But you tend to get stuck in that situation once more :P
 
@wim Totally seems like it is exactly for that reason. Bogus package just squatting on the name
Have you been to their site....very vague...Are you familiar with them?
 
wim
No, I thought it might be related to openstack
but I guess not
 
oh not at all
but totally a name that should have been grabbed by the OpenStack community.
could have some good use in the future.
 
time to:

    import sleep

    while morning:
        try:
            sleep.sleep()
        except:
            pass
Rhubarb
 
DSM
@MYGz: nope, not LED..
 
5:43 PM
Oops. while not morning: Rhubarb
 
wim
it's time.sleep(), not sleep.sleep() , your code is bad and you should feel bad
8
 
DSM
Maybe he has a custom module called sleep
 
@MYGz Used to happen to me. These days I just recognize that I can only focus on one thing, so I abandon my computer entirely until the conversation is over.
Sometimes I lock my workstation to make it fully evident to the other person that yes, they're preventing me from doing work.
 
wim
@Kevin Kevin is so polite and considerate, locking up the workstation to make it fully evident he's giving his full attention to my needs!
 
Yeah, it doesn't always work.
Although it doesn't hurt to cultivate a false reputation of attentiveness as a side effect
 
6:09 PM
cbg
 
cbg
 
6:32 PM
cbg
 
cbg
 
can someone share a tutorial for insert operation with django ?
 
This week I've been reading Terry Pratchett's Long Mars and there was a bit of dialogue like "and don't forget the rhubarb" and for a moment I felt like it was a message just for us
 
I think it is OK to feel that way.
 
6:36 PM
Some rbrbs are longer than others. Much, much longer.
 
@AnttiHaapala -1 for too many words "insert operation django"
same results
 
I know how to spell rbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrb‌​rbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrb but I don't know when to stop
 
r<br/>b
 
Antttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt‌​tttttttiiiiiiii BREAAAAAAKEEEEEEEEER
 
Ant<br>ti
 
6:40 PM
@MYGz I can relate this ;)
 
6:59 PM
Irritated that L-Systems and the stack in Maya looked like a question I could answer, but then OP mentions Maya halfway through
Oh those sneaky questions like "How do I do [simple thing]? Oh, and it has to use [thing you've never used]"
I'll edit in the tag as a warning to others.
And an unhelpful comment for good measure
 
Hey, I got this page with a lot of pages on, and I basically want all the text from all the pages this certain person has liked.
To do this, it would properly be the easiest if I scrolled to the button of the page, and then scraped the data off of the html code.

But how can I scroll to the button of the page in the fastest possible way?
I found this: http://stackoverflow.com/questions/32391303/how-to-scroll-to-the-end-of-the-page-using-selenium-in-python

But it waits 3 sec every time the page is loading for more "liked pages" which is pretty slow. Do i decrease the number will the bot exp
This is the page I want all the "liked pages" from: facebook.com/LauraLuvsFabian/…
 
Sounds tricky. This is why I only scrape static pages. If I can't get the data from the html after initial page load, I give up.
Maybe I'll make a half-hearted attempt to reverse-engineer the AJAX calls so I can spoof my own requests, but it's usually too much effort.
 
7:17 PM
@SebastianNielsen there's actually a search you can do that pulls up all the likes of a particular person. It's something like "$user:liked"
Or is that what you're doing already?
 
yeah, wow tell me more!
 
That's about all I know, but you may want to check if they have an API you can use. That is unless you want to work on scraping data?
 
wim
7:43 PM
dumb question asking about deployment but actually not about deployment at all
too broad/unclear what asking/attracting flies
 

« first day (2314 days earlier)      last day (2637 days later) »