« first day (2354 days earlier)      last day (2587 days later) » 
00:00 - 17:0017:00 - 23:00

12:06 AM
@ZeroPiraeus The OP has now posted some code. stackoverflow.com/questions/43024432/…
 
12:32 AM
Hello, I have very broad question about artificial neural networks. Do anyone want to answer?
I mean are you interested in the field?
I need some guidance.
 
@PM2Ring smh....
indentation all along...after all that.
 
Annoying, isn't it. Pity you can't slap people over the internet. :)
 
hmmm
Slap-as-a-Service
3
 
1:54 AM
cbg
 
 
2 hours later…
4:10 AM
cbg
 
 
2 hours later…
5:54 AM
cbg
 
6:15 AM
cbg
 
6:41 AM
bg
cbg
 
7:18 AM
@idjaw we use our on internal Slap-as-a-service
 
7:28 AM
cbg
 
7:53 AM
@Code-Apprentice Working out good so far - tomato-timer.com. Thanks!
 
hey there
@classmethod
    def from_ctm(cls, path):
        """ Return a list of segmentations from a ctm file"""
        ctm_content = ctm.read_file(path)
        segmentations = []
        for utt_id, info in ctm_content.items():
            segmentation = Segmentation(utterance_idx=utt_id)
            for segment_info in info:
                start = segment_info[1]
                duration = segment_info[2]
                label = segment_info[3]
                segment = Segment(label, start, start + duration)
who can help me to understand this snippet?
one line from the .ctm file:
2015-02-09-15-08-07_Kinect-Beam 1 0.82 0.57 Jacques
what does:

for x,y in c does?
 
@PomeGranate iterate over each item over c; expecting each element to be an iterable of 2 items, first of which is assigned into x and the second one into y.
for x, y in c:
is effectively the same as
for tmp in c:
     x, y = tmp
or:
 
8:08 AM
this question might lead a long way:)
cbg
 
for tmp in c:
     t = tuple(tmp)
     if len(t) != 2:
         raise ValueError('....')
     x = t[0]
     y = t[1]
 
@AshishNitinPatil awesome! kanbanflow.com has a pomodoro timer to use along with its kanban board.
 
(less the temporary variables created). As to why to use the first, and not the last - well that is left as an exercise for the reader
 
probably should have linked that earlier.
 
@Code-Apprentice pfft :D
 
8:11 AM
but if you aren't doing kanban, then the timer is sufficient
 
