dash

Shell scripting input redirection oddities

Can anyone explain this behavior? Running: #!/bin/shecho "hello world" | read var1 var2echo $var1echo $var2 results in nothing being ouput, while: #!/bin/shecho "hello world" > test.fileread var1 var2 < test.fileecho $var1echo $var2 produces the expected output: helloworld Shouldn't the pipe do in one step what the redirection to t...

bash, dash and string comparison

While writing a fairly simple shell script, I've tried to compare two strings. I was using /bin/sh instead of /bin/bash, and after countless hours of debugging, it turns out dash (which is actually dash) can't handle this block of code: if [ "$var" == "string" ] then do something fi What is a portable way to compare strings uding...

How to add additional tables in DashCommerce 2 using SubSonic 2.0.3

I've inherited an website that is base on DashCommerce 2 SubSonic 2.0.3 I wish to add some customfields to the project however cannot find .tt files. Also there is not option to "run tool" Did SubSonic 2.0.3 use .tt files? I'm assuming .tt = t4? I don't seen any active record .dll's in the bin. // EDIT // Ok, so i need to use s...

Is there any good reasons that I should not use - (dash) in field names in MySQL?

I have field name category_id in product table. And also I want name field of category id as category-id. Is there any good reasons that I should not use - in a field name? Where can I find which character I should not use in MySQL field and table name? ...

how to get latex to hyphenate a word that contains a dash ?

In a latex document I'm writing, I get an overfull hbox warning because of the word "multi-disciplinary", which happens to be rendered at the end of a line. I can get rid of this particular warning by changing it into multi-discipli\-nary, but the same problem will happen elsewhere, since this word is used a lot in the paper. I'd like...

Information Dashboards in R with ggplot2

I'm looking to create a static dashboard viewable in a web browser. And I'd like to create something like what Stephen Few does in his book Information Dashboard Design. (see example at bottom) Ggplot2: Shouldn't be any issue producing the graphs below, right? Dashboard Layout: Is grid suitable? Or should I lay things out in html/css? ...

Why are SQL fieldnames sometimes spelled like `this`?

What's the difference between SELECT * FROM `this` and SELECT * FROM this ? ...

How to create Flash widget for sony dash?

I like to create a sony dash apps how to create new apps? How to connect flash action script with web service? any one help me. ...

SEO difference between dash and hypen

I understand with dashes once can search for keywords in different order. What if my keyword has a space in it like real estate or New York Should I use underscores in this case? If I do a Google search for New_York Google hints me: Did you mean: New York There is clearly a difference. Even capitals seems to make a difference, lookin...

How to create a dashed line rounded rectangle in Flex?

How can I create a rounded rectangle with a dashed line? I've seen several routines that draw their own straight lines, but nothing for rounded rectangles. ...

Rails -- Would like to create a controller with a dash or underscore in name

Hello, I wanted to create some basic html pages to add to my rails app. I figured the restful way to do it would be to create a controller. The problem is I'd like the pages to be a two word title. => ex. www.mydomain.com/foo-bar/ For SEO reasons it really must be two words, and I need the separation...using www.mydomain.com/foobar...

Dashed border rendering bug in IE8

Hi, I've come across yet another problem in IE8 - dashed borders scramble and break when scrolling the page. Below are 2 w3-valid pages demonstrating the behavior: as HTML4 transitional and XHTML1 transitional. In the 1st example I've discovered an utterly weird fix for the problem by adding an <input> element. Whenever it's there, the...

How to find PID of an dash-exec command

NOTE: I thought I was using bash, but /bin/sh is linked to /bin/dash, which has this weird exec problem. I have a simple bash shell script on Linux which is used to launch a server process (which I did not write or control) and would like to have the bash shell script output the launched process's PID to a pidfile. The problem is that ...

sqlplus compute sum of multiple columns with underline display before totals

I am attempting to generate a report with multiple numeric columns, each of which I am providing a column total. However, when I include each column in my "compute sum...on report" statement, only one of the columns displays a dash underline before the total amount. Is there a way to format all of the columns this way? Thanks. ...

set filename tab-completion in dash case insensitive

I’m using dash shell filename tab-completion feature to complete file names.However default tab-completion in dash case-sensitive.How can I force filename tab-completion in dash case insensitive? In bash, I can add "set completion-ignore-case on" to /etc/inputrc, however it makes no effects in dash. Any suggestions? ...

General question about information a scheduler 'dashboard' should have

Sorry for another non programming question, but I'm using Quartz.NET, a scheduler for .NET applications, for a Windows Service which allows users to schedule transferrig of files that match a regular expression from various sources - for example the user may schedule a job to occur every day at 6pm that transfers the files from a networ...