save

Eclipse Auto-Upload on Save, Without Aptana

二次信任 提交于 2019-12-06 04:36:02
问题 I'm using Eclipse to develop a website, and I don't want to run Apache, PHP, and MySQL on my local computer. I already have a remote Linux server set up to do that. What I want though, is every time I save a file, Eclipse should upload that file to the Linux server. Dreamweaver does an absolutely perfect job at this task, but I prefer many other features in Eclipse. I am well aware that there are many, many posts on Stack Overflow about this topic. I have reviewed them, but none seem to quite

reading data from file in c

故事扮演 提交于 2019-12-06 04:34:05
I have a txt file named prob which contains: 6 2 8 3 4 98652 914 143 789 1 527 146 85 1 74 8 7 6 3 Each line has 9 chars and there are 9 lines. Since I cant make a string array in c, im be using a two dimensional array. Careful running the code, infinite loops are common and it prints weird output. Im also curious as to where does it stop taking in the string? until newline? expected result for each "save": 6 2 8 3 or watever the line contained. #include <stdio.h> FILE *prob; main() { prob = fopen("prob.txt", "r"); char grid_values[9][9]; char save[9]; int i; for (i = 0; (fscanf(prob, "%s",

Losing image quality in c# using Image class (reduces amount of colors)

你离开我真会死。 提交于 2019-12-06 04:19:52
问题 I have a c# program that opens a .tif image and later offers the option to save it. However, there is always a drop in quality when saving the image. (EDIT:I passed some parameters while saving the image so that the quality is at 100 % and there is no compression, but the number of actual unique colors go from 254 to 16, even though the image properties show 8bpp) (EDIT2: The image in question is a grayscale image at 8 bits per pixel - 256 colors/shades of gray - This doesn't happen with a 24

Adding items to NSMutableArray and saving/loading

安稳与你 提交于 2019-12-06 04:18:41
I've used this tutorial to create an app with a table view that is populated using an NSMutableArray. Now I'd like to add the functionality to add additional items to the array and save/load them. I've customized the Fruit class to look like this: #import <UIKit/UIKit.h> @interface Fruit : NSObject { NSString *name; NSString *instructions; NSString *explination; NSString *imagePath; } @property(nonatomic,copy) NSString *name; @property(nonatomic,copy) NSString *instructions; @property(nonatomic,copy) NSString *explination; @property(nonatomic,copy) NSString *imagePath; - (id)initWithName:

JSF Chrome Save Password on Login form

邮差的信 提交于 2019-12-06 04:11:40
How do I get my JSF login page to prompt Chrome to save password? <h:form id="login-form" class="form login-form"> <h:outputLabel for="j_username" value="Email:" /> <p:inputText value="#{loginBean.j_username}" id="j_username" required="true"> </p:inputText> <h:outputLabel for="j_password" value="Password:" /> <h:inputSecret value="#{loginBean.j_password}" id="j_password" required="true"> <p:commandButton id="loginButton" value="Login" action="#{loginBean.login}" /> </h:form> Turn off ajax by ajax="false" on the <p:commandButton> . For security reasons, Chrome won't save passwords of ajax login

Is it possible to save a user's skeleton and facial data for recognition purposes?

孤者浪人 提交于 2019-12-06 04:07:49
问题 I would like to be able to keep track of people that enter and exit a premises. Basically when the user approaches the Kinect, it will store his/her facial and skeletal data. Then upon leaving, that data will be removed. For now I am only wondering if this is possible or not with the Microsoft SDK. I have seen videos/demos of the Kinect being able to track people but my goal is to identify them uniquely . Any information will be greatly appreciated. 回答1: Yes you can save skeleton and face

save the data using shared preference in android

南笙酒味 提交于 2019-12-06 03:30:44
i am new developer in android applications.i would like to save the data using shared preference concept.i am saving the data in one activity and get the same data in another activity.here i would like to send the String a[]={"one","two","three"} one activity to another activity.i have written code as follows Main1.java public class Main1 extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); SharedPreferences shp=getSharedPreferences("TEXT", 0); final Editor et=shp.edit(); ((Button)findViewById(R.id

Saving and Deleting NSManagedObject & NSManagedObjectContext

匆匆过客 提交于 2019-12-06 03:00:51
Three Questions but they are all related. If you like I can divide them into three questions so that you can more credits. Let me know if you'd like for me to do that. I have the following code that allows me to access NSManagedObject self.managedObjectContext = [(STAppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext]; NSError *error; NSFetchRequest *request = [[NSFetchRequest alloc] init]; [request setEntity:[NSEntityDescription entityForName:@"LetsMeet" inManagedObjectContext:managedObjectContext]]; NSArray *objectArray = [managedObjectContext executeFetchRequest

Problems saving several pdf files in R

落爺英雄遲暮 提交于 2019-12-06 02:26:34
I'm trying to save several xyplots created with a "for" loop in R and I'm not able to get complete pdf files (all files have the same size and I can't open them) if I execute the following loop: for (i in 1:length(gases.names)) { # Set ylim; r_y <- round(range(ratio.cal[,i][ratio.cal[,i]<999], na.rm = T), digits = 1); r_y <- c(r_y[1]-0.1, r_y[2]+0.1); outputfile <- paste (path, "/cal_ratio_",gases.names[i], ".pdf", sep=""); dev.new(); xyplot(ratio.cal[,i] ~ data.GC.all$data.time, groups = data.vial, panel = panel.superpose, xlab = "Date", ylab = gases.names[i], xaxt="n", ylim = r_y); savePlot

NHibernate issue with assigned string ID and different case chars

自古美人都是妖i 提交于 2019-12-06 01:10:30
I've a problem when save an entity with assigned string Id on NHibernate...I try to explain the issue with an example. Well, suppose to have an entity on database with ID "AAA", if I execute this statements ENTITYTYPE entity = Session.Get<ENTITYTYPE>("AAA"); ENTITYTYPE newentity = new ENTITYTYPE() { Id = "aaa" }; Session.Delete(entity); Session.Save(newentity); Session.Flush(); On Flush NHibernate raise an exception with this message: "Could not synchronize database state with session" / "Violation of PRIMARY KEY" It seems to have problem with Case Sensitive ID, if I use "AAA" on Id of