|
I have DIV, and UL inside it, with position: absolute. By default left is 0px. I need to move UL to the left on the 100% of UL width. UL right corner would be where DIV left corner begins.
Started by dynback.com on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Without....
Left: -100px;
Have you tried giving the UL the style:
ul { margin-left:-100%; }
That should move it left the same width as the UL, and will render outside the div .
If you know the width of your ul, set the left property to be -that width, e.g .
|
|
Hi,
I would like to check if a string begins with "node" e.g. "node001". Something like
if [ $HOST == user* ] then echo yes fi
How can I do it correctly?
Thanks!
UPDATE:
Thank you so much! I further need to combine expressions to check if HOST is either...
Started by Tim on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
You can select just the part of the string you want to check:
if [ ${HOST:0:4} = user ]
For your follow-up question, you could use an OR :
if [[ $HOST == user1 || $HOST == node* ]]
If you're using a recent bash (v3+) suggest bash regex comparison operator... .
|
|
Hello all,
I've got some configuration files with hundreds of lines of data each.
I'd like to begin each line (after the carriage return) with a pound sign ('#') unless it's already beginning with a pound sign. I don't want to do a find+replace because...
Started by mheathershaw on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Use the Search -> Replace feature, but put it in Regular Expression mode and match on line beginnings:
Find What: ^([^#].*) Replace With: #\1
This will match a line and everything in it, put that in \1 , and then replace it with a # followed....
|
Ask your Facebook Friends
|
Well, I've got 'D&D - The Basic Set' and now my '4th Edition Core Rulebook Collection' has arrived, it's time to do some swatting to get back into the game I player over 20 years ago.
I'm also trying to get my 12 year old son interested (in something ...
Started by Nickydude on
, 30 posts
by 11 people.
Answer Snippets (Read the full thread at worldworksgames):
Everyday is asking me to "play rol" so I've to begin to think about doing a "campaing" for him.
|
|
My goal is to convert a timestamp from MySQL into a JavaScript Date object in an efficient manner. Here is my current snippet that converts the MySQL timestamp into a formatted date in PHP:
<?php // formats timestamp into following format: 2009, 7,...
Started by Knix on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can feed the Date constructor a date in mm/dd/yyyy or yyyy/mm/dd format and it will convert it:
>>> new Date('7/30/2009'); Thu Jul 30 2009... .
JS Date object is a mess.
You have to manually subtract that extra 1 from month number I'm afraid .
|
|
I have a WinForms utility that I use constantly, and enhance regularly. Roughly one million times, I have hit F5 to compile the utility -- and the compile fails because the utility is running, so the EXE is locked and VS cannot write out the new EXE.
...
Started by hoytster on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Perhaps?
<Target....
Open the project file in a text editor, remove the comments around the target and add an Exec task .
I assume that you could write a killer application and have it execute in the BeforeBuild target in the project file of your utility .
|
|
I've written a web application using Catalyst that has a lot of forms and needs to run over https. There are no hard-coded URLs, everything uses $c->uri_for or $c->req->uri . Everything worked great in the development environment using the dev...
Started by mhchaudhry on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
So, you should be able to squeeze $req->base(' https://foo.bar.com/ ') into your code somewhere... .
I read the source, and found that base is a read/write method .
I don't use Catalyst, but the docs for uri_for point to the request object's base method .
|
|
Beginning with a letter I know how to do:
WHERE mov_title REGEXP CONCAT('^(the )?', '$letter')
And this method will work if I substitute $letter with any number, so if its set to 1, it will find all records that begin with 1, but I need it to work for...
Started by Yegor on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
WHERE mov_title REGEXP '^(the )?[0-9]'
(Or set $letter to [0-9] if you want to keep using your existing WHERE clause.)
Another option may be to use the substring function
WHERE substring( post_title, 1, 1 ) between '0' and '9'
Perhaps SQL Wild cards... .
|
|
I have an XML file begining like this:
<?xml version="1.0" encoding="utf-8"?> <Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"...
Started by agnieszka on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You may need to inspect your....
Do you have a byte-order-mark (BOM) at the beginning of your XML, and does it match your encoding ? If you chop out your header, you'll also chop out the BOM and if that is incorrect, then subsequent parsing may work.
|
|
Steam holiday sales begins!
Now through Jan 1st....
http://cdn.steampowered.com/v/gfx/cl...g?t=1324341972
Started by The Spaniard on
, 25 posts
by 3 people.
Answer Snippets (Read the full thread at deepsilver):
Re: Steam holiday sales begins!
Order of War and Order of War: Challenge for $7 each, should I go/app/34670/ Re: Steam holiday sales begins!
I have no funds for Steam sales & there is nothing I really, as you are likely to get more enjoyment....
|