« first day (1823 days earlier)      last day (3025 days later) » 

9:02 PM
It annoys me that the LZW encoding examples I've seen have a much larger alphabet than what is actually used. I think I'm having a problem with my gif encoding because the alphabet is small but the table of codes generated is larger.
 
> I love women. They're the best people in the world. Besides men.
ಠ_ಠ
 
I do not agree but I agree.
 
UnboundLocalError: local variable 'local' referenced before assignment - hehehe whoops
....huh. I never knew that Python had syntax warnings.
 
Man, writing the parser for SAS must have been a nightmare since there are no reserved keywords and * can mean several things, one of which is comment.
@El'endiaStarman Interesting, I didn't know that either. Come to think of it, I don't think I've seen any language that had syntax warnings in addition to errors.
Well, no, I take that back. Julia warns for deprecated syntax.
 
9:12 PM
x = 5
global x
^ something like that raised a syntax warning for me.
 
Huh. I just tried that and Python didn't complain at all.
 
You intimidated python!
 
@AlexA. Try doing it inside a function?
 
Yep, that did it
<stdin>:3: SyntaxWarning: name 'x' is assigned to before global declaration
 
yeah :P
It's funny how it's possible to have syntax that isn't wrong, just bad. :P
 
9:19 PM
haha
I should make a language that gets mad at conventions and styles that don't match my own. :P
> SyntaxWarning: You seem to be intenting with tabs. I've gone ahead and wiped your home folder. Next time don't be so careless.
 
@El'endiaStarman So.. python has global but not local ?
>:|
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Variables are local by default.
 
Huh.
private x - SyntaxError; invalid syntax
>:|||
 
@AlexA. I think there used to be an eslong that worked about that way=)
 
Functions can read variables in encompassing scopes, but cannot set them unless said variables are explicitly defined as global in both the function scope and encompassing scopes.
 
9:28 PM
@flawr Well, there's Vigil, which will delete the source code if there are any errors.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Yep, Python doesn't have any private/public distinction.
@AlexA. That sounds incredibly inconvenient.
 
@El'endiaStarman But it's a bloody snake! >:|3
 
@El'endiaStarman Not if you're really careful. :P
 
@El'endiaStarman Why? It is doing the work for you! I mean why would anyone want code with errors??
 
@CᴏɴᴏʀO'Bʀɪᴇɴ bob's response is amazing :D
 
@flawr What was the esolang where you had to be polite in the source code, and if you weren't "polite enough" it wouldn't compile?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ._______.
 
@MartinBüttner \o.
 
@TimmyD I don't remember the name, but the "be polite" part was putting enough "PLEASE"s in there.
 
9:45 PM
@TimmyD I do not remember...
 
INTERCAL
The Compiler Language With No Pronounceable Acronym, abbreviated INTERCAL, is an esoteric programming language that was created as a parody by Don Woods and James M. Lyon, two Princeton University students, in 1972. It satirizes aspects of the various programming languages at the time, as well as the proliferation of proposed language constructs and notations in the 1960s. There are two currently maintained versions of INTERCAL: C-INTERCAL, maintained by Eric S. Raymond, and CLC-INTERCAL, maintained by Claudio Calvelli. == HistoryEdit == According to the original manual by the authors, The full...
"The Compiler Language With No Pronounceable Acronym, abbreviated INTERCAL"
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I think my one Vigil answer on PPCG got that repo some 200 stars :D
(I vaguely remember that Bob actually signed up to PPCG to upvote it)
 
@MartinBüttner You are truly a good worker in the field.
 
1
Q: Next public holiday

TasAustralians love public holidays, and drinking. Yesterday, the 26th January, was Australia day, which is a public holiday. I was glad to not be at work yesterday, and eager to know the next time I get a public holiday! Unfortunately, I had a bit too much to drink, and I'm not able to work it out ...

 
@TimmyD if "PLEASE" does not appear often enough, the program is considered insufficiently polite, and the error message says this; if too often, the program could be rejected as excessively polite. Although this feature existed in the original INTERCAL compiler, it was undocumented
2
 
9:46 PM
Oh right=)
INTERVIGIL++
 
Yes, thank-you.
 
Why did you hyphenate "thank you"? o_O
 
