« first day (1600 days earlier)      last day (3352 days later) » 

7:04 PM
cbg
 
7:19 PM
wow... X has a right paddy if you pull out the HDMI cable and then put it back in
 
paddy means "tantrum", for anyone else who is thinking of googling that
I assume that's a bit of rhyming cockney slang there. right paddy -> rice paddy -> farm -> alarm
 
DSM
Uhh
 
@Kevin thanks for translating my colloquial English?
 
No problem.
 
7:36 PM
Damn. Another dv without a comment :(
 
Cabbage guys; out of curiosity is Scrapy good at what it's supposed to do?
I mean this in terms of usability as well as function
 
Shrug. I've never heard anyone say anything bad about it.
 
DSM
Bad scrapy! You're supposed to throw an exception if the scraping violates the TOS!
 
I'm doing it for a client on their own site lol
 
DSM
That reminds me, actually: one guy was asking for Python scraping help for one site where it was clearly forbidden by the terms. His reply was that a friend did it, or a brother, or someone. IIRC I suggested that might not hold up in court.
 
7:45 PM
If both brothers blame the other one, they'll never convict!
 
Lol that's pretty funny
 
It's like when one of a pair of conjoined twins commits a crime but they won't say who
 
Well I have to do this because their platform (apparently) doesn't produce a product feed
 
If not conjoined, they should run around each other in circles so nobody can clearly point at one of them.
 
DSM
Usually it's database -> HTML, so I don't know why you can't just access the database directly.
 
7:46 PM
I'm not allowed
They won't grant me access to anything backend. No DB, no access to their platform
 
I have a personal library for scraping... a very simplified version of scrapy that's aysnc, that works with a MQ blah blah... still undecided to release as OS yet though
 
Would you mind letting me take a look at it, Jon?
 
DSM
Well, it's their money if they want to pay you to do something which would be much simpler to do if you had the access, although I don't know if I'd feel the same way if I were an investor.
 
Yeah, they're stupid
 
@DSM any company that said - "err, well, can't give you DB access, but you can scrape it!" - to me is a no goer
 
7:48 PM
map-territory confusion in this post. I should have known not to reply.
 
It's not a freelance client unfortunately. I am doing it for work
 
DSM
Wait, so it's your own company which isn't giving you access to make DB requests?
 
I'm imagining some high-up there sending emaily by typing and printing them and then send scanned images as attachmets.
 
DSM
@Kevin: I see through that. Admit it: you answered it deliberately so you could drop "map-territory confusion" on the room again..
 
7:51 PM
@DSM I remember one company I worked for once, the CEO was furious that the "Head Of IT" had access to his emails
 
buh... I can't see what's wrong with my url request here
 
@JonClements To be fair, there are measures to counter that
 
@DSM That was my backup motivation. "well, if I don't get points, at least I have something to complain about"
 
@Carsten well, since all the company emails were stored in a CRM system, and I held a DB admin role on said system, and admin on the DB server, and root access to the server... goes without saying I coulda done whatever
 
DSM
My word. Well, at least the OP noticed the problem and realized there must be a better way.
 
7:54 PM
@JonClements Yeah okay, under those constraints. Just saying that there are ways to design a system so that no single person gets access to this stuff, or that everything's encrypted or whatever.
 
@Carsten indeed... but it wasn't designed that way... would have been easy to do so... but sometimes get paranoid that IT people have more "access" than they do
 
And if you don't have unlimited access and someone runs into a problem, you have a hard time explaining why you can't just help them. sigh
 
DSM
"I forgot my password. Can you let me into my super-secret encrypted email?"
 
Thankfully, my departmental director spoke to the CEO and basically addressed those points
so he settled down a bit after that
 
is this part of oauth regular flow now? state: A semi-random data blob to be sent back along with the player when completing authorization.
 
8:00 PM
I do work for various clients with full DB access across nearly 600 servers, in 5 continents, ranging from finance and telecoms
I have access to now - roughly, 1.2 trillion records
I'll look at some records if I need to, otherwise it's just that - data....
 
@covid it's optional
 
just crunch it and get on with it
 
We have a big database at work but I only ever actually see like a dozen records
 
And again, everyone is safe because of reason and lazyness.
 
"This query should return somewhere between ten and ten million rows". Scroll scroll scroll. "Ok, looks good, let's commit the changes".
Actually looking at the letters on the screen is optional.
 
DSM
8:03 PM
I have a great story along these lines which I probably shouldn't tell. (Which is always what people say when they have an okay story they want to hint is better than it is.) But not all clients are as careful about data privacy issues as they should be.
 
Anonymise the story! "This one company... Hoogle... once..."
 
Just 6 rep from downvote :D
 
:)
What is the definition of goong (wrt to this chat room)?
 
