How to detect syllables with pyaudio? - pyaudio

I want to cut a word recored in puaudio to syllables and save it to a little 'wmv' pieces in some directory.
I guss its should be made in pyaudio, but if there is another better way to do that in python - it will be great.

Related

Simple Regex Question - I've sat here for close to 4 hours trying to figure this out, and for most of you, it's simple, but not for me

I know what this site is for, and I've read people griping at others for asking a question like this, but I truly need help, and I've been working on this for a very long time.
I have a huge sheet of passwords and usernames in a .csv file, which I'm trying to format so it can be read by my Google profile (through Google Password Manager). I've tried all different kinds of ways, but Google is picky, and I've had a hell of a time just getting it to register anything except for "failed." I've searched through so many damn forum posts on this site and others. I know I'm almost there, as I finally got an error message, but I just want this to be done, so I finally figured I'd ask all you smart people for help. I've put forth the effort, and I just can't figure it out, just as I can't figure out how to convert any of the examples I find on this site to what I am needing. I've tried, many, many times.
I've used a regex tester to crawl and scrape my way to this:
/https:\/\/w{3}\.(...+.*\.com|net),?/g
I'm working on this with Notepad++, so it may be the wrong format. I've been using regex for a while, not really understanding it, which figuring this out above, has helped my understanding a lot.
Below is an edited version of how my document looks, which illustrates most of the issues I am dealing with. I imported it into an excel program, to get all the columns correct and to remove excess (which is how I finally got Google to register an error message).
In Notepad++, I fixed all of the "https://" and all of the variations I had. But for the life of me the hardest thing has been to figure out how to get the "www." on the remaining lines. My code above seems close, but it combines the URL address, with the email address when they are on the same line only separated by a comma, (which combines them into one group) and for the life of me I cannot figure out how to fix it. So, please help.
The top line is how it's organized, except it's in the order of URL, username, and password.
username,password,url,
https://www.nvidia.com,myemail#mail.com,password#1,
https://www.google.com,myemail#mail.com,password#2,
https://www.firefox.com,username,password#3,
https://na.alienwarearena.com,myemail#mail.com,password#4,
https://www.pinterest.cl,myemail#mail.com,password#5,
https://www.cplusplus.com,Username,password#6,
https://myaccount.google.com,myemail#gmail.com,password#7,
https://twitter.com,username,password#8,
Please, just a simple example of what I'm doing incorrectly, and if you feel like it, a simple explanation, as this has given me a massive headache. But any help is very much appreciated.
I might be over-simplifying this a bit much, but sounds like you're just wanting to re-order the columns on the file. Which excel would be the better option (you can just cut/paste the columns around)
But if you want to do this via regex, here's the simplest regex I can think of:
^(http[^,]+),([^,]+),([^,]+),?
Demo
I'm making the assumption that a , will never appear in your data. If it does, then the regex will get much more complex.
^ - Forces the regex to start of line
(http[^,]+), - Matches url. Ensures it starts with http, just so it skips the header. Ends with a comma
([^,]+), - grabs whatever is between the previous , and the next (which should be the username
([^,]+),? - grabs the last part, which is the password
Each one of the () is called a group. When you do a replacement, you can reference these groups. They're numbered left to right starting at 1.
This allows you to do a find/replace in notepad++. The replacement line will look something like this:
$2,$3,$1
I'm using sublime and not notepad++. So the replacement might be something like \2,\3,\1 instead. Can't quite remember how notepad++ works on the replacement.
Best of luck.

How do I merge 2 (or more) "visio websites" (*.htm) with subpages?

I created various flowcharts of processes with the latest visio of a small, complex company (not done yet, but there will be approximately 8 visio files, each with 3-6 sheets).
I am currently looking for a way to present the final result, my idea is to save those files as a website (VML). The problem however is, that I want one single file: therefore my question, how can I merge those files?
I tried to use my very limited html knowledge, the site didn't open anymore. I tried to use "Microsoft Expression Web 4" and just copied 2 test files in there, but it was not usable. My goal is to have on the left side contents, which are linked to the actual visio drawings (think: visio file1 - sheets1.1-1.5; visio file2 - sheets2.1-2.3,...)
Thanks a lot for any help (or other ideas), I am going crazy over this!
How much easier would it be to merge the drawings in Visio itself, before exporting to HTML. Just open the files side-by-side and drag the pages from one document to the other. You may need to press the control key to avoid moving the shapes instead of copying them.

Is there a way to save just one file in PhpStorm?

My traditional workflow must be a little different to the PHPStorm default. I often work on multiple files at the same time and want to be able to save just one file when I've finished with it, without saving the others that I've modified.
I've managed to turn off the auto-save feature. Now, when I edit files I get stars on the ones I've edited and they stay like that until I hit 'save'. So far so good.
But when press CTRL-S to save, expecting it to save the one file I'm looking at so I can go back to the ones with asterisks to polish them off too, it also saves ALL the other files too.
I hope there's some way to change this behaviour or set up something to allow me to save just one file at a time!
Yes, you can .. but that still does not change a lot (e.g if you change your settings, or run/re-run something -- all files will be saved automatically anyway). Eventually (after few weeks or month of adaptation) you will get used to this behaviour and quite likely will love it (yes, this means changing working habits a bit, which is quite hard to do (requires time) for some people/in some cases).
Anyway ... to enable "save single file" functionality:
Settings | Keymap
On that screen, in search box type "save"
The action you are after is called "Other | Save Document"
Assign whatever shortcut you want.
P.S.
This action will NOT ask for confirmation (same behaviour as standard save does).
P.P.S.
This action is available since PhpStorm v7 ONLY.

Duplicating, multiplying and saving a H.264 movie file efficiently

I tried to look for free H.264 editors that could do such forementioned tasks, but i couldn't find any suitable results (probably due to my incorrect(?) search terms).
Basically, i have quite a few 20 to 40 second looping movie files (rendered with Adobe Premiere), and i would like to multiply an individual movie to about ten or twenty fold, and then save it again, preferably without the need to re-render (or re-encode?). Is this possible?
Hopefully i managed to make myself understood, thanks :)
After a whole bunch of searching and testing, i ended up with Avidemux and it did the task perfectly, this time around. I'm sure there would've been a way to automatize the appending / "multiplying" of the file, but with a tablet pen (main click set as double click) and specific folder it truly went by like a breeze.
I was also interested of Smart Cutter (i quite enjoyed the interface after getting used to it), but since it was trialware the choice was clear. Still, if i would have to do these kind of tasks more often, i might consider purchasing it.