the kanban thing is a misunderstanding :D
I hate how it has become the buzzword of the day
everyone who is using kanban for new project development misunderstands everything :(
 
I learned about it from a book called "Soft Skills". I just use it for a to do list basically
 
but yeah that does look useful for non-software development
 
hmm...hadn't thought of that. I am currently using it for a software consulting project. It helps to keep me on track and on task.
 
@Code-Apprentice the thing is, kanban was used in car manufacturing to signal what needs to be produced at any given moment.
 
8:13 AM
especially with the timer.
 
the point is that with the help of kanban the manager at the toyota factory can control the entire supply chain.
 
hmm...interesting
didn't know about that
 
now it is being used for all kinds of "lean mongolian clusterf*ck"
 
I haven't used it in any professional/team software development. Just started using it for my own personal and consulting projects.
 
so it would basically work so that when Toyota takes a motor from the shelf at the main factory to install it into a new car, that sends a signal backwards in the chain for them to start building a yet another motor... and so forth.
the idea being that no one in the chain need to forecast any production amounts, only the main factory.
 
8:19 AM
is that coupled with just in time logistics?
 
and they'd make a plan: say 20 sedans and 5 suvs per day. With 4 + 1 production time to balance the work load.
 
That's not what I'm doing with it at all lol
 
it has to be
@AnttiHaapala the real question is: is it webscale?
 
now people use the "kanban" to a) plan things beforehand, b) to manage a mongolian clusterfuck, c) everyone comes up with their own tasks and so on :D
it is just WRONG, plain wrong :(
 
but if it wasn't plain wrong, it'd ruin your day :P
 
8:21 AM
@Code-Apprentice that's a rather nice book, if you can get it in a library, I recommend it
I could actually buy a hardcopy for myself, mmh
 
How is a mongolian clustfuck different from a chinese clusterfuck?
 
hey now, we try to keep this a politics-free zone as much as possible :P
 
LOL :D what did I read, scrum is communism :D
 
8:41 AM
how about a french clusterfuck then?
 
dunno :D
lol, this is so wrong :(
 
I'd ask about an american clusterfuck, but that's just repeating yourself.
@AnttiHaapala the file name is "Simple" Kanban Board???
 
yes
and it is backwards :D
 
oh, nvm...it's Sample
@AnttiHaapala maybe they work with Arabic countries?
or some other L to R locale
 
ya
the main point of kanban is that the control is elsewhere, and the customer pulls from you
that is push production in that picture
 
8:57 AM
Thats a first for me
 
morning guys
aka cbg
 
cbg
@khajvah 68% charge, you da real mvp
 
9:31 AM
Hey guys. Can we keep the gratuitous swearing to a minimum? Thanks.
 
10:16 AM
Cbg
 
cbg
 
10:58 AM
can anyone answer this question: stackoverflow.com/questions/42928835/…
 
@PM2Ring We can try, but somehow "clusteryam" doesn't have the same resonance.
 
True. :) Personally, I don't mind the occasional bit of swearing when it's justified, but I know that some other ROs prefer that we keep the language here clean.
 
11:22 AM
I think we'd like to be the sort of place kids can visit without complaints from their parents that we are a bad influence, but adults will be adults sometimes ...
Hey, nobody's perfect!
 
Hey, I've even used the f-word here myself, and got 7 stars for it. :)
 
11:48 AM
fudge ?
@holdenweb I doubt many kids visit Python chat in StackOverflow
 
12:11 PM
You are entitled to your beliefs ;-). Just quoting what was said to me when I slipped an obscenity in
 
12:28 PM
@praveen.jar you asked that question here at 10:58 UTC, and you also left a comment at 10:59 UTC for the answerer to your question:
that doesn't work, i've updated the models. — praveen.jar 1 hour ago
if I were you I'd let the answerer respond, although you should know that "that doesn't work" is never sufficient information
also, "I've updated the models" sounds like you significantly changing the question, which you should also avoid doing
I didn't take a close look at your question, these are general words of pseudowisdom
 
12:47 PM
@PM2Ring yuck
 
Ugly code that almost works is a vast improvement over no code.
 
and at least they thank for advanced
 
But that answer's pretty gross.
 
1:01 PM
howdy
 
cbg
 
I have an idea for a thing, and the first way I thought to implement it would take an hour and be very ugly. I have spent maybe four hours thinking of a better way to do it.
If I had not spent any time thinking, then I would be three hours richer, and I'd have a working thing.
 
I think the famous greek philosopher Pythonius once said, "it's better to have a working thing that you're happy with than a working thing that's ugly"
 
And both are better than running out of attention span and leaving the half-finished repository to be abandoned
 
Doesn't that depend on the task's significance though?
 
1:06 PM
But it's not just an aesthetic thing: ugly code tends to be hard to maintain, and tends to get uglier the more you modify it.
 
looks at all of his half-finished repositories
 
If I complete* the thing, I may put it on Github, so readability/maintainability is a little higher priority than usual
(*insofar as any project can ever truly be completed, which is to say, not at all)
 
Can't find the classic xkcd for this one :/
 
@AshishNitinPatil m.xkcd.com/292 maybe?
 
Na, that one is the goto. I was thinking of the one where there are a lot of half-done projects.
 
1:16 PM
xkcd.com/306 ? Or if you prefer JSON, xkcd.com/306/info.0.json
 
lol
I didn't know that was a thing
 
