Stack Overflow
   21 tags on

1 answer

Reading in pydub AudioSegment from url. BytesIO returning “OSError [Errno 2] No such file or directory” on heroku only; fine on localhost

EDIT for anyone with the same error: installing ffmpeg did indeed solve that BytesIO error EDIT for anyone still willing to help: my problem is now that when I AudioSegment.export("filename.mp3", ...

0 answers

Issue while opening a file associated with custom video player from a link

I am facing a peculiar issue regarding opening a video file. Scenario is; We have a custom video player(WPF/c project) which plays associated video file. If video file is located locally in the ...

0 answers

Videojs Player HD Toggle changes

I have a question about the HD toggle plugin (function) of videojs. Normally the HD state is active, if I click on the HD Button. But we want to load the HD Source onload and also the HD Button state ...

1 answer

Installing Github on Windows- “Value does not fall within the expected range”

I'm trying to install Github on my Windows 7 laptop, and I get an error every time I run the GitHubSetup.exe, saying "Application cannot be started. Contact the application vendor.". When I hit ...

1 answers | 8 mins ago by vmazur on Stack Overflow stackoverflow.com
1 answer

Jeknins - read Git branch name from a user-defined axis in a multi-configuration project

My Git repository has two branches -- master and develop. I would like Jenkins to checkout master and develop, and deploy them to servers A and B, respectively. In an attempt to achieve this, I ...

0 answers

MPEG 2 find group of pictures boundary

I am trying to split video into group of pictures(GOPS). What I was doing: read in video as byte arrays test GOP boundary using GOP start code Group_start_code: 0x000001B8 32bits The problem is: ...

3 answers

How to get only added/changed lines in diff?

a.txt 1 2 3 4 5 6 b.txt 10 2 3 40 50 6 70 I'd like to run some command on these files that generates the following output. 10 40 50 70 How can I run a diff on two files but only show lines ...

3 answers | 27 mins ago by naomik on Stack Overflow stackoverflow.com
1 answer

Auto deploy after commiting

I'm developing on Ruby on Rails and write some articles on Hexo. My project source code repo is on Gitlab server. So my deploy flow is Commit the production code to Gitlab from my working space. ...

1 answers | 44 mins ago by poc on Stack Overflow stackoverflow.com
1 answer

How to craft a regex for processing a source file, where the search pattern is built from function name?

I need to write a script to process millions of lines of code spread out over thousands of c files. Part of what I need to accomplish is a search and replace where the search string is built from name ...

1 answers | 58 mins ago by Brandon Yates on Stack Overflow stackoverflow.com
2 answers

One line bash Script to Edit File (not create a new one)

I'm a newbie at bash script and I'm trying to write a bash script to edit a configuration file. i want to remove " foo" from the file. Using the code echo sed -e "s/ foo//" ./test > ./test2 ...

2 answers | 1 hour ago by Don Drenai on Stack Overflow stackoverflow.com
0 answers

Issues with ffmpeg and rails server

I'm creating thumbnails from a webm file, the problem is that every time the script runs my development server (webrick) stops and there is no errors in the output, the images are created but the ...

4 answers

Grep for a string that ends with specific character

Is there a way to use extended regular expressions to find a specific pattern that ends with a string. I mean, I want to match first 3 lines but not the last: file_number_one.pdf # comment ...

4 answers | 1 hour ago by inshador on Stack Overflow stackoverflow.com
5 answers

Select randomly a file from various directories and sort

I have a lot of text files spread out across several directories. I would like to sort all files and create a list of file names (in a text file) but in a peculiar and defined order. My initial ...

5 answers | 1 hour ago by techAddict82 on Stack Overflow stackoverflow.com
2 answers

git word diff on non-english text

How to have a word for word diff on a human language text (in Chinese)? I have some plain text in Chinese in a git repository. The text has been edited and I'd like to see which words have been ...

3 answers

Public and private code in a single Git repository

A research group I'm participating in currently hosts all of their code in a private SVN repository. We'd like to open up our code and move most of it onto Github. The problem is, some of the code is ...

3 answers | 1 hour ago by Ben Morris on Stack Overflow stackoverflow.com
0 answers

Audio not working in YouTube player helper app

I'm writing an app that plays videos from YouTube using the YouTube helper library ( https://developers.google.com/youtube/v3/guides/ios_youtube_helper#controlling_playback ). The video works well, ...

1 answer

Updating multiple branches in SourceTree

I am really new to SourceTree and was hoping someone could help me out. I have made changes to my working copy and I need to commit and push my changes to multiple branches. How do I do this? Right ...

24 answers

Change the author of a commit in Git

I was writing a simple script in the school computer, and committing the changes to Git (in a repo that was in my pendrive, cloned from my computer at home). After several commits I realized I was ...

1 answer

stopping a bash script using subprocess call

Hi I am using subprocess.call("sudo bash /home/pi/Desktop/switchtest.sh", shell=True) to start a python script. The content of switchtest.sh is sudo python /home/pi/Desktop/switch1.py. Now, using ...

1 answers | 2 hours ago by bobdxcool on Stack Overflow stackoverflow.com
0 answers

How to set video resolution in Android video recorder?

I am following this link of Android developers to record a video. I am able to record but in some default video resolution. How can I go about setting to specific video resolution for recording the ...

0 answers

How to feed FFMPEG AV_CODEC_ID_PCM_S16BE audio data to AudioQueue

I am using FFMPEG in combination with FFmpegAudioPlayer to do live streaming. The issue I am having is that, while the audio can be decoded and played, there's a constant clicking/screeching noise in ...

1 answer

x,y points at 95% confidence interval using awk

I'm pretty new to linux and want to use bash/awk to find the x points where y=.975 and y=.025 (95% confidence interval) which I can then use to give me the 'width' of my broad peak (the data kinda ...

1 answers | 2 hours ago by Patrick on Stack Overflow stackoverflow.com
3 answers

How to configure Git post commit hook

I am new to Jenkins. How to trigger a build remotely from Jenkins? Can anybody tell how to configure Git post commit hook? My requirement is whenever changes are made in the Git repository for a ...

8 answers

How can I make Jenkins CI with git trigger on pushes to master?

I'm trying to set up Jenkins-ci for a project using github. I've already set up jenkins with the appropriate plugins. I want jenkins to run build scripts only whenever someone on the project pushes to ...

8 answers | 2 hours ago by Ziggy on Stack Overflow stackoverflow.com
3 answers

How to get delete word combination “Name Server:” without quotes but keep 'Name Server:someletters/digits' in sed

I have the following lines: Name Server:NS92.WORLDNIC.COM(or some other value) Name Server: Name Server: Name Server: Please see the screenshot for better understanding: http://imgur.com/q6Ir4lo ...

3 answers | 2 hours ago by Simon on Stack Overflow stackoverflow.com
1 answer

Is it possible to break out of a bash command which is executing based on a condition?

## 20141017 ## run as a cron script every 5 minutes ## NB: Filesystem mounted on /u01 periodically exceeds 80% ## #!/bin/bash fs=u01 function deletion() { pushd ~ > /dev/null ...

1 answers | 2 hours ago by khadija on Stack Overflow stackoverflow.com
2 answers

Explaining local -a 'xkeys=(“${!'”$1“'[@]}”)'

This code is given as a workaround for array indirection at bash-hackers.org wiki page as an example to get array length and indices indirectly. It's also mentioned in this Stackoverflow question. I ...

2 answers | 2 hours ago by amayem on Stack Overflow stackoverflow.com
2 answers

dissecting this code, explanation - check if array subset of another array

I found this example at wiki.bash-hackers.org, however it is not explained in detail, so I was hoping maybe someone here, could put some light on this, and explain what is happening. I understand the ...

2 answers | 3 hours ago by branquito on Stack Overflow stackoverflow.com
1 answer

Expressjs Deploying to AWS Elastic Beanstalk Errors

I am running into two errors when I try to run eb start and eb status --verbose. I tried googling the issues, but couldn't find any solutions. Am I missing aws packages? I am deploying expressjs Here ...

2 answers

Multiple spaces and dots between letters

Currently I am writing a script to read some logs for me and I started to add some filters to it, on of them being a filter to find swear words and I gat stuck. So this part is working: ...

2 answers | 3 hours ago by user3026336 on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3