« first day (1039 days earlier)      last day (3914 days later) » 

5:00 PM
I was just about to suggest that, @JonClements. a command list would be nice
Maybe I'm insecure and only answer questions so simple that they get downvoted for triviality.
 
Suppose I should also give it a proper profile picture
Now, I've double checked, and it's fair play if it gets upvotes from its own answers... and as a user I'm allowed to use multiple accounts if they don't interact or otherwise abuse the system....
So, need to find it another 6/7 upvotes so it can be made room owner, and then I can utilise the ban/bookmarking and other functions...
 
The other option is to make it be able to act as me which would be cool, but would be somewhat weird...
 
The non-simple questions are always like, "I'm using OpenCV to scan a document, then sending it to a flask server with a pyramid backend, then comparing it to a custom XML document, and appending it to the end of my 6 GB log file. Oh, and the code, document, XML, and log file are all sensitive data, so I can't share any of them with you"
Odds of successfully replicating problem: 0.00001%
 
@Kevin does the bottom of that also say, "Please help me fix it - it's urgent"
 
5:04 PM
Yeah usually
 
Umm, @PythonCabbage is doing better than me on its first answer... that's not fair
 
Having Python in his name gives him an air of authority
 
I was thinking it must be the "Cabbage" part ;)
OMG... how is this site usable below 3k rep... I just went to close a question... and there's no close option... panic!
 
Doesn't hurt. It's a household name.
 
5:06 PM
@PaoloCasciello thanks btw ;)
 
so - what do we do for a picture
a robot with a cabbage on its head
or, errr
an image search for "python cabbage" yields some interesting, but not very practical results
 
I wonder if the HAL 9000 light would still be recognizable if it were tinted green :-)
 
@Kevin umm.... that's not a bad idea
where's the resident graphic guy when you want him @PeterVaro
 
ego sum @JonClements, 'sup?
 
5:12 PM
@PeterVaro I don't look cool enough - I need a cool profile pic...
 
:D:D:D
 
And probably a new name
 
I agree with @Kevin, it could be HAL9000 or at least TARDIS
both are pretty kewl names and characters
 
TARDIS full of Cabbage
 
@PythonCabbage say 'hello dave'
:D
 
5:14 PM
@PeterVaro do it yourself :P
 
no, it's not working like that..
so @JonClements HAL9000?
!!8ball HAL9000?
 
 
not greeeennn
 
wb @NKN
Cabbage9000 ?
 
@PeterVaro The magic 8 ball says "make Jon a cup of tea" :)
 
5:16 PM
ummm... I don't think the word cabbage should be in a bot's name
 
Umm, anyone aware of any famous "robotic python" (or failing that a snake) ?
 
the nao robot is programmed via python
 
One of Mega Man's villains uses robot snakes as an attack
 
5:18 PM
:D:D:D
 
 
I think I have the idea for an avatar
;)
@Kevin that looks aaaammmmaaaazzzziiinnngggg
 
So come on guys...
 
It got shrunk :<
click to embiggen
 
Jon wants to do other stuff tonight as well ;)
 
5:20 PM
Umm, I'm talking in the 3rd person.... that's probably not good
 
Hey I already gave you a green HAL :-)
 
embiggen? LOL
 
I'm considering snagging a blue one for myself...
It's a perfectly cromulent word.
 
@Kevin I was just going to mention I don't get a lot of spam email saying "click to embiggen"... and then you mention "a blue one for myself".... umm.... that was starting to link quite nicely and all by itself ;)
 
LMAO
 
5:22 PM
I don't want any part of me turning blue
 
Umm.... this one smells a bit...
0
Q: Python 2.7 Random Code

user2700766In python 2.7 I am trying to create a program that will generate a random number between 100000 and 999999999 and then send it to the users email. So far it creates a random number then sends it to the users email however when the user types in their code it always prints incorrect. How can I fix...

 
so what's wrong with HAL9000, @JonClements?
 
Silly falsetru, posting an answer in the comments.
 
Because if that's OK, I draw the icon
 
Umm... I'm thinking it's too "straight" and boring
what about "Pyal9000 "?
 
