« first day (1747 days earlier)      last day (3095 days later) » 

6:00 PM
@AlexA. You can post SoundCloud song links in posts and they render
 
Right.
Doesn't mean that we're affiliated with them though.
It just means we support SoundCloud links.
Just like SE is unaffiliated with xkcd but we onebox xkcd in chat.
 
oh, we are affiliated with XKCD, IMGUR, WikiPedia etc too?
nija'd
 
Well whatever, is there a meta post explaining about it?
 
13
Q: Could we get the audio embedding feature for PPCG?

Martin BüttnerMusic and AVP and Signal Processing can embed audio files via the SoundCloud player. Since the feature already exists, it would only need to be activated for PPCG, and judging by Signal Processing the devs will actually do so if there's some support in the community for it. Why I think this woul...

 
Right, thanks
 
6:10 PM
When your code works locally but fails on deploy
Can anyone test out o-lang.herokuapp.com for me? Just type in 1o1o1o or something
 
thank god not another localhost link
 
It works on localhost, but not on heroku
 
you are missing the argument event in your keydown handler
did you check console?
 
uhhh what?
I'm not getting that error anywhere
 
f12
type something
 
6:14 PM
@phase 500: Internal Server Error
 
Hello
 
Hi
 
@AlexA. The heroku logs aren't showing any errors :\
 
Error 300: This is Sparta
 
6:16 PM
 
@AlexA. yeah I'm getting that too
 
Btw I'm liking how the new web editor looks
 
err
Does anybody know how adding stuff in Python works?
 
Use +
 
@AlexA. wut yyyy
 
6:17 PM
safari's web editor?
 
oh ty
.. :~)!
x += 1
is it actually adding the ascii value of 1?
 
No
 
@sweerpotato does JQuery come for Python? if yes, use a JQuery plugin.
 
parse python with regex
 
@Optimizer No, phase's O editor
@phase Y? Because I think the theme looks nice?
 
6:22 PM
oh lol, I goofed again
 
@sweerpotato I was wrong. If x is a string, x += 1 will fail with a TypeError.
 
I'm creating a matrix totally wrong for some reason..
matrix = [[char for char in line] for line in lines]
 
I read that as "I'm creating a matrix for totally the wrong reason." o_O
 
thought it would be matrix[x][y], but apparently is matrix[y][x](??)
:D
 
Technically you aren't constructing a matrix like that
You're just making a list of lists
 
6:24 PM
..I'm not?
err
I just wanted something I could access by [x][y]
Second time coding in python <__<
Total scrub
 
I haven't touched Python in quite a while so take anything I say with a grain of salt.
If you're constructing lists like that, the first index should be the inner list, right? Then the second would be the element in that list?
 
@AlexA. oh I thought it said not liking how the new web editor looks
 
No
It's nice
 
fenks <3
 
Yeah correct @AlexA.
I need to think this through
 
6:28 PM
It's not clear what you mean by y and x
 
Coordinates in the "matrix"
 
Right
 
I'll just flip them and everything will be alright..
#realworldsolutions
 
@sweerpotato I'd just quit now and do it in D
 
But a list of lists won't really have a matrix structure
 
6:29 PM
It's more of a coordinate system sort of
Making my first language :X
 
Each inner list can be a different length
If this is only your second time using Python, why have you chosen Python as the implementation language?
 
Whats that word for something that is just barely up to snuff?
 
> 2015-11-11T18:28:08.237430+00:00 app[web.1]: ('Got code:', u'"this is a test"o', 'input:', u'')
2015-11-11T18:28:08.237458+00:00 app[web.1]: Running O code...
 
e.g. " I work ___ at my job just enough so I don't get fired."
 
Hm. I actually can't think of a single word that I would use there. I'd probably use a phrase.
 
6:31 PM
@AlexA. didn't understand UTF-8 in C++, but Python was pretty straight forward
 
UTF-8 in C++ is a huge, huge mess.
 
@sweerpotato UTF in Java is easy
 
Yes, it's completely horrible
 
Rule skirting works actually
 
I worked with Java, horrible language
 
6:32 PM
The Unicode Consortium (or whatever they call themselves) has a C++ template library for working with Unicode strings but I think it's a beast of a library.
 