Don't do it please
 
DSM
8:08 PM
"gong": word not to be used any more in context of closures
 
Aw! Nice defn there! Will not use it again.
 
DSM
You can read the last meeting's transcript: apart from whether or not it was actually biasing us toward closing a question just to be part of the fun, it could give off that impression, and it's not funny enough to be worth the hassle. ;-)
 
@JonClements wanna fix my db problems
 
@AnttiHaapala sure... £100/hr
 
@DSM I was actually reading sopython.com/wiki/cv-pls :)
 
8:11 PM
Source 2 engine is going to be released for free. This is coming on the tails of Unreal Engine 4 and Unity 5, which are either being made free, or whose already-free versions are being expanded with previously for-pay features.
 
:o I also want 100GBP/h
 
It makes me wonder if all these companies are thinking X moves ahead, releasing these things in response to each other. ex. "if Unreal releases their engine with XYZ licensing terms, we will release ours with ABC licensing terms"
Basically I'm thinking this is all a big chain reaction
 
DSM
I'll help out with rubber duck debugging for a measly 10$CAD/hr.
 
I think it's a reaction to Unity. They really changed how things work.
 
@DSM Meaning you will act as rubber duck, provide the customer a rubber duck to use, or use the customer as rubber duck?
 
user559633
 
@JonClements you cannot solve these though :D
 
Doesn't mean he can't charge you.
 
I think Unreal had their press release first, but that might have been a "we know Unity is coming so we're stealing their thunder" anticipatory move
 
@JonClements you should sell me for £100/h and keep 20 %
 
DSM
@Carsten: hmm. Admittedly I was planning on just setting the phone speaker on the desk, but if I can complain about my code for a while and get paid, that works too. You've a sharp mind for business!
 
8:15 PM
I mean Unity were free ages ago. And since then others have gone free.
 
@AnttiHaapala Seems pointless asking then :P
 
I just don't get why all the game dev tools can compile to everything under the sun, but can't run on Linux. Seriously, just use your own tool to compile your tool for Linux!
(I know that's not actually how it works, but I really don't see why it's not supported.)
 
Gn. Rbrb!
 
DSM
Rhubarb for you.
 
rhubarb to you
 
8:20 PM
:)
 
@JonClements what I mean with "cannot solve" is that you would think it is hazardous to your health...
 
I'll also be off. Good night.
 
I guess the £100/hr is quite low for debugging this mess
gnight
 
I spoke too soon, I got an accept for the "remove \x from string" guy. All I had to do was guess randomly at what the problem might be until he figured it out himself.
Rubber duck debugging!
 
Is python good to use for creating websites?
 
8:31 PM
Sure.
 
DSM
@Kevin: Jeff and Joel thank you for your efforts. From their yachts.
 
Flask Pyramid Jinja Django, I'm pretty sure at least some of these have something to do with websites.
 
Which library. SimpleHTTPServer ? ;P
Thx
 
user559633
cgi
 
raw sockets
 
DSM
8:34 PM
Trolling in three letters. I'm impressed, tristan. :-)
 
user559633
thx
 
my grandpappy had a nasty case of raw sockets. Cleared up after we put him on a citrus diet.
 
user559633
eww
 
user559633
(joking aside, citrus is a poor choice for curing raw sockets)
 
I refuse to Google the term to determine if it's a real thing.
But yeah, acidic food probably isn't good for any mouth-based illness
 
user559633
8:41 PM
raw sockets are a condition in which a rupture in the gum exposes the underlying bone after a tooth extraction or severe cavity
 
user559633
i had them after i had my wisdom teeth taken out. 3/10, would not recommend
 
DSM
I was about to tell a story involving a family member, but tristan's trumps it.
 
I have a function which returns json data with particular field as comment: " changed object" and my task is to retrieve field name and value from comment. I succeeded two get field name as i.revision.comment.split(' ')[-1] but I unable to get the keyvalue
 
If you have json data, why not parse to python objects?
 
