Posts

Showing posts from August, 2012

c++ - Is a program, that doesn't use a default argument that would fail to bind to a reference parameter, legal? -

निम्नलिखित पर विचार करें: #include & lt; iostream & gt; टेम्पलेट & lt; typename T & gt; Struct Foo {Foo (टी v = {}): var (v) {} टी var; }; Int main () {// फू & lt; int & gt; च; // int x = 42 को संकलित नहीं कर सकता; फू & LT; पूर्णांक में & amp; & gt; f (x); Std :: cout & lt; & lt; f.var; } यह जीसीसी 4.8 में बना और सफलतापूर्वक चलाता है, लेकिन क्या यह कड़ाई से कानूनी है? T v = {} है T = int & amp; के लिए अमान्य है, लेकिन इस डिफ़ॉल्ट तर्क का उपयोग नहीं किया जाता है। मानक में पा सकते हैं केवल प्रासंगिक भाषा स्पष्ट रूप से यह स्पष्ट नहीं करती है कि यह कार्यक्रम मान्य नहीं है; विभिन्न तरीकों से इस विषय को छूने के बावजूद निम्न में से कोई भी पूरी तरह से प्रासंगिक नहीं है: [C ++ 11: 8.3.6 / 1]: यदि कोई प्रारंभिक-खंड पैरामीटर-घोषणा में निर्दिष्ट किया गया है यह प्रारंभिक-क्लॉज एक डिफ़ॉल्ट तर्क के रूप में उपयोग किया जाता है डिफ़ॉल्ट तर्कों का उपयोग कॉल में किया जाएगा, जहां अनुगामी तर्क गुम हैं। [C ++ 11: 8.3.6 / 5]: एक ड...

javascript - How to pass a ng-repeat variable in ng-if? -

I have ng-repeat in the first line of code, in the next line I need to create a dynamic variable Get in the twilight. Code will look something like this: & lt; Div ng-repeat = "head in headofhead" & gt; & Lt; Span ng-if = "canIbecreated _ {{head}}"> I have been made !! & Lt; / Span & gt; & Lt; / Div & gt; Where Saurofide = ["1", "2", "3"]; But this creates an error, while in the same way I can easily pass {{$ index}}. Why are the rings present in Anguluj? I do the controller var canIbecreated_1 = "false"; Var canIbecreated_2 = "true"; Var canIbecreated_3 = "false"; To make the crate and not to make the duration. ... ng-if = "some funk (head)" ... ng-repeat should do this trick inside the block.

SSRS 2008 R2: How to design students result spreadsheet using crystal report -

I have a dataset with different fields, first 5 fields are fixed, while the remaining names and the total number change both Are there. How do I add my unknown field to my table? I had thought of writing a code that is thinner through my fields and from the 6th field to the last, in my tabelles, a column is inserted, but I do not know how to go about it - I wonder if It is possible or if this is the best way to solve my problem I am also new to ssrs and have not written any code yet. Your thoughts are highly appreciated Thank you in advance. I've lost some hair trying to solve it. For those people who may face such a problem, though I believe that there can be a better, less stressful way, before this work is for me, try to explain my problem before : I would like to create a report that has both static and dynamic columns (such as a student grade spreadsheet, where courses differ with faculty, session and semester). My main issue was how to get my dynamic results in the...

rust - call WinAPI without unsafe block -

I just started to learn Jung and want to know that it is possible to call WinAPI functions without the insecure ? External crate libc; Fn Main () {insecure {libc :: funcs :: Extra :: kernel32 :: GetCurrentProcessId (); }} No, it is impossible, because they work directly in the external Binding is the C library, just like almost everything else in the libc format it can not be clear with functions like GetCurrentProcessId () but these actions are which to take unprotected and raw signal and null-ending formula is a lot of them because there. There should be a proper safe cover, for any other c library, without calling them unsafe without calls. There is no such cover till now, as far as I know. But you can only write one for the subset of the WinAPI function you need, it should not be very difficult. You can write safe wrappers for external libraries and find out more about this.

ios - fatal error: unexpectedly found nil while unwrapping an Optional value play audio files -

