What is a regex I can write in bash for parsing a line and extracting text that can be found between two | (so that would be ex: 1: |hey| 2: |boy|) and keeping those words in some sort of array?
What is a regex I can write in bash for parsing a line and extracting text that can be found between two | (so that would be ex: 1: |hey| 2: |boy|) and keeping those words in some sort of array?
From Android widget screen guidelines, http://developer.android.com/guide/practices/ui_guidelines/widget_design.html, we know that, home screen has 4*4 cells, and in portrait orientation, each cell is 80 pixels wide by 100 pixels tall.
I think these are for baseline HVGA screen. How about for large screens and hdpi screens, do they still have 4*4…
For things like menubars and headers, a background color is nice.
But a background color that gracefully transitions from say Blue to White is even nicer.
I know this can be done by making a 1-pixel wide, X-pixel tall image file containing the desired fade and repeating it across the div, but does CSS have native support to just define colors and…
Below is my attempt at addinf two values from seperate select statments...it's not working...I can't see why. Looking for some direction
thanks
select (v1.Value + v2.Value) as total from
(
(Select Max(Value) as [Value] from History WHERE
Datetime>='Apr 11 2010 6:05AM' and Datetime<='Apr 11 2010 6:05PM'
and Tagname…
there is one think, i can't understand anyway:(((
when i try to set cookie(it is on line 28 in login.php), browser returns me an error!!!
Cannot modify header information - headers already sent by (output started at C:\xampp2\htdocs\video\index.php:9) in C:\xampp2\htdocs\video\login.php on line 28
but on line 9 in index php, i…
my action has two 3 parameters, but only two are called at a time. So I want to do this:
People is the action, string Height, string searchHigh, sting searchLow
/Groups/People/Tall/searchHigh
and this
/Groups/People/Short/searchLow
i map both and the first route works, but the second gets appended to the first when go to the…
I have two tables: photographs, and photograph_tags. Photograph_tags contains a column called photograph_id (id in photographs). You can have many tags for one photograph. I have a photograph row related to three tags: boy, stream, and water. However, running the following query returns 0 rows
SELECT p.*
FROM photographs p,…
I want to add elements to my Hash lists, which can have more than one value. Here is my code. I don't know how I can solve it!
class dictionary
def initialize(publisher)
@publisher=publisher
@list=Hash.new()
end
def []=(key,value)
@list << key unless…
How do I pass an array through a function, for example:
$data = array(
'color' => 'red',
'height' => 'tall'
);
something($data);
function something($data) {
if ($data['color'] == 'red') {
// do something
}
}
how can I get the function to recognize $data[color] and…
This is a tall order, but is there a jQuery or Mootools (or other framework) plugin to wrap text around images and support IE6? I've tried the jQSlickWrap, but unless the browser supports HTML 5, you're out of luck. What's strange is that IE 6 supports the jQuery Background Canvas plugin, which uses…
Just had my mind going today. I spent some time in IE debug mode, browsing the web as usual, and oh boy do I see many errors :) Most of these errors are because some value are of a different type than expected (at least as far as I interpret the error messages).
What are the reasons JavaScript and…
I'm using FOP to generate PDF reports.
The problem is I need the DIN-Regular font instead of the default Times New Roman.
Can anybody tall me how to change the font?
I'm using fop-0.94.boc.02 version. Thanks
I have installed Visual Studio Express Web Developer 2010 and boy it really slows my system down a lot. Is there a way to identify the services like SQL Server and set them to manual so I can avoid all my memory resources been occupied when not using Visual Studio? Is it just SQL Express the…
See i have just completed my Secondary level exams and have long holiday which i want to utilized in something. What should i learn? i want to go in computer field in future. so which is best now in my level to learn.
Please suggest me i am 16 year old boy.
I'm using ImageMagick's convert tool to generate image thumbnails for a web application. I'm using notation like so: 600x600>
The images are indeed scaled to 600px wide/tall (depending on the longer side) and proportions are properly maintained, however images less than 600px in either…
Getting started with ImageMagic and trying to find a way to do this... If an image is less than 50 pixels tall or 50 pixels wide, I'd like to place it (un-scaled) in the horizontal/vertical center of a new 50x50 pixel canvas on top of a white background - and save that as the new image.…
hi,all
i am a new object-c developer,i wanna implement Tea Algorithm, but i don't know more about the byte infomation ,so i cant control the string byte stream .who can tall me how to implement this Algorithm. thanks.
hi,
I've some troubles to specify the height of my lightbox, since the content is dynamically loaded I dunno how tall the container should be.
The content is a part of a html page (some divs).
What do you suggest me to do ? Should I change the lightbox height with javascript only…
The right-click (context) menu in Visual Studio 2010 editor is not tall enough and makes me scroll up/down looking for menu options. Is there a way to make it taller?
Fear, it’s what turns maintaining applications into a nightmare. Technology moves on, teams move on, someone is left to operate the application, what was green is now perceived brown. Eventually the business will evolve and changes will need to be made. The…
We're deploying thin clients connecting to a terminal server farm. The computers have high visibility to the public and I would like them to at least look presentable and not like something out of 1995. So I installed the Desktop Experience feature and enabled the Theme…
I am currently using Dropbox. Just decided to sync my huge (about 5 GB) iTunes Library (music collection) in Dropbox. For that I must subscribe to their paid account. But before I do so, I'd like evaluate the alternatives.
Is there an alternative that does this?
Local…
I'm trying to find some sort of physical product that would either go on the top or the side of an lcd monitor and give me space to tape/push-pin/post it note things for myself.
In my head I am picturing an extra space above your monitor 6 inches tall that lets you…
Hi Folks,
For someone with so much Java experience, boy do I feel clueless - thanks in advance for your help in my grocking the present (Feb, 2010) JSP environment.
Here's what I am hoping to learn:
Do I understand correctly that most people use Apache to…