« first day (2009 days earlier)      last day (2851 days later) » 

10:00 PM
@BernardMeurer use a raw string so you have no need to escape
r'your content here'
 
io.UnsupportedOperation: not readable
hm
 
@BernardMeurer permissions or no file error probs
 
nevermind, fied it
 
doesn't sound like python though...
 
yeah, had 'w' not 'r'
 
10:02 PM
@BernardMeurer IIRC, re.match doesn't need the ^ and $
 
It's not matching anything, balls
 
@BernardMeurer ...did you store the result in a variable?
 
    foo = re.match(r"\d{2}[.]\d{3}[.]\d{3}/\d{4}-\d{2}", f.read())
    print(foo)
f is a text file
 
oh
you want re.search I think
(still without ^ and $)
 
10:03 PM
with open("foo.txt", "r") as f:
    # print(getfull(date, line), file=f)
    foo = re.search(r"\d{2}[.]\d{3}[.]\d{3}/\d{4}-\d{2}", f.read())
    print(foo)
None
Lel
 
working directory check?
just doing the common stuff
 
print(f.read()) works
as in it prints the text
 
actually search is still not what you want. to get a list of all of them, you'll need re.findall
but re.search should give you one of them actually
 
:P
btw, what editor are you using?
 
Yeah, findall gives me an empty list
Atom
with some plugins
 
10:05 PM
why not IntelliJ/PyCharm?
awesome autocomplete
really great code formatting via ctrl-shift-l
PEP 8 too
 
I have it installed, lemme shift
 
doesn't interfere, open source
 
who needs an IDE when you have a good text editor ;)
 
@MartinEnder people use text editors simply because it gives them a false sense of self confidence, :P
autocomplete can save you time and money
 
Petition to unpin messages from the starboard.
 
10:07 PM
PEP 8 formatting helps you, simply put
 
no, because it gives you a single tool for coding in any programming language
 
@MartinEnder "...just because anal sex works on all genders doesn't mean it's good"
sorry for the nsfw-ness
 
a good text editor can do autocompletion and linting for you as well
 
@MartinEnder then it's an IDE
I use pycharm mainly for the text editor
 
HA
I know why it won't work
 
10:08 PM
then I drag htop to my tabs
 
god I'm stupid
 
what?
@BernardMeurer we've all been there :)
because we're all stupid <s>sometimes</s>
 
I had ran the code with 'w' and it made a new empty txt
 
@BernardMeurer ?
nvm
 
basically: I was searching an empty text file
 
10:10 PM
oh
so, what is @MartinEnder working on?
 
what's hm? a new esolang?
(jk)
 
currently thinking about the next Retina update
 
easter eggs. lots of easter eggs.
 
@MartinEnder oh, I have suggestion for next Retina update: better multiline support
perhaps by having some way to rotate the input
 
10:15 PM
my rep graph = XD
 
@Downgoat I don't really want to add "built-ins" for rotation/transpose, unless you can come up with a generalisation for those operations that can be meaningfully parameterised by a regex
 
@uoɥʇʎPʎzɐɹC eh, it's docs rep. pretty much worthless
 
anyone got a SEDE query or some other kind of filter to filter questions for newbies on SO?
I want some easy bait...
@Downgoat why?
BOUNTIES!
 
@uoɥʇʎPʎzɐɹC Just go to the page for or something and wait.
 
@uoɥʇʎPʎzɐɹC because rep-w— people interested in gaining lots of rep can just make a simple edit on a popular post and boom, hundreds of reps
 
10:18 PM
@El'endiaStarman too lazy to view rep
 
@uoɥʇʎPʎzɐɹC ...eh? How does that have anything to do with it?
 
@Downgoat I added several sentences and updated formatting for a popular post. half deserve it, also contirbuted several original examples
 
@Downgoat not that one
on python comprehensions
I'm loving inline editing and instant approval
 
instant approval is nice except that it's way to prone to abuse
 
10:26 PM
@Downgoat MUAHAHHAH!
 
> oh look chatgoat accepted my "console.log is actually youtube.com/watch?v=dQw4w9WgXcQ";
 
10:44 PM
2
Q: Tag Proposal: Orphaned

LiamI'm proposing that we create an orphaned tag for use only in the sandbox. This will allow people who have ceased work on a challenge idea to indicate such. The idea here is that other interested individuals would be able to step in and continue development of the challenge and post it in its fi...

0
Q: Is "Most Elegant" objective

Rohan JhunjhunwalaThis comes up in popularity contests all the time. Most elegant as a scoring criteria (or similar). Is a popularity contest objective in and of itself by saying that most votes wins? It is very objective to compare two numbers. How those numbers were created may not be objective. What is the comm...

 
10:56 PM
0
A: Sandbox for Proposed Challenges

Rohan JhunjhunwalaKing of the golf course Write a program that golfs Brainf*** programs. Similar to code-golf challenges on this site, you will be racing against the clock, and the byte count to maximize glory (reputation). Assuming N players participate each match will consist of a maximum of N - 1 rounds. Eac...

 
@Dennis But the hexdumps will be all wrong
 
11:13 PM
I hate soundcloud's implementation of image uploads. I give it a PNG, it re-encodes it to a really crappy JPEG. I give it a perfectly optimized JPEG (that's even smaller than the re-encoded crap) and it fucks it up even more.
Impossible to have text in images. Artifacts all the way.
 
11:28 PM
@mınxomaτ Upload to youtube with misc screensaver-style visualizations made by the people in the podcast.
 
I plan to upload everywhere. But soundcloud is better because it plays tracks while the phone screen is locked (or the App minimized).
 
You should stream the podcast too.
 
No.
 
?
 
Livestreaming is way harder than plain recording. Technologically and psychologically.
 
11:31 PM
^
 
@HelkaHomba Fair.
 
Also quality is suffering massively.
 
@mınxomaτ It shouldn't need that much post-processing, I wouldn't think
 
Trust me, it does.
But that's not a problem.
 
0
Q: "Break" a number

SahibPrimeOrigins tl;dw (too lazy, didn't write): thought of it right before I fell asleep Challenge Breaking a number is defined as the following steps: Take a number or a parseable data type as input in any allowed way. Duplicate the first digit (64 -> 664) Subtract 4 from the last digit (664 -> 6...

 

« first day (2009 days earlier)      last day (2851 days later) »