5:24 PM
okaaaay.... ummm..
 
Icon too boring. Solution: googly eye HAL
 
Well, must be something to work with on something that's not just a plain HAL9000
py9k ?
umm, that's just boring
 
why not use GvR <-- first as respect, second, this three chars really looks like a robot series name
GvR3000
or something..
 
Py3000 is 1/3 of hal
 
they say HAL is just IBM passed through a rot cipher. Does GVR have a similar pronounceable encoded form?
 
5:25 PM
or GvR1989 -- the year when python started
 
Our old eggdrop bot used to be called "MonkeyJiz"
probably not the best of ideas for SO though ;)
 
rot'd forms of GVR containing a vowel: ['IXT', 'JYU', 'NDY', 'OEZ', 'SIE', 'UKG', 'WMI', 'YOK', 'DSO', 'ETP', 'FUQ']
 
Okay, words ending / starting with a "pie" sound
 
eggdrop.... what irc memories.... ;_;
 
FUQ9000. Perfect.
 
5:30 PM
@kevin LOL
 
feels like some troll is following me and downvoting my each answer
 
serial downvoting will typically be detected and reversed. Wait a day and see.
 
What about DoPy ?
 
@JonClements how about pype (as pipe)? pipe as a snake (good avatar material), pipe as it is a bot, and we can access python interpreter thru it.. pype is also short
looks kewl with lowercased letters
etc.
 
@PeterVaro okay... jots that one down
 
5:35 PM
popy (popeye)
 
I just made a green TARDIS icon, but it's too eye-searing to post
 
heyheyhey
how about: pylot
?
robot pilot
@JonClements pylot?
 
Affirmatively answering the question, is there any time machine more conspicuous than a nine foot tall blue box? Yes, a nine foot tall box in radioactive green
 
:D:D:D:D:D:D:D:D
 
Pysco ? :)
 
5:40 PM
How about Boris?
 
that's the one @Blender;)
 
Boris.... Umm.... ;)
 
Robots and androids have frequently been depicted or described in works of fiction. The word "robot" itself comes from a work of fiction, Karel ÄŒapek's play, R.U.R. (Rossum's Universal Robots) written in 1920 and first performed in 1921. This list of fictional robots and androids is a chronological list, categorised by medium. It includes all depictions of robots, androids and gynoids in literature, television, and cinema; however, robots that have appeared in more than one form of media are not necessarily listed in each of those media. This list is intended for all fictional computers w...
 
> Bors is an old government integration robot pivotal to Philip K. Dick's novelette The Last of the Masters (1954)
 
5:42 PM
Robort (robert)
 
For your perusal, words starting with "py"
pyranoid is my favorite so far
 
@Kevin you do know they're out to get you though, right?
 
NKN
pyramid for me
 
@Kevin huh - don't listen to Jon - he's just winding you up :)
 
I vote for pyter ;)
 
5:44 PM
I don't suppose there were any named robots in Monty Python's Flying Circus?
 
@NKN pyramid is a framework :D
 
@PeterVaro no bias at all there
AMEE the robot scout in the film Red Planet, who gets stuck in military mode and destroys the human crew of the spaceship (2000).
it's already got the slightly schizo thingy going...
 
Wall-Py
 
A vaguely female named bot would improve the gender ratio of the room :-)
 
5:46 PM
pof? it is bot mirrored:
bot
----
pof
 
Umm... I think now in man time, this is longer than it took to write the thing...
and we haven't even started the marketing campaign properly yet!
 
Start a Kickstarter
 
I've got a question about cryptography. It's pretty basic.
 
Sure, go ahead
 
Currently, I let users enter their own 'strings' which represent letters, numbers, and symbols on the keyboard.
So like
 
5:50 PM
todor? it is also mirrored:
      |
todor | robot
      |
 
A = whatever
 
0: GvR, 1: HwS, 2: IxT, 3: JyU, 4: KzV, 5: LaW, 6: MbX, 7: NcY, 8: OdZ, 9: PeA, 10: QfB, 11: RgC, 12: ShD, 13: TiE, 14: UjF, 15: VkG, 16: WlH, 17: XmI, 18: YnJ, 19: ZoK, 20: ApL, 21: BqM, 22: CrN, 23: DsO, 24: EtP, 25: FuQ
 