C++11 has UTF-8.. but it was still completely horrible parsing UTF-8
 
There are small, lightweight UTF-8 libraries people have made but I think they aren't entirely straightforward to use.
 
you could do std::string str = u8"±"
 
@sweerpotato Right. It supports UTF-8 encoded strings, but trying to deal with them sucks.
 
yeah
I tried comparing..
and pointers and crap
buffers
eeeuuhhhh
First version of my language works!
 
6:34 PM
Nice! In Python?
 
yeah
 
Congrats. :)
 
Thanks :~)!
Just need to upload this somewhere, github preferably
 
all teh things on le github
 
^
 
6:37 PM
Alright, time to learn git
I used git once and ruined 6 hours of work
switched to SVN
 
:/
git add -A
git commit
git push origin master
 
git push pull merge commit /
"You need to merge before pulling"
git merge
"Merged with old version"

sort of
 
Make sure your local branch is up to date with master
before committing
 
`git add -A` will stage all your work to be committed.
`git commit -m "Message"` will create a commit with that message.
`git remote add origin https://github.com/user/repo` stores a remote repository in the local git project.
`git push origin master` pushes to that remote on the branch called _master_.
 
it's weird to me that git commit is so easy to undo
with a name like commit you'd think it'd be a commitment
git push takes some effort to take back
 
6:41 PM
@undergroundmonorail commitments are also very easy to undo
screw up*
@undergroundmonorail git push cannot be taken back. literally.
 
@undergroundmonorail remove commits and git push -f
 
@phase that will not remove commits from github, will it?
 
@Optimizer As long as you remove the commits locally, it will remove them from wherever you push to
 
@sweerpotato GitHub has a free, cross-platform desktop GUI you can use.
 
Yeah, I have the GUI actually
Need to figure this out :D
 
6:44 PM
Need to figure out why I keep getting THIS 500 ERROR FOR NO REASON
 
already goofed
It moved all my previous checked out projects into my new repo
goddamnit git
 
0
Q: Is there a place I can place my so-close-but-not-quite answer?

ShelI'm asking in general, but in my specific case I was working on an answer for Programming a Pristine World and got $><<"%c"*5%%w(w o r l d). The fatal flaw here is that #<< accepts an array, so if "%c"*5% is removed, $><<%w(w o r l d) is a valid program. I'd still like to post this for two reason...

 
@AlexA. > 2015-11-11T18:40:34.351465+00:00 app[web.1]: ('Got code:', u'1o1o1o', 'input:', u'')
2015-11-11T18:40:34.351469+00:00 app[web.1]: Running O code...
 
posted on November 11, 2015 by Calvin's Hobbies

Today, November 11, 2015, is Veterans Day in the United States. "Taps" is the bugle call played at U.S. military funerals: ("Taps" on SoundCloud from vtmiller) It is a simple melody, only twenty-four notes long and using only four different notes. Here is the sheet music: (source) Challenge Write a program or function that pla

 
@NewMainPosts Why does this look different than usual
 
6:47 PM
@AlexA. Veteran's Day?
 
The soundcloud link I'd have to guess
 
It's weird
 
is "Publish" the same as commit?
 
@sweerpotato nope, publish is push to github
 
is that.. what I want to do?
:D
When I press commit in SVN it uploads to the repo
 
6:49 PM
@AlexA. I think it did something like this before when some post got deleted before New Main posted it
 
@Calvin'sHobbies Did you delete the taps thing?
 
Downloading Sonic Pi just to nail this challenge
3 minutes left?!?! I'm getting food
 
@sweerpotato I've honestly never heard of publish. I always use git push origin master to slam my changes into GitHub.
 
Apparently it worked..
 
6:56 PM
Good to know!
 
What's the license? I also recommend adding a README.md.
 
License?
 
And eliminating tabs from your source code. Ugh.
 
oh yeah, crap
 
6:59 PM
Python standard is 4-space indent
 
@phase You could try BBC BASIC
 
@sweerpotato Driving license, duh
 
was positively sure I had notepad set to four spaces
wth
 
Notepad++ or regular Notepad?
 

« first day (1747 days earlier)      last day (3095 days later) »