If we compare Windows and Web applications against following criteria
Insight of .NET and OS
Design Patterns
Logic development
Development of a fresher into a good developer
which one is better.
Herlihy and Shavit's book (The Art of Multiprocessor Programming) solution to memory reclamation uses Java's AtomicStampedReference<T>;.
To write one in C++ for the x86_64 I imagine requires at least a 12 byte swap operation - 8 for a 64bit pointer and 4 for the int.
Is there x86 hardware support for this and if not, any pointers on how to do wait-free memory reclamation without it?
I am using PHP and I need to script something like below:
I have to compare two folder structure
and with reference of source folder I
want to delete all the files/folders
present in other destination folder
which do not exist in reference source
folder, how could i do this?
hi ... i am new to Android, i am creating game app. i have 3 images in screen. if i click the image it should animate ie it should show open and close that particular image.
Then i have to shift the images. ie i want to swap first and second and second with third. can u help me with coding.
Here is html:
<a href="http://site.com/any/different/folders/picture_name.jpg">Go and win</a>
<a href="http://site.com/not/similar/links/some_other_name.png">Go and win</a>
How to cut all the data from a href, except picture_name.jpg? There can be any length of the link, we must take just the value from last / to last "
And anybody does not the shortest way to compare, if alt and title of current link are equal?
Thanks.
Hi,
in bash I need to compare two float numbers, one which I define in the script and the other read as paramter, for that I do:
if [[ $aff -gt 0 ]]
then
a=b
echo "xxx "$aff
#echo $CX $CY $CZ $aff
fi
but I get the error:
[[: -309.585300: syntax error: invalid arithmetic operator (error token is ".585300")
What is wrong?
Thanks
I was wondering, is there some type of disc ID i can use to search in my database to see if that disc is has been scanned or not? All disc were created by me typically burnt on windows.
-edit- I could compare write time and volume label to see if the disc has been scanned but i notice if i put in certain commercial disc that fields are blank or wrong causing many false positives (i once had the time set to the future, i dont know if people want to archive the contents of files on a commercial disc in my app).
Hello, as a way to spice up my C++ programming homework, I've decided to instead of typing the C++ from the book onto my computer, instead reforming it in Ruby. Yes it's a bit silly, but I'm bored.
Anyway, I'm having trouble converting this kind of function to Ruby
void swap(int &a,int &b){
int c=b;
b=a;
a=c
}
What would the equivalent ruby code looking inside a function ?
What are correctly content-types for this documents ?
I need to write a simple crawler, that only fetches this kind of files.
Nowadays http://somedomain.com/index.html can serve for example an JPEG file due to mod_rewrite, so I need to check the content-type from the response header andcompare it with a list of allowed content-types.
From where I can get such list ?
I am a total newbie in the Python world.
I want to start to experiment with Python and IronPython andcompare the results.
Is it possible to install Python and IronPython on the same machine with interfering each other or is it besser to this in the virtual machine.
Thx in advance.
Suppose I have this program, I want to compare 2 input lists. Assume array A and array B. How do I determine the best case and worst case of the function?
Here is my code in [php]:
foreach($array_1 as $k){
if(!in_array($k, $array_2)){
array_push($array_2, $k);
}
}
What is the best case and worst case of the for loop? Please include some explaination, thank you :)
I have a number of atoms in my code where a common requirement is to update them to a new value, regardless of the current value.
I therefore find myself writing something like this:
(swap! atom-name (fn [_] (identity new-value)))
This works but seems pretty ugly and presumably incurs a performance penalty for constructing the anonymous closure.
Is there a better way?
If I want to compare the contents of a XMlDocument, is it just like this?
XmlDocument doc1 = GetDoc1();
XmlDocument doc2 = GetDoc2();
if(doc1 == doc2)
{
}
I am not checking if they are both the same object reference, but if the CONTENTS of the xml are the same.
HI.I searched this question inform and I found solution to change column property Unique Index.Now If I try to insert same record cmd.ExecuteNonQuery() gives error that record exist ,but how can use this exception to give user a message that record exist and must enter new one ? I am trying to make some thing like
if(cmd.ExecuteNonQuery() !=true )
{
MessageBox.Show("User Exists");
}
But I dont know what returns cmd.ExecuteNonQuery() ?
Or I must get records using reader in table andcompare them with text in Textfiel?
Hi all what i want to do is to download plist from server http:// and i'd like to know how and where it is stored.
Can the iphone compare date from 2 plist files ? ?
thanks to all, if you do not want to post code or explain please link it. !Because i'm really stuck and need help
thanks
I want to compare own data with data generated by google analytics. For example I want to see the number of my twitter followers compared with my page visitors per day.
Is there a way to do something like this?
I have a table with 5 string columns, all can be NULLs. After I read the data from this table, I want to convert any null values into empty strings. The reason is that I need to compare these columns with columns in another table of the same schema (using conditional split), and null values would cause the comparison to evaluate to NULL.
Is there any functionality in SSIS that allows me to convert NULL's to empty strings, or just not having to deal with NULL's at all?
i need to implement the following query in SQL Server
select *
from table1
WHERE (CM_PLAN_ID,Individual_ID)
IN
(
Select CM_PLAN_ID, Individual_ID
From CRM_VCM_CURRENT_LEAD_STATUS
Where Lead_Key = :_Lead_Key
)
but the WHERE..IN clause allows only 1 column. How to compare 2 or more columns with another inner select?
What is the best way to access the low-order and high-order 4 bits of the char type and binding field in the elf symbol struct so that I may compare it to STT_FUNC, STT_OBJECT, STB_LOCAL, etc.?
I have a Postgres table called clients. The name column contains certain values eg.
test23233 [987665432,2014-02-18]
At the end of the value is a date, I need to compare this date, and return all records where this specific date is younger than today
I tried
select id,name FROM clients where name ~ '(\d{4}\-\d{1,2}\-\d{1,2})';
but this isn't returning any values. How would I go about to achieve the results I want?
I have 2 tables:
T1 (Total User)
T2 (User_id_that_have_done_something_for_today)
the mysql_query result from T1 are
(Total User)
-----
ID
-----
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
the mysql_query from T2 are
(logged)
-----
user_id_log
-----
| 1 |
| 3 |
| 4 |
| 7 |
How to compare T1 and T2 And only show the user that not approved?
The end result that i wanted is
(result)
-----
ID
-----
| 2 |
| 5 |
| 6 |
| 8 |
I spent 2 days to make this work but i cannot do it
I have try LEFT JOIN and NOT IT but the result is not what i wanted
Please help me, thank you
In the tornado.web module there is a function called _time_independent_equals:
def _time_independent_equals(a, b):
if len(a) != len(b):
return False
result = 0
for x, y in zip(a, b):
result |= ord(x) ^ ord(y)
return result == 0
It is used to compare secure cookie signatures, and thus the name.
But regarding the implementation of this function, is it just a complex way to say a==b?
I have a multi-dimensional array:
a=[[2,3,4],[1,3,4],[1,2],[1,2,3,4]]
i've to compare all the 4 sub-arrays and get common elements.Next,take 3 subarrays at a time and get common elements.then take 2 sub arrays at a time and get common elements, in RUBY.
My project need to compare output(only urls) of google and yahoo for a particular keyword.
Can i access entire urls for a particular keyword from google and yahoo? Do they provide any library or any other thing for that?how can i do that?..