Jared

United States

Age: 20

Computer science, computer engineering, and electrical engineering undergraduate student. Typically encountered writing in C, C++, Objective-C, and Python.

May
26
accepted How can I prevent ANSI escape sequences in my Python script from messing with my zsh RPROMPT and cursor positions?
May
26
comment How can I prevent ANSI escape sequences in my Python script from messing with my zsh RPROMPT and cursor positions?
Great save; much easier solution than I was expecting. Good to know that I can still use zsh sequences in my Python script.
May
26
asked How can I prevent ANSI escape sequences in my Python script from messing with my zsh RPROMPT and cursor positions?
May
26
comment Is there a method of getting the number of files in git repository with new/modified/deleted status?
Very elegant example code. I may use this as a reference for parsing. And today you taught be about the Counter class. Thanks.
May
26
accepted Is there a method of getting the number of files in git repository with new/modified/deleted status?
May
26
comment Is there a method of getting the number of files in git repository with new/modified/deleted status?
The output of git status --porcelain looks easily parseable for my needs. Also cera1's cleanup pipes work very nicely. I'll play around with the possibilities this offers and either use it or parse the original output inside Python instead, but this is definitely the accepted answer.
May
26
comment Read .sph files in Python
.sph isn't a very common format, so I do believe that you are better off converting to .wav as you have decided, as libraries that do what you want probably don't exist, meaning you would have to write one (please don't do that to yourself). A Python .sph->.wav conversion library was actually one of the first things that popped up while I was researching this.
May
26
asked Is there a method of getting the number of files in git repository with new/modified/deleted status?
May
16
accepted Need help recursively creating a directory tree using the Boost Property Tree library and XML
May
16
comment Need help recursively creating a directory tree using the Boost Property Tree library and XML
You understood perfectly. Sorry about any ambiguity; I wasn't entirely certain about what I was -supposed- to want in terms of using this library. What you gave is extremely close to what I was wanting. I greatly appreciate the example code.
May
15
revised Need help recursively creating a directory tree using the Boost Property Tree library and XML
added 2 characters in body
May
15
comment Need help recursively creating a directory tree using the Boost Property Tree library and XML
Oops. Well, that's embarrassing... Thanks for the catch.
May
15
asked Need help recursively creating a directory tree using the Boost Property Tree library and XML
May
9
accepted Is it possible to use std::sort with a sort function that takes extra arguments?
May
5
accepted How do I build an executable for an application written in Swift from the terminal?
May
5
comment How do I build an executable for an application written in Swift from the terminal?
Works for general cases, but fails when adding lines like import Foundation, where I receive the output: <unknown>:0: error: cannot load underlying module for 'CoreGraphics' <unknown>:0: note: did you forget to set an SDK using -sdk or SDKROOT? <unknown>:0: note: use "xcrun -sdk macosx swift" to select the default OS X SDK installed with Xcode Following the general advice given does not work. Any additional insight?
May
5
asked How do I build an executable for an application written in Swift from the terminal?
May
2
awarded Critic
May
2
comment Why is my selection sort returning a value that is not in the original vector?
There's some low-level intricacies behind it, but it mostly boils down to personal preference. No difference between the two.
May
2
answered Why is my selection sort returning a value that is not in the original vector?
1 2 3 4 5