Stack Overflow
   21 tags on

2 answers

Shell script to extract image of an Android mobile

So I am trying to extract the image of an Android mobile to do some forensic analysis using the adb tool. I have been able to successfully extract the image. But what I am trying now is to make a ...

1 answer

How can I write a Jekyll plugin that modifies the `site` object?

I want to write a Jekyll plugin that modifies the site object. The site object is available throughout the Jekyll build process. In Jekyll, the most direct way to add an attribute to it is to define ...

1 answers | 44 mins ago by Ryan Burnette on Stack Overflow stackoverflow.com
0 answers

SED grabbing special characters

I’m trying to fix an encoding error in an archived html page. My problem is that sed is behaving strangely, as it doesn't catch special characters in the data. I tried both with and without -r switch. ...

1 answer

Convert raw string to a format based on regex in awk

How do i convert D84011201426 123450098741003**2014-11-26-01.55.23.000000** to 26/11/2014 01.55.23.000000 using awk I have tried multiple options but I am not able to extract the correct ...

1 answers | 1 hour ago by Ishu Gupta on Stack Overflow stackoverflow.com
0 answers

Git subtree prefix 'Plugins/TimeOfDay' already exists

I'm trying to create subtrees fallowing this: https://hpc.uni.lu/blog/2014/understanding-git-subtree/ I googled that folder which I want to use for subtree must be empty, and so I made it is empty, ...

1 answer

Why does “git pull” exec command get stuck and print nothing?

When executing the following command, DOS prompts me to type the password: $ git pull Enter passphrase for key (...) When I try to show the same information programatically using Apache Commons ...

0 answers

How to host multiple websites in single Github Pages Repository?

I want to host a home page and a (static) blog in the same Github repository. I want the home page to occupy the 'main' domain: castertroy.com I want the blog to occupy a sub-domain: ...

3 answers

list username and SIP number for users Asterisk

I have installed Asterisk and i have the file users.conf I want to create a shell script that can list the usernames and their SIP number The users are listed in the file as shown below: [6001] ...

3 answers | 1 hour ago by user3130417 on Stack Overflow stackoverflow.com
1 answer

Android - HTML5 video on Samsung's not showing controls

I'm currently working on an Android app with a WebView control, which has the following HTML snippet in it: <video width="270" height="270" controls> <source ...

0 answers

cannot commit due to the renamed files in .git repository

I have initialized a directory with git: git init And then added all the files: git add . After that, I manually (through OS) renamed one directory (from Attr to attibutes). Then I continued my ...

2 answers

Bash variable strangely includes output of current directory and removes characters

I'm writing a simple Bash script to spell check a single word via the command line using aspell. The way to do this is: echo "word" | aspell -a Aspell then outputs something like: @(#) ...

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

Get similar links from one site using wget

I have a site (http://a-site.com) with many links like that. How can I use wget to crawl and grep all similar links to a file? <a href="/user/333333/follow_user" class="btn" ...

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

linux terminal execute java with input string

hi guys i am a bit stuck, I have a program that work by reading in a string of the input file name. example: java main then input the file name and program runs I am trying to run the terminal ...

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

Can anyone explain me how to solve the error in installing homebrew in macbook running mavericks?

I tried installing homebrew using the ruby command found in homebrew home page. But I repeatedly failed to do. I get error as follows. ==> Downloading and installing Homebrew... remote: Counting ...

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

django-cms apphook urls don't work with reverse() using Python shell

I've created a django CMS apphook. Unfortunately I'm not able to reverse apphook urls using the Python shell. The cms_app.py file looks like: class ArticleApp (CMSApp): name = _('Article App') ...

1 answer

How do I shuffle the order of an array in Jekyll?

Specifically I'm looking to list an array's contents in random order on a page each time it is generated. So, given page.array = {1,2,3} the following: {% for i in page.array %} <p>{{ i ...

1 answers | 2 hours ago by Mike Jarema on Stack Overflow stackoverflow.com
4 answers

How can I take screen shots from running video in Android

I have developed an application in android which contains videos. Now I want to take screen shots from that running video. Is anybody having any idea regarding this thing. Pleas provide some example ...

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

Content of array in bash is OK when called directly, but lost when called from function

I am trying to use xmllint to search an xml file and store the values I need into an array. Here is what I am doing: #!/bin/sh function getProfilePaths { unset profilePaths unset ...

2 answers | 2 hours ago by Joey Cote on Stack Overflow stackoverflow.com
0 answers

Font-awesome icons in github wiki

How would I display a Font-Awesome icon in a github wiki? I tried to link to the source from the Font-Awesome site, but it just creates a link eg: | Element | Icon Name | Icon Image| | ------- | ...

0 answers

Uploading sliced part of an Xvid video file

I am trying to upload only a certain part of an AVI file (Xvid encoded) on the server without having to upload the whole file first. The video file is long (2hours) and big. I want to, let say, slice ...

26 answers

Loading .sql files from within PHP

I'm creating an installation script for an application that I'm developing and need to create databases dynamically from within PHP. I've got it to create the database but now I need to load in ...

0 answers

Java ProcessBuilder() or getRuntime.exec() launched process cannot access /dev/ttyUSB2 while it can outside java

When using Java to launch a Linux process, it seems that the process is sandboxed or protected in some way from accessing some locations. I didn't find anything on the topic, though. What I am trying ...

0 answers

Bash script: two consecutive calls to curl, just one is executed

I have a bash script containing, among other things, two consecutive calls to curl, like this #!/bin/bash # Stuff... curl -X POST -d "data=<some_post_data>" http://url/to/rest/api curl -X ...

0 answers

php scrape value from website

I have a website http://outsideit.net with a list of Nagios plugins I made. I would like to scrape the amount of hits from the Nagios Exchange website for specific plugins, eg ...

2 answers

Running a python QIIME script on multiple files

I am trying to make a script file to run a python script (from the QIIME pipeline) on multiple files without typing the script every time (I have roughly 150 files and more coming). I use a ...

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

how to reduce output size while capturing webcam video using ffmpeg?

I am capturing output from my webcam as follows: ffmpeg -y -an -vcodec rawvideo -f video4linux2 -s 320x240 -i /dev/video0 out.mpg I would like to trade off quality of the output in order to reduce ...

1 answer

Change volume on the fly

I want to change the volume on the fly, if I move the knob of the volume input. I have read a lot of posts and of course I googled. document.getElementById('volume').addEventListener('change', ...

14 answers

String contains in bash

Using bash, I have a string: string=`echo My string` How can I test if it contains another string? if [ $string ?? 'foo' ] then; echo "It's there!"; fi; Where ?? is my unknown operator. Do I ...

14 answers | 2 hours ago by davidsheldon on Stack Overflow stackoverflow.com
1 answer

How to use CSS in Markdown?

I want to use CSS class in Markdown file, For instance, <i class="icon-renren"></i> (from fontawesome), should be displayed as an icon if I import its CSS file in HTML. Any solution in ...

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

extract/split from string in bash

I have a set of commands in a bash script, eg running a query in impala. #! /bin/sh RESULT=`impala-shell -q "select count(*) from testable"` The result of the shell script is. Starting Impala ...

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