why-not?
@El'endiaStarman I have the name of a module in a string. How do I call one of its functions?
 
....I have no idea. I've never done that.
 
Darn.
ANY PYTHON GURUS IN THIS ROOM?
 
9:53 PM
As if I'm not one?! ;_;
 
ANY OTHER PYTHON GURUS IN THIS ROOM?
 
I can hack it with eval(module_name). Any reason I should not do it? @El'endiaStarman
 
this guy
 
seriously where do you find these pictures? O_O
 
9:55 PM
¯\_(ツ)_/¯
 
100
A: import module from string variable

mzjnThe __import__ function can be a bit hard to understand. If you change i = __import__('matplotlib.text') to i = __import__('matplotlib.text', fromlist=['']) then i will refer to matplotlib.text. In Python 2.7 and Python 3.1 or later, you can use importlib: import importlib i = importli...

 
 
#GRU
Oh, you said GURU
 
@CᴏɴᴏʀO'Bʀɪᴇɴ eval is worth avoiding when possible, especially when you're dealing with user input. That said, there are a few appropriate use-cases, and that may be one of them. That said, looks like there's a better way, a la the answer I linked.
 
9:57 PM
@El'endiaStarman I would use said suggestion, but I already have imported the module
 
...if you've already imported the module, then why not module.function(args)?
 
But I don't know the module name, just have the string
I found a way to import everything :D
 
I just found a file on my computer called RENAME_THIS_FILE.odp.
...
 
@AlexA. I dunno. It's just something I've always done if it's alone like that. I'm likely wrong about it.
 
__init__.py
	from os.path import dirname, basename, isfile
	import glob
	modules = glob.glob(dirname(__file__)+"/*.py")
	__all__ = [ basename(f)[:-3] for f in modules if isfile(f)]
 
9:59 PM
@TimmyD Very much so
 
@AlexA. ... an open document presentation?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Python standard indentation is 4 spaces
 
Well, since , that means I'm right.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Yes
 
@AlexA. I'M NOT A PYTHON STANDARD PERSON AHHHHHHHH
@AlexA. okai :3
 
10:01 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ In retrospect, that might not have been the best course of action. :P
 
But eval might be the way to do it working with what you already have.
 
hiya!
I really don't like python o_o
It looks so messy
 
10:08 PM
Why do Project Guttenburg plaintext files have so many unnecessary empty lines?
I really don't think it helps readability any.
Oh look a list of the titles of the illustrations
Except I'm reading the plaintext version so none of those illustrations are actually present
 
XD that's inconvenient
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Imagine what Boa must be like.
 
@El'endiaStarman That should be a thing
Like, Python + Java
 
Apparently there's a library that lets you run python from inside java
 
10:22 PM
That's not surprising to me
 
There's a library that lets you run anything inside anything
it's called system calls
 
^
 
Given the title I would down vote: No, Instagram is not useful but I see this about the tag.... — rene yesterday
 
@AlexA. did you rename it
 
@Doorknob no
 
10:26 PM
NO I RAN OUT OF VOTES
 
it's because Alex didn't rename the file
 
WHY, ALEX, WHY???
 
every day he doesn't rename it, we all lose another vote per day
until nobody can gain rep on PPCG anymore
 
What if I delete the file?
 
Oh I was talking about chat stars
 
10:27 PM
oh
please never rename that file @AlexA. :P
 
For each time you vote down, the number of allowed upvotes increases.
 
I still don't understand how people can run out of chat stars...
 
^
 
That is how.
 
10:28 PM
You star too much
 
Yeah.
I star almost everything on the starboard
 
Hiho.
 
I think we need an objective starring criterion.
5
 
@CᴏɴᴏʀO'Bʀɪᴇɴ How long is this list for you?
 
10:29 PM
Hi minxomat
 
@Doorknob 38 pages for me O_O
 
how long is yours?
 
6 pages
 
6 inches.
 
I use the list of my stars as favorites. It's just convenient that way.
 
10:30 PM
Hi guys! :)
 
Hey blue little ghost!
Oh, I forgot to ping @Zizouz212
 
o/
 
@Zizouz212 Hello!
 
lol
 
10:31 PM
Also, http://chat.stackexchange.com/search?q=img&user=<your_user_id>&room=240 gives you a list of all images you've posted. that's useful sometimes.
 
