Stack Overflow
   21 tags on

2 answers

Using glib in C - correct invocation of pkg-config in a Makefile

I am trying to make a web server in C. I am using the glib library which I include in my .c file with the syntax: #include <glib.h> To be able to use the library I have added the following ...

1 answer

Renaming file and changing the extension

I have a folder with almost 2000 images and some of them doesn't have the right extension. And these extensions are formatted like this *.images(xxx) 1. How could I possible change the extension to ...

1 answers | 1 min ago by Francis Salvamante on Stack Overflow
16 answers

Download a single folder or directory from a GitHub repo

How can I download only a specific folder or directory from a remote Git repo hosted on GitHub? Say the example GitHub repo lives here: Its directory structure: ...

16 answers | 2 mins ago by g_inherit on Stack Overflow
1 answer

MarkDown ( Dont format my TEXT from Database )

I'm a very new in this field. I need to put MarkDown in my site. I'm using this: MarkDown appears and works CLIENT SIDE, with PREVIEW I see ...

8 answers

Use expect in bash script to provide password to SSH command

To those who want to reply that I should use SSH keys please abstain I'm trying to use expect in an bash script to provide the SSH password. Providing the password works but I don't end up in the SSH ...

8 answers | 6 mins ago by user359650 on Stack Overflow
3 answers

Ignoring Bash pipefail for error code 141

Setting the bash pipefail option (via set -o pipefail) allows the script to fail if a non-zero error is caught where there is a non-zero error in any step of a pipe. However, we are running into ...

0 answers

XCode not committing with on specific WIFI

I am getting the following message when trying to commit to my git. Already tried every suggestion here on stackoverflow which includes adding my details on terminal, etc... but still no success. In ...

2 answers

Git submodule workflow pull from upstream but push to own repository

I would like to keep a certain git repo in my repository as a submodule, lets say git://somerepo and take changes from upstream but not merging those changes back (because I don't have permissions) ...

2 answers | 17 mins ago by iggy on Stack Overflow
0 answers

Changing field appearance dynamically depending of a XML value

I am a beginner with Adobe Livecycle Designer and I need help with a hard task. I need to create a quiz dynamically which questions will be different depending a value sent in a XML file. Lets see a ...

0 answers

Set main language in Jekyll

How can I change the default language in Jekyll? I would like, to have German names for the days using the {{ … | date "%A" }} filter.

38 answers

Shell command to sum integers, one per line?

I am looking for a command that will accept as input multiple lines of text, each line containing a single integer, and output the sum of these integers. As a bit of background, I have a log file ...

38 answers | 28 mins ago by Andrzej Doyle on Stack Overflow
0 answers

Custom Jekyll 404 page is not working on Heroku

I have a Jekyll site deployed to Heroku. I have created a custom 404 error page in source/404.html file. The page can be found at But when I try to go to pages which don't exist, ...

2 answers

Create JSON file from multiple txt files

I have the following problem: *I want a JSON files with the keys, {"key1","key2"} each having several values and are written in a txt file. The txt file for each key looks like this: key1.txt: val1 ...

2 answers | 34 mins ago by Swami on Stack Overflow
1 answer

FFMPEG and JNI - pass AVFrame data to Java and Back

I have some C code that decodes a video frame by frame. I get to a point where i have an AVFrame in BGR32 and would like to send it back to Java for editing. I have a ByteBuffer object in my C code ...

1 answers | 37 mins ago by tishu on Stack Overflow
1 answer

How to automatically merge C source files?

I have a single executable which consist of many .c source files across several directories. Currently I need to run static analysis on the whole source code, not on each files separately. (static ...

2 answers

Search for a file by the date of it

I'm doing a Script which should search in a path for a File by its Date. I tried it with the name itself because in there is a Date too. (For Example: stargate_speedtests_2015-10-07-09:03:01) And ...

1 answer

How to “source” a shell file in C?

I have one C program and one shell script and I'd like to "source" shell script using my C. I tried use system() function, after it I can run script properly, but my colors doesn't work. For ...

1 answers | 43 mins ago by Yeez on Stack Overflow
0 answers

Internally git hub uses which database ? Can it be configured?

I want to know which database is used by git hub internally ? When git hub is implemented at enterprise level can we configure it ? Happy Learning :)

2 answers

Unix replace new lines inside quotes

I am trying to figure out the below in Unix. I have a csv file which is separated into columns and some of the columns have some text with new line characters. Usually the text starts and end with ...

2 answers | 54 mins ago by nikkatsa on Stack Overflow
0 answers

Keeping Alive a ssh session with a script bash/expect

Hello People i'm trying to do an script bash using a expect part to enter a server and keep alive the session, my script is as follow: #!/bin/bash /usr/bin/expect << eof spawn ssh user@server ...

0 answers

Can not create cross-repository pull request

I'm trying to create a pull request using like so. string branchName = "MyBranch"; var pr = new NewPullRequest("Some Pull Request", $"{user.Login}:{branchName}", "master") await ...

18 answers

Using awk to print all columns from the nth to the last

right now I have this line, and it worked until I had whitespace in the second field. svn status | grep '\!' | gawk '{print $2;}' > removedProjs is there a way to have awk print everything in $2 ...

18 answers | 1 hour ago by Andy on Stack Overflow
2 answers

Using ffmpeg with Visual Studio 2013 and C

I'm trying to include ffmpeg lib files inside my project. It's a simple test app with the following code: main.c #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> ...

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

bash script for killing process and restarting

I have the following code for running my jar file. setsid java -jar project.jar </dev/zero &>/dev/null & The program works fine, however, I want to write a bash script that will ...

0 answers

Troubles with git am when applied in a different repository

I have two git repositories. 1: /api/pom.xml /jpa/pom.xml 2: /mailbox/api/pom.xml /mailbox/jpa/pom.xml /protocols/api/pom.xml The second repository have a mailbox folder that has the exact same ...

3 answers

Move file with > in the name

I have a number of files which have (roughly) uniform file names, but all files begin with a > in the name, for example: >PAU_unit1.fsa >PAU_unit2.fsa . . . >PAU_Kingscliffe.fsa I would ...

3 answers | 1 hour ago by Joe Healey on Stack Overflow
1 answer

how can I avoid weird git diffs like this?

I sometimes edit xml-like files, like plists or xibs, and sometimes i get diffs like . Instead of the diff starting with the <dict> and ending with the </dict>, it starts and ends +2 ...

1 answers | 1 hour ago by pvinis on Stack Overflow
0 answers

How to edit Git system config hosted by GitLab

I need to test such Git options as pack.windowMemory and pack.packSizeLimit and that is why I would like to add them to system config file of Git which is hosted by GitLab. I know that in GitLab ...

14 answers

Print all but the first three columns

Too cumbersome: awk '{print " "$4" "$5" "$6" "$7" "$8" "$9" "$10" "$11" "$12" "$13}' things

14 answers | 1 hour ago by hhh on Stack Overflow
1 answer

How to insert multi lines to end of file using sed

i want to inset multi lines befor last line in the file that using sed , used the following sed attr > sed -i '/\/web-app/r web.xml' inputerror.txt last line in the file </web-app> ...

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