When I wrote best I meant:
Speed,
Have an IDE, a debugger,
Compiling to machine code or some other language,
Quality of implemenation and,
Completeness.
Time.ToString("0.0") shows up as a decimal "1.5" for instead of 1:30 how can I get it to display in a time format.
private void xTripSeventyMilesRadioButton_CheckedChanged(object sender, EventArgs e)
{
//calculation for the estimated time label
Time = Miles / SeventyMph;
this.xTripEstimateLabel.Visible = true;
this.xTripEstimateLabel.Text = "Driving at this speed the estimated travel time in hours is: " + Time.ToString("0.0") + " hrs";
}
Hi,
I need to get up to speed about developing a commerce site using MS-Commerce server 2009 and SharePoint 2007.
I was wondering where are good resources to get started, to explain the concepts and design, etc.
I have a SQL table it has more than 1000000 rows, and I need to select with the query as you can see below:
SELECT DISTINCT TOP (200) COUNT(1) AS COUNT, KEYWORD
FROM QUERIES WITH(NOLOCK)
WHERE KEYWORD LIKE '%Something%'
GROUP BY KEYWORD ORDER BY 'COUNT' DESC
Could you please tell me how can I optimize it to speed up the execution process? Thank you for useful answers.
In some of my programs I have noticed that in some cases there is a difference in speed when using either the pre(++i or --i) and post(i++ or i--) decrement operators. Sometimes pre is faster and other times post is faster. I can't seem to figure out why. Could someone please explain this to me?
Say I only need to find out whether a line read from a file contains a word from a finite set of words.
One way of doing this is to use a regex like this:
.*\y(good|better|best)\y.*
Another way of accomplishing this is using a pseudo code like this:
if ( (readLine.find("good") != string::npos) ||
(readLine.find("better") != string::npos) ||
(readLine.find("best") != string::npos) )
{
// line contains a word from a finite set of words.
}
Which way will have better performance? (i.e. speed and CPU utilization)
here's my code:
Public Sub SendSMS()
Dim n As Integer
n = FreeFile
' Change the string below if using a different COM port or the port speed
Open "COM3:9600,N,8,1" For Output As #n
Print #n, "AT"
Close #n
End Sub
i'm trying to connect to my phone that is attached to this computer.
how do i catch responses to my AT COMMANDS? in hyperterminal you see responses right away, i want to be able to see them here as well, how do i do it?
Read this question today about safe and unsafe code I then read about it in MSDN but I still don't understand it. Why would you want to use pointers in C#? Is this purely for speed?
When log shows a lot of Garbage Collection hits, what code change shall we need?
Do we need to free some objects?
Will we speed up the code with object reusal?
Hi All,
I am creating application using jquery in asp.net. I am displaying images(664 x 428) with fade effect using cycle plugin and also a gif file outside the control.
Problem:
The gif file animation is working only if i pause the cycle fade effect the gif file animation is working.
Coding:
$('#mainBanner').cycle({
fx: 'fade',
continuous: true,
speed: 7500,
timeout: 55000,
pause: 1,
sync: 1
});
<img src="Images/HomePageImages/scan.gif" alt="" width="124" border="0" height="124" />
i am doing a delete with a LIKE statement
my keybuffer is 25m, the sort buffer size is 256k
the delete has been taking over 2 hours
should i increase memory usage? there are about 50 megs of data in the table from which i am deleting, thats about 500,000 rows
is there anything else i can do on the adminsitration size to speed up this delete?
I mostly use Eclipse but have mentionned Netbeans on my cv. Are there any good concise and up-to-date tutorials apart from the official ones that could bring me up to speed on how to use the platform efficiently (shortcuts, debugging, views ...)? This excludes programming tutorials as I don't really need them unless there's a special manipulation involved.
What are your best practices for making sure newly hired developers quickly get up to speed with the code? And ensuring developers moving on don't set back ongoing releases.
Some ideas to get started:
Documentation
Use well established frameworks
Training / encourage mentoring
Notice period in contract
Why are there only four registers in the most common CPU (x86)? Wouldn't there be a huge increase in speed if more registers were added? When will more registers be added?
I'm thinking whether it makes sense in order to increase the speed of the website to do some strategy of caching the js files that are being included ?
one idea that I have is to do something like this:
[OutputCache(Location = OutputCacheLocation.Any, Duration = 3600)]
public JsController : Controller
public ActionResult JQuery()
{
//I would have a ascx with the entire jquery script inside
return View();
}
and on the site.master:
<%=Html.RenderAction("JQuery","JsController");
Are there speed differences, performance issues, and what reasons do businesses have when they choose one or the other... and is there a learning curve steeper for one over the other? Also... are you likely to be paid more using one over the other?
As I found out that I can use only numerical values in C++'s switch statements, I thought that there then must be some deeper difference between it and a bunch of if-else's.
Therefore I asked myself:
(How) does switch differ from if-elseif-elseif in terms of runtime speed, compile time optimization and general compilation? I'm mainly speaking of MSVC here.
I am looking to profile my web application on Android for starts...what is the best way to get the kind of information that a tool like Web Inspector would give me on the desktop? Since I cannot use Web Inspector or Speed Tracer on the mobile device...how can I get such data/info ?
i develop a application that finde the distance between the two points and calculate the speed but we require the calories burn after walk this distance. that i measure it.
I mostly use Eclipse but have mentionned Netbeans on my cv. Are there any good concise and up-to-date tutorials apart from the official ones that could bring me up to speed on how to use the IDE efficiently (shortcuts, debugging, views ...)? This excludes programming tutorials as I don't really need them unless there's a special manipulation involved.
At some places in my code, I print debug messages like this:
int ret = getLinkSpeed(device.getSysName(), linkSpeed);
if (ret < 0)
{
logDebug("Failed to obtain port speed for this device. Error: " + std::string(strerror(errno)));
}
From the documentation it is not entirely clear if strerror will return 0 under certain conditions (which would cause my code to crash). Does anyone know if it's safe?
Hi every one!
I really need to make this connection throw wireless (or lan ethernet).
I have done this on windows (VS2008 C#, sockets), but here on linux (ubuntu 10.04)
I have installed mono, and i can handle many things there, but it's speed is unacceptable for my 600MHz processor.
so i decided to move on c++, but i'm new to c++ and i'm not familiar to many of it's headers.
Is there any header or any library which can do that for me?
thanks
I have a gridview which displays data for all employees and their images.
The images take more time to render completely when i click sort or paging or reload.
I'm using httphandler to display image as stream.
Is there a way i can speed up this image loading?