I have 16.4k messages in here (O_o), which means I star about 1 message every 54 messages I post
Less, actually, because the last page isn't full
 
I've posted 511 messages here :)
 
@Doorknob ʜᴏᴡ ᴅᴏ ʏᴏᴜ ᴛᴇʟʟ?
 
I've posted 37.4k messages network-wide. Wowza.
@CᴏɴᴏʀO'Bʀɪᴇɴ It's on your profile card kajigger
 
ᴡʜᴇʀᴇ?
 
10:34 PM
I've got 13.2k.
Who knew I could talk so much?
 
I have 7 pages of starred material
 
I have... 16, in this chatroom.
 
halp best java ide
wat is
 
I've starred only 12 messages :/
 
[status-who-needs-ides]
 
10:35 PM
@AlexA. Eclipse!
 
I remember using Eclipse a long time ago. Would not recommend.
 
@AlexA. Eclipse.
 
@Doorknob How dare you.
Look at how pretty that is.
 
Eclipse > IntelliJ IDEA?
 
Yes.
Eclipse is supreme.
 
10:37 PM
ÿ
 
Oct 27 '15 at 2:49, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
This is a funny statement on which your stars are well spent.
 
@Zizouz212 What, you mean syntax highlighting? How is that specific to Eclipse?
 
No, the theme.
It just makes sense.
 
Err all I see in that screenshot is syntax highlighting
 
@Doorknob But that requires the user to have the other language already installed
 
10:39 PM
@Doorknob What are you using for Java then?
 
@flawr I don't Java
 
I think @Doorknob is jealous that he doesn't use Java, and is looking at how awesome all the Java users are :D
2
 
Mhmm, suuure. :P
 
Actually, Doorknob is smart and of the new generation. Rise Against Java Tyranny.
 
What makes Eclipse a better development environment than IntelliJ IDEA or Vim?
 
10:40 PM
@AlexA. Personally, I've just found it to flow really well, and really easy to use.
 
I've used IntelliJ before and found it actually quite difficult to navigate, but I've heard that Eclipse is really bulky and slow.
Also, is Eclipse available for Mac?
 
Bulky and slow was one of the main reasons I didn't like it way back when I was still using Java
 
@AlexA. Really?
Does that UI look familiar?
 
yuck
What a waste of half of your screen space :P
 
@Doorknob you suck.
 
10:42 PM
@Doorknob When and why did you abandon it? I have to use it for a class. Somehow I passed a Java proficiency exam never having used Java before, so I got to skip the intro to Java course.
 
@AlexA. Well I don't use Java ever anymore, sooo... ¯\_(ツ)_/¯
 
That's skill. I like it.
Increase my number to 13 stars.
Speaking of class, I've only got 1 exam left :D
 
the best is definitely IntelliJ
 
0
Q: Print The Formula

nachoIntroduction In chemistry there is a type of extension, .xyz extension,(https://en.wikipedia.org/wiki/XYZ_file_format), that prints in each line a chemical element, and the coordinates in the plane of the element. This is very useful for chemists to understand chemical compounds and to visualize...

 
@NathanMerrill Excuse me?
 
10:46 PM
@AlexA. You see, there are the people using Eclipse, and then there are those who are wrong.
 
Out of curiosity, who here has snow?
 
I has snow.
 
Same
 
I wish I did
 
10:47 PM
but I always have snow this time of year
 
-_-
I don't like you guys
 
and its basically melted
 
@Doorknob I wish I didn't have snow
 
@NathanMerrill Where are you?
 
10:48 PM
It's like 45 F and rainy here.
 
@Justin \o/ Snow is the most beautiful thing in the world!
 
Incorrect
 
@NathanMerrill searches where that is
 
@Justin Probably the one thing that I miss most about Chicago (now living in Houston) is the weather
 
You've got snow in Utah. -_-
 
10:49 PM
translate: 45 F
(from American) 7° C
 
What's the python equivalent of an object?
 
Ugh... I'm in Canada, and we barely have snow...
@CᴏɴᴏʀO'Bʀɪᴇɴ an object?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ An object?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ... Python has objects
double-ninja'd
 
dear god there pings
What are they called ?
 
10:50 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ huh
 
objects?
 
Objects=) @CᴏɴᴏʀO'Bʀɪᴇɴ
 