\o cbg
 
@PM2Ring That was my first result too. Apparently the keywords needed for the hunt are far different than I am currently using. The person basically has an idea for a new project and switches over to working on that, leaving behind his current one. At the end, when the place is zoomed out, you can see a lot of half-done projects.
 
how done is a project where all I have is a clever github repo name?
that's like...half I think
 
@excaza The JSON feed is rather handy, and it's the easiest way to get the publication date of a comic. The JSON feed's been around for ages - they got sick of everybody scraping the comic page.
 
1:21 PM
@excaza hah! I'd make it 90% done if I finalize on all the variable names too.
 
@AshishNitinPatil Are you sure it's an xkcd?
 
@PM2Ring Hmm, need to remove xkcd from my keywords now and try. But the background and the overall scene suggests xkcd.
 
Ok. If all else fails, there's a xkcd forum thread for finding obscure comics. forums.xkcd.com/viewtopic.php?f=2&t=105072
 
@PM2Ring Thanks. Need to find it before I can go to sleep. Only 7 more hours to go. I have a lot of time.
"Unfinished projects comic" was my savior. commitstrip.com/en/2014/11/25/west-side-project-story
 
1:33 PM
But, numpy does make things very easy for this type of operation. Numpy's solution is certainly more readable than [x/y for x,y in zip(a,b)]... — not_a_robot 1 min ago
.....
so, readable is now an excuse to install a whole package
overkill solution ++
 
@idjaw I'd go with it only if there were 100 more such scenarios which led to an at least 50% performance improvement.
 
@AshishNitinPatil 100% agreed if the use case for the problem justifies using numpy. Absolutely
OK. Can I get some dupe help? I already gave my CV and I found a dupe target
Thank you sir gold wielder of the mighty hammer
 
:) But I wasn't quick enough to hammer it before that range loop answer got posted. Oh well. Guess I better write a comment...
 
😀
we did our best
 
It's generally better in Python to loop directly over the items in a list, rather than looping indirectly via indices. It's more efficient, and the code is less cluttered. — PM 2Ring 1 min ago
 
1:47 PM
sorry for the bombardment this morning...there are just some that really need a quick clamping before they get chomped on
This is why we can't have nice things. Someone already answered
 
My web development time would be reduced by as much as 25% if only the elements aligned as per the expectations.
 
@idjaw if a user doesn't have 3k rep, does they flagging the post do anything after someone asks for a cv ?
 
If you flag something using the flag I believe it gets sent to the moderators of SO
So, only the diamond users get notified.
 
@MooingRawr Yes. It puts the post in the CV review queue.
@idjaw I don't think so. The mods don't get notified for duplicates or other minor CV reasons.
 
@AshishNitinPatil I must have misunderstood...I thought he was talking about the actual "flag" link in the question
as opposed to the "close" link
close, yes, it will get sent to the queue
flag, only to diamond users
but flagging in chat gets sent to anyone over 10K I believe
 
1:57 PM
@idjaw I am also talking about the flag. Dunno if all flags go to mods.
 
I get flags in chat
@AshishNitinPatil Right. Can't say I know this with 100% certainty as well
 
@idjaw I meant like, for example, I don't have 3k for a close vote, when you asked for a cv on a link, does me raising a flag (same flag as you) do anything in terms of helping you.
so in your question you just post, you want it to close based on duplicate, if I flag it for a dup close with the same as what you flag is that helping you or is it just putting it on the queue and that's it
 
OH! Yes it does. Because you need five votes to close a question. So, if I close for a dupe, that is one vote. If you close for that same dupe, that is two votes of the five
so then we just need three more people to help close it down.
It goes much faster when a gold badge python user comes in and can just hammer it on their own without any additional votes
 
@MooingRawr I hate to speculate, but can't find appropriate source for this. Flagging does not help if the question is already voted for closing once, since flagging only puts it in the queue. (Speculation warning)
 
