I am writing a serial communication program in userspace. I want to check how much of the buffer is full. Is there a way to do it using linux terminal i/o api?
Thanks
In my win forms c# app, I want to be able to add spell check functionality. But, I want to do it my own way, and NOT use any other components. All I need is just an online service where i can send a request or something and it tells me whether or not the word i sent was spelled correctly.
Preferred but not required: The ability for that online sevrice to also send back suggestions.
I am trying to check for the data integrity in fat32 filesystem.Currently I have implemented fat on lpc2478. For the checking of data integrity, I come to know that each sector of a disk has checksum or CRC.But I wanted to find the location of the CRC in the sector.Can you please advice me on how to find the location of the CRC in a sector of usb pendrive? and will this CRC change with manufacturer of the pendrive.?
How can I check the status of an IIS6 application pool with C# ?
For example, I want to know if it is running or not !
Thank's in advance for your help !
Is it possible to check if FinalBuilder is running a script with code?
I would like to make a small application that can remotely start building a project on a remote machine, but only if its not running a script already.
regards,
-Vegar
In normal javascript, I can check either
if (i == undefined)
or
if (i === undefined)
or the "typeof"
however, within facebook, it will have the api_key append as the prefix in undefined.
i.e. it will become
if (a12345_i == a12345_undefined)
which is NOT undefined
so, what can I do to find out the variable is undefined or not?
I have a dynamically generated rss feed that is about 150M in size (don't ask)
The problem is that it keeps crapping out sporadically and there is no way to monitor it without downloading the entire feed to get a 200 status. Pingdom times out on it and returns a 'down' error.
So my question is, how do I check that this thing is up and running
Could you tell me please how to check permissions to functions with psql console but without being overwhelmed with source code and descirption (like when using \df+).
hey all,
i have the following code
foreach (DataRowView dr in Data)
{
if (dr == System.DBNull.Value)
{
nedID = 1;
}
}
but i get the following error
Operator '==' cannot be applied to operands of type 'System.Data.DataRowView' and 'System.DBNull'
please can some one advice me on how i can check if the value is null or DBNULL
How to check that my params['Filedata'] is corrupted or not?
I have function it's reading file from params['Filedata'] and writing it to the other file.
File.open(upload_file, "wb") { |f| f.write(params['Filedata'].read) }
this line working fine for me..
But when i am calling this function with delayed job funtion send_later than I am getting error with params['Filedata'].read.
hi my dear friends:
how can we check filetypes (formats such as jpg) without using file extensions before -uploading them- in asp.net with c# ?
i am using vs 2008 + asp.net + c# + TELERIK Controls (RadUpload)
=========================================================================================
imagine that some body change the text file extension to jpg and select in in a upload conrol such as radupload ...
how can we recognize this file is truly jpg or not?
thanks a lot
Hi, I was writing a script to check if a number is Armstrong or not. This is my Code
echo "Enter Number"
read num
sum=0
item=$num
while [ $item -ne 0 ]
do
rem='expr $item % 10'
cube='expr $rem \* $rem \* $rem'
sum='expr $sum + $cube'
item='expr $item / 10'
done
if [ $sum -eq $num ]
then
echo "$num is an Amstrong Number"
else
echo "$num is not an Amstrong Number"
fi
After I run this script,
$ ./arm.sh
I always get this error
./arm.sh: line 5: [: too many arguments
./arm.sh: line 12: [: too many arguments
I am on cygwin.
How can I check if an anonymous object that was created as such:
var myObj = {
prop1: 'no',
prop2: function () { return false; }
}
does indeed have a prop2 defined?
prop2 will always be defined as a function, but for some objects it is not required and will not be defined.
I tried what was suggested here: http://stackoverflow.com/questions/595766/how-to-determine-if-native-javascript-object-has-a-property-method but I don't think it works for anonymous objects .
I am attempting to wipe and repopulate test data on SQL CE. I am getting an error due to FK constraints existing. Typically in Sql2005 I would
ALTER TABLE [tablename] CHECK/NOCHECK CONSTRAINT ALL to enable/disable all constraints. From what I could find in my searching, it seems that this might not be supported in CE. Is that true? If so, is there an alternative?
How do I check if the user accepted a file download in javascript. Example: if the site pops up a download link, and the web browser asks the user to download the file, how do I determine on that page if the user accepted the download or not?
I want to log web site visits' IP, datetime, client and refferer data to access database but I'm planning to log every days log data in separate tables in example logs for 06.06.2010 will be logged in 2010_06_06 named table. When date is changed I'll create a table named 2010_06_07. But the problem is if this table is already created.
Any suggestions how to check if table exists in Access?
I install a sphinx search engine a couple months ago, as time pass, I don't remember that sphinx version I installed.
how to check my system sphinx version?
I'm using ADO .NET and MS SQL Server 2008.
I have a connection object to a server and a command:
SqlConnection conn = /* my connection*/;
string cmd = "some_sql_command";
I want to check if SQL Server can execute cmd. I don't want to execute cmd, but I want to know If SQL Server can execute it.
cmd can be any single SQL statement, it's not a procedure, transaction or multiple commands etc..
Is there a way in C# to check if an object is suspend? I have a TreeView that I need to know if it is still suspend.
myTreeView.BeginUpdate();
myTreeView.SuspendLayout();
// Do Stuff.
myTreeView.EndUpdate();
myTreeView.ResumeLayout();
Because i have this code in a recursive function I want to know if the TreeView is already been suspended.
Hello,
i have the follow code:
searchResults.SearchResultCollection.Add(
new SearchResult()
{
Header =
HttpUtility.HtmlDecode(
htmlDocument.DocumentNode
.SelectSingleNode(initialXPath + "h3")
.InnerText),
Link = HttpUtility.HtmlDecode(
htmlDocument.DocumentNode
.SelectSingleNode(initialXPath + "div/cite")
.InnerText)
}
);
Sometimes htmlDocument.DocumentNode.SelectSingleNode(....) returns null and my application crashed with NullReferenceException. Ofcourse i can write code which check returned value on null reference but then code will be overly verbose. What is graceful way to do that?
How do I check that a stored procedure exists using ADO.Net? Is there a specific way to do this (apart from executing SELECT OBJECT_ID() and checking the result)?