I have text with file names scattered throughout. The filenames appear in the text like this:
|test.txt|
|usr01.txt|
|usr02.txt|
|foo.txt|
I want to match the filenames that don't start with usr. I came up with (?<=\|).*\.txt(?=\|) to match the filenames, but it doesn't exclude the ones starting with usr. Is this possible with regular…
So far I have:
int SimplifyText(char chars[], int length)
{
//To lower
for(int i=0; i<length; i++)
{
chars[i] = tolower(chars[i]);
}
This function simplifies the text in the first argument which is an array containing the number of characters as given in the second argument
The requirements are:
tolower all remove all…
Hopefully I can ask this correctly cuz I know what I want it to do but can't seem to find any answers from searching.
I have a func.php page where I have all my functions and I want ajax to use one function from that page.
func.php
function toptable()
{
echo"something happens in here";
}
index.php
<?php include…
I have an AccessDataSource TestSummaryADS. I can easily view the results in a GridView or DropDownList by setting its DataSourceID property.
How do I bind a value from the results TestSummaryADS to the text of a label?
I'm just trying to populate labels on my page with results from the DB entry.
C# or VB.NET answers…
Hi,
I'm using SQL server 2008.
I have 2 Tables: Table 1 and Table 2.
Table 1 has 1 column called: OldDate which is nvarchar(255), null
Table 2 has 1 column called: NewDate which is datetime, not null
Example data in Table 1:
26/07/03
NULL
NULL
23/07/2003
7/26/2003
NULL
28/07/03
When i try CAST(OldDate as…
hi,
i used the code
Session session = new Configuration().configure(cfgurl).buildSessionFactory().openSession() ;
to create a session. the cfgurl is of type URL and points to the hibernate.cfg.xml file of another project. The problem is it is getting hanged and unable to proceed further. What is the…
Where is the value of the actual query executed for an AccessDataSource with the parameters replaced with actual values?
Note: Answers in VB.NET or C# are fine.
Hi Guys,
I have a trigger that sends an email once a value has been changed.
It works when i make any amendments but when the users make the changes it fails.
I have figured out the users havnt got permission to send mails in master.dbo.xp_sendmail
The way the DB was originally setup wis shocking!!…
For example, I would like to animate a view such that it moves down in the y direction while decelerating, and at the same time it undergoes an alpha change linearly.
The code would look something like this:
myView.animate().translationY(100).setDuration(1000).setInterpolator(new…
I have the following code:
(function(jQuery){
jQuery.fn.timepicker = function(){
return this.each(function(){
jQuery(this).val("14:00");
});
};
})(jQuery);
Currently I invoke this function by the following code: $("#event_start_time").timepicker();
…
I am currently experimenting with Java Socket Programming and succeeded in creating a simple application that allows me to send data back and forth between a client and a server.
I don't want to power my laptop (on which the server application runs) 24/7. Therefore, of course,…
Hi,
I'm using ruby to sort an array where each element in the array is another array.
I have this:
Data = Data.SortBy { |Info| info[3] }
example data in this column:
3.1
2
5.65
-1
0.4
-9.43
-10.87
-2.3
It should sort this into:
5.65
3.1
2
0.4
-1
-2.3
-9.43
-10.87
But…
Hi,
I need to get the "274.20p" out of:
<td nowrap="nowrap" class="dataRegularUlOn" style="text-align: right;">274.20p</td>
I would like to do regular expressions on:
…
I am getting an "Invalid SQL statement" error in my VB code. I have set several SelectQuery parameters.
How can I get the actual query with the parameters replaced with actual…
Hello,
I have a database full of rows like
id,action,date
2,2,2010-03-01
3,2,2010-03-01
4,3,2010-03-01
5,3,2010-03-01
6,4,2010-02-01
7,4,2010-02-01
And I want to select all…
I'm fairly new to database programming in .NET.
If I want to call several existing queries from the same database for different tasks, should I have one DataSource per…
I'm developing a plugin for Wordpress, and I need to store some information from a form into a table in the DB.
There are probably lots of pages explaining how to do…
If you visit http://www.tenxian.com/jp/common/signup.php? with Firefox, you will find that the button "????????????????" is out of the box; if you access this web…
I have a simple question about running some JS in a form i am trying to make it so that if a user selects an option (entry_12) in a drop down list, that the next…