oh so me raising a flag is a close vote ? I thought only 3k can count towards that 5 count voted: stackoverflow.com/help/privileges/close-questions
 
2:01 PM
@idjaw But he doesn't have the rep to close-vote.
 
@MooingRawr Nope. It is not a close vote.
 
@MooingRawr You're correct.
 
@PM2Ring Is it? Source please.
 
ah okie, so it's like asking a kid to help clean up and the kid picks up a tissue and gives it to you to throw away. it does something but not what we really want...
 
Oh! So if you actually clicked "flag" that does nothing to actually help contribute to the close-vote requirements
you have to actually click the "close" link, which i think is only available post-3K-rep
 
2:03 PM
Flagging a post throws it into the close vote review queue, where people who have CVing power can see it. But I can't remember if CVing also throws it into that queue...
 
@idjaw correct! :D stackoverflow.com/help/privileges/flag-posts is flagging, which is only raised for the community to review it... apparently
 
DSM
Monday morning cabbage.
 
morning DSM!
 
Also, from stackoverflow.com/help/privileges/close-questions "Any post which currently has an active close vote or a close flag will appear in the Close Votes review queue."
 
2:06 PM
\o cbg DSM
 
So my speculations were right, flagging doesn't convert to CV if you don't have the rep. Unsure if the mods get notified.
 
> if u have a solution,i am listening
when you ask OP to post his code and example instead of a picture :\
 
@AshishNitinPatil The mods only get alerted for major flags. Other flags just throw posts into the review queues so they can be handled by the community. See stackoverflow.com/help/privileges/flag-posts for the details.
 
Riddle: fill in the blanks so this code does not raise an Exception.
def f():
    if False:
        #...?
    raise Exception("Oops")
f()
 
fill in the blank means only the area with # ... can be modified right?
 
2:11 PM
Yeah.
 
@AshishNitinPatil Sorry for the confusion. That was supposed to be a reply to the earlier post chat.stackoverflow.com/transcript/message/36329584#36329584
 
@Kevin is it version specific ?
 
@MooingRawr No.
 
Can it raise a different exception?
 
(The question mark on the "#...?" line is part of the blank, btw. The final program will not have it... Unless you really want to have it, for some reason)
 
2:15 PM
and we have to put it with that indent :D ?
 
@PM2Ring Nope.
 
So no SyntaxError then. :)
 
DSM
Aaargh. The font my office webmail uses by default has an 8 which looks almost exactly like a 5 below a certain size. Poor design.
@PM2Ring: SE was my first thought but that's an exception too..
 
@MooingRawr Yeah. Your submission must be indented to be entirely within the if block.
 
I'm trying to get work done and I immediately come in here to a nerd-snipe
 
DSM
2:16 PM
I have one idea, let's see if it works..
 
So you can't submit, say, pass \n\t else:\n\t\t return True
 
@PM2Ring ah, no issues :)
 
is it just me, or is it a huge red flag when a movie releases a ridiculous amount of trailers?
 
