Posts

css - Font loaded using StyleManager.loadStyleDeclarations is not applying in Flex4.11 -

Fonts are embedded using @ font-face in CSS and are generated as .swf files. In the application, the generated SWF file is loaded using the StyleManager.loadStyleDeclarations () method. Embedded fonts are not applied for the first time control but this application applies when reloading / refreshing. Ex: CSS file: @ font-face {src: url ("font \ GOTHICB.ttf"); EmbedAsCFF: True; FontFamily: Gothic; FontLookup: "embeddedCFF"; FontWeight: Normal; } In the ActionScript file: StyleManager.loadStyleDeclarations ("styles.swf", true, incorrect); Please tell me that I do not remember anything. Please share your thoughts thank you in advance. Use the Filters source module URL to load font SFF: Or you can write your own custom preloader and do it yourself.

ruby on rails - Production site kept in public repository. How secure it is? -

To test, I cloned a github repo for private from the public. There were details of API keys and credentials in Readme. Reported about this by a stranger. Then I removed the public repository.Now what should I do so that there is no attack on the production site? Changing the API key, changing the password, etc. like Your site is not more secure in personal security details made public You have to change all your secrets, including the API key and password, which includes database connection details. Along with this, make sure to make your clone repo private or to remove it completely Adding only one commitment which removes the personal details No Support If you keep the repo public If you want, you have to follow.

osx - Application crashes when saving managed object context -

My app crashes while saving managedobjectcontext of the main data. The crash log is as follows: Code type: X86-64 (native) Basic Process: Launch [182] Responsible: Clean [9540] User ID: 835384806 Date / time: 2014-10-15 18: 55: 11.890 +0530 OS version: report of Mac OS X 10.9.4 (13E28) version: 11 Anonymous UUID: B7542E2A-7E0A-9BF4-4026-642BC0899AEA passive / active UUID: D3DA262A-ADFC-4D46-8793-1153578CC1D2 crashed thread: 0 Dispatch queue: com .apple.main thread exception type: EXC_BAD_ACCESS (SIGSEGV) exception code: EXC_I386_GPFLT application-specific information: objc_msgSend () Cynkart Name: Release Thread Crashed: Dispatch queue: com.apple.main thread 0 libobjc.A.dylib 0x00007fff87619097 objc_msgSend + 23 1 com.apple.CoreData 0x00007fff8ad8f797 - [_ PFManagedObjectReferenceQueue _processReferenceQueue:] 1575 2 com.apple.CoreData 0x00007fff8ad969f7 - [Nsmnagedobjektkntest (_nsinternlchageprosssing) _prosssrekentchanges:] 3575 3 Com.applkkrdata 0x00007fff8ad6e5c4 _prformr...

javascript - readAsText on json file return [object] -

यह मेरा कोड है window.requestFileSystem (विंडो प्रासंगिक, 100 * 1024 * 1024, फ़ंक्शन (फाइल सिस्टम) {fs = filesystem; fs.root.getFile ('library.json', {create: true}, फ़ंक्शन (प्रविष्टि) {console.log (प्रविष्टि); प्रविष्टि। Createwriter (फ़ंक्शन (लेखक) (लेखक। लिखना (नया ब्लॉब (पुस्तकालय)); प्रविष्टि फ़ाइल (फ़ंक्शन (फ़ाइल) {var fileReader = नया फ़ाइल रीडर (); fileReader.onloadend = function () {console.log (fileReader.result );} FileReader.readAsText (फ़ाइल);});})}}}}}, नल; ऐसा कुछ ऐसा वापस करना है: [{prop: '2342', prop2: 'awqe'}, {prop: '1231' , [एड्स ऑब्जेक्ट] [ऑब्जेक्ट ऑब्जेक्ट] [ऑब्जेक्ट ऑब्जेक्ट] [ऑब्जेक्ट ऑब्जेक्ट] कोड> मैं यह व्यवहार कैसे बदलूं? मैं क्रोम पैक एप के साथ काम कर रहा हूं

sql - Find last match with latest inserted name in table -

मेरे पास एक टेबल है PersonalInfo जैसे कॉलम जैसे आईडी, नाम, पता । मान लें कि मेरा डेटा निम्न है 1 जॉन यूएस 2 मार्क यूके 3 जॉन यूके 4 डेविड यूएस अब जब मैं नया रिकार्ड निम्न सम्मिलित करता हूं 5 जॉन चीन मैं पिछले रिकार्ड को उसी नाम के रूप में अद्यतन करना चाहता हूँ जैसा कि उदाहरण के लिए नया है जैसा कि यहां दिखाया गया है 3 जॉन यूके को 3 जॉन चीन पर अपडेट कर दिया जाएगा। जब मैं 5 वीं रिकॉर्ड को सम्मिलित करता है तो तालिका 1 जॉन यूएस 2 मार्क यूके 3 जॉन चीन 4 डेविड यूएस 5 जॉन चीन मुझे किस SQL ​​क्वेरी का उपयोग करना चाहिए? आईडी मान लेना ऑटो-वर्धित है, यह उस नाम और पता संयोजन के लिए सबसे अधिक मूल्य होगा। सेट पता personalinfo अद्यतन = 'अमेरिका' कहां आईडी = (चयन मैक्स (आईडी) personalinfo से जहां नाम = 'जॉन' और पता = 'ब्रिटेन')

TypeScript - Propertie includes a class -

टाइपस्क्रिप्ट में, निम्न वर्ग के तहत शो के रूप में: Oferta.ts: मॉड्यूल ऑफ़रटस {निर्यात वर्ग कीर्टा {VMVivienda: ofertas.Vivienda (); कन्स्ट्रक्टर () {this.VMVivienda = नया ऑफ़रट्स। विविन्दा (); }}} Vivienda.ts मॉड्यूल ऑफ़रटस {निर्यात वर्ग विविंड्डा {viviendaID: number; निर्माता () {this.viviendaID = 0; }}} संकलन करते समय, कंसोल त्रुटि फेंकता है: त्रुटि TS0294: संपत्ति 'विविंडैंड' प्रकार के प्रकार पर मौजूद नहीं है 'typeof ऑररेट्स ' जोड़ /// & lt; संदर्भ पथ =' vivienda Ts '/ & gt; से oferta.ts पर क्लिक करें

ruby on rails - Please help me converting this code to haml -

note :: I try to include file uploads system in my rail project I am doing But I am getting problems with this EJS code. Please convert the code below to HAML code. & lt; Script id = "b-file-ejs" type = "text / ejs" & gt; & Lt; Div id = "file- & lt;% = FileAPI.uid (file)% & gt;" Class = "js-file b-file b-file_ & lt;% = file.type.split ('/') [0]%>" & Gt; & Lt; Div class = "js-left b-file__left" & gt; & Lt; Img src = "& lt;% = icon [file.type.split ('/') [0]] icon.def% & gt; width =" 32 "height =" 32 "style =" margin: 2px size : KB & lt; / div & gt; & lt; div class = "js-progress b-file__bar" style = " Display: None "& gt; div class =" b-progress "& gt; & lt; div class =" js-bar b-progress__bar "& gt; & lt; / div & gt; & lt; / Div> & lt;...