I would like to add custom (non-project) files to generate some extra pages with Doxygen.
I am (was actually) unsure how these files should be named and how their content should be formatted.
i have a table named news with 3 fields i.e (id, news, time) and i have a setInterval after every 3mints to fetch news from google or any news site ....
now i want to fetch only new rows inserted after every 5 minutes...with jquery $.ajax()...how can i do that...
do i reload the whole table or there is a way to fetch only the new ones...
hi!
i'm new to membership. i have a table named contact, with a field, userId that must get its data from the membership users table. so when a user is created i have to get the userId from membership users table. how can i do that?
thanx in advance
I am very beginner when it comes to programming but I was sure that one of the universal rules was that an program starts with Main(). I do not see one when I create a WPF project. Is Main() simply named something differently in WPF?
I was wondering why the Vector variable defined within this self executing javascript function doesn't require a var before it? Is this just some other type of syntax for creating a named function? Does this make it so we can't pass Vector as an argument to other functions?
(function() {
Vector = function(x, y) {
this.x = x;
this.y = y;
return this;
};
//...snip
})()
Assume a Cassandra datastore with 20 rows, with row keys named "r1" .. "r20".
Questions:
How do I fetch the row keys of the first ten rows (r1 to r10)?
How do I fetch the row keys of the next ten rows (r11 to r20)?
I'm looking for the Cassandra analogy to:
SELECT row_key FROM table LIMIT 0, 10;
SELECT row_key FROM table LIMIT 10, 10;
I read that an SEO best practice is to use lowercase urls. Should I name my asp.net webforms project files lowercase as well? Visual Studio doesn't name default documents in new projects all lowercase. I'm not sure it matters since browsing to http://www.mysite.com/mypage.aspx will still work even if your page is named MyPage.aspx.
Can somebody enlighten me on this?
C# 4.0 has a lot of new major features such as dynamic type, covariance and contravariance, named arguments etc.
But C# 4.0 contains new minor (but useful) changes such as TryParse method for TimeSpan, Enum, Guid data types, String.IsNullOrWhiteSpace, System.IO.Stream.CopyTo etc.
What other minor and useful features of C# 4.0 can you list?
Hi, I like to add (+1) to a number. But problem is my number can sometimes have 0 preceding it. Like 01, 02, 03, 04. So I like result to be:
mockup01 + 1 = mockup02
mockup11 + 1 = mockup12
How can that be achieved? Example of how I would use it would be if I had filename named mockup_01.htm and change it to mockup_02.htm
Thanks!
I read that an SEO best practice is to use lowercase urls. Should I name my asp.net webforms project files lowercase as well? Visual Studio doesn't name default documents in new projects all lowercase. I'm not sure it matters since browsing to http://www.mysite.com/mypage.aspx will still work even if your page is named MyPage.aspx.
Can somebody enlighten me on this?
In genera sense if I create a CMS using php .Where I created and named the database in my localhost. Now if I or my clent upload the CMS in any server how will it work. because there is no database in that server.
And in my php code I wrote to create database. Now how can i create a CMS which can automatically create database and tables where client doesn't have to know about anything besides uploading the CMS.
I have a table in my database. I want to get the maximum value of a column named NumOfView. I used this code:
var advert=(from ad in storedb.Ads where ad.AdScope == "1" select ad.NumOfView).Max();
It works but when there are two or more same maximum values it doesn't work and this message appears:
Sequence contains more than one element
What should I do now? Your answers will be very helpfull. Thanks
I have a php page named import.php. while executing this file a lot of database operation is doing.So i need to show the progress to the user, by using a progres bar.How is it possible using any of these php ajax, javascript, jquery,css, flash... methods
What the title says, really.
I have a named pipe. I would like to attempt a read, but if it doesn't succeed after a timeout I'd like to still be able to use the pipe afterwards.
Is this possible with NamedPipeServerStream, or do I have to rethink the entire approach?
So far the only way I've found of cancelling a BeginRead is by disposing of the pipe.
Hi,
is there a "document" property named ssh? It's a simple question. I've seen this in some code at work, but no one in the office wrote the code, so I'm stucked.
The line was document.ssh.firstPing(...)
firstPing was a method in the code, that is writen in js+php. But I've searched with eclipse throughout all the code and there is no ssh anywhere.
Hi,
How can i get the paths of a folder and its content. Say i have folder named MyFolder as
/tmp/MyFolder/ where it has subfolders SubFolder1, SubFolder2... and some files
hello
i have a file named "file.txt"
it updates by adding lines to it.
I am reading it by this code:
$fp = fopen("file.txt", "r");
$data = "";
while(!feof($fp))
{
$data .= fgets($fp, 4096);
}
echo $data;
and a huge number of lines appears.
I just want to echo the last 5 lines of the file
how can i do that ?
thanks in advanced
Hi,
I have a folder named as 2010.
In this I want a folder for each month like "Jan10", "Feb10"....."Dec10"
In each month folder I want to create folder for "Todays date"
I have create a shortcut for that 2010 folder with Target as
C:\WINDOWS\explorer.exe /n, /e, /select, F:\2010
I want a functionality that will execute when I click the shortcut for f:\2010 icon.
Any pointer would be great help.
I have a jsp file in the root of .war file.
and then I have a folder named STUFF.
How do I get access to the file read.txt inside STUFF?
/Name_of_war/STUFF/read.txt is the correct path?
I have two table in mysql named rootpath with only one field 'root' and savecatogory with fields brandid,categoryid,name.There is no relation between these two tables.Now how can retrieve root,brandid,categoryid using single query.Please help me.
I created an Area in my application named Admin. It's pretty basic, looks like this:
Areas
Admin
Controllers
CompaniesController.cs
Models
Views
Companies
Index.aspx
AdminAreaRegistration.cs
When I try to view my Index page by going to /Admin/Companies, I get a "The resource cannot be found" message. I find it weird that I don't get any sort of error message.
I'm not sure what's going on here, has anyone come across this?
hi,
i try to find the web page has the html element or not. i use if condition, like;
if([webView stringByEvaluatingJavaScriptFromString:@"return document.getElementById('txtOgR_no');"] != nil)
{...}
how can i check is there a element in page named "txtOgr_No" ?
Hi there,
I i want to schedule an asp.net page on my hosting, how to achieve it?
for instance, i have a page named myservice.aspx runing on my website.com/myservice.aspx
i want to run this page on every 24 hours. any idea?