um
"objects"
 
oh shit nevermind
 
Python objects are called objects...
 
10:50 PM
objects
 
waiting
 
{} <== what is that?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ waiting
 
braces
 
10:50 PM
Dictionary or set
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Curly braces
 
Is there an object literal?
 
@AlexA. Try this: from __future__ import braces
@CᴏɴᴏʀO'Bʀɪᴇɴ Dictionary or Set!
 
@CᴏɴᴏʀO'Bʀɪᴇɴ a what?
 
k_data = {
		"turn": 0,
		"hand": ["King","Emperor","Emperor","Emperor"],
		"deck_type": "King",
		"rounds": []
	}
k_data.turn # error
 
10:51 PM
[] list, {} Dictionary or Set, () tuple...
@CᴏɴᴏʀO'Bʀɪᴇɴ That's a dictionary
 
@CᴏɴᴏʀO'Bʀɪᴇɴ object()
 
The keys are on the left side of the colon ( : ), and the values on the right.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ That is JSON
 
that looks like JSON
 
So there is no object literal?
 
10:51 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ k_data['turn']
 
ninja'ed :(
 
@CᴏɴᴏʀO'Bʀɪᴇɴ For what object?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ didn't El'endia just tell you?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ not in python
 
@El'endiaStarman wait you can't do k_data.turn?
 
10:52 PM
how can you have an "object literal" anyway?
 
What do you mean an "object literal"?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You can, with an object, not a dictionary.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You need to index it: dict()['my_key']
 
They're basically the same in JavaScript, which is where your confusion comes from.
 
10:53 PM
Python is wierd
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you can do named tuple
 
@CᴏɴᴏʀO'Bʀɪᴇɴ How dare you.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ weird
 
@Doorknob I know.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Arguably, JavaScript is the weird one. :P
 
10:53 PM
also I still don't understand what you mean by "object literal"
how can you have a literal of... a generic object
 
@Doorknob You know JS, right?
 
yes
 
Jon Snow?
 
{} is an object literal in JS.
 
Going back... I'M SO JEALOUS OF THIS STUPID NEW YORK!!
 
10:54 PM
And so is Conor's k_data above.
 
@El'endiaStarman That's a block. :P
 
you can have an object literal if everything is an generic object
 
Look at that!
Sorry, I just had to.
 
@Doorknob Not if you assign it.
 
10:54 PM
@El'endiaStarman thank you.
 
because if everything is generic, nothing is
 
@Doorknob Javascript is weird
 
JS is ma frend >:<
 
@CᴏɴᴏʀO'Bʀɪᴇɴ, I suggest you learn classes.
 
10:56 PM
You can start with object() and work your way up, but that's a bad idea.
 
Bye for now
 
No, Python.
 
class Class(object):

    def __init__(self):
        self.var = 'super_var!'
 
@SuperJedi224 bai
 
I don't think I've ever used classes in Python
 
10:57 PM
@El'endiaStarman Python is a tool. I don't plan to get friendly with it.
 
@feersum I didn't really ever use them until last year.
 
I use Python all the time, but for quick scripting or text procesing tasks
 
I'm creating a web api using python right now.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ If you're gonna be working with objects, learn them.
 
10:57 PM
Nothing big enough that I'm motivated to organize it that way.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Better than JavaScript, at any rate. :P
 
@Doorknob NO.
@El'endiaStarman I'm not working with them. I'm just going to be using dicts.
 
@NathanMerrill phpsadness.com
 
Obligatory relevant image:
user image
7
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Ah, gotcha. k_data["turn"] then.
 
10:58 PM
@Doorknob JavaScript is really cool. Nobody just spends the time to appreciate it.
@El'endiaStarman Yup.
 
@El'endiaStarman Or more exception friendly, k_data.get('turn', default_value)
 
Ugh, I need backup >_<
 
@Zizouz212 I tend to program in exception-free ways. :P
 
@ETHproductions, I choose you!
Halp me with defending JS
 
if 'turn' in k_data: k_data['turn']
 
10:59 PM
@El'endiaStarman lol, I've been coding my web server too much then :)
 

« first day (1823 days earlier)      last day (3025 days later) »