comment above is from django reversion
I'm unable to find the route were I could pass it
list = Version.objects.all()
data =[ ]
for i in list:
data.append({
'comment': i.revision.comment,
'field': i.revision.comment.split(' ')[-1]
})

data_ser = json.dumps(data)
return HttpResponse(data_ser, content_type="application/json")
 
user559633
8:50 PM
Nice avatar of that gap tshirt
 
9:04 PM
I get clueless to get the dictionary key values from reversion
 
9:14 PM
@Praneeth looks like you'll want to use Version.field_dict(), possibly comparing against the values of the real object (Version.object), to determine what changed. Revision.comment tells you little to nothing about what changed during a revision.
Revision is just a group of Versions, one version per changed instance.
(it's also mentioned in the docs: django-reversion.readthedocs.org/en/latest/…
 
user559633
"I'm contacting you with reference to stackoverflow profile. I have a post in stackoverflow which I have been banging my head from past two days regarding django-reversion."
 
DSM
Heh
 
user559633
praneeth, why would you email me about your question, wtf
 
DSM
Once I got an email from a guy who tracked me down because I was listed in the errata for a section of a textbook, and so he figured I must understand the section well enough to help him.
 
Really?! (To both.)
 
user559633
9:20 PM
to mine, really.
 
@tristan : sorry
 
DSM
To mine, yep. Page 281, Eq. (7.47). :-)
 
user559633
@Praneeth don't be sorry, just don't do that shit
 
okay
 
9:43 PM
@davidism yay yay I got the problem solved
 
OK, I'm going to try not to get angry here, but why did you re-ask your question here when someone answered your main site question (which is only 6 hours old) three hours ago?
Why did you waste my time? Why didn't you read the room rules (which I'm sure we've linked to you before) refrain from posting a recent question?
 
user559633
haha, and email people in the room
 
user559633
[forget it, i quit]
 
And you didn't even communicate your problem well here. Please carefully consider how your next interaction with the room will go before posting again.
 
I definitely learn from mistake apologizes once again
 
9:56 PM
Hi there, I am bit desperate with the issue I am facing. It is related to sys.path and modules. Anyone willing to help?
 
user559633
10:11 PM
see the room rules @PeterMajko.
 
Thanks!
 
user559633
cbg antti
 
10:45 PM
Can a script for dir_02 import a module which is in the dir_01, when both directories are in a parent dir_0 ?
 
everything is possible...
 
Nice :D
However I cannot get simple import working from other directory than the script is present in. Then even if it is in child directory it works.
My idea is to have three main directories: client, server and common.
Both client and server dirs should be able to use common as main module with sub-modules.
 
DSM
Time to escape. Rhubarb for all!
 
user559633
take care dsm
 
user559633
@PeterMajko python3?
 
user559633
10:53 PM
use python3 for relative imports and then everyone is happy
 
user559633
otherwise, you're running into a common error in python 2 -- not running code in modules from the project base
 
Yes, 3.4 more exactly
 
Is it considered better practice to use from a.b import one,two or from a import b; b.one()
 
user559633
then in server

`from ..common import cat_fart`
 
Cabbage, everyone.
I think this question deserves another dupe-hammer.
 
10:58 PM
I have tried this approach, however then I get SystemError: Parent module '' not loaded, cannot perform relative import
-client
-client
-common
--mod
---x.py
-server
--svr.py

In svr.py:
from ..common.mod import x

This is what you mean?
 
yes, because you are running your module wrong
you should have __init__.py in all these directories
and you should run your srv py as
python -m server.srv
or have a command line script that imports server.srv and runs it
 
This is interesting... as I have init.py in every folder (client, server and common) and all subfolders. Even in the main directory where all these dirs are located. For me it was a approach to have two different applications server/client which would have one common library and not considering client and server as modules.
As I do not consider srv py as module. only x py should be a module.
And I am launching src py from Komodo IDE
*srv py not src py
 
11:15 PM
It might be extremely sad, but for quick stuff, I have:
#!/usr/bin/env python
from idlelib.PyShell import main
if __name__ == '__main__':
    main()
in a virtualenv
then I can do ./idle3 & locally
 
Does this seem to be a duplicate of this to you?
 
11:29 PM
OK, Rhubarb all!
 
11:39 PM
WHY CAN'T I SLEEP!
 
@PeterMajko that is your problem, for relative imports to work, srv.py must be a module.
 
anyway, screw it, back at 6am... see you all soon
 

« first day (1600 days earlier)      last day (3352 days later) »