Stack Overflow
   21 tags on

0 answers

Manipulation of a csv file using ipython notebook

I have a csv file: Branch Ra L C Rb, 1 1 10 1 1, 2 13 100 15 6. Importing this csv file, how can I get a output like this: *branch 1: Ra1 ndT nd1b 1, L1 nd1b nd1c 10, ...

1 answer

How to get the return value of instruments?

I'm using instruments inside a bash script on a continuous integration server. I would like to know when a command as failed in the script, so I can exit prematurely from it and mark the build as ...

4 answers

Unstage all deleted files in Git

I want to unstage all file deletes. Is there an easy way? I want to apply this to the file pattern of all deletes.

4 answers | 4 mins ago by Jacko on Stack Overflow
0 answers

Is there a way of using ffmpeg in c# app?

I'm using the and when I run ffmpeg -y -f vfwcap -r 25 -i 0 out.mp4 in command line I can grab the video from my webcam and write it to the out.mp4 file. However, I can't see that stream ...

0 answers

How to install MinGW-w64 and MSYS2?

I am trying to build some open source library. I need package management system to easily download the dependencies. At first I am using MinGW+MSYS. But the included packages are limited. Someone told ...

1 answer

How to remotely execute Windows program in linux?

I have tried accessing windows machine shell from linux using link It worked for me correctly. While ...

4 answers

Render MATLAB figure in memory

Are there any alternatives to using getframe and saveas for saving the contents of a figure to a raster image for further processing? Approach 1: getframe h = figure('visible', 'off'); a = ...

2 answers

Converting variable tab limited file to new line entry

I have a huge file (over 1000 lines) in the following format 000005 chair chair chair chair chair 000007 car 000009 horse person person person 000012 car 000016 bicycle 000017 ...

2 answers | 11 mins ago by Sid on Stack Overflow
4 answers

ffmpeg av_seek_frame

I am attempting to seek in a movie using ffmpeg's av_seek_frame method however I'm having the most trouble determining how to generate a time-stamp to seek to. Assuming I want to seek x amount of ...

4 answers | 11 mins ago by Jack Edmonds on Stack Overflow
2 answers

How to merge git submodules

I have just done git merge in the app, I resolved many conflicts But when i do git status, i can see list of submodules with (new commits) in the message, it looks like the submodules (branch/tag) ...

2 answers | 12 mins ago by Vinay on Stack Overflow
0 answers

git repository at remote location using https

I need to create remote repository from client location using JGit Eclipse API. I have also integrate Apache server to access Repository using HTTPS Protocol.So using HTTPS and JGit I need to create ...

8 answers

git: fatal: Could not read from remote repository

I am trying to set git up with to manage my site. I have gotten to the last step in the instructions: git push website +master:refs/heads/master I am ...

8 answers | 16 mins ago by user61629 on Stack Overflow
2 answers

Run curl from .sh script with defined Content-Type

When I'm trying to run script I've always receive error from curl: curl: (6) Couldn't resolve host 'application' #!/bin/sh CT="Content-Type:\ application/json" TEST="curl ...

2 answers | 19 mins ago by kaspian on Stack Overflow
2 answers

Git clone from Sourceforge using Netbeans 8.0.1

This sounds silly. But, wanted to know anyway. I am trying to clone git repository from sourceforge using Netbeans 8. As per the project's sourceforge page, the git clone can be done with the ...

3 answers

Shell script to delete a line next to empty lines

I'm able to delete empty lines from a file using grep or sed. But, I'm unable to resolve a scenario where I have to delete a valid line next to empty lines. Following is an example: Source: 1_1 1_2 ...

3 answers | 28 mins ago by codedoc on Stack Overflow
0 answers

How to upload video to Facebook without user interaction? (or in background) after getting the open session

Before 30/April/2015, this code was working fine for me. But now i am not getting "publish_actions" permission. So it redirects my application to facebook login page again and again. I know that ...