Program for diff-ing binary files?

(The story is relevant...mostly)
So I'm over at my buddy's house playing some RE5 Gold Edition, beat the game, unlock a bunch of stuff, and then I copy the save file to my memory stick so I can take it home with me.
Of course, the save is locked to his profile so I can't play it on my PS3, even though I was there beating everything with him. Lame.
So, I've got this save file sitting on my memory stick, I want to see if I can hack it to work with my profile.
I figure if I just create 2 new saves on different profiles and do nothing else, they should be identical except for the profile information. Then I just have to replace my friend's profile info with mine, and it should work, right?
So I need a tool for diff-ing these 2 binary files so I can quickly locate the parts of the file that are different. I know there are plenty of tools for text, but what about for binary?
(Actually, there are 3 files, DATA0.DAT, PARAM.PFD, and PARAM.SFO... not sure if anyone knows anything about PS3 save files, specifically for Resident Evil 5 Gold)
Don't think it's going to be possible. Apparently the save file is "protected". All it would take to prevent me from tampering with it is if they hash the contents of the data using some unknown algorithm, and then verify the hash matches up upon load. Not sure if they're doing that, but... guess it would be kind of dumb if they weren't doing something similar.
Hex Workshop is one of the premier hex manipulation applications and it has a file compare function.
But be aware that the game may not use a straight foward data saving mechanism, you may be dealing with a custom database structure, or the data may be encrypted. Game developers typically don't make it easy to hack save files, for obvious reasons...
I thought most of compare tools can do that (like Beyond Compare which I love). For example, there is FC.exe in Windows 7 in System folder. Compares ASCII and binaries. See http://support.microsoft.com/kb/159214 for some details.
check out hex workshop. most other hex editors out there should have this feature as well.