I know JavaScript regular expressions can ignore case for the entire match, but what about just the first character? Then tuesday would match Tuesday but not TUESDAY.
Does anyone know how bing's weather webslice search works? I am attempting to create a web slice(only available in IE8) with search built in and I have read that forms are not allowed and neither is javascript. Any help would be appreciated.
So I have a website that I recently made changes to, and one of the changes was removing a page from the site. I deleted the page, it doesn't exist anymore.
However, when you search for my site, one of the results is the page that I deleted. People are clicking on the page and getting an error.
How do I remove that page from the search results?
What was your first full time programming job? What did you do? What did you learn? Did you enjoy it? How long did you stay?
Sorry for all the sub-questions, but lately I've been thinking about what I'm going to do when I get my degree, and I am interested to know your opinions and experiences.
I'm adding a ToolTip to a ListViewItem. However, the ToolTip only shows up when the user hovers over the first cell in the row to which the ToolTip has been applied.
MyListViewItem.ToolTipText = "Important Message"
The only other code I have related to ToolTips is this:
MyListView.ShowItemToolTips = True
Any idea how I can make the ToolTip show up on a specific cell in a row, or even the entire row? Thanks.
I am passing in command line arguments to my Lisp program and they are formatted like this when they hit my main function:
("1 1 1" "dot" "2 2 2")
I have a dot function and would like to call it directly from the argument, but first I must strip the " characters.
I tried variations of this function:
(defun remove-quotes (s)
(setf (aref s 0) '""))
to no avail, Lisp complains that "" is not a member of base-char.
Thanks!
I want to capitalize the first character of a string, and not change the case of any of the other letters. For example:
this is a test - This is a test
the Eiffel Tower - The Eiffel Tower
/index.html - /index.html
I have the following function:
listorder = listorder.replace('projectlist-','');
Problem with this is it only finds and replace the first instance and there are many. How can this be updated to Find/Replace All instances in the string?
Thanks
Hi, is it possible (a Google API or something) to get the ranking of a website given a search word? It's the code equivalent of doing a Google search for a word, then browsing through the results until you find the website you look for.
By ranking I mean the position in the pages found, e.g. the site is number 4000 when searching for some word.
Thanks!
\documentclass{book}
\usepackage{amsmath}
\usepackage[german]{babel}
\usepackage{amssymb}
\usepackage{amsxtra}
\usepackage[dvips]{epsfig,psfrag}
\usepackage{listings}
....
this is how my file starts. I didn't even edit it, I received it like this. However, if I want to make a pdf, it gives me the undefined control sequence error at the first line... What is wrong??
I am a beginner to programming. Should I like learn them side by side ?
Now that I know DS and Algorithms form the basis of programming..Should I learn them first ?
I am confused. What should be my learning path ?
I want to be a really good Java programmer.
LINQ:
Is it more efficient to use the Single() operator over First() when ever I know for certain that the query will return a single record?
Is there a difference?
How can I get the first character in a string using Ruby?
Ultimately what I'm doing is taking someone's last name and just creating an initial out of it.
So if the string was "Smith" I just want "S".
Hi,
This is a related to a previous question I have asked here, see the link below for a brief description as to why I am trying to do this.
Regular expression from font to span (size and colour) and back (VB.NET)
Basically I need a regex replace function (or if this can be done in pure VB then that's fine) to convert all ul tags in a string to textindent tags, with a different attribute value for the first textindent tag.
For example:
<ul>
<li>This is some text</li>
<li>This is some more text</li>
<li>
<ul>
<li>This is some indented text</li>
<li>This is some more text</li>
</ul>
</li>
<li>More text!</li>
<li>
<ul>
<li>This is some indented text</li>
<li>This is some more text</li>
</ul>
</li>
<li>More text!</li>
</ul>
Will become:
<textformat indent="0">
<li>This is some text</li>
<li>This is some more text</li>
<li>
<textformat indent="20">
<li>This is some indented text</li>
<li>This is some more text</li>
</textformat>
</li>
<li>More text!</li>
<li>
<textformat indent="20">
<li>This is some indented text</li>
<li>This is some more text</li>
</textformat>
</li>
<li>More text!</li>
</textformat>
Basically I want the first ul tag to have no indenting, but all nested ul tags to have an indent of 20.
I appreciate this is a strange request but hopefully that makes sense, please let me know if you have any questions.
Thanks in advance.
I am having a sorted list which is rotated and I would like to do a binary search on that list to find the minimum element.
Lets suppose initial list is {1,2,3,4,5,6,7,8}
rotated list can be like {5,6,7,8,1,2,3,4}
Normal binary search doesn't work in this case. Any idea how to do this.
If I have 5 String variables and between 0 and 5 of them are null or empty is there an easy/short way of returning the first one that is not null or empty? I am using .NET 3.5
I did drop down list that fill it,s value from database
But when it run it dose not get first row and get others and if I add new it get it
what is the problem?
Hi all,
Did any know about how to search using latitude and longitude using latitude and longitude
using php and mysql as back-end.
I am having zip-code and latitude and longitude for the corresponding city.
With these things as back-end how can i do my search.
thanks in advance.
How would I select only the first level .block and not any of the children?
$('.block:not("Children of this here")') <--
<div class="block">
<div class="block">
<div class="block">
</div>
</div>
</div>
I just wanted to create very simple example of DataTriggers and animation.
Two checkboxes and Rectangle.
Checking the first cb makes the rectangle fade away. (CodeBehind var is true)
Checking the second cb makes the rectangle come back. (var is false)
App is loading - the rectangle is showing (true) Firs cb is checked by default.
I'm checking second cb - rect is dissapearing. It's OK.
But when I then check the first cb rect isn't showing up.
But checking the second cb still makes rect show up and fade away.
here's my xaml and code behind:
<StackPanel>
<RadioButton IsChecked="True" Checked="RadioButton_Checked"></RadioButton>
<RadioButton Checked="RadioButton_Checked_1"></RadioButton>
<Rectangle Name="r1" Width="100" Height="300" Fill="Green">
<Rectangle.Style>
<Style TargetType="Rectangle">
<Style.Triggers>
<DataTrigger Binding="{Binding Active}" Value="True">
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetProperty="Opacity"
From="0" To="1" Duration="0:0:1"
/>
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
</DataTrigger>
<DataTrigger Binding="{Binding Active}" Value="False">
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetProperty="Opacity"
From="1" To="0" Duration="0:0:1"
/>
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
</StackPanel>
public bool Active
{
get { return (bool) GetValue(ActiveProperty); }
set { SetValue(ActiveProperty, value); }
}
public static readonly DependencyProperty ActiveProperty =
DependencyProperty.Register("Active", typeof(bool), typeof(MainWindow), new UIPropertyMetadata(false));
private void RadioButton_Checked(object sender, RoutedEventArgs e)
{
Active = true;
}
private void RadioButton_Checked_1(object sender, RoutedEventArgs e)
{
Active = false;
}
I've created a view that selects all nodes of type "shoot". But I want it to select all nodes of type "shoot", EXCEPT for the first entry. So, if the normal result is:
Node 1
Node 2
Node 3
I want
Node 2
Node 3
Node 4
Is that possible?
Suppose I have a block of memory as such:
void *block = malloc(sizeof(void *) + size);
How do I set the first two bytes of the block as NULL or have it point somewhere? I do not want to simply assign 'block' to NULL or to another pointer because I want to access the rest of the memory I malloc'ed.