save

wit.ai + slot based bot + save entities values in client

心不动则不痛 提交于 2019-12-04 14:35:20
I am trying out a sample in wit.ai, here is the link : https://wit.ai/Nayana-Manchi/CreditCardApp/stories The first story "BalanceEnquiry” is a slot based story. The happy scenario works fine. To test “cardnumbermissing” branch, I would type in “I want my credit card balance on the card and my name is Nayana”. Here the card number last 4 digits are missing. It ask for the last 4 digits of the card and then I would enter the last 4 digits of the card. But here it does not get name entity which was sent in earlier message. How do I save the entity value “name” which was sent in the previous step

Saving Recorded Audio (Swift)

巧了我就是萌 提交于 2019-12-04 14:07:02
问题 I'm trying to record an audio with AVAudioRecorder and then save it so i can use it later. So far I have Made the Recorder and it does the job well and plays the audio after recording but as soon as i close the program, it's gone. what can I do? Here's the entire code I have written so far : class RecordViewController: UIViewController , AVAudioPlayerDelegate, AVAudioRecorderDelegate { @IBOutlet weak var RecordButton: UIButton! @IBOutlet weak var PlayButton: UIButton! var soundRecorder :

Saving Excel workbook to constant path with filename from 2 fields

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 13:11:51
问题 I am absolutely new to Excel macros, I tried to search and put together a code to fit my purpose, but with no luck. I hope someone is generous enough to help me out. Sub save() ActiveWorkbook.SaveAS Filename:="C:\-docs\cmat\Desktop\New folder\ck.xls", FileFormat:= _ xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False End Sub How to edit this to: Instead of naming the saved file ck.xls, generate the filename from the worksheet cells C5 and C8, with

Print/Save as PDF (keeping the CSS layout)

Deadly 提交于 2019-12-04 12:54:32
When I simply print (like on paper), or save as PDF a page (using the browser built-in tool), the css is completely ignored and I just get ugly lines after lines of the content!! Is there a way to do this (without having to convert the HTML 2 PDF/image)? Thanks! You should look up Media Types in CSS... set one up for printing and you should be good to go. I've found that this page is really helpful. That's probably cause you've got the media option specified. <!-- will ignore css on print --> <link href="style.css" rel="stylesheet" type="text/css" media="screen" /> <!-- will only use css when

iPhone - different ways to store data, advantages and disadvantages

 ̄綄美尐妖づ 提交于 2019-12-04 12:46:01
Could you explain me which are the different ways to store datas on the iPhone, and for each way of doig this, which are the advantages and disadvantages. I've read many things about UserDefaults, CoreData, XML, plist, ... and I'm a little bit lost. For now, I understand that : UserDefault is for preferences, and is not intended for anything else even if it can be done (small ammount of datas). It generates a plist file that can be easily humanly read/checked later into XCode. XML is good for structured text, but not for binary datas. And it's easy to write, but not to read.It generates an XML

Best place to save user information for Windows XP and Vista applications

◇◆丶佛笑我妖孽 提交于 2019-12-04 11:58:59
I need to save a user's login information in encrypted form for this application I'm building, but I'm not sure of the best place to save the file. I don't want to save it into the program application folder as I want it per user. So what is the best folder (or way) to save it into? Edit: Using C++. Seems like C:\Documents and Settings\%username%\Local Settings\Application Data may be the appropriate place according to Wikipedia . The article says this location is used for "User-specific and computer-specific application settings". Edit: Cruizer pointed out in the comments (I'd reply there but

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

旧巷老猫 提交于 2019-12-04 11:24:00
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. Liam McInroy Yes you can save skeleton and face data.... but for what you are doing, it sounds like you only want to save that for the session.

Image saved in JavaFX as jpg is pink toned

馋奶兔 提交于 2019-12-04 10:57:00
问题 I want to save an Image from my ImageView to files with different resolutions. Doing it as .png results as expected. As for .jpg - I get all files pink toned. Where is the trick? Here is the code: Object[] imagesFromFotoListView = ta.myFotoListView.getItems().toArray(); new File(localDir).mkdirs(); for (int i = 0; i < imagesFromFotoListView.length; i++) { new File(localDir + "/" + i).mkdirs(); final ImageView iv = new ImageView((Image) imagesFromFotoListView[i]); ImageIO.write(SwingFXUtils

Python <No such file or directory: 'gs'> error even with GhostScript installed on Macintosh *Issue still Persisting!*

别说谁变了你拦得住时间么 提交于 2019-12-04 10:20:54
I have implemented the following save function in my program which allows the user to save as a JPEG file whatever he/she draws on the Tkinter canvas with the Turtle. How it is supposed to work is that it first captures the screen and Tkinter canvas and then creates a postscript file based on it. Then it converts that postscript file as a PIL (Python Imaging Library) readable file type, and then the PIL saves the converted file as a JPEG. My save function is shown below: def savefirst(): # Capture screen and Tkinter canvas cnv = getscreen().getcanvas() global hen # Save screen and canvas as

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

[亡魂溺海] 提交于 2019-12-04 10:13:25
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 bits per pixel color image that I tested where all the colors are retained. I am starting to think