@Blender "I'd like to raise £10k to deploy and market a bot on Stackoverflow that is very annoying to people - urgents plz shows me da money" ?
 
And they do this all the way from A-Z, 1-9, and the special characters. The problem is. It's a little bit cumbersome and annoying. I'd like to find a way to simplify this.
I was thinking of using some sort of random seed, if that makes sense.
 
@JonClements actually if you want to add cabbage, we can use CBG
@ZeroPiraeus no chance to get CBG?
 
5:51 PM
Interesting that GVR Rot-17'ed is XML.
 
Users enter a number, and it will generate an entire dictionary for them. The thing is, this seed will need to be sharable. In order for other people to also use that seed to communicate with each other. I don't know if that is possible though, or much on how to go about it.
 
Oops, must have forgotten to carry the one in my rot method
 
time to go... cya guys :)
 
rhubarb @PaoloCasciello
 
Maybe CrN makes sense for a bot ...
 
5:55 PM
@PaoloCasciello see ya
Man - we're really clutching at straws ;)
 
GVR - generic verbose robot
as a chat bot ^
 
@Xeon, it's possible. Take a look at random.seed. It ensures that the same sequence of random numbers are generated, across multiple programs, provided the seed is the same.
 
Okay, thank you.
 
^^ nice avatar :-)
 
....ummm...
 
5:57 PM
Actually - that is kinda funky
heya @ShaiAharoni
 
howdy @JonClements
 
C.A.B.B.A.G.E.: Cybernetic Artificial Being Built for Assassination and Galactic Exploration :)
 
:D:D:D:D
 
want reeep
 
6:05 PM
Ooo... this with a few tweaks might work: P.Y.T.H.O.N.: Positronic Ytterbium Troubleshooting and Hazardous Observation Neohuman
Ooo, since I just spontaneously spurted out cabbage one morning - then crazy things happened, I decided to let it happen again, and errr, look at this:
R.A.B.B.I.T.: Robotic Artificial Being Built for Immediate Troubleshooting
 
taht's the one!
rabbit is kewl
rabbit
 
and a rabbit has BIG RED EYES, like HAL
 
And, possibly nick that?
And, a bit of slang, "rabbiting" is talking, or "to rabbit", is to talk...
so that covers the chat side of it...
 
I love it
rabbit is f***king kewl.
 
6:09 PM
That's a shiny rabbit...
it's need more EVIL :)
 
I probably should write more all-purpose abstracted methods instead of all this repetition... but I'm so lazy
 
Evil enough?
 
OMG.... @ZeroPiraeus great thinking
 
:D:D:D:D
we have the monty python connection also
 
'zackly :-)
 
6:12 PM
That's it... that's the Python connection, the name that has a kind of meaning, but sounds cool, and a base for the avatar
wipes sweat from forehead
 
and of course jessica rabbit
@JonClements +1
 
So, final step, find a decent image of the rabbit
 
I'm designing one now
I think I will modell it in 3D;)
 
Okay... found
 
LOL
 
6:15 PM
Then it could have its
R.A.B.B.I.T.: Robotic Artificial Being Built for Immediate Troubleshooting put on it or something
 
The internet worries me somtimes a lot of the time
 
umm.... interesting expression for a rabbit
 
the eggs wish to battle
 
6:26 PM
that rabbit needs to buy a gym!
 
hey all
 
@Kneel-Before-ZOD it can't - it spent all its money on eggs
heya @NottyShinchan
 
wow! you guys have uploaded tons of creepy images; some ppl won't be able to sleep tonight
 
i need help in writing a small sqlite query
 
hi @NottyShinchan
 
6:27 PM
what i want is to add two values say id(foreign key),name when id not there in table and when there just insert the name
 
@Kneel-Before-ZOD it's okay - you're safe... (kind of)
 
I can see chickens conspiring on that rabbit; he took our eggs!
 
This is my fav so far^
 
@PeterVaro that's gonna be me someday
 
6:28 PM
DON'T LOOK INTO ITS EYES!!!
 
