Bash: read lines in file into an array [duplicate]

Bash: read lines in file into an array [duplicate]

This question already has an answer here: Creating an array from a text file in Bash 6 answers I am trying to read a file containing lines into a Bash

Why this javac: File Not Found error?

Why this javac: File Not Found error?

Working with some basic java apps on CentOS 5 linux and I have my classpath set to point to home/pathToJava/bin which contains javac and javaand I have .java files in home/pathToFolderA/srcand home/pathToFolderB/gen-javaWhen I run javac and

How to Play local swf files in a webview

How to Play local swf files in a webview

Am trying to play local .swf files (kept in asset or sdcard) inside webview. But am not getting any luck...Can anyone guide me the proper way???I am able to play swf files via url....but getting difficulty in playing local file inside webvi

django import error - No module named core.management

django import error - No module named core.management

Ok, I see plenty of these errors around. I have tried everything I know to do and have yet to figure this out.I am working on a development server running python 2.5 and Django 1.3. Django 1.3 was installed using python setup.py install aft

What are the proper permissions for an upload folder with PHP/Apache?

What are the proper permissions for an upload folder with PHP/Apache?

Sorry for the basic question - I'm a .NET developer and don't have much experience with LAMP setups.I have a PHP site that will allow uploads to a specific folder. I have been told that this folder needs to be owned by the webserver user fo

Multiline String Literal in C#

Multiline String Literal in C#

Is there an easy way to create a multiline string literal in C#?Here's what I have now:string query = "SELECT foo, bar"+ " FROM table"+ " WHERE id = 42";I know PHP hasDoes C# have something similar? 1:You can use the @ symbol in front of

Set global default encoding for ruby 1.9

Set global default encoding for ruby 1.9

I want to tell ruby that everything is utf8, except when stated otherwise, so I dont have to place these # encoding: utf-8 comments everywhere. 1:You can either:set your RUBYOPT environment variable to "-E utf-8"or use https://github.com

How can I get user type C# syntax highlighting working again in VS 2012 RC?

How can I get user type C# syntax highlighting working again in VS 2012 RC?

Somehow part of my syntax highlighting for C# code has disappeared in the VS 2012 IDE. Uninstalling, rebooting, and reinstalling does nothing, nor does resetting the colors in the options dialog.Here are some examples of items which all app

Set a persistent environment variable from cmd.exe

Set a persistent environment variable from cmd.exe

I have to set environment variables on different windows machines, but I don't want to be bothered changing them manually by getting on the properties screen of "My Computer"I want to do it from the command line, with a batch file. As far a

Installing OpenCV 2.4.3 in Visual C++ 2010 Express [closed]

Installing OpenCV 2.4.3 in Visual C++ 2010 Express [closed]

How do you install and use OpenCV 2.4.3 under VC++ 2010 Express? 1:1. Installing OpenCV 2.4.3First, get OpenCV 2.4.3 from sourceforge.net. Its a self-extracting so just double click to start the installation. Install it in a directory, s

Local Variables Within aes

Local Variables Within aes

I'm trying to use a local variable in aes when I plot with ggplot. This is my problem boiled down to the essence:xy This results in the following error:Error in eval(expr, envir, enclos) : object 'YMul' not foundIt seems as if I cannot use

Getting terminal width in C?

Getting terminal width in C?

I've been looking for a way to get the terminal width from within my C program. What I keep coming up with is something along the lines of:#include #include int main (void){ struct ttysize ts; ioctl(0, TIOCGSIZE, &ts); printf ("lin

RuntimeException: Unable to instantiate application

RuntimeException: Unable to instantiate application

When I run my application, everytime I am getting the below exception in my logcat: 04-14 09:29:53.965: W/dalvikvm(1020): threadid=1: thread exiting with uncaught exception (group=0x409c01f8) 04-14 09:29:53.985: E/AndroidRuntime(1020): F