@Kevin darn :(
 
DSM
:-( It doesn't. I was hoping to play indentation games with the second line so the third line's depth is misunderstood. But I can't find the right indentation and Python 3 wouldn't let it pass anyhow, and we know the sol'n isn't version-dependent.
 
2:20 PM
I will reveal my intended solution in five minutes.
 
Please spoilerify, if you don't mind. I want to work on this but can't until later
 
DSM
Pleas.. aargh Kevin'd by KEVIN!
 
I can't test it, but I strongly suspect that the intended solution works even for interpreters other than CPython.
Ok, here it is: ideone.com/iqgTUt
 
so Kevin, what did you do for your weekend other than thinking of brain teasers for us ?
 
wait...Kevin
I agree and disagree
@Kevin Not Kevin M! 😛 view spoiler
 
2:28 PM
^ I agree with idjaw, but then again Kevin only asked to run it so no exception is raised, so he is still technically correct
 
haha
yeah
 
I thought it was a compiler question :\
 
Maybe Kevin is playing us all and there is no REAL solution to this....
 
@idjaw Yeah unfortunately there's an interpretation of the problem statement that excludes the solution. view spoiler
 
once again over thought it, we need a term for over thinking things.
 
2:33 PM
and he is just using us all as part of his experiment to see how long we go for.
 
Perhaps a stricter wording would be "fill in the blank such that, when this text is saved in the file program.py, and you execute python program.py, no exception is raised"
 
Kevin kevin Kevin kevin kevin kevin Kevin kevin.
I'm missing a 'd in there twice but eh w.e
 
The next thing I'm trying to figure out.....
nvm....
a quick reading-reminder took me to the thing that gave me the answer that explained the thing I forgot that I once understood
 
It's a bit like my previous riddle in that way.
 
these are fun. I'm relaying these to work-slack so people can argue about them
 
2:43 PM
Here is one more, although it's not quite as "fair" as the others
Unrelated. Today I learned that "de jure" and "du jour" are different concepts.
 
DSM
...
 
@Kevin does NameError count? I wish ti would show the year :\ cuz I don't remember this 'puzzle'
 
Order the soup du jour if you want a fresh and trending meal. Order the soup de jure if it is your destiny to do so by the will of the cosmos.
 
DSM
Wait, that second one doesn't make sense to me.
Oh, you're just being very flowery.
 
Well I'm stretching "according to rightful entitlement or claim; by right." a bit to imply that one's right is divinely instated
@MooingRawr a NameError is not a syntax error, so yes, that would be valid.
Up until this point I assumed when people said "X is the de jure government of region Y", they meant "X is the government of Y today, but due to political instability, it wasn't yesterday and it won't be tomorrow"
 
2:57 PM
@Kevin pastebin.com/Yb973V9a all I can think of :\ time to look up if you posted a solution :D
 
Which almost always made sense in context, because when you have to specify that a government is de jure, there's probably going to be some political instability.
@MooingRawr You got it, that's the answer. (FWIW I did post a solution, about a page or two down)
 
I wish the transcript posted the year, cuz I don't think I was around there
 
It is almost certainly from this year.
 
DSM
Float over almost any date in the page.
 
@DSM oh neat thanks :D ....
So @Kevin, AoC gave gold stars for their puzzle, what does KevinPuzzle gives me ?
 
3:02 PM
0.23 quatloos have been deposited into your account. You can't withdraw them or look at them, but they're there.
We take "cryptocurrency" very seriously here. If you know how much money you have, it isn't cryptic enough.
 
Can I deposit more or is that feature only for rewards..... I look forward to the day my quatloos would yield me physical / electronic goods.
geez I need more tea to function, god for edit... maybe I should re read my sentences before posting.
 
Except when I create them out of thin air, quatloos can only be deposited by withdrawing them from somewhere else. But this is impossible.
 
@Kevin pastebin.com/hxxkXGDv some how I think I misunderstood the question.....
 
@MooingRawr You're supposed to add the same thing to both programs.
 
o .... but but it was never stated... Well that would make a bit more sense in terms of a puzzle.... I think I took contents as two different content rather than the amount of one content....
 
3:22 PM
While we're clarifying, there should be literally no output for the second program, rather than the output "nothing"
 
3:34 PM
Hi
please I need some help with Python import and http post request
as I understand by default python cannot make an http request without load some module
so I decide to import "requests"
I run: pip install requests
Requirement already satisfied: requests in /usr/lib/python3/dist-packages
this means that it is already installed?
 
yes
 
then I tried:
import requests
r = requests.get('http://www.example.com/')
 
Ok...
 
it worked, 200
:)
python is cool
no problem then xD
bye
 
Alright then. Another job well done.
 
3:44 PM
that was the most unsatisfying play-by-play ever
 
welp..... we did it :D ?
good job team, take the rest of the day off :D
 
3:55 PM
morning cabbage
 
good morning Wayne, how was your weekend :D ?
 
Fairly good. Kid had a breakdown, but maybe things are better
remove the forward slash — bvmcode 6 mins ago
@bvmcode: That's a backslash. — user2357112 6 mins ago
snicker
 
I've got a class Rectangle with instance attributes left, right, top, and bottom. Some, but not all, Rectangles need to be rendered on-screen using a GUI, such as Tkinter or QT or Pygame. Whenever a rectangle's attribute changes, the GUI representation should also change. How should I structure my code so this occurs? I'm willing to use property decorators or __setattr__ or anything else.
The first approach that comes to mind is to put the rendering logic right in the class:
class Rectangle:
    def __init__(self, canvas=None):
        self.canvas = canvas #this is the Tkinter widget we're drawing the rectangle on
        self._left = 0
        #...
    @property
    def left(self):
        return self._left
    @left.setter
    def left(self, value):
        self._left = value
        if self.canvas:
            #todo: use `self.canvas` here to redraw the rect
But this is awkward because
1) not every rectangle needs to be rendered, so putting a lot of gui-related code in the class seems to violate the principle of single responsibility
2) if I change my mind and use pygame instead of tkinter, I have to rewrite the class.
I thought about having a GUI-agnostic base class and then doing:
class TkinterRectangle(Rectangle):
    def __init__(self, canvas):
        self.canvas = canvas #this is the Tkinter widget we're drawing the rectangle on
        Rectangle.__init__(self)

    @property
    def left(self):
        return self._left
    @left.setter
    def left(self, value):
        self._left = value
        #todo: use `self.canvas` here to redraw the rect