is that halloween python?
 
actually I think we have a winner:
 
what i did was insert into tblExample(id,name) values (?,?) Select ? where not exists (select 1 from tblExample where id = ?) but it's not working
 
@NottyShinchan just try to insert into tablename (id, fk) values (some_id, some_fkey) and let the db throw an exception against the pk contraint or a unique constraint you have on it
 
6:30 PM
@NottyShinchan is the select a subquery ?
 
but i just want it to insert....no throwing of errrors or exceptions....insert everything based on the scenario...that's it @JonClements
well kind of @Kneel-Before-ZOD i tried
 
@NottyShinchan if you're checking it doesn't exist before inserting it - you're doing it wrong
 
if you are using a suquery to insert data, you cannot have the value() part in the statement
 
if i just insert it then how should i check if it's already there and then insert that single column value @JonClements
Alright @Kneel-Before-ZOD Thanks
 
@NottyShinchan you don't that's what unique keys and the database having them is for...
Try to insert it, if it's already there DB will complain, so ignore it (if it's because it already exists), otherwise, DB puts it in, proceed
 
6:33 PM
it should be insert into tblExample(id,name) (select id_column, name_column from table where not exists (select 1 from tblExample where id = ?))
 
@JonClements and.. umm.. rabbit eats cabbage, right?
 
i'll try that kneel....but my columns are not unique...they can be repetitive @JonClements
 
I'm not sure what you were trying to do; just that the code you pasted would throw an error
 
all i'm trying to do is insert both the values if id is not already there in the table,if it's there just update the other column as per that id
@Kneel-Before-ZOD
 
try Jon's suggestions and see if that resolves the problem
 
6:38 PM
@NottyShinchan then you're probably after an insert or update
@NottyShinchan have a look at stackoverflow.com/questions/418898/…
 