I am using a menu that shows a list of songs on the right, while clicking on that play button The code will be available for the following: Fancy Place selected Song (Sender: UIButton) {If sender.titleForState (UIControlState.Normal) == "Play" {sender.setTitle (" Stop ", forState: UIControlState! .normal) if player = zero {player.stop ()}} else {if player = not equal, then {{player.playing player.stop () on cell = tblSongsList.cellForRowAtIndexPath (NSIndexPath (ForRow: lastPlayIndex, insec Tion: 0)) btn: UIButton = cell .contentView.viewWithTag (11) as UIButton btn.setTitle ("Stop", forState: UIControlState.Normal)}} sender.setTitle ("Play", forState: UIControlState .Normal) playIndex = Sender Title forrestate (UIControlState.Selected) ?. TOI NT () var Item Collection: MPMediaItemCollection! = ArrData.objectAtIndex (playIndex!) As MPMediaItemCollection if itemcolletion! = Zero {var item: MPMediaItem! = Itemcolletion.representativeItem MPM...

nlp - Identifying and comparing syntactic structure of questio-sentence -

I am getting a user query and trying to understand the syntax. My goal is to identify the exact quote sentence from the question entered by the user. Like Obama is the President of USA, who is his wife? So I am able to implement the Anaphora resolution and point to its to Obama I can convince and punish the above. Obama is the President of America, who is Obama's wife? But how do I get the exact question from the sentence i.e. Obama's wife I try with the code I can identify> Pylinkgrammar which gives 54 links to the above sentence, like linkparser> Linking 54, Cost Vector = (Absent = 0 DIS = 8.05 LAN = 24) + -------------------------- XP- ---- ------------------------- + ------------------- --- & gt; ; WV ---------------------- & gt; + | + ------------------- Xx ------------------- + - - & gt; WV- & gt; + --- SIS --- + | + ---- wd --- + - ss - + - om - + --- mp - + - js + + + + - q- + ds ** c + + - | | | | | | | | | | | | L...

erlang - When should one do Synchronous or Asynchronous sending? -

synchronous call : The call that will send an answer is expected. asynchronous call : calls that will send (block current process) Although I understand the concept of sync and async , But when it comes to converting these concepts, I usually fail. Indicates how Deadlock can be avoided to sync calls to send the ADC Call Call with other processes and send data to themselves. My question: How can one person choose sync or asynchronous calls while creating a real world application in ARLing / OTP. "post-text" itemprop = "text"> Rule of my thumb: -> Use asynchronous message -> If your process requires a result and can not do it, some synchronous messages (easy to read) can be used. > -> If your process requires a result and you should not do anything use synchronous calls in use

arrays - PHP - JSON does not made output -

I wrote a code that outputs all the terminals, I have the day. For this the calendar has already expired but program output, I do not want to work with dragon. My code: & lt ;? Php mysql_connect (deleted); Mysql_select_db ("DB1367141") $ day = date ("D"); $ Month = date ("m"); $ Year = date ("Y"); $ Result = mysql_query ("Select days where select entries from day = '$ day' and month = '$ month' and year = '$ year' order hours DESC, minutes); $ Array = {}; While ($ obj = mysql_fetch_object ($ result)) {if ($ obj-> hour! = "-") $ hour = splitf ("% 02d", $ obj-> hour); And $ hour = $ obj- & gt; Bell; If ($ obj-> minutes! = "-") $ minute = splitf ("% 02d", $ obj-> min) and $ min = $ obj- & gt; Minute; Array_push ($ array, {"hours": $ hour, "minutes": $ min, "text": $ obj- & gt; tex}); } Var_dump ($ array); Echo json_...

javascript - Can't start Node js server in the example application of Angular -

I downloaded the Koner Phonecat example phoject, moved to this directory and tried the 'NPM Start' command. Results: 0 information it works, then it is OK 1 verbose CLI [ 'node', finish with 1 verbose CLI '/usr/local/Cellar/nvm/0.17.2 /v0.10.32/ bin / NPM ', 1 verbose Klee' Start '] 2 info npm@2.1.4 using 3 total node@v0.10.32 4 verbose run-script [ "Prestent' Start ',' Poststart '] -phonecat@0.0.0 6 verbose lifecycle true 7 prestart unsafe-perm exec information script 8 verbose stack error failed angular-phonecat@0.0.0: angular-phonecat@0.0.0 prestart: `NPM install` 8 verbose Exit Stack Status 3 8 Verbose Stack on Child Process. & Lt; Anonymous & gt; (/usr/local/Cellar/nvm/0.17.2/v0.10.32/lib/node_modules/npm/lib/utils/lifecycle.js:212:16) 8 verbose stack ChildProcess.emit (events.js: 98: 17) 8 maybeClose (child_process.js verbose ads: 756: 16) 8 verbose stack Process.ChildProcess._handle.onexit (child_process.js: 823: ...

Exception in thread "main" java.util.InputMismatchException "double" input error -

First of all, I have read many threads about this error, but no one solves my problem. Here is my code: import java.util.Scanner; Public classroom programa1 {public static zero main (string [] args) {scanner s = new scanner (System.in); Double strana_a, strana_b, strana_c; Strana_a = s.nextDouble (); // strana_b = s.nextDouble (); // strana_c = s.nextDouble (); Println (strana_a); S.close (); For example, when I type 8.0, I see this error, what am I doing? 8,5 , and do not 8.5 ), or use the appropriate locale for the point scanner Initialize to, such as: scanner scanner = new scanner (system.इन) .USLokel (local.US);

How can Azure notify me when my primary database becomes unavailable? -

I have an active geo-replication setup for the primary SQL Ezur database. How can i be informed that database issues Due to my primary data is not available, can I start our application failover process? Also, how does traffic manager notify failure events? On most mass outs, your application connectivity will be affected so it is possible that An application will appear as a warning. So your real question is, what else do you want to check to make sure that this is a real accident and the failure of the failover. The answer to that question depends on how your failover process is setup. If it involves a human step, eg Someone has to accept the failure due to its effect, you may want to check the alert in the portal. If this is an incidental warning of a regional level other than an event alert, then you will see your logical server marked as degraded. If you want to install a fully automated process, you want to check the replication connectivity status. You can do the sys...

javascript - Use a variable in PhP script passed by $http.post -

$ http.post to use any kind of revenue for php scripts Use this ID for mysql request to send ID. This is my controller: function ProjectDetailsCtrl ($ scope, $ http, $ timeout, getGoodIdProjectDetails) {$ scope.idProjectDetails = getGoodIdProjectDetails.getId (); // ID Project Getting $ Range $ Emit ('LOAD') $ scope.url = 'Script / Find ProjectDetails.php'; $ Http.post ($ scope.url, {"idProject": $ scope.idProjectDetails}) Success (jobs (data, status) {$ scope.projectDetails = {}; $ scope.projectDetails.details = details; $ scope $ Emit ('UNLOAD')}) Error (function (data, position) {$ scope.data = data || "request failed"; $ scope.status = status;}); } idProjectDetails is a number. then php script: & lt; Php $ IdProject = json_decode ($ _ POST ['idProject']); Returns the php script that $ idProject is undefined. Can you help me with this? EDIT: I tried this way but my app crashed with it: $ http.de...

netbeans - Is faces-config.xml file automcatically create? -

I tried to create a simple JSF Facelift project in the Netbeans IDE. I have Netbeans Select framework - Java server has to be faced - Registered Libraries is JSF2.0. The favorite language is the femmelet. Do I need to create face-config.xml file manually in the face-config.xml Netbeans IDE file under Web-INF or will the Netbeen IDE be generated automatically? JSF 2.0 does not require faces-config.xml I have no Netbeans installed yet, but If you want to create face-config.xml, you should try: new file - & gt; JSF - & gt; JSF Chase Config .

php - want to get values from array -

After I want to get the value of the file name in the meta_data array . I want to get this value down: thumbs_M_73c0e89c3b5b44c030f727649980f5e0.jpg . I tried the following code, but the value was not found did not work:. foreach (AS $ $ Image Gallery) {foreach ($ image & gt; Meta_deta [ 'thumbnail'] as $ image) {print_r ($ image); } Here are my array Array ([43] = & gt; nggImage Object ([_ngiw] = & gt; C_Image_Wrapper Object ([_cache ] = & gt; array ([alttext] = & gt; M_73c0e89c3b5b44c030f727649980f5e0 [author] = & gt; 1 [description] = & gt; [Errmsg] = & gt; [error] = & gt; [exclude] = & gt ; 0 [extras_post_id] = & gt; 20589 [filename] = & gt; M_73c0e89c3b5b44c030f727649980f5e0.jpg [galdesc] = & gt; [galleryid] = & gt; 1 [gid] = & gt; 1 [hidden] = & gt; [href] = & gt; [Imagepth] = & gt; [Imjurl] = & gt; [Imej_slg] = & gt; M_73c0e89c3b5b44c030f727649980f5e0 [Imgdate] = & gt;...

Set css property using javascript-jQuery function -

I need to dynamically update css properties, Actuall CSS property: # control and gt; UL & gt; Li: Hover: After {top: 100px; / * Other property * /} I have to set top = -100 pix dynamic. What did I do: $ ("# control and gt; ul> gt: li: after hover:"). CSS ("top", "-100%"); // This is not working The second option I tried: A new CSS class was created: .topTip {top: -100%! Important;} then $ ("# controls> ul> gt: li: after hovering"). AddClass ("topTip") // is not working again Please suggest that you have other options. Thanks for looking at the questions More Explanation This tooltip is used for UI, when mouse on the li tag Hover to ** HTML: ** Currently (default) Tooltip "Subscribe to success" under visible text Complete CSS: # control and gt; UL & gt; Li: Hover: After {status: complete; top 100%; Left: -5px; Padding: 0 10px; Margin top: 5px; Cont...

SPARQL query returns no results when a property path is present -

The following query returns some results which are scots: detailed set as category: History Subject where {? Subject skos: wide range: history} though instead of skos: with sketch: broader + or skos : Broader * gives no results. Why is it like this? I hope that at least the first query will be the official candidate to get the given results. I am using SPARQL front end here: all does not support this may be such a case Where you have participated in some internal borders, you can guess the results that you want from a query like the following, however: select? Category {? Category} skos: Broad {, 7} Category: History} It only follows the path of length seven or less {m, n} Nation for the property path is not part of SPARQL 1.1, But the initial draft was in, and the virtuoso supported it in questioning the question is convenient to limit the resources used, and this is a good use case.

office365 - Office 365 API SharePoint Taxonomy and Metadata -

I'm unable to get the Office 365 API documentation about receiving "classification" / metadata about files. It is possible to create custom columns in SharePoint and store additional information there, but I am not able to get it through API.

php - Split document by specific character, then split further into vars -

I am trying to do the job that I have the best to split some data. Whether in more than one different arrays, or nested arrays, or something different. I have a file that holds titles, file names and dates for many different items. Each item is separated with the ^ character, and each part of the list is different with the tilde ~ Looks like this: After example, an example-one-one ~ Friday, October 17, 2014 ^ wifining for the mobile web ~ for the route-pand-mobile-web ~ Friday 17 October 2014 ^ I created a function that captures the data and divides it into an array using ^ Interpretation is: function getPostList () {$ Masterposts = "../posts/master-allposts.txt"; $ Current = file_get_contents ($ masterposts); $ Masterpostlist = Explosion ('^', $ current); Return $ masterpostlist; } And the result is something like this: array (3) {[0] => String (46) "Example Post One ~ Example-One-One ~ Friday 17 October 2014" [1] => Stri...

java - Sort a linked list in O(n log n) with O(1) space complexity -

This is a sorted list problem on LeetCode I have created a Java solution but due to this, the time limit on a very long test case has occurred. And I did not find a bug in my code. Can anyone tell where the bug is? thanks a lot. class ListNode {int val; List node next; ListNode (int x) {val = x; Next = null; }} Public Class Solutions {Public Listord Sartelist (List Needed Head) {Return this sorting (head, blank); } Private ListNode sortpart (ListNode start, ListNode end) {if (start == null) return null; If start (start == end) start; ListNode l = start, r = start, p = start.next; While (p! = Null & amp; p! = End) {if (p.val .. & lt; start.val) {// Current node is less than the start node. Nnx = p.next; P.next = l; L = p; // Set the current node as left p = start.next; // go to the next node} and {// the current node does not start node R = P; // Set the current node as equal and go to next node P = p.next; }} // recursive sort left part and right side sort part (L, start...

html - Bootstrap 3 Active Menu State Colour -

This can be simple, although I can not seem to complete what I want. Actually, I have tried many CSS, but this is my present: ul.nav A: Active {background- Color: # 3366CC! Important; } The use of the navbar is followed: & lt; Nav class = "navbar navbar-default navbar-static-top" role = "navigation" & gt; & Lt; Div class = "container-liquid" & gt; & Lt ;! - Brand and toggle are grouped for better mobile display - & gt; & Lt; Div class = "navbar-header" & gt; & Lt; Button type = "button" class = "navbar-toggle" data-toggle = "collapse" data-target = "#bs-example-navbar-fall-1" & gt; & Lt; Span class = "sr-only" & gt; Toggle Navigation & lt; / Span & gt; & Lt; Span class = "icon-bar" & gt; & Lt; / Span & gt; & Lt; Span class = "icon-bar" & gt; & Lt; / Span & gt; & Lt; Span...

linux - Cloudera Manager Failed to authenticate : Exhausted available authentication methods -

I am currently trying to figure out how I can install and configure Claudera before installing it. Installed in Virtualbox, Ubuntu 14.04, Claudera Manager. I would not want to try it on a pseudo-single node (only my computer: a cluster). I manage to finish the installation. After that to specify the host for your CDH cluster installation; LocalHost 127.0.0.1 My problem is "Provide SSH login credentials". Step To install Claudera packages, your hosts need root access. This installer will connect to your host via SSH and enter the route as the root directly or pass the password-less Pudo / Perennial privilege as another user will enter the root form. Login to all Hosts: Route You can join the password or public-key authentication for the selected user above. Authentication method: All hosts accept the same password - Enter password: ********* - SSH port: 22 Then continue button moves to The installation failed on all hosts. Installation failed Failed to authen...

dojo - domAttr.set(item, 'onclick', 'function(myObject)') doesn't work -

I would like to set the onClick event in my object which will take an ARD in the function object. Similarly: items = domConstruct.create ('li'); DomAttr.set (item, 'internal HTML', structure.label); DomAttr.set (item, 'onClick', 'this.myfunction (' + + + structure + ')'); The problem is: syntax error: missing] after element list it. Myfunction ([object object]) I know that it works with instructions: items = domConstruct.create ('li') ; DomAttr.set (item, 'internal HTML', structure.label); DomAttr.set (item, 'onClick', this.myfunction (structure)); But this method executes myfunction without clicking on an item. I just execute the code in the item ( li ) and then myFunction () , but the function requires an argument. Edit: Thank you very much for your reply but I have already tried this way, it also does not work. There is no error, but my AM is not on 'Li'. In the HTML console...

functional programming - How to make a python organic chemistry retro-synthesis generator? -

I am trying to learn a dragon by creating a simple program that creates a specific type of practice problem, biological chemistry Students usually face exams: retro-synthesis questions. For people unfamiliar with this type of question: The elementary and final species of a series of chemical reactions are given to the student, then it is said to determine which reagent / reaction was the last Performed for the initial reactor to obtain the product. Sometimes you are given only the final product and are asked to list the necessary reactions to synthesize some parameters (start with only 5 carbon or less complex, only Use alcohol, etc.) By now, I have done some research, and I think that RDkit is a good place to start w / dragon. My plan is to use the smiley format to read the molecules (because I can manipulate it as a string), then define the work for each response, in the end I will need a database of chemical species, The program which randomly selects the species (inital a...

python - Number to bytes -

I have a large number that basically has a binary wall of 2. How can I write those bits in a file? Can I read raw bytes and what can I create numbers without accumulating the actual number? Also, how can I decode a raw byte after coming into the file? Binary: 0b101010011000010000 Decimal: 173584 Byte: ??? If a random, arbitrary long sequence of beats represents non-negative base number 2, So 8 groups of those bits can be considered on the number of base-256 numbers and they can be written as a string of 8-bit characters. After reading the string back to the process, String back to original number D Can be coded. The following is what I have received from the question. def base256_encode (n): # for non-negative integer byte string if n & gt; 0: arr = [] while n: n, rem = divmod (n, 256) arr.append (chr (rm) returns) '' (Reverse (arr)) elif n == 0: return '\ x00' Else: increase valueError ("Negative value can not be converted into a byte string...

javascript - Unable to return results from JSON flat file with HTTP get call in AngularJS -

I am trying to remove a hardcod array outside of my code and can convert it to a successful file at any time , So I'm using HTTP to do this. With the code given below, this is not returning the structure in such a way that I can iterate it in my markup. Also, for some reasons when I look at the firebug and look at the requests, it seems to make the call 4 times (!). var app = angular Module ('Menu Event App', ['ClaudeRayer']); App.service ('MainEventRepository', ['$ http', function ($ http) {this. $ Http = $ http; this.getMainEvents = function ()} This return. $ Http.get ('/ main_events.json' ). Then (function (feedback) {return response;}}}}}]); App.controller ("MainEventCtrl", ['$ scope', 'MainEventRepository', function ($ scope, MainEventRepository) {$ scope.main_events = MainEventRepository.getMainEvents ();}]); [{"Id": 1, "Roman_Ameloel": "I", "name"); main_ev...

java - Thread is interrupted by calling interrupt(), but Thread.isInterrupted() returns false -

I am testing the interrupted exception with the following test code: Runnabal Runman = New Runnabal () {@Override Public runs zero () (for (int i = 0; i & lt; 6; i ++) {System.out.println ("i =" + i); if (i == 3) {System.out.println ("I == 3, Thread =" + Thread.wrenchseed (). GetId ()); // I invoke interrupt (at work thread) Thread.currentThread () In the middle (). Try {Thread.currentThread (). Join ();} Grip (Interrupted ejection e) {// I took the interruption lifted expression System.out.printLN (Thread.currentThread (). GetId () + "is interrupted!"); Thread.currentThread () between ().;}}}}}; Thread working thread = new thread (runema); Try workingThread.start (); {WorkThread.join ();} Grip (Interrupted eXpression E) {// SELLO} // The following logs show me the work Thread. This interrupted () is wrong, why? System.out.println ("working thread" (interrupted + "workThread.getId (+)")? "+ WorkThread.isInterrupted ()); ...

amazon web services - Cloud Foundry router cannot find api.xx.xxxx.com/info (AWS) -

This summary is not available. Please click here to view the post.

javascript - HTML5 & JS: Getting Image Width -

संपादित करें: मैंने markE सुझाव दिया छवि को लोड किए जाने के बाद संदर्भ देने के लिए ज़रूरी है। '। Onload' फ़ंक्शन का उपयोग करके, मैं इसे प्राप्त करता हूं। फिर, छवि का संदर्भ देने के लिए, मैं बस 'this.width' टाइप कर रहा हूं, क्योंकि मैं छवि के दायरे में हूं। संपादित करने का अंत मेरे कैनवास ऑब्जेक्ट को विभिन्न छवियों को आकर्षित करना है ये छवियां मूल रूप से वस्तुओं के दृश्य हैं जब एक छवि की चौड़ाई प्राप्त करने का प्रयास करते हैं, तो मुझे एक घटिया शून्य के साथ छोड़ दिया जाता है: this.image = new image (); // src कन्स्ट्रक्टर के लिए एक पैरामीटर है जो इस कोड में चल रहा है। This.image.src = src; console.log (this.image.width); यह कोड, जैसा मैंने समझाया, शून्य देता है। अब तक, मुझे पता है कि लौटे हुए चौड़ाई छवि के प्रारंभिक कन्स्ट्रक्टर पर आधारित है - इस मामले में, 'नई छवि ();' भाग इसलिए, यदि कुछ भी पैरामीटर के रूप में डाला नहीं जाता है, तो वह शून्य के रूप में गिना जाता है। हालांकि, अगर मैं उदाहरण देता हूं: this.image = new image (2, 2...

Google Search - Url pattern - One result per domain -

I'm trying to do a Google search for a URL pattern: "/ travel-" and my search results Restrict to domain. Is this possible? I have tried: allinurl: "/ travel- *" inurl: "/ travel- *" site: "/ travel- *" How to obtain the definitive results ... If there is any other URL crawler tool besides this, then this functionality is, t do not hesitate to point it out! Thank you. Solution on web application 0 Skake exchange Created a graysmunki script to help with the problem. Well, I have written a script to fix it. I do not have much JavaScript experience, but it seems that it works well. I'm still surprised that someone has written something like this so far It was driving me crazy More information on script: Hide multiple results from one domain in Google Last update - 27 November 2013 - installed 1,573 times. Solution 1 Recommend using DuckCheck because it provides less duplicate domains than Go...

node.js - Long-polling (user notification) with a RESTful architecture -

I am working on a simple restine API (on nodes) I think that the comfort means horizontal scaling is very much Unfortunately, I need some methods so that customers can be notified about certain incidents. For this reason, I was thinking of voting for a long time. I have a question about how it works with multiple servers. For example, here is an easy-to-use case: Both servers A and B are behind a normal load balancer User Alice posts a message on Bob's wall (request on server A) If Bob is online, he should be notified immediately (Long time voting on server B) How can the server send information to a bob, or does Server B know that Bob should be notified? First of all, I do not know that to handle your notification channel on both clients and servers Why not use something like socket.io ? If available, will use web sockets (more efficient than longer voting) and then fallback in long pedestrian if there is no web socket. There are several ways to handle the issue of...

jquery - Off-Canvas Scrolling Separately from Page -

So I have run a very simple problem just as I have noticed that so many mobile sites have their navigation on my mobile On the site I am using the Foundation Off-Canvas "Plugin" which offers to handle my navigation. However, I have participated in the issue that when I open it and start scrolling through navigation, the canvas on top of that page also starts scrolling up. Can I stop default content from scrolling with navigation to stop the page behind off-canvas navigation? As far as the code goes, everything is straight from the foundation. Apart from how I look in navigation styles, I have not manipulated too much functionality is still the same and it is coming from the left side of the page if it helps in all I do not know what this helps, but posistian: fixed; In the navigation css file, and position: Completed; or position: relative;

rdf - Download all instances of a dbpedia ontology class -

I want to download all types of objects d0: Inhibition of DBPDA in N-Triple format. The query is in: dESCRIBE? X WHERE {? X rdf: type d0: location} but I will expire. Is there any easy way to download such a database? If you are downloading a lot of data from DBipedia, you should probably download the data dump and The end point of self should run locally, but if you want a list of a list of specific types of people, you can use the Select query: Select the location where there is a place for the place? Place # - # Order Off Work Limit for Offset Order # 1000 - How To Get Offset 3000 Off To Many - Where To Start In The List If you actually return the RDF data If you want, you can convert it to a build query: where location {? Place A d0: place} command? Location Limit 1000 Offset 3000

for loop - FOR /F processing of CSV with differing number of variables -

I am trying to write batch scripts to move thousands of folders from my current location to a new location. I have a CSV with original / new location information such as: [full path of current location], new_dir_1, new_subiere_2, [new_subdir_3], [etc], Last time I have achieved good fortune using FOR / F, and that is what I am trying to do here. for / f "tokens = 1-4 delims =,"% g in (text_file.cnc) do xcopy "%% g" "d: \ %% h \ %% i \ %% j "/ e / i / y fails where there are not enough tokens for the variable and I get two follow-up backslashes in my destination path. for / f "tokens = * .... Failed too - I understand that" tokens = * "differ from each image But maybe I will have this wrong? It seems that the whole line is to be taken as a token. Is there any way to modify your "DO" order only Only make the destination path intensive (i.e., if new_subdir_3 does not exist, then the path should be "d: \ new_...

How to import legacy requirement IDs into TFS 2013? -

I am trying to import some existing requirements in TFS 2013 (currently only maintained in a Word document However, I need to preserve the existing, pre-fixed requirement ID (Tracking etc. for current test cases outside TFS). I have come in many ways to do this: Place it as part of the need title Add it to the requirement details TFS Add a new area template (or just use an existing unused field) for the appropriate request in the All except for my "My Areas" option seem very impure to me, but I have come to work I would like to avoid changing the template template if I can. What are the other / better ways to do this? Has anyone done something in some way before? TFS work items link to say ticket ID in the head desk ticketing system that I use for this purpose Also useful to

New Chrome Inspect Toolbar -

Image
When I run Chrome Inspector, it appeared on the top left of my window. what is it called And how can I get rid of it? This is mobile / layout emulation. The key to deactivate it normally is finding the phone icon at the top left of the normal inspector window. The blue should be blue when the icon is active In this picture, you can see it at the bottom right: The disabled icon on the top left looks promising, but only closes the emulation of a specific mobile device; This device mode does not actually close the view.

objective c - Detect & Read Any Outbound Audio Signals iOS -

I'm just starting my search in this question and just because there is a need for a fast turn I thought I Here's the question when I continue researching on my own. I have the first question, is it possible to detect the outgoing audio signal from the device from any source - using core audio or any audio framework (or combination of) listed in the Dev Library? My instinct tells me that it is closed. Is there any experience with this? I think that you can only detect it, not with its game or use [[Avidi rash shared instant] secondary audio rocketbase cylinder hunt] True when a non-mixable audio session is playing audio

php - Why isn't Laravel's Response Facade a Facade? -

If you look at Laravel's configuration, you will see that a nickname is set for the symbol response 'aliases' => Normal pattern of using aliens for global access to Array ('Response' => 'Illuminating / Support / Faces \ Response', namespace on the actual class, and larval mask objects; Feedback is a mask. However, if you see the real definition of brightening / support / facades \ response code class , code> #File: Vendor / lairweld / framework / src / light / support / mask / copy Simplify the .php namespace \ support \ facades; // ... Class Response { We can see, again, this class lights / support / facades is present in the name space, but it increases not brighten / support \ facades \ facade does anyone know That is why? That is, no one does not implement the getFacadeAccessor method, which means confusingly, it is not actually . There is a compelling structure that is the reason Why this class in the mask name? Spa...

php - Chronoforms field to insert dynamic data -

I need to get a custom element that will see a drop down month and conditionally the numerical month database. For example, if the user selects October, he will keep number 10 in the numerical month of DB in the DB. The month drop down is set to another field in the same database and unfortunately there is no way to combine them for our purposes. Any help would be appreciated. I am new to PHP coding In your code, numeric_month Enter the PHP code to set in the custom code action> numeric number for the fair value based on the selected drop down value Field. In chronoform v4 or v5, this would be something like this: & lt ;? Php $ form- & gt; Data ['numeric_moth'] = date ("n", stratomet ($ form-> data ['month'])); ? & Gt; This will set the number of '7' for the month value of 'July' by numeric_month . Use change numeric_month to set '07' to date ("m", strotomium ($ form-> da...

jquery - Change submenu display in mobile navigation -

I would like to see a submenu item instead of seeing it instead of clicking on it What is the solution to this problem ... At present, the mobile user only sees the main menu item and they have to click on the item containing the subtitles leading to submenes. Main 1 Main 2> Main 3 Main 4> Main 5 I like this: Main 1 Main 2> & nbsp; Sub Intam 1 & nbsp; Sub Itam 2 & nbsp; All Element 3 Main 3 Main 4> & nbsp; Sub Intam 1 & nbsp; Sub Itam 2 & nbsp; SubItem 3 Main 5 This is my coding file with stock foundation menu This is the basic structure of the menu. & lt; Nav class = "top-bar" data-topbar & gt; & Lt; Ul class = "title-area" & gt; & Lt; Li class = "name" & gt; & Lt; H1 & gt; & Lt; A href = "#" & gt; Top Bar Title & lt; / A & gt; & Lt; / H1> & Lt; / Li & gt; & Lt; Li class = "toggle-topbar menu-icon" ...

Cannot load google fonts in localhost (Visual Studio IIS Express) -

My & lt; Head & gt; In the section of the page, I refer to some Google fonts: & lt; Link href = "http://fonts.googleapis.com/css?family=Lato:4000000000000" rel = "stylesheet" type = "text / css" data-notfix / & gt; If I open the html page in the browser, it loads well. But when this visual studio is opened in IIS Express, which means that the URL is > http: // localhost: 1512 / ... instead of file: ///.c: /. .. I got an error that looks like a corse: XMLHttpRequest can not load. No 'Access-Control-Permission-Origin' header exists on the requested resource. The original 'http: // localhost: 1512' is therefore not allowed. Anyone knows what went wrong here?

Linux Command Line - List all non-accessible files and folders -

I am trying to list all the files and folders that I do not have permission to read or modify. Thanks The file has three types of rights for the file owner , Is a file for group members and one for all is not read / unreadable files for all files that you have read / writeable by any one group and are not readable / writeable by your user , Such as Find the Suitability: $ find / (-Note -Prem - O + W, O + R) -and (-Note-Group & lt; GroupName & gt; -PRM -G + W, G + R) -and (-Note-user & lt; Username- gt; -marm- U + W, U + R) ' If you have to check more group then you can expand the word inside the second bracket: $ Find / '(-Note -Prem-O + W, O + R) -and (-Note-Group & lt; GroupName; -Perm-G + W, G + R-Not-Group & lt; Group 2 & gt;) - and (- Username & gt; -perm -u + w, u + r) '

node.js - Sequelize: Require vs Import -

They use the import function in documents for sequlize such as // server File - like App.js var project = sequelize.import (__Deman + + "/ path / in / model / project") // Model definition / path / in / model / project.js // as you would like You can see, the datatype is very similar, explained above the module. Exchange = function (sequelize, datatype) {return sequels.define ("project", {name: datatype.STR, Description: datatype. TEXT}}} However, what is wrong with it Will happen? // in your server file - e.g. Requires App.js var project = (__dynamic + "/ path / per / model / project") // model definition / path / in / model / project.js var project = sequel .defen ("project", {Name: Sequelize.STRING, Description: Sequelize.TEXT}); Module.export = project OK, as you can see that your model Two things are needed in definition: sequelize.import ('some') while using sequential or datatype squeeze ; This is simila...

R raster package: memory shortage when using “getValuesFocal” function -

With 3 layers, I would like to calculate the focal length for raster (1300 cells by 1400 cells) and I use the data from all 3 layers. . For example, one of the layers is a land cover map and I would like to use only in pixels calculation in the focal window, whose equal land cover type is in the form of central pixels of the window. I think this is not possible with the "focal" function in the raster package, so I tried to extract the data from the 3 layers for the limit of each moving window by "getValuesFocal" after doing this, after considering the result of "getValuesFocal" array The lines were of loop though the array is too large and is not fit in memory so I get an error message: dataraster & lt; - Stack (classification, layer 2, layer 3) data & lt; - getValuesFocal (dataraster, ngb = 11, name = TRUE, padValue = NA, array = TRUE) Error: Can not allocate vector vectors 1.7 GB Additionally: Warning message: 1: `rownames & lt; (`* Tmp...

java - Writing a method with ArrayList parameter + for-each loop -

Hello people, amazing people of stack overflow. This is my first time posting so I apologize to anyone before any mistake! The question for this assignment is: Write a permanent method method for the longest, which is passed an ArrayList of the strings, and in the array The longest string, an int (of course, can be the longest value in many). You have to use each loop in your solution. This is my code: public stable the longest (string [] data) {int longString = 0; (String s: for data) (if (s.length ()> long string) longString = s.length ();} Return long string;} I deposit the HV I get a normal compiler error in the box - no special I have seen my code for one hour and I do not know what is wrong. I like it: - ( Any and all The advice will be highly appreciated! Thank you! This code just fine. Do not respond to your requirement - ArrayList : (string s: data) {if (s.length ()> String} longString = s.length ();} return long string (string s: data) {i...

javascript - Drop down values open up different mini windows -

Is it possible to have a drop on this form and when the user chooses to open a pop up? What I'm trying to do, is probably about a drop down of about 125. When the user chooses to pop up a mini window and price shown mini window. Each value will have a different popup? Has anyone ever tried to do something like that? Once they select the check mark, it will stop or if they do not like it, they can hit X on the top. Where do I go from here? Any examples would be appreciated! & lt; Select name = "special" id = "special" & gt; & Lt; Option value = "1" & gt; 1 & lt; / Options & gt; & Lt; Option value = "2" & gt; 2 & lt; / Options & gt; & Lt; Option value = "3" & gt; 3 & lt; / Options & gt; & Lt; Option value = "4" & gt; 4 & lt; / Options & gt; & Lt; / Select & gt; Do you want to do something like this:? ) .end (). Model (' Show ...

xcode - Installing iOS app over old version on iOS 6 -

. Some saved data is required to be updated automatically when users install an app update. I am working on To test, I install the old app, do a few things to save data locally, then install an updated app on the old app, and make sure the data is correctly updated Ho. It's working on devices running iOS. I'm having trouble installing an updated app on the old app on the device or a simulator playing iOS 6. I've got some different error messages, seen them Will users running iOS have trouble installing the update app on their device? I 'm wondering if this issue has something to do with Xcode 5.1 debug builds. Perhaps this issue is overcome when users install a release release distributed by Apple. Edit: I advised about this and did not try to do anything.

audio - “INVALID FILE NAME: MUST CONTAIN ONLY [a-z0-9_.]“ for sound files in Android Studio -

I am preparing an Android app containing the sound files in the res / raw folder 50 These are all named s1.mp3 , s2.mp3 , s3.mp3 etc. I Some searches have been done and found that everyone gets this error because their file has a capital letter in it's not mine. The error started especially indicating that there was an incorrect file name in s37.mp3 . Then I completely removed that file, thinking that it was a bug or something when I tried to recompile it, then she said, s38.mp3 was a problem, then I had all the files Moved to s36.mp3 and then pointed to the s12.mp3 as a problem. So obviously Android studio sees the problem with the names of all the sound files when I look at the navigation bar on the left side of the screen, I think all the sound files have their regular names, but Their extensions are in Caps (MP3). Of course this can not be a problem, okay? I saw your image and you have s30.MP3 is a file named, remember that files only include [...

apache - Linux Apache2 giving error for non existing php file when it does -

After Right now I am using a VPS with Ubuntu 14 and Apache2 installed. Migrating my website from I hosted the old new hosting and I have some very strange problems. Here you can see more information about the PHP version of my modules are: This is what I have in the .htaccess file: options + FollowSymlinks RewriteEngine RewriteCond% {HTTP_HOST} crankpost.com [NC] RewriteRule ^ (*. 301) / $ 1 [L, R = at $ http://www.crankpost.com] RewriteRule ^ home mhome.php RewriteRule ^ checklogin clogin.php RewriteRule ^ Login Loginkphp RewriteRule ^ logout log out.php RewriteRule ^ registration createacc.php RewriteRule ^ make-account register.php RewriteRule ^ email to confirm = ([^ /]. +)? $ Activateacc.php? Id = $ 1 [L] RewriteRule ^ profile = ([^ /.] +)? $ Member.php? id = $ 1 [L] Very strange problem when I try to open this URL: server I think that gives you an error file not open the file if it exists . She is in the same directory as index.php, somehow giving me this error ...

c++ - Undefined reference error when compiling with g++ compiler in cygwin -

I am just starting to work on a project for the class and I am getting an error that I am unsure about How to fix it I will do our best to provide all the necessary details, but if you need more information, please tell me this project is to create a simple hash function and I am getting a linker error while trying to compile. When compiling, I will get all my code and error. I have taken the last two programming classes, but it was a long time ago and at this time I am out of practice so it can be a clear error. Ignore all the commented code in the hash because it is just the function definitions that my teacher has provided that I have not yet implemented. He specifically requested that we put our Hashing function in my separate file. I should also specify that I am using a Windows machine along with Signin 64 to compile my code. #ifndef __HASH_H #define___HASH_H #include & lt; String & gt; # Include & lt; List & gt; Using std :: string; Using the Std :: list;...

Python break script but keep console open -

यहाँ मूल कोड है: अगर pwd1 == pwd2: प्रिंट ("सही पासवर्ड ") को तोड़ने मैं इसे कैसे कर सकता हूँ ताकि यदि pwd1 और pwd2 बराबर हैं कंसोल विंडो सही पासवर्ड संदेश लेकिन स्क्रिप्ट निष्पादन बंद हो जाएगा के साथ खुला रहेगा। उपरोक्त सभी पाश में है और अगर नहीं रोका उपयोगकर्ता pwd2 reinput के लिए कहा जाएगा। धन्यवाद! जबकि यह सच है: # ... अगर pwd1 == pwd2: और तोड़: # नहीं मिला sys.exit (" नहीं मिला ") प्रिंट (" मिले सही पासवर्ड: " , Pwd1) इनपुट ("बाहर निकलने के लिए Enter दबाएं") # कंसोल को खोलें

css - Making responsive images with different aspect ratios the same height -

I am trying to remove a responsive line of images to make the same height, regardless of aspect ratio Without the width of each image or container the actual image is the same height of the files, but there is a difference in the width. The problem is that when the container becomes smaller, then spherical errors on certain widths make the images separate in a pixel or height, there is a bela here, changing the size of the result panel, and you will see in some width that the images have the same height Are not there. I am styling the material from CMS so that there is minimal control over markup, and the mandate to use CSS instead of JS I tried to set the height of the image to 100%, but it only Creates a 100% image of its original size, not 100% of the height of the container. Here's the HTML and CSS from Written by Beal: & Lt; / Div & gt; & Lt; Div class = "cell" & gt; & Lt; Img src = "http://placehold.it/300x400" /> & Lt;...

jQuery value of field not defined -

I have a very basic form with a selected field, which can have several options. To submit my form, I check the length and if there is at least one value then I generate an XML string for each of them. var type = $ ('[name = advancedType]') .val (), newType = type.split (','), type XML; If (newType.length & gt; 0) {typeXML = '& lt; Type & gt; '; (Var i = 0; i & lt; newType.length; i ++) {typeXML + = '& lt; Type & gt; '; TypeXML + = '& lt; TypeID & gt; + New type [i] + '& lt; / TypeID & gt; '; TypeXML + = '& lt; / Type & gt; '; } Type XML + = '& lt; / Types & gt; '; } Else {typeXML = ''; } When choosing an option, it works fine, but when I do not choose anything, it says that the type is not defined. How can I get it to work as a purpose? Looks very simple .. var newType = (type & amp; amp; And; ',')) || [];

jquery - Turn anchor value to parent li class -

I'm new to jQuery, I'm trying to get it anchor value to start the parent le class . The code I'm trying to do: jQuery ('ul.menu'). Every (function () {var turnclass = jQuery (this). Find ("a"). Val (); Jquery ('ul.menu li') AddClass (turnclass);}); What I want to do here: & lt; Ul class = "menu" & gt; & Lt; Li class = "home" & gt; & Lt; A href = "#" & gt; Home & lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "about us" & gt; & Lt; A href = "#" & gt; About us & lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "contact us" & gt; & Lt; A href = "#" & gt; Contact us & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; .value () to get the value of Is an input element, it can not be used with an anchor if you want text inside an anchor, then use .text ()...

How to use django-sslify to force https on my Django+nginx+gunicorn web app, and rely on Cloudflare's new free SSL? -

INTRODUCTION Now, and I will not be fooled to take advantage of it on my site, and To break everything in the process of trying a downright dickhead, I can fix code apps, but when installing or configuring https / nginx / gunicorn / etc / idon'tknowtheterminology So, I know enough to follow the Googled instructions. Question I would like to use the DJGengo-SSLFiage to force https on my DNS web app. known facts how can I do this How do I get balance without balancing my life? Can i do 1.7, is running on a digital osian server, which has reached a (free) cloud flare DNS. (Service?) Manually access my site to default in the headers. Manually switch to green lock and work with everyone, but it breaks all form submissions error "(403) CSRF verification failed. The request has been canceled." In my cloud-flares site settings, the domain is currently configured for "Flexible SSL". Django breaks everything with my current setup firmly, and is...

php - Displaying Co-authors Plus Wordpress Plugin -

I originally posted it on the Wordpress stack, but apparently it was off-subject (???) And it was suggested that I ask if it is here, so here's the basic question: "I am trying to add the theme co-authors plus plugin to an old newspaper. However, I have followed the document and it is not just showing to many authors. According to the instructions, I have single.php The code that has been added to: if (function_exists ('coauthors_posts_links')) {Coauthors_posts_links ();} other {the_author_posts_link ();} However, the post is still showing only one author. Single.php is the only place where the_author () is used, this should be the right place to add code. Any suggestion It will be highly appreciated. " After that, I saw that the plugin files are clearly inactive, according to Wordpress Edit I'm not sure I believe because all backend works, it's just a front end that is not working. If you look further in the instructions ... If...