But this is awkward because I'd have to redefine the getters for each attribute in each subclass, even though they all behave identically (...right?)
 
should this be closed? stackoverflow.com/q/43048891/344286
@Kevin I'd go with doing events
 
4:07 PM
maybe make a sub class of rectangle that needs to be drawn and store the stuff in there ?
 
I thought about using a listener pattern:
class Observable(object):
    def __init__(self):
        self.listeners = []
    def __setattr__(self, name, value):
        object.__setattr__(self, name, value)
        for f in self.listeners:
            f(name, value)

class Rectangle(Observable):
    def __init__(self):
        self.left = 0
        self.right = 1
        self.top = 0
        self.bottom = 1
        Observable.__init__(self)

def register_with_canvas(rectangle, canvas):
    #todo: initially draw rectangle here

    def attribute_changed(name, value):
 
but im a fan of not mixing data (your rect class) with functions or actions or events.
 
This one I only dislike a little because it uses nested functions, which can be an indication of overly-complicated code. If there's a simpler way to do it, I'd prefer that.
 
Maybe use something like pythonhosted.org/blinker ?
 
The easiest approach would be to have no way of alerting the GUI of attribute changes, and just make the GUI redraw the entire scene from scratch every frame.
 
4:14 PM
so much resource
 
Which ranges from "It does that anyway"* in the case of Pygame, to "You're going to get 0.1 FPS that way" in the case of Tkinter
(*assuming you're not using the optional optimizations available to you)
 
Is there a way to easily get the list of all operators which are valid on a primitive type? such as int and having to implement __eq__ etc?
 
@enderland docs.python.org/3/library/functions.html#dir you can use dir to see all the 'methods'
 
Ah, dir works
not sure why I didn't try that
 
user6845426
cbg o/
 
4:21 PM
I won't explain why I care about that :|
 
now you will know and hopefully will remember :D
 
we need an enum that has a type, basically
and not in python3 :(
 
sounds like an xy problem one which will require a mvce, so until then ima just slowly back away :D
 
@MooingRawr not really. we need to replace an "enum" that is currently an int with a type that can be checked runtime
 
school work?
 
4:29 PM
no
I wish, then I could just commit the hackiness and be done with it lol
 
Define "checked [at] runtime". I can check that an int is an int at runtime using isinstance(x, int)
 
@Kevin the value needs to be an int, for backwards compatibility reasons, but isinstance(x, myenum) needs to be true
 
isinstance = lambda x,y: True?
 
I actually think that class Enum(int): will work
 
4:39 PM
It's not actually named Enum
it's got an internal name
I didn't realize that python lets you subclass a primitive, that was surprising to me
 
hello, does someone know how I can gather the credentials from someone signing up on my django website to send them in a request to another website (to be able to login on that website and gather some data) ?
 
that seems...unsafe
 
DSM
@enderland: "primitive" isn't a term that Python really uses.
 
@excaza exactly, that's why I think I haven't found any instructions online ... however I just want to scrape data from a website on which login is required
 
so your solution is to ask someone for their login credentials to another site?
 
4:44 PM
it sort of reads like, "how do I steal user credentials from a website I have by redirecting them elsewhere and capturing their login"
 
hmm yes I must have formulated it badly then :)
 
@TrakJohnson are you using any library for signup? or you wrote your own view?
 
There are valid use cases for this kind of thing, mind. Example: you want to implement a "like our page on Facebook" button on your web page.
 
@TrakJohnson stackoverflow.com/questions/43034211/… I see you asked the same question on the main site. We generally frown upon splitting up discussion between the main site and here :\ just for future reference
 
for now I'm using the django-auth, with this view docs.djangoproject.com/en/1.10/topics/auth/default/…, however this gives the hash of the password... which I understand is necessary for security, but I can't do the requset using this
 
4:46 PM
I presume FB has some kind of API in place that lets this happen securely.
 
ah sorry :/ I wasn't receiving much attention so I thought I could ask here :/
@Kevin Right, so if the site has no API its not possible to do it securely ?
 
@TrakJohnson you can access raw post data in the view and then query another service (or eventually save the password without hashing)
 
I have no practical experience in this kind of thing but I suspect that the web site you're trying to log in to needs to support that kind of thing on their end
 
of course saving password without hashing might not be a good idea but its up to you ;)
 
