How do I iterate over a range of numbers defined by variables in Bash?

How do I iterate over a range of numbers defined by variables in Bash?

How do I iterate over a range of numbers in Bash when the range is given by a variable?I know I can do this (called "sequence expression" in the Bash documentation): for i in {1..5}; do echo $i; doneWhich gives: 1 2 3 4 5Yet, how c

What are the Xms and Xmx parameters when starting JVMs? [duplicate]

What are the Xms and Xmx parameters when starting JVMs? [duplicate]

This question already has an answer here: How is the default Java heap size determined? 7 answers Please explain the use of Xms and Xmx parameters in J

Use different Python version with virtualenv

Use different Python version with virtualenv

I have a Debian system currently running with python 2.5.4. I got virtualenv properly installed, everything is working fine. Is there a possibility that I can use a virtualenv with a different version of Python?I compiled Python 2.6.2 and w

Implementing INotifyPropertyChanged - does a better way exist?

Implementing INotifyPropertyChanged - does a better way exist?

Microsoft should have implemented something snappy for INotifyPropertyChanged, like in the automatic properties, just specify {get; set; notify;}I think it makes a lot of sense to do it. Or are there any complications to do it? Can we ourse

JQuery - $ is not defined

JQuery - $ is not defined

I have a simple jquery click eventand a jquery reference defined in the site.master

Android View align bottom (programmatically) without XML

Android View align bottom (programmatically) without XML

I got a problem with setting aligning my view programatically to the bottom of the screen. Basically I just want to place my admob advert at the screen bottom. I can't do it with XML because it would be even more troublesome. Right now I al

Making gulp write files synchronously before moving on to the next task

Making gulp write files synchronously before moving on to the next task

gulpfile.jsgulp.task('browser-bundle', ['react'], function() {...});gulp.task('react', function(){ gulp.src(options.JSX_SOURCE) .pipe(react()) .pipe(gulp.dest(options.JSX_DEST))});As you can see I have the browser-bundle task dep

How to log an installation made from a WiX bundle

How to log an installation made from a WiX bundle

When creating a Windows installer using the WiX (Windows Installer for XML) toolset, how do you make the install process write logging information to a log file?Is there a command-line switch which triggers the output of the log file? 1:

multiple “commands” in a single Sublime Text 2 user keymap shortcut

multiple “commands” in a single Sublime Text 2 user keymap shortcut

Is there a way to have multiple "commands" associated with one shortcut?I have these two shortcuts. First shortcut makes the window on the left larger than the right one (in a 2 column view) and the next shortcut puts the focus on the first

Prevent saving files with certain names in Vim

Prevent saving files with certain names in Vim

I type really fast and realize that sometimes I accidentally save a file with the name of ; or : (I type :wq and sometimes a typo is introduced).Is there any way to write a macro that rejects saving files matching certain names? 1:A sim

C++ code dependency / call-graph “viewer”? [closed]

C++ code dependency / call-graph “viewer”? [closed]

is there such a thing as a (free) tool that would display a graph of all functions call in a given function?For instance, if I use it on a complex function fun() I'm trying to understand, it would show me all the functions called by fun() i

How to install “make” in ubuntu? [closed]

How to install “make” in ubuntu? [closed]

I'm trying to install "yum" or "apt-get" into my system "ubuntu centOS". I did download the binary files for these two programs from the internet using the command wget. but after decompressing the files using the command "tar -zxvf "filena

How to get Selenium to wait for a transition page to redirect before running an assertion

How to get Selenium to wait for a transition page to redirect before running an assertion

I have a fairly standard situation: Click a button, it loads a transition page with a progress bar or something, and then that page redirects to the next page, which takes a while to load.I want to run assertions on the final page, not the

“Starting emulator for AVD” then Panic: could not open…\"

“Starting emulator for AVD” then Panic: could not open…\"

I'm new to android app dev. When I created a new AVD, when I click start on this AVD: I get the following: Starting emulator for AVD 'Nexus_4_16_AVD'PANIC: Could not open: Nexus_4_16_AVD 1:This is a bug in the ADT Plugin. For a workaroun

Java -classpath option

Java -classpath option

Will the use of -classpath option with java, add to or replace the contents of the CLASSPATH env variable? 1:Using the classpath variable it overrides the CLASSPATH of Environment variable but only for that session. If you restart the ap

Intellij “Make project automatically” woes

Intellij “Make project automatically” woes

Back in december I switched from Eclipse to IntelliJ but within a couple of days I switched back.Today I tried IntelliJ again and basically I have only one issue left.The issue is I want to compile Java classes on saving. The reason is I'm

Is .zfproject.xml a must in a Zend Framework project?

Is .zfproject.xml a must in a Zend Framework project?

Is .zfproject.xml a must in a Zend Framework project?What does it do?Is it's location absolute? 1:When using Zend_Tool to manage your Zend Framework project, .zfproject.xml will contain your application structure state. This is required

How do I manage git submodule subprojects in Eclipse?

How do I manage git submodule subprojects in Eclipse?

(In case it matters, these are Java Android projects)Project A is a library project.Project B depends on A. For ease of project management across the board for other people instead of just me, A is contained within B via a git submodule.Thi

Insert text into WPF textbox at caret position

Insert text into WPF textbox at caret position

How can I insert text into a WPF textbox at caret position? What am I missing? In Win32 you could use CEdit::ReplaceSel().It should work as if the Paste() command was invoked. But I want to avoid using the clipboard. 1:To simply insert t

Upload to heroku without git

Upload to heroku without git

Im making a tiny web app, really just for personal testing, the app is built with php / mysql, i plan to host it on heroku, but i was wondering is it possible to host stuff on heroku without pushing from git. I am not too keen on using git

The “X” property on “Y” could not be set to a 'null' value. You must set this property to

The “X” property on “Y” could not be set to a 'null' value. You must set this property to

When I run my application and I click a specific button I get the error:"The "X" property on "Y" could not be set to a 'null' value. You must set this property to a non-null value of type 'Int32'."Cool so I go to my Entity project, go to Y

Installing a local package on Meteor

Installing a local package on Meteor

I'm trying to run a local package on Meteor.I've got a correct package.js, have a smart.json, and it's inside my /packages directory in my Meteor project. The smart.json at my project looks like this:{ "packages": { "router": {},

attach() inside function

attach() inside function

I'd like to give a params argument to a function and then attach it so that I can use a instead of params$a everytime I refer to the list element a.run.simulationIs there a problem with this? If I have defined a global variable named c and

Load package dynamically in golang

Load package dynamically in golang

Is it possible to load a specific package during runtime? I want to have a kind of plugins where each one has the same functions than the others but with different behaviour, and depending on the configuration file, load one or other.Thanks

GDB: How to list all source files used for compilation

GDB: How to list all source files used for compilation

New to the project, have multiple source files used for compilation and some "could" be dynamic libraries, loaded at runtime. When debugging the executable using "GDB", is there a command to list all the source files (static) used to build