i tried that @JonClements it seems coalesce does not work with foreign key constraint :(
 
wait.....if the id column exists, the next data will override the existing data in the second column? @NottyShinchan
 
yes @Kneel-Before-ZOD
 
okay, why not use distinct in the select statement? That'll only give you all the rows with unique ids
 
distinct is gonna fetch the records already there?
 
6:46 PM
yeah...it's gonna fetch all the rows in the table with distinct ids......and you simply insert them
 
so my new query would be like insert into tblExample(id,name) (select distinct id_column, name_column from table where not exists (select 1 from tblExample where id = ?)
 
3
Q: Who handles the trolls?

Sammitcheg: All morning on the PHP tag there have been so many questions by brand new 1-rep users that are just so completely off-base that I feel like someone is trying to troll SO. I know that the PHP tag is usually a bag of cats, but it's just so much worse today for some reason. Are there any alarm ...

Our troll couldn't possibly be moving from Python could they? :)
 
nope; insert into tblExample(id,name) (select distinct id_column, name_column from table where ......)
 
@Kneel-Before-ZOD you do realise distinct applies to all fields in the statement right?
 
@JonClements: Is he one of your bots?
 
6:51 PM
Umm, hope my comment is taken as serious and light hearted at the sametime: stackoverflow.com/questions/18342331/…
@Blender ?
 
that's true (what was I thinking?) ;)
 
I am bad you guys.
 
@NottyShinchan outside of a loop, I can only think of a case statement within the subquery
 
wb @JohanLarsson
 
ty, ty
 
6:58 PM
@Blender wow... apparently - not just an SO troll... have you seen:
flag
@Sammitch - In all seriousness, I think the guy needs attention from a mental health professional. We're not the only online community he's interacted with in this manner. – Brad Larson♦ 11 mins ago
 
meaning? @Kneel-Before-ZOD
 
@Blender so your meta-post seemed to garner a response of - it's not too bad, if it's a useful post, it's a useful post... now it appears that Shog9 is basically saying flag it as spam/offensive... meta.stackoverflow.com/questions/194027/…
 
@NottyShinchan give me a second to gather my thoughts :)
 
Umm, if the community deletes your question, can you vote to undelete it... can't see how on earth that's got an undelete vote otherwise...
 
7:24 PM
hmmm...
 
7:49 PM
@NottyShinchan I've thought about it, but I have no easy, ready-made answer. I don't have time to test the current ways I would have accomplished that
 
7:59 PM
any way would be fine....it's easy just the problem is im dealing with a foreign key constraint @Kneel-Before-ZOD
 
what has a foreign constraint? The table the data's coming from or where it's going?
 
no that column "id" that i want to check....it can easily be done with coalesce but it doesn't support foreign key constraint
 
there's a foreign constraint on that id from a third table?
 
no that id itself is a foreign key constraint
 
yeah...which is a primary key in a third table?
 
8:13 PM
I think I have a pretty 'classic' problem.. if I have a dictionary, something like this:
{
    'alpha':
    {
        'beta':
        {
            'gamma':
            {
                'delta': 0,
                'epsilon': 1
            },
            'zeta':
            {
                'eta': 2,
                'theta': 3
            }
        },
        'iota':
        {
            'kappa': 4,
            'lambda': 5
        }
    },
    'mu':
    {
        'nu':
        {
            'xi':
            {
                'omicron': 6,
                'pi': 7
            },
            'rho':
Now, I want to know the 'path' on how to get from omicron to delta?
 
yes @Kneel-Before-ZOD
 
which is something like this: omicron -> xi -> nu -> mu -> root -> alpha -> beta -> gamma -> delta
is there a "general" algorithm for this?
 
shortest path
 
Well, didn't you have your own graph class :)
yes... A* or shortest path
 
8:18 PM
umm... yeah well.. so I have to store my data as a graph here..
 
Assuming its a tree structure with no loops or duplicate elements. Find the path from the root to omicron, and from the root to delta. Eliminate elements that exist in both lists, reverse one, and paste them together.
gotta go
 
is that faster than the shortest path?
@JonClements right now, I'm reading wikipedia.. so A* is better than Dijkstra, right?
 
umm... sometimes...
in your case - as long as you find a path - it doesn't matter: stackoverflow.com/questions/13031462/…
In fact, is it only nested dicts in that kind of format?
 
yes...
 
Umm... might not even really have to put them in a graph...
 
8:37 PM
Umm, just installing minecraft
 
A Google recruiter just offered me the opportunity to move to São Paulo. It's 2500km away, I've already moved to a different country once this year, and I don't speak Portuguese.
 
@ZeroPiraeus seems a good reason
 
Mind you, Brazil's twenty thousand gun deaths per year is appealing ...
 
8:56 PM
Sold! I'm booking my tickets already... ;)
Sounds far more fun than being attacked by kebab wielding hooligans on a Friday night...
 
Yeah, a churro in the face is easier to clean up :-)
 
chillisauce in your eye's a bit of a bugger though
 
This is shaping up to be my first zero-rep day in a while ... not seeing any questions that grab me at all.
 
I have those... it's annoying really... but that's normally because I can't be bothered to answer anything sometimes
just hang here and talk nonsense ;)
 
I think I can manage that :-)
 
9:11 PM
Oh.... haha, I was saying that's what I do... if you wanna join me... feel free ;)
I'm quite happy talking to myself most of the time ;)
 
@JonClements grrrr... I'm pretty confused
In computer science, A* (pronounced "A star" ( listen)) is a computer algorithm that is widely used in pathfinding and graph traversal, the process of plotting an efficiently traversable path between points, called nodes. Noted for its performance and accuracy, it enjoys widespread use. (However, in practical travel-routing systems, it is generally outperformed by algorithms which can pre-process the graph to attain better performance. ) Peter Hart, Nils Nilsson and Bertram Raphael of Stanford Research Institute (now SRI International) first described the algorithm in 1968. It is ...
what is the heuristic_cost_estimate() ?
 
In your case, nothing... just a constant
 
which is what?
13? 29? 1?
or?
 
1 makes sense...
 
;)
but why?
 
9:26 PM
because the king of the potato people said so
 
aáaáaááaáaáaááaáaááaááaááaáaááaááaáaááaáa
I hate this ********** wikipedia article.. it is *****
 
 
2 hours later…

« first day (1039 days earlier)      last day (3914 days later) »