@Kevin so if I'm logging in on a website in python using a POST request with my raw credentials inside ... its not secure ?
 
4:49 PM
are you scraping your own site? if not, is it something the site even wants you to do? There are other ways to minic a log in
 
If you have the raw credentials, then it's already insecure for the customer, because you have their raw credentials. "Just trust me, I won't do anything bad with them" won't satisfy them
 
DSM
This whole thing seems sketchy.
 
^ I second this :\
unless you say on your site that you are going to use the log in creds to log into x site, which I also think is a really bad idea, I think your users wouldn't be happy (also what if the user log in for yoru site is different from x site).... if you are logging into x site for feed back data to use on your main site, say facebook-liking your page or something, then x site should have API that provides you with the 'public'/shareable data. If it's not meant to be shared it shouldn't be forced...
 
@TrakJohnson password in request.POST['password'] is not a hash as far I know, its a raw password
 
however the purpose of the whole site is to be an overlay over the other site, so the users will be fully conscient. I don't need to store any credentials, just be able issue a request and then display content of scraped website
@marxin It seems like I'm getting a hash ... I must have used it wrongly then
 
4:55 PM
authenticate() function takes raw credentials as input
 
once again, what you are requesting, seems like a bad design in the first place :\ but meh, I'ma just bow out good luck.
 
@MooingRawr Right, I guess I'll have to find a better way .. the problem is that the website I'm overlaying does not have any API, so I have to login manually using requests
 
Gray hat solution: acquire their plaintext credentials and send them to the website securely*. Assuming that you, personally, are perfectly trustworthy, then the whole process is secure. Your customers might not know whether you are perfectly trustworthy or not, but how are they going to find out that you're handling their plaintext credentials to begin with if you don't tell them?
(*I have no idea how this part is done, though. HTTPS???)
 
00:00 - 17:0017:00 - 23:00

« first day (2354 days earlier)      last day (2587 days later) »