Posts

Showing posts from July, 2015

ios - Swift dynamic cast failed when adding a new View Controller -

I have a simple iOS testing app in Swift. I have added an additional view controller at the beginning of my storyboard and a square LoginViewController has been created: UIViewController I have set my visual controller to be the custom class LoginViewController and changed the properties to make it the initial view controller. I have also added a simple button which I have for the rest of the app. Now when I start my app in the simulator, it immediately crashes with the following: libswiftCore.dylib`swift_dynamicCastClassUnconditional: 0x10cc3f9e0: pushq% RBP 0x10cc3f9e1 : Movq% rp,% rbp 0x10cc3f9e4: testq% RDI,% RDI 0x10cc3f9e7: je 0x10cc3fa1e; Svift_dynamicstclassunkdishnl + 62 0x10cc3f9e9: Movabshk $ -0x7fffffffffffffff% Raks 0x10cc3f9f3: Testk% Raks% Rdi 0x10cc3f9f6: newborn 0x10cc3fa1e; Swift_dynamicCastClassUnconditional + 62 0x105x9f8: leaq 0xb5109 (% rip),% rax 0x10cc3f9ff: movq (% rax),% rax 0x10cc3fa02: andq (% rdi),% rax 0x10cc3fa05: nopw% cs: (% rax,% rax) 0x10cc3f...

libxml/parser.h: in c++ ubuntu -

यद्यपि मैंने अपने उबुंटू 12.04 संस्करण में libxml ++ 2.6-2 libxml ++ 2.6-doc आदि को फिर से स्थापित किया है I नीचे त्रुटि संबंधी त्रुटि प्राप्त हो रही है: libxml / parser.h: ऐसी कोई फ़ाइल या निर्देशिका मैं परियोजना का निर्माण करने के लिए उपयोग कर रहा हूँ कृपया किसी भी अन्य libxml पुस्तकालयों को स्थापित करने की आवश्यकता है जो मुझे स्थापित करने की आवश्यकता है libxml / parser.h एक है भाग ओ libxml लाइब्रेरी, नहीं libxml ++ किसी दिए गए पुस्तकालय के लिए, आपको विकास पैकेज की आवश्यकता है आपको अपने कंपाइलर को अतिरिक्त झंडे पास करने की आवश्यकता है: xml2-config - cflags और लिंकर xml2-config --libs ।

r - Split data frame by a repetitive column -

मेरे पास ऐसा डेटा फ्रेम है: p1 = rnorm (7) p2 = rnorm (7) पी 3 = सी (1,1,2,2,3,3,3) df = डेटा.फ्रेम (पी 1, पी 2, पी 3) डीएफ पी 1 पी 2 पी 3 1 -0.7843568 0.6383588 1 2 -0.4073465 0.3480860 1 3 0.2799414 - 0.1938586 2 4 -1,3496633 -0,5271080 2 5 -1,5750376 0,6178624 3 6 -0,1030045 0,8642336 3 7 0,5839070 -0,9723264 3 मैं डेटा फ्रेम विभाजित कर सकते हैं कैसे इतना है कि मैं की तरह एक डेटा फ्रेम हो सकता है इस: 1 1 2 2 3 3 1 -0,7843568 0,6383588 0,2799414 -0,1938586 -1,5750376 0,6178624 2 -1,3496633 -0,5271080 -0,4073465 0,3480860 -0,1030045 0,8642336 3 0,5839070 -0,9723264 आप या तो reshape से base R से उपयोग कर सकते हैं या अन्य पैकेजों का उपयोग करना पहले चरण में, हम उद्देश्य को समूह के लिए एक indx कॉलम बना रहे हैं आप p3 के प्रत्येक समूह के लिए अनुक्रम बनाने के लिए ave का उपयोग कर सकते हैं, अर्थात पहले दो तत्वों ( p3 = 1 ), इसी इंडक्स होगा 1,2 और शेष समूह के लिए भी ऐसा ही होगा इंडक्स निर्माण चरण के बाद, आप सीधे reshape का उपयोग कर सकते हैं और दिशा से ...

ssl - Using tcllib's autoproxy with tls -

How TLL's autoprips should work with TLS support? I have read the documentation and taken the following minimum example from it, but I can not get any https connection to it: #! / Usr / bin / tclsh package requires autoproxy package requires http package: tls :: autoproxy :: init :: http :: register https 443 [list :: autoproxy :: tls_socket -tls1 1] # :: http : Register https 443 [list :: tls :: socket - Tls1 1] Set token [:: http: geturl "https://example.com/" - Validate 1] puts [:: http: Meta $ token]: : Http: cleanup $ token resulting in: handshake failed: ":: http: geturl" https://example.com/ " Temporarily unavailable resources during the implementation of "validate 1" set token [: http: geturl "https://example.com/" -validate 1] "from within (file" ./https.tcl " Row 9) I do not have a proxy server defined via http_proxy envvar and it works fine right when using: :: tls :: socket I tcl 8.6.1, Using tc...

Use Unity animation in native iOS application -

I want to create a small animation in unity and integrate this animation with Resident IOS Episodes Want to do Seen in many possible solutions, but they were not useful I did not want the animation in a video format. Just for more information which can help, here are some of my research which I have tried to do using the animation I created after the effect, it exported it as integration animation, and Then it was restored in unity; But when I exported it as an iOS application, it was not able to separate this animation sequence for my original application. There was a method after the effects, where I could export the animation as a video file, but this is not what I want. You can create bindings in any direction, such as the purpose of unity-cinding, or its Adverse. You can also use plug-ins, but they are premium features, more details here: If you can convert your animation objects to OBJ files, then you can import them like this You can. If that does not work, you ...

php - Checkboxlist checked based on url $_GET -

I am checking my checkbox in Yii 1.1.15 based on existing page URL > In my opinion: $ arr0 = array ('1' => 'Store 1', '2' => 'Store2', '3 '= & Gt;' Store 3 '.......); Now $ form-> Checkbox list ($ model, 'store', $ arr0, array ('name' = & gt; 'store', 'separator' => gt; '', 'template' = & gt; '& lt; span class = "Col-md-6 col-xs-6" & gt; {input} & amp; nbsp; {label} & lt; / span & gt; ',' uncheckValue = & gt; 0)); And my URL looks like this url /? Store = 1,4,5,6 Any idea how to do it? Set your model in your array before submitting it as below: $ arr0 = array ('1', '2'); $ Models & gt; Store = $ arr0; Now, 1,2 will be marked as selected.

How to allow lists to be entered as arguments Scheme -

I am trying to write the process that accepts at least two arguments that are in both lists. Can I just enter that list as logic in order to use 'X' and 'Y'? I have already written this process and I do not see any error with it, but when I try to run it, the Interaction panel says "Application: No Process; The process expected was given Arguments can apply: 2 logic ...: 3 "And I do not know much about this process, the process I am writing is down. (define (less xy) (if ((length x) & lt; (length y)) x (if ((xx)> (length y) yx)) ) The racket is a prefix language, which means that operators should come before logic . Regarding how ( (length x) (length y) yx): (defined (lower xy) (if (& lt; (length x) (Length y))) or ... (define (less xy) (if (& lt; = (length x) ( Length y)) xy))

Record from microphone in Windows Phone, FFT every 0.1 sec -

I need to get the data with a 44100 Hz sample rate from the microphone. And to do some analysis with each 0.1sec fft. My code here: dt.Interval = Timespan From Milliseconds (33); Dt.Tick + = new event handler (dt_Tick); Dt.Start (); The buffer is a full microphone when the // event handler to receive audio data. BufferReady + = new event handler & lt; EventArgs & gt; (Microphone Buffer Readie); // Get audio data in 1/10 second chunks of microphone. BufferDuration = Timespan From Milliseconds (100); // Allocate memory to hold audio data buffer = new byte [microphone. Gate samplinginites (microphone buffer duration)]; // recording microphone Start (); Invalid microphone buffer readie (object sender, eventAgps E) {// recover audio data microphone. Gatedata (buffer); System.Diagnostics.Debug.WriteLine (buffer length + "+ +" + microphone sampling rate); // ... fft (buffer) ... some analysis} I can change the sample rate for 44100 and get the buffer with size to 4...

actionscript 3 - Flash as3 image slider -

I'm trying to get an image slider to work properly. But I do not get the next / previous operating system to work. I have a container MC that holds all the images, and a mask that acts as a mask for that container. How do I add images here for (var i: int = 0; i So all the images are now located in good queues for some extent, masks and containers have the same X / Y-position, so now say that I will show 5 containers of containers To set the subtlety of the mask. How do I program the next / previous button so that it displays or hides a single image on the click? like. It looks right in the middle of the container position. This is my next and previous function is not working with I basically I want the container to always show the quantity of the same items. Private function slide left (Event: Mouse Event): Zero {if (! TweenMax.isTweening (container)) {var tx: number = Math.man (container.x + item, _mask. X); TweenMax.to (container, 0.3, {x: Math.floor (tx)});...

c# - DataGridView shows some empty cells in first row after update -

मेरा DataGridView एक बाध्यकारी स्रोत के लिए बाध्य है जो फिर से डाटासेट जैसा इसकी डेटासॉर्स है। संबंधित TableAdapter में DataSet में, दूसरों के बीच, एक भरें विधि जो एक एक्सेस डाटाबेस से डेटा प्रदान करती है। मैं अपने DataGridView को नीचे दिखाए गए डेटा के साथ भरता हूं: myTableAdapter.Fill (myDataSet.MyDataTable); यह सब काम ठीक और जैसा अपेक्षित है समस्या तब होती है जब मैं अपने UpdateQuery (जो भी ठीक काम करता है) का उपयोग करते हुए अपना डेटा बदलता हूं और उसके बाद मेरे DataGridView में से किसी भी पंक्ति में फिर से क्लिक करें - जैसे ही मैं क्लिक करता हूं, (हमेशा) की अंतिम दो कोशिकाओं पहली पंक्ति को खाली के रूप में दिखाया गया है कोई फर्क नहीं पड़ता कि मैं किस पंक्ति को क्लिक करता हूं, यह हमेशा पहली पंक्ति में कक्ष होता है और केवल जब मैं UpdateQuery करता हूं जब मैं सीधे प्रवेश डेटाबेस की जांच करता हूं, तो सब कुछ ठीक है (यानी अपडेट सफल हुआ)। जब मैं अपने आवेदन को पुनरारंभ करता हूं, तो सब कुछ किसी भी समस्या के बिना दिखाई देता है (अगली बार जब तक मैं UpdateQuery ...

linux - Python script won't run on keyboard shortcut -

So I have a lot of scripts that I run with keyboard shortcuts, to upload screenshots and to insert links in the clipboard, Luggage, etc. for plots etc. I have this existing script which runs only from the terminal, and when I do not try to run it as a keyboard shortcut. I call it system & gt; Preferences & gt; Keyboard shortcut on Scientific Linux 6.4 . I have included the script given below, if there is something special that will stop it from work. #! / Usr / bin / python import file input, os to import highlighted Upprkriya, pygments.lexers import import get_lexer_by_name, guess_lexer import pygments.formatters formatters # Stdin = "\ n". (( "Aksklip", "-step", "primary", "-o"], stdout = subprocess (line to line Failinput. Input () []) = p = Upprkriya. Kpeepii) code, err = p.communicate () does not melt that: lexer = guess_lexer (code) print lexer.name imageformatter = formatters.ImageFormatter (linenos = true...

Test Upload/Download files using JMeter -

I would like your advice on contacting JM for this scenario for this scenario Application - It has a Windows desktop app where I can add a file and send it to the receiver - which can download it at the end. More information - Talks to an upload RAP on the desktop app sender. To upload the file to the cloud and upload it to the receiver, I have a download API that downloads the file from the cloud. Basically the desktop APP / API runs on two separate machines (sender and receiver). Problem - I have to test upload and download time for different file sizes for the ths sender and receiver. The complexity for me here is as follows: 1) I think I can not test the desktop app using JMM, so I decided that the rest of the API is behind the UI layer - use the API to trigger uploads and downloads - is that correct? 2) As a upload and download API on different machines or virtual machines - how can I use JMIter to test it? Feelin lost !!! Please advise If your application sup...

html - Text inline with centered image -

There is some difficulty with this one, I have not learned HTML but I am hanging it. On my website, I have a logo focused on top of the site. I want to add some text to the left of the website inline with no image in place of the image. Logo logo logo here Logo | ---------- -------------------- | (Page width) The text can not be above or below the logo because it corrupts the rest of the page. EDIT: I "I have now" because it is confusing outside of context. How will you handle this scenerio? Sorry, but do you want it? :) & lt; Div class = "wide" & gt; & Lt; Img src = "path / in / image" & gt; & Lt; / Img & gt; & Lt; Span & gt; Text here & lt; / Span & gt; & Lt; / Div & gt; Just wrap the logo segment in a cover. Make it relative (hence the children's full position is relative to this element and not the page). then the position full text. Make the value of the left and lowe...

javascript - How to get collection name on express.js server -

मेरे पास 2 संग्रह हैं नियुक्ति चालान मेरी पोस्ट पद्धति में, डेटा को सहेजने से पहले, मैं जांचता हूं कि डेटा पहले से मौजूद है, लेकिन मुझे केवल नियुक्ति संग्रह चाहिए मैं सामान्यत: इनवॉइस कोच ​​बचा जाना चाहता हूं। मैं यह कैसे कर सकता हूँ। मैंने पहले से ही अगर कथन के साथ कोशिश की है लेकिन यह काम नहीं कर रहा है। एप पोस्ट ('/ संग्रह /: संग्रहनाम', फ़ंक्शन (अनुरोध, आरईसी, अगले) {console.log (req। शरीर [0]) यदि ('/ संग्रह /: संग्रहनाम' == '/ संग्रह / नियुक्तियाँ') {req.collection.findOne ({hour_responce: req.body [0] .hour_responce}, फ़ंक्शन (ई, परिणाम) { यदि (परिणाम) {console.log (परिणाम); console.log (e) res.send (500, {त्रुटि: "आपके पास इस समय अवधि पर एक कार्य पहले से है"})} अन्य {req.collection.insert (req (ई, परिणाम) {if (e) रिटर्न (ई) res.send (परिणाम)})}})} अन्य {req.collection.insert (req.body, {}, फ़ंक्शन (ई, नतीजे) {अगर (ई) रिटर्न अगले (ई) res.send (परिणाम)})}}) मैं एक टिप्पणी नहीं जोड़ सकता, इसलिए मैं एक उत्तर जोड़कर कुछ सलाह द...

javascript - Three.js Strange pixel trail on Firefox -

Image
I experienced a strange problem on Firefox *, where my forum has not been approved before render and I A pixel mark is found "under my animated mesh." Here's a screenshot of what happens here (Aries is located at the top with "2" texture and it is a cube that is called "axis" and " What could be the reason for this? * (I have not found what is in this kind of browser, Version can be changed for example) Edit: Here is a link to the live example, I repeat that it does not happen on a specific Firefox version. I can definitely tell that in Firefox where I see that these issues have these properties:

Is it possible to write a web server using Intel DPDK? -

I am a newbie for Intel DPDK. I am planning to write a http web server. Can it be implemented using the DPDK using the following logic? Receive the packet and send it to the work logical core. / Li> Process 'http reprocess' in the worker logical core and create a 'http response', 'http reproduction' sent by an employee logical core build client. Create packets for 'HTTP response' and send them to the output software rings. I'm not sure whether the above is possible or not. Is it possible to write a web server using Intel DPDK? This is a lot of work as you will need the TCP / IP stack above the DPDK. Even once you place a TCP / IP stack on the top of the DPDK (or reuse a port from the OS), you will not have the display because it is easy to write the C code, but TCP / IP stack which maintains good performance, this is a very difficult development. You can try: they do not offer an HTTP server, but they do not have to send TC...

javascript - Module naming in RequireJS -

We can use AMD compatible versions of backbones and underscore JS AMD compatible libraries Backbone JS (AMD); else if (for typeof defined === 'function' & amp; amp; both () and below is the relevant code;; & amp; def; define.amd) {// AMD define In this case, this script is loaded in case of (['underscores', 'jquery', 'export'], function (_, $, export) {// Export AMD case // Other, which is still a global backbone Can expect the bone. Root.Backbone = factory (root, export, _, $);}); Underscore JS (AMD); // AMD defines the AMD loader at the end of compatibility with / / which does not apply to the next-tern semantics if the module is defined (typef === 'function' & amp; ; Define. AMD) {Define ('underscore', function () {return _;}); } Now in our code to use these AMD compatible libraries, we say; Needjs.config ({enforceDefine: true, path: {"jquery": "Libs / jquery-1.8.3", "underscore...

parsing - Error when building AST from C code using DMS GCC parser -

I want to convert an XML file using C code using AST and I DMS GCC 4 domain parser for it I am using . When However, the command prompt i -V runs have or are nothing shows run DomainParser (nor XML is displayed nor throwing error! ). It was working fine before and I have not made any changes to the file settings. What am I doing? rpalani @ CHE - N14 - 004 / Saigrediv / C / Accent / software / DMS - GCC 4 - parser - 2013-09 - 06 / DMS - GCC 4 - Parsrs / DMS / domain / C / GCC 4 / Tools / Running Runner - Running @ Che - N14 - 004 / cygdrive / c / Accent / Software / DMS - GCC 4 - Parser - 2013 - 09 - 06 / DMS - GCC 4 - Parsers / DMS / domain / C / GCC 4 / tools / $ parser runs Domanparsr Rpalani @ Chea - N 14 - 004 / cygdrive / c / Accent / software / DMS - Zeiss 4 - Parser - 2013 - 09 - 06 / DMS - GCC 4 - Parsers / DMS / Domains / C / GCC 4 / Tools / Parser $ Run Domain Parser ++ xml C: \ dpalapa_test \ Map \ dispensing.c rpalani @ CHE - N14 - 004 / cygdrive / c / accent...

jquery - Hidden Modal showing when $(document).ready alert called -

I have a form that has a model pop up which hides until the button is pressed. When the page loads, I want to display a warning to the user, and I'm trying to use it jquery But when the warning is shown, Then the Madple popup appears, after which I click OK, the warning then hides the modal popup. Obviously, there is a better way to do this, do anyone have any advice? Here is the code: Thank you & lt; Asp: Content ID = "Content1" content placeholder id = "head content" run = "server" & gt; & Lt; Style type = "text / css" & gt; .modalBackground {background-color: gray; Z-index: 10000; Filters: alpha (opacity = 80); Opacity: 0.8; } .hiddenElement {display: none; } .ModalContainer {Status: Completed; Display: Table; Background color: white; Border: 1 px solid gray; } & Lt; / Style & gt; & Lt; Script language = "javascript" type = "text / javascript" & gt; $ (Document) .ready (fu...

smart device - GeneXus: Websession's contents will not be preserved between calls to Refresh -

I have to replenish my grid every time the user has set a new date (data from WebServity). According to the event triggering order, I was thinking: (1) Action event: Call a process to get the data, transform it, fill it up the SDT and place it on a web site. (2) Refresh Event: Rebuild local SDT with new values. (3) Load Event: Load the grid. However, when I make it, I see a warning: spc0185: not refreshed in the middle of calls to refresh the content of the website Will be done. And I can confirm that the behavior is a bit strange (the grid only refreshes the user on the fist time, the date changes). Events and myDate.ControlValueChanged Composite Setgrization (& mydate) Refresh Endcompatch & Event Event Refresh & amp; Mydate = ctod (& websession.get ('newDate')) to refresh date // var & amp; MyJSON = & amp; Websession.get ('GridJSON') & mySDT.FromJson (& myJSON) and event event load & amp; ; MySDTItem & amp; ...

c# - How to call a handler from another handler -

I am creating session variable in a handler I am reaching that variable in other handlers And I'm using it. Now if that session variable is zero if (httpNTtex.Session ["name"] == faucet) // Call the other handler which sets the session How can I call another handler so that it resets the session variable?

Unable to upload file (using Roxy Fileman) on Internet Explorer -

is a file manager that I am using to upload files with TinyMCE4. I can not upload files on IE, works great on Firefox and Chrome, but I also need to work on IE too .. I would get this error Is: "A part of Path C could not be found: User documents documents". I tried to contact the developer but he never responded. Any help is being highly appreciated ... I am trying to fix this in today's days ... I ended up finding a solution! For those who may have trouble uploading files using IE, that is, these error messages are being shown every time: - "Can not be a part of the path" or " - "The entry from the path has been denied. " Check your IE settings: IE security setting should include 'Local directory path included' when uploading a file to a server. After setting that option, Everything should work right!

java - How do I make this if statement? -

Sorry for the silly question, I am currently struggling to learn Java. I need this code to work, as long as '0' is not entered for the student number, it will continue to repeat, I am uncertain to ensure that "Please enter the" student number "section How should I work to get it, when I have to declare int for this statement? I am not sure what I have done completely or wrongly, but to repeat the data entry No need to be competent, unless "0" is not entered as a student number Thanks for any help! class main {public static zero main (string agr []} {Int studentNumber = BIO.getInt (); if (studentNumber> 0) {System.out.print ("# Please enter student number:"); System.out.print ("#" Please enter the coursework mark Enter: "); Int courseWork = BIO.getInt (); System.out.print (Enter the" # Examination Mark: "); Int Exam Mark = BIOGETINT (Double) = (Double) (Core Servers + Examination Mark) / 2; System.out.printf (...

rewrite - Magento Overwriting Block -

moved to: I work on a Magento job And I have been dabbled in dark art since a while I am currently writing a small script which will override the shipping methods on the checkout screen. App / code / local / cl ic studios / shipment filter /etc/config.xml & lt; Global & gt; & Lt; Block & gt; & Lt; Checkout & gt; & Lt; Rewrite & gt; & Lt; Onepage_shipping_method_available & gt; ClarkStudios_Shipmentfilter_Block_Onepage_Shipping_Method_Available & lt; / Onepage_shipping_method_available & gt; & Lt; / Rewrite & gt; & Lt; / Checkout & gt; & Lt; / Block & gt; & Lt; / Global & gt; App / code / local / cl ic studios / shipment filter / block / onpage / shipping / method / available.fip Square ClarkStudios_Shipmentfilter_Block_Onepage_Shipping_Method_ Available Mage_Checkout_Block_Onepage_Shipping_Method_ is available {public function getShippingRates () ($ 'HAHAHAHAHAH!'); $ Rate = o...

Powershell - Add a new document to exisitng word file with page number of 2 -

I am trying to open an existing word file and am adding a new page for it. This new page will contain some content and I should always have this page position number 2. Therefore, the first page will always be the same and the second page should be added to the second page. So far I have this type of code: $ day = get-date-format "dd-MMM-yyyy" $ has been filed - received-date-format "DD / MMM / - - HT "$ word = new object - com object word App $ word Visible = $ false $ doc = $ word.documents.open ( "$ home \ Desktop \ Network Report.docx") $ select = $ Sbdkselekshn $ Selection.InsertNewPage () #So, this page number 2 $ selection.Font .Size = 14 $ selection.Font.color = "wdColorBlack" $ Selection.TypeText ( "the network reported $ Filedate") should be included in the $ select .TypeParagraph () $ selectimage = $ selection.InlineShapes.AddPicture ( "$ Home \ desktop \ screenshot.jpeg") $ selection.TypeParagraph () $ strea...

.net - C# Calling method every minute at 55 second mark -

I have been given a task to write a program to count how many page ideas have been requested from our site. The current approach is to get data from Google Analytics Real Time API, which works for my surprise My problem is that I have to get a pweview of data every time from Google AP (this past Gives the amount of 29 minutes + Setting the value from a timer that reset every minute) After setting the 'reset talk', I would say, every minute in the 55th second, I voted 56th and later 53th place, which is relatively New users / page gives a relatively good estimate of ideas So this is my current viewpoint: stable system Tires Timer my timer = new system Times Timer (); MyTimer.AutoReset = false; MyTimer.Interval = Interval (); MyTimer.Elapsed + = myTimer_Elapsed2; MyTimer.Start (); Fixed Double Interval () {Returns 1000 - Datetime. Now.Millisecond; } Fixed zero myTimer_Elapsed2 (Object Sender, System.Timers.ElapsedEventArgs e) {if (DateTime.Now.Second == (Reset page. Se...

r- reshape table grouped by 3 variables (2 in rows) -

मुझे निम्न तालिका को विस्तृत प्रारूप में नयी आकृति प्रदान करना होगा: & gt; डेटा डाया क्ली ललाम ईलिजिओस कमलम 1 1-11 ए 1 1 2 2-11 ए 2 1 3 3 1-11 बी 2 1 2 4 2-11 बी 1 1 3 5 2-11 सी 1 0 1 मुझे कॉलम में पंक्तियों और कमलेम में दिनों और क्लाइंट की मात्रा मान के रूप में रखने की आवश्यकता है। मैंने लिखा: लाइब्रेरी (reshape2 ) My.f & lt; - फ़ंक्शन (v) {if (लंबाई (वी) == 0) 0 और लंबाई (वी)} श्रृंखला & lt; -data.frame (dcast (डेटा, दीया ~ cumllam, मजेदार। F, value.var = 'cli')) और मुझे मिलता है: & gt; श्रृंखला व्यास X1 X2 X3 1 1-11 1 1 2 2-11 1 0 2 लेकिन मुझे स्तंभ "ईलिजिओस" द्वारा इसे विभाजित करने की आवश्यकता है I मेरी टेबल होना चाहिए: ईलिजिओस डाया X1 X2 X3 0 2-11 1 0 0 1 1-11 1 1 0 1 2-11 0 0 2 मैंने कोशिश की: data.frame (dcast (डेटा, सी (ईलिजिओस, दीया) ~ cumllam, fun.aggregate = my.f, value.var = 'cli')) लेकिन मुझे एक गलत परिणाम मिलता है: c.elegidos..dia। एक्स 1 एक्स 2 एक्स 3 1 0 1 0 0 2 1 2 2 2 3 2 1 0 2 मैं ताल...

java - Log4J is not archiving logs properly -

I am trying to configure a log4j for my application. I want to roll it everyday, which means that I want to create a new text file with the log and archive the old ones. For some reason, my loggers remove old logs and write them without collecting old logs. When I changed it to roll every minute, it is not a problem. Every minute it archives my log and writes new. When I change it to roll every hour, then in the case of rolling the same problem daily, it just erases old logs without archiving them. Can anyone tell me in the right direction? Thank you log4j.rootlogger = debug, a1 log4j.logger.org.hibernate = error log4j.appender.a1 = org.apache.log4j.DailyRollingFileAppender log4j.appender.A1.File = C: Desktop \\ MyLogs \\ data.log # log4j.appender.a1.DatePattern = '.' Yyyy-MM-dd minutes each # log4j.appender.A1.DatePattern = '.' Yyyy-MM-HD-HH-MM # Hour4 log4j.appender.A1.DatePattern = '.' Yyyy-MM-dd-HH log4j.appender.A1.layout = org.apache.log4j.Pat...

sql server - BIRT parameters getting rounded -

I am migrating the BITT report from version 2.6 to 4.4 and are experiencing a very strange problem that is As part of the query the BIST parameter is passed, if I pass 1 as the parameter, the query is executed for 0 and if I pass the parameter as 99 or 101 , The query is executed for 100 query - the rhythm Select data from 1 where realID = ?; Datetime decimal (28,0) for parameters Using DB is SQL Server 2012 I have logged in the value of the parameters in BITT functions ( Before, before and before the closing) and it always corresponds to the parameter value I have passed. Please help me understand or tell me in the direction where I am Any help would be greatly appreciated Note: If I use string from decimal If I convert the datatype, then it works fine if I pass the parameter as part of the query it works fine but it does not work when the parameter value dynamically re-spaces'? In the query, You should also log the parameter values ​​in later events. They m...

python - What's the point of using Distutils for pure modules? -

I recently downloaded the python class of Cltura for my API and it came with a standard distortion setup script. This source also comes with a Python script that includes various modules. I used Distilts setup script with the installed command, and the provided test code works, but I can not load the customer properly and work in other references. Where I am confused about Distrasts fits in here. I already have modules, they were part of the collection I downloaded. Do I Need To Set Up Distinct Setup / Install? Can not I just import the module directly? What does it mean to install? It is not sure that it helps, but here is the setup script: distutils.core import setup setup (name = 'KalturaClient', version = '1.0 .0 ', URL =' http: //www.kaltura.com/api_v3/testme/client-libs.php ', packages = [' CaltraCallant ',' Kultura Client.Plugin '], License =' AGPLL ', details = 'A Python module for accessing the Kultura API...

sprite kit - Kind of platformer game in Spritekit -

I have read that using a physics engine may cause many problems in the game of programming platform type. I am creating something similar to platform games (not classic platform). The game will have platforms, but not many. Game The game will be stairway Hero can shoot foes Hero can jump Hero can reach the stairs by air I have to choose between physics engine and tile tehnick ... The first problems I can think of: Problems with physics engine and ladder because the rules of physics are applicable to the protagonist and their movement, I think That it must it have to work hard to pick up on the ladder, while the physicist body has been set so the dynamic properties. The problem with tile tehnique - how to make a hero falling from the drain while running) Realistic arc (when we use physics, it is done by the engine ...)? And the main problem, based on the type of game I am making, is Shol I call tiles Tehenk (Let's walk to the hero) and to find t...

indexing - How do I make Google (search) to index the text in Android app -

We all know that Google Spider comes from your website and then to update your database so that Google search Appear in . Is there a way to tell Google all the text in their app so that it will show my app's Google Play Store page when a user searches for the keywords used in my app? I looked at the new Android feature of Google Indexing but those deep-links are slightly different. I would like to index the content of my app before it can be found in Google Search Background information: There are many (static) lexical content in TextViews in my app . There is nothing I know. When you publish it to the Google Play Store, Google indexes the text you type in your app's description. Take a look at this: And here's a solid advice on the app's discoverability from you:

winapi - c++ win32 DLL - need to dynamically load a base64 string (very strange!) -

First of all, if the title is not really accurate, then I do not know how I would like to have a single sentence in my problem. The problem I am facing is that I have a Win32 DLL that needs to be dynamically loaded a binary file and do something with it (the binary file is found in the base 64 string, Which DLL then decodes and writes on disk). Very simple, though in principle, here are the problems: I tried to put the string in the resources through external program. It works and it appears in resources (according to rehearsed), but when I try to use it from within DLL, it does not work. And yes, I know that you need DLL, which is not from executable file, in which it is included, it does not work either. I also tried to load the string from any other source (I tried the file, URL and even the registry), but whenever I did it Save in a variable, program crash ("X stopped working" message), I'm assuming that the program that loads DLL did not clean enough ...

css3 - CSS in placeholder on all pages, except but one: howto? -

Hi there are several pages where we want to set CSS . Cms-index -noroute .col- main .std {font-weight: bold}. Cms-index-list .col- main .std {font-weight: bold}. Cms-index-view .col- main .std {font-weight: Bold} We would like to write this CSS like .col- main .std {font-weight: bold} But there is a problem, it breaks everything on the page with the selector . Cms-index-index Question: Is leaving on all pages is the page where it stays inside . Col-main .std {font-weight: bold} is a CSS notation . CMS-index-index placeholder. You can use, . CMS-index-index assuming .col-main : : no (.cms-index-index) & gt; .col- main .std {font-weight: bold; } & lt; Div class = 'cms-index-noroute' & gt; & Lt; Span class = 'Col-main' & gt; & Lt; Span class = 'std' & gt; Span 1 & lt; / Span & gt; & Lt; / Span & gt; & Lt; / Div & gt; & Lt; Div class = 'cms-index-list' & gt...

java - query for Math.random to generate only a certain amount of each number needed -

I'm curious if anyone tells the way to use math.random By generating random numbers 0 and 3, but when it produces two 0 or two 1, then they deny the possibility of creating them? This is for a game assignment for college and what I have left is set to produce two of each number with only one. If someone knows how useful it will be (even if it is using someone other than math.random . The language is Java. So, you basically want to keep track of numbers, okay? A Possible Solution Use an array whose length is the legal limit of your random number, where each cell counts the number of related numbers. Then, for each draw , You check the contents of the respective cell in the array, see if you have reached the limit, if you have done, then repeat and repeat. Note: The language is unknown, but the solution can normally be implemented in any language which provides a random () function.

How to tell NEON instructions from VFP instructions? -

Both neon and VFP instructions are prefixed with V as , such as vpush / vpop Is there an easy way to tell NON instructions from VFP? The VFP instructions are scalar operations, so if the instruction .f32 suffix and s registers, this is VFP if it is running on d or q registers, then it is a neon. If the command contains the .f64 suffix, then this is a VFP instruction (no F64 instructions in 32-bit neon). If the command contains an integer suffix (such as .i8 or .s32 or .u16 ), this is neon ; VFP does not have integer instructions [*] * I'm shining slightly over the scalar conversion instructions. You can read about the details in the ARM reference book.

javascript - jQuery click button don't work after applying filter in kendo grid -

I have a condo grid with a button in the column Click on the first function but when I apply a sort of filter or grid, the click does not work any more This is my code gt; title & gt; table & lt; / title & gt; & lt; body & Gt; & lt; div id = "bord" & gt; Table id = "grid" style = "width: 98%" & gt; & Lt; Colgroup & gt; & Lt; Col / & gt; & Lt; Col style = "width: 60px" /> gt; & Lt; Col / & gt; & Lt; Col / & gt; & Lt; Col / & gt; & Lt; Col / & gt; & Lt; Call / & gt; & Lt; / Colgroup & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; Namore D Affair & lt; / Th & gt; & Lt; Th & gt; & Lt; / Th & gt; & Lt; Th & gt; Etat & lt; / Th & gt; & Lt; Th & gt; Demandeur & lt; / Th & gt; & Lt; Th & gt; Responsible Project & lt; / Th & gt; & Lt; Th...

php - How to hide the password character in html form? -

I want to resize $ password for input input field, because the form is able to post the password to do something later It is possible . I do not want to display any password character in html source code. How to do it Thanks a lot! & lt ?? Do not show password characters in php // html source code ... how? Echo '& lt; Input type = "password" name = "pwd" value = "'. $ Password." "& Gt; ';? & Gt; Use it to hide its password Input type = "password" class = "form-control" placeholder = "Enter your password" name = "password" /> Pre>

Python - how to count number of uppercase letters in a string that is in a list -

For example, if I have this list: s = ["Johnny and How can I calculate the number of uppercase letters in each element of this list of Python? "Annie", "great job people", "he and me"] For this example, the Python 2, 1, 2 should be returned. This is my code so far: def poisci_pare (besedilo): x = [] seznam = [] T = re.split ("[.]", Besedilo) for e: x = x + e.split () in s: if s == s.capitalize () and s.startswith ('' '): Seznam.append (s) This function creates a list where it separates sentences from dots and then filters all uppercase words into it, but I do not know how to calculate uppercase letters. Try it out: For this output Oga: [sum] [2, 1, 2]

mvvm - Input validation on Windows store app -

I have a two-way binding in a window store app using MVVM in which only numeric values ​​should be allowed. What is the proper procedure to use MVVM when a non-numeric key is pressed? INOTifyPropertyChanged value is being converted as text boxes Focus loses I basically want quick verification of your qualities I could not find a simple example of the Why not create an affiliate property to include this behavior? Something like this: public class TextBoxHelper {public static bool GetRestrictToNumerical (DependencyObject obj) {return (bool) obj.GetValue (RestrictToNumericalProperty); } Public static zero SetRestrictToNumerical (dependency object obj, bool value) {obj.SetValue (restricted ToNumericalProperty, value); } Public static DependencyProperty RestrictToNumericalProperty = DependencyProperty.RegisterAttached ( "RestrictToNumerical", typeof (bool), typeof (TextBoxHelper), New PropertyMetadata (wrong, onRestrictToNumericalChanged)) read-only; Private Statik A...

html5 - Is there a way to stack divs on top of each other using flexbox syntax? -

Flexbox problem is expected that someone can help you :) I created cards from divs Trying to make a deck and stacking them on each other as you are using the situation: absolute Is there a way to overlay the device at each other using Flexbox? One way to achieve this is to set a negative margin " snippet-code-css Lang-CSS toppint -override "> .deck {display: flex; Height: 200 pixels; Flex-direction: column; } .card {height: 100px; Width: 60px; Flex: 100px 1 0; Border: Solid 1px black; Boundary-radius: 5px; Margin-down: -80 pixels; Background color: white; Box-shadow: 3px 3px 3px gray; } & lt; Div class = "deck" & gt; & Lt; Div class = "card" & gt; 1 & lt; / Div & gt; & Lt; Div class = "card" & gt; 2 & lt; / Div & gt; & Lt; Div class = "card" & gt; 3 & lt; / Div & gt; & Lt; Div class = "card" & gt; 4 & lt; / Div & gt; & Lt; D...

PayPal Refund DoReferenceTransaction -

I thought I have read somewhere that you do not return a round reference transaction and return the reference of the transaction. I vowed that it works, but now it is not at all. Is there any such feature in PayPal where you can refund all reference transactions by refunding your parents or do I need to return each context transaction individually? If the latter is correct, then is there any way to return many transactions to PayPal without multiple calls? "post-text" itemprop = "text"> No Each transaction is a separate transaction and it will require a refund using the Refund Transaction API using one-time-one.

Unable to search attachment type field in an ElasticSearch indexed document -

Search does not return any results, though I have a document that must match the query. I have installed the Allyx Search Mapper-Attachment plug-in, I have also browsed the topic as well as the same questions in the browsed stack overflow, but they have not received any response . It is that I have typed in Windows 7 command prompt: c: \ Java \ elasticsearch-1.3.4> curl -XDELETE localhost: 9200 / TC { "Approved C: \ Java \ elasticsearch-1.3.4> Curl -XPUT Local Host: 9200 / TCE / {\" Contact \ ": {\" my_attachment \ ": {\" type \ ": \" Attachment \ " }}} {"Approved": true} c: \ Java \ elasticsearch-1.3.4> curl -XPUT localhost: 9200 / trace / contact / 1-D {\ "my_atta chment \": \ "SGVsbG8 = \" } {"_index": "tce", "_ type": "contact", "_ id": "1", "_version": 1, "created": true} c: \ Java \ elasticsearch-1.3. 4> ...

dynamics crm - Generate Paging Cookie for CRM RetrieveMultiple Plugin -

I am in a strange situation, I need to create a paging cookie for CRM which is usually the CRM service (below) Why is more) However I can not find any documents it schema or cover it. I have deduced that the format is as follows, can anyone confirm this?: & Lt; / Cookies & gt; In my situation I have written a retrieve multi-layered plug-in which returns a pseudo-unit that is actually present in an external database because the organization is not bringing data, I can not trust the CRM provide this value for me. The paging cookie is necessary to iterate over the odda questions, even if it is completely ignored by its plugin which is free to use its logic, when I have a verification message The skip querystring parameter is included: [- 2147220715]: Paging cookies are required to get more records. Is there any way to suppress this error message? I have done an inquiry in the paging cookie format, these are my conclusions, I update these findings If new f...

ios - Who's responsible for calling viewWillLayoutSubviews()/viewDidLayoutSubviews() in a custom UIViewController container? -

एक कस्टम UIViewController कंटेनर (एक UIViewController UIViewControllers और उनके विचार) जो कॉल करने के लिए जिम्मेदार है और? मेरे कंटेनर वर्ग के पास दो उप-नियंत्रक हैं, जिनमें से न तो इन विधियों को माता-पिता के दृश्य नियंत्रक में ले जाने पर बुलाया जाता है। UIViewController के दस्तावेज को ट्रिगर करने के तरीके के रूप में प्रलेखित किया गया है viewWillAppear () , देखेंविलिसआप () , viewDidAppear () , और viewDidDisappear () लेकिन मुझे viewWillLayoutSubviews () / viewDidLayoutSubviews () । सबसे अच्छा के रूप में मैं मूल उपयोक्ता नियंत्रक (जो इस मामले में प्रस्तुत किया जा रहा है) को पहचान सकता है इसके उप-नियंत्रक कॉल करने के लिए जिम्मेदार है देखेंविल्लेआउटस्यूव्यूज () / देखेंडिडलेआउटसमूह दृश्य () उन तरीकों के अपने स्वयं के कार्यान्वयन में कुछ परिस्थितियों में ढांचे के इन तरीकों को कॉल करने के लिए लगता है (जैसा कि आप rootViewController UIWindow की संपत्ति सेट करते हैं) परन्तु अन्य नहीं (जैसे जब आप addChildViewController () कॉल करते हैं) / Code> में UIViewController...

visual c++ - Why GetLastError() returns ERROR_RESOURCE_NAME_NOT_FOUND? -

मैंने इस कोड के साथ VS2010 C ++ खाली समाधान बनाया है: #include "कन्मैट एच" # # "संसाधन।" को शामिल करें # शामिल करें & lt; iostream & gt; # शामिल & lt; afxwin.h & gt; # शामिल करें & lt; atlimage.h & gt; शून्य मुख्य () {सीमेज बीएमपी; bmp.LoadFromResource (AfxGetInstanceHandle (), RES_BMP); Std :: cout & lt; & lt; GetLastError () & lt; & lt; std :: endl; प्रणाली ( "थामने"); } मैंने एक बीएमपी फाइल को एक संसाधन के रूप में जोड़ा है। यह काम क्यों नहीं कर रहा है? यहाँ conmat.rc फ़ाइल है, जिसमें (मेरे दिमाग में) बिटमैप चित्र को रंग में बनाया जाना चाहिए // Microsoft Visual सी ++ उत्पन्न संसाधन स्क्रिप्ट // #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS //////////////////////////////////// ///////////////////////////////////// // TEXTINCLUDE 2 संसाधन से उत्पन्न // #include "afxres.h" /////////////////////////////////////// ////////////////////////////////// #undef APSTUDIO_READONLY_S...

javascript - angular single $http request, node shows two requests -

Image
Showing two requests on a single request node in angular, undefined in the form of an X-at-token and another token with. I finally saw the result of errors in the node in my corner frontend (attached screenshots). angular code: var itself = this; Var $ http = angular.injector (["ng"]) Obtain ("$ http"); Var authToken = localStorage.getItem ("authToken")? LocalStorage.getItem ("authToken"): config.authToken; $ Http.defaults.headers.common ["X-Auth-Token"] = authToken; $ Http.get (Config.url) .success (function (data, position, header, config) {self.onResult (data);}). Terror (function (data, position, header, config) {console.log (data); // This is empty console.log (condition); // stauts is 0 console.log (header); console.log (config) ; Self.onFault (data);}); node. Js var self = this; App Use (function (request, response, next) {response ("X-power-to-A", "FIC"); response title ("access-cont...

debugging - Xamarin monotouch can't run simulator in debug mode -

Image
After updating the latest HTML version, I can not run my project in simulator in debug mode; . Examiner would not have allowed me to choose a destination for debug (see in the screen shot attached). In addition to a screen shot Also added release mode where you can see that I have the option of choosing a simulator. I worked with Zardari for more than a year and there was no such thing.

php - Wordpress - Ec2 elastic ip is shown instead of domain name in wordpress -

When a user touches and selecting the Home link from my Elastic IP from EC2 If displayed is displayed. I would like to appear 48 times in the ad bar for nn.ca/48. Thanks for the help I am a huge Noble. The home link uses an IP address My guess is that your code is in any way Is using the internal host name server instead, instead of the host name used in the browser to generate this link. You may consider replacing / rather than the entire server name. By looking at your header, it seems that you are running PHP, my guess is that you have to generate this hostname of this link to $ _ server ['SERVER_NAME'] or $ _ SERVER ['SERVER_ADDR'] , when you should be using $ _ server ['HTTP_HOST'] or you just / as I mentioned earlier. I answered the previous question about the difference between these variables: I hope you find it useful.

linux - execute script url from a reply to email using PHP -

I want to create a system where the user can only respond to the email whose one it is. What is required to do this: Once the user replies to the email, that email does not go to any user, it will execute a URL with the GET parameter which triggers a script that updates the database. And another user sends an email. Let me explain again: User A goes to the system to insert his message, his message will send a notification to User B, User B will reply to it, but instead of sending User A, This will update a database and inform the user A that User B has sent a message. The main point is that users A and B. do not communicate directly with each other, only allows them to communicate to use the system. P> I need to use PHP If someone can help me or point me in the right direction, then I would appreciate it !! Thank you! If you have access to system users, then you have a php script in it. Or run a php script via cron / wget that enters the email account and processes...

javascript - When Does Marrionette ItemView onClose method get called? -

I'm trying to use an onClose event to clear a scene before removing it; However, for some reason it is never called, I have tried to call the area. Empty, region.reset, showing a new view in this area and even destroying the area and does not seem to call the method just. Is there any specific time that this incident was raised? Thanks in advance. from version 2.0 to current version v2.2.0 ItemView of armor The methods have changed its name. There are so many other changes and enhancements. Please check.

batch file - Access folder on network drive with username password -

I currently have a script which installs a program from a network drive silently. However, the problem is that I have to enter a username and password to access these files Does anyone know how I can do this? This is what I currently have start / "" wait \ "network drive \ setup.exe" / adminfile "% ~ dp0outlook2013.msp" do i just need to end {password} USER: admin ? A solution is to temporarily install a network drive Pure Access has been suggested by the use. Use @echo off% SystemRoot% \ System32 \ net.exe Z: \\ Computer \ ShareName \ password / User: Administrator / Constant: No Start "" / Wait Use Z: \ setup.exe / adminfile "% ~ Dp0outlook2013.msp"% SystemRoot% \ System32 \ net.exe Z: / delete / yes parameter / persistent : No Disables the storage of the network In case of batch file, the user who executes this batch file will be able The mapping of the drive mapping drive has been abolished by the user ...

In BPMN, should data objects appear at the source, destination or both? -

Image
Pending: I sign a receipt for a pizza in Pizzeria and receive a copy of it. I take that receipt home and log in it strictly. Whether the data object represents the receipt, most properly appears at the point at which I sign (make an object) or at the point where I log in it with a smooth (ending with object) . Here's how it will work ... In much more complex documents, is it appropriate to have a duplicate instance of receipt in each floating? What would be the most proper signaling? Use the data object shown in your diagram correct . Displaying the data object is optional in BPMN, it means you can decide to show important aspects, but not all the data involved is required to be displayed: just because you are not certain aspect It does not mean that it is not there, except that you can show just like the point of change (similarities / updates / delete) (point to the data object and A colleague showing) as well as the only point of the consumer (Reading) (a data o...