(ia32) for example,
test $eax, $eax
why would you ever want to do that? it does $eax & $eax, right? shouldn't this always set the flag register to say that they are equal..?
Hi all, I have some files that in windows enable me to prompt messages when a device is plugged. In case it is lost it pops up a message that says the user to please return it to he owner. Does anybody know how can I do this in Linux? I doesnt need to be a complex thing, it can be an option in a right clic menu, or a splashcreen, or anything, just to make sure that the owner of the device may be looking for it.
Is it possible to create an absolutely positioned element whose top/left is set to where it would've been had it been static, and whose bottom/right is set to 0px, 0px.
Thank you
how can i change the initial directory on emacs (i start using it today, and there are a lot of things to learn!!),
right now im using M-X cd and then i change the directory that i use for C-x C-f, but in a daily work im gonna use heavily one particular directory so i need to make the change permanent...
also if you have some tips for a starter it will be nice
I use the FindBugs Eclipse plug-in and was wondering if I can simply analyze only one class rather than the entire project? I can't seem to figure it out. Simply right-clicking on the target class doesn't seem to do anything.
Hi everyone,
I am trying to call a method that passes an object called parameters.
Thread t1 = new Thread(delegate() { target.DoWork(parameters); });
t1.Start();
My test is failing all the time and i am not able step through the method..
Can someone please put me in the right direction
Thanks
Hello
I've been searching for a while for a good example of localizing an C# ASP.NET MVC 2 application but storing the data in the database instead of .RESX files. Unfortunately I've had no luck finding a good example and was hoping someone else may know and could point me in the right direction?
Many thanks for any help/advice/articles
I don't know if it is posible, but I'd like to download a group of pdf's in only one request
this is the way I download a particular invoice:
def show
@invoice = Invoice.find_by_invoice_hash params[:hash]
respond_to do |format|
format.html
format.xml do
send_data File.read( @invoice.xml_path ), type: 'text/xml', filename: "invoice_#{ @invoice.id }.xml", disposition: 'attachment'
end
format.pdf do
render :pdf => @invoice.hash,
layout: 'pdf',
footer: {
right: "printed at: #{Date.today}"
}
end
end
end
What do you suggest me to do?
I have a practical exam in web technologies so html, css, javascript and (possibly) php. I'm still learning and just wondered if you guys had any advice. HTML im fine with, css sometimes takes me time to get right and javascript and php get a bit messy! It's open book, so what would you suggest taking with me?
Right now I am using an extension to linq to provide me with the functionality of Contains. I call the WhereIn like this:
Answers = Answers.WhereIn(x => x.category.catid, catSTRarray);
Is there a built in function within entity framework to use?
I have a function that adds eventhandlers to control events. Right now I have several overloads that add events to different types of controls:
Public Sub AddEventHandler(Button, ButtonEvent) 'adds event handling for Button.Click
public Sub AddEventHandler(LinkButton, ButtonEvent)'adds event handling for LinkButton.Click
The problem is I want to write a function that is more robust like:
Public sub AddEventHandler(Control, EventToHandle, ControlEvent)
where
EventToHandle is the parameter representing Button.Click or whatever event that Button has associated with it.
Any suggestions guys? Thanks!
template <class EventType>
class IEvent;
class IEventable;
typedef boost::function<void (IEventable&, IEvent&)> behaviorRef;
What is the right way for passing template class IEvent into boost function? With this code I get:
error: functional cast expression list treated as compound expression
error: template argument 1 is invalid
error: invalid type in declaration before ‘;’ token
I am performing actions on the page during WatiN tests. What is the neatest method for asserting certain elements are where they should be by evaluating the HTML source? I am scraping the source but looking for a clean way to navigate the tags pulled back.
UPDATE: Right now I am thinking about grabbing certain elements within HTML source using regular expressions and then analysing that to see if other elements exist within. Other thoughts appreciated.
Is it the right Way we initialise the the object?
I have a class Sample
I want to initialise the Object in my Sample1 Class
After intialisation I dont require to use the object of Sample Class.
In that Case Can I initialise that object as new Sample(); instead of Sample s = new Sample(); if I am not going to use s anywhere in my Sample1 Class
My question, is this a good practice to do that?
will there be any after affects
Hi,
I'm creating 3GP videos with the Android - however, when the 3GP files are posted on a site, the same Android phone cannot view it back. (The file works on the iPhone).
What is right way to encode/resize the 3GP video so that the video player on Android can play it back?
Thanks
I am taking a snapshot of a UIWebView layer, but when I render the webview's layer in the current context my app uses 10mb more memory, and I don't think that should be right. Here is my current code:
CGSize imageSize = self.bounds.size;
UIGraphicsBeginImageContextWithOptions(imageSize, YES, 0);
CGContextRef context = UIGraphicsGetCurrentContext();
[self.layer renderInContext:context];
_snapshot = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
I want to create and fill/stroke a path that consists of an outer boundary which is a square of side d and an inner boundary that is the outline of any of the capital letters.
How can I do this? (challenges = creating a mask from a font, and figuring out the right size/position to use)
Hi,
I am trying to find some float number (like -1234.5678) in a huge text file using grep, so I thought about:
grep -n '-1234.5678'
but I get errors, do you know what is the right way using grep and why? there is anything easier?
Thanks
If I tell the C preprocessor to #include a file and use CPPFLAGS to help find the needed file, then the file is included already, right? What, if any, use is telling the C compiler about the same include directory with CFLAGS?
In my application I need to keep track of a list of objects that are being displayed. Right now I have an NSArray with all of the NSManagedObjects. Would I be better off to store the ObjectIDs and then only request the object when I need it?
I am mainly concerned about memory at this point.
When I run some php code I've written, I get the following message:
You have an error in your SQL syntax;
check the manual that corresponds to
your MySQL server version for the
right syntax to use near 'condition,
price, name, email) VALUES('Fake
Title', 'Fake Subhead', 'Fake Author'
at line 1
I do not see anything wrong with my syntax, however, which is like:
mysql_query("INSERT INTO table (x1, x2, x3) VALUES('$y1', '$y2', '$y3')");
Any ideas?
Hello. I am looking for those arrow icons (a left white arrow and a white right arrow) that are used on the lower toolbar of the Photo Library (or Camera Roll). I also have seen them on the Facebook app and some other custom apps. I am surprised that they are not built in "UIBarButtonSystemItem" icons. Can anybody point me to these icons?
I am using C# code for inserting record and datetimepicker control for Date
I want to insert Date like 24-05-2010 in MySQL Database
What Datatype i have to use for that in MySQL table
and how to right insert query for to insert date?
I am using GWT eclipse plugin and try to add option "-style pretty" inside arguments tab of debug configuration window in eclipse. But after click debug it just prompts "Unknown argument: -style".
I used to use webcreator to create gwt app. this is my first time to use plugin and i am not sure i put it into the right place or gwt 2.1.0.M2 just doesn't support this option (which is wired). Please help me thanks in advance.