1 answer

Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists

I am getting this error - D:\Projects\wamp\www\REPO [master]> git pull origin master Warning: Permanently added ',' (RSA) to the list of known hosts. ERROR: Repository not ...

1 answers | 33 mins ago by Napster on Stack Overflow
2 answers

Pushing to +master versus force push

When I resynchronize with an upstream project on GitHub that I've forked, I thought I needed to force push. However, pushing to +master also seems to work. What's the difference between: git push ...

2 answers | 41 mins ago by Steven Shaw on Stack Overflow
2 answers

Why is git hanging - have to press enter twice after commands?

Edit: Summary: Every command entered in Git produces a hanging cursor which then says "bad input" if anything is typed before enter is pressed. No commands produce any results. I tried a fresh install ...

2 answers | 43 mins ago by Aerovistae on Stack Overflow
1 answer

Extend parsing command to multiple files

There are a number of files I use which can all be parsed into three files (per input file) with: third_file_1_1.txt first_file_1_2.txt.... in an automated process?

1 answers | 54 mins ago by heinheo on Stack Overflow
1 answer

How to use up arrow key in shell script to get previous command

I am trying to write my console with some basic functionalities. Here is what I am doing. function help() { echo "add(a,b,...)" } function add() { arg=$(echo $1 | cut -d"(" -f2) sum=0 for ...

1 answers | 1 hour ago by avinashse on Stack Overflow
2 answers

Rational Software Architect and GitHub

We are using Rational Software architect to model our designs. And we have our repository in Github to Collaborate among team members. Problem we are facing with Merge/Conflicts. So if one team ...

2 answers | 1 hour ago by user667022 on Stack Overflow
2 answers

pipe curl output to email

I want to pipe output from the curl command to the email however I receive an empty attachment file when I run this script: #!/bin/bash STATUS=$(curl -I echo $STATUS | mail -s "Test" ...

2 answers | 1 hour ago by HTF on Stack Overflow
0 answers

librtmp free(): invalid pointer

I'm trying to handle packets with librtmp but get a "free(): invalid pointer" error. #include <stdio.h> #include <stdlib.h> #include <librtmp/rtmp.h> #include <librtmp/log.h> ...

3 answers

How to verify if upload is finished in SFTP

I'm uploading the file through Sftp to destination server using bash scripts. How I can be sure that the file which is uploaded is complete upload in the case sftp will not return anything or network ...

3 answers | 1 hour ago by yart on Stack Overflow
1 answer

Tesseract 3.03 compile error: 'select' was not declared in this scope

I am using cygwin to compile the Tesseract 3.03 source code. The following error is encountered when I run make after configure. I have no knowledge to modify the Tesseract source code. Anyone saw ...

3 answers

What's the meaning ${1:-}?

Could you help me explain the expression in BASH script ? ${1:-} I never see it before, so I try some about it. echo ${1:-} echo ${1} I cant see any difference. Thank you very much!!!

3 answers | 1 hour ago by Jinnan on Stack Overflow
3 answers

“If” Construct in Unix Scripting

I have just started writing shell scripts. In if constructs, is the if considered to be a command or a keyword? If it is a command, its path should be listed when searched through the which command. ...

3 answers | 1 hour ago by user3103957 on Stack Overflow
8 answers

Shell Script - Get all files modified after <date>

I'd rather not do this in PHP so I'm hoping a someone decent at shell scripting can help. I need a script that runs through directory recursively and finds all files with last modified date is ...

8 answers | 1 hour ago by Peter on Stack Overflow
3 answers

What is the purpose of double parentheses with file redirection?

I see this with the partclone command, for example ( ( partclone.restore -s ${SOUR_PART} -o ${DEST_PART} 2>&3 ) 3>&1 ) | ... What is the meaning or purpose of 2>&3 ) ...

3 answers | 1 hour ago by user180574 on Stack Overflow
15 30 50 per page
1 2 3