save

How can I upgrade my JQuery that will save last function when Post or Refresh page?

夙愿已清 提交于 2019-12-11 06:44:01
问题 With help of "@Dimitar Dimitrov" I have create this javascript that changes values after click on link. Here is JSFiddle link: http://jsfiddle.net/3uqF2/19/ Here is code of function: $(document).ready(function () { $(".my-link").on("click", function() { $(".status").hide(); var linkId = $(this).data("id"); $("." + linkId).show(); }); }); My Question is, how can I upgrade it, so when I refresh page or click on post (e.g. search button), my value that I click (e.g. "Eng", watch link of Fiddle)

C# - How to change PNG quality or color depth

核能气质少年 提交于 2019-12-11 06:39:31
问题 I am supposed to write a program that gets some PNG images from the user, does some simple edits like rotation and saves them inside a JAR file so that it can use the images as resources. The problem is when I open, say an 80kb image and then save it with C#, I get an image with the same quality but for 130kb space. And because it has to go inside a J2ME jar file I really need lower sizes, at least the original size. I tried the code below but later found out that it only works for Jpeg

save/load xml file on a web server using unity (C#)

試著忘記壹切 提交于 2019-12-11 06:09:44
问题 I am building an online tests system for a school, where the questions and answers are saved in an xml file on the school website server, the problem is i don't know how can i save the xml file on the server and how can i call it back ? My Code till now using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Xml.Serialization; using System.IO; using System; public class XMLSerializer : MonoBehaviour { public string studentname; public void fff() { string

Objective C: I'm trying to save an NSDictionary that contains primitives and object, but error occurred once i tried adding the custom object

假装没事ソ 提交于 2019-12-11 05:49:45
问题 So I have this custom object i made called 'Box', it's throwing the error for that one. Inside of my NSDictionary is... box = [[Box alloc] initWithHeight:20 height:40]; wrap.dict = [NSMutableDictionary dictionaryWithObjectsAndKeys:numberInt, kInt, numberShort, kShort, numberLong, kLong, numberFloat, kFloat, numberDouble, kDouble, numberBool, kBool, nsString, kString, nsDate, kDate, box, @"keybox", nil]; Notice the box object that I created up top and added in the NSDictionary at the very end.

Classic ASP - Email form with attached file - please help

五迷三道 提交于 2019-12-11 05:48:44
问题 Ive got abit of a problem ive got an email web form that send the input to an email address but what I now need is a file input field were the user can also send an image as an attachment. So contact name, logo (attachment). Ive been told in order to send the attachment it needs to be saved in a folder on my hosting before it can be sent. Ive spoken to the hosting company and they dont have anything in place to make this easier such as aspupload. In the form name="contactname" and name="logo"

How to encrpyt / decrypt data in chunks?

爱⌒轻易说出口 提交于 2019-12-11 05:41:48
问题 I'm quite new to C# and encryption so please have patience with me. I want to save some binary data ("objects" - in fact mostly only parts of objects, thus I can't / don't use serialization, BinaryWriter and similar) and I want to encrypt it in memory and then write it using FileStream. At first I wanted to use some sort of Xor but I didn't know that it is so easy to break, now I changed code to use Aes. The thing is that I will have some relatively large files and quite often I will only

SaveAs command does not work, but SaveCopyAs does

不问归期 提交于 2019-12-11 05:27:38
问题 I am having a lot of difficulty getting a SaveAs command to work properly. For a local hospital, there are patient charts which are created from a template file, in which patient data is entered after which it is manually renamed (using save-As) and then copied to another location as a backup. The template is re-used over and over again. The goal of my code is this to automate this process. Therefore I want to save to two different locations, starting from a template file. The template file

Save a list to a file

最后都变了- 提交于 2019-12-11 05:16:31
问题 I have a library where I want to create a new book and then add it to my list of books. What I have problems with is to save the file between calls. This is how I read the file: def read_bookfile(): try: booklibrary_file = open("a.txt") booklibrary_list = [] booklist = booklibrary_file.readlines() for rad in booklist: linelist = rad.split("/") title = linelist[0] firstname = linelist[1] lastname = linelist[2] isbn = int(linelist[3]) availability = linelist[4] borrowed = linelist[5] late =

Java: Saving big .bmp files with FileOutputStream

[亡魂溺海] 提交于 2019-12-11 05:04:56
问题 I'm trying to write an application generating and saving high resolution images of Julia sets, but I've got a problem. My code is creating a file with size almost corresponding to what (in my opinion) it should be, but when I try to open it, there's an error message about premature end of file. I'm basically taking a size*size square, then for each pixel of this square I'm calculating corresponding number from the complex plane (fragment from -1.5 - 1.5i to 1,5 + 1.5i), and after that I'm

How to save UIImageView after UIGestureRecognizer have passed?

和自甴很熟 提交于 2019-12-11 04:57:17
问题 I have a app with 2 UIImageView that are Layed over each other. I have backgroundImg and FrontImg. Where frontImg can be: rotated, moved, scaled via the UIGestureRecognizers. When I want to save my UIImages's I merge them, but they are saved as if they were never touched. Does anyone knows how to fix this? This is my saving method: UIGraphicsBeginImageContext(self.backgroundImg.image.size); CGRect rect = CGRectMake(0, 0, self.backgroundImg.image.size.width, self.backgroundImg.image.size