Posts

Showing posts from February, 2011

c - implicit declaration of function 'toLower', <ctype.h> already included -

मैं अपने कार्यक्रम में इन 2 संकलन त्रुटियों को प्राप्त करता हूं। word_freq_binary.c: In फ़ंक्शन 'getWord' word_freq_binary.c: 36: 4: चेतावनी: फ़ंक्शन 'toLower' str [n ++] = लोचदार (सीएच) के अंतर्निहित घोषणा; ^ Tmp / ccYrfdxE.o: फ़ंक्शन 'getWord' में: word_freq_binary.c :(। टेक्स्ट + 0x91): 'toLower' संग्रह के लिए अनिर्धारित संदर्भ: 2 त्रुटि: ld 1 बाहर निकलने की स्थिति मैंने निम्नानुसार परिभाषित किया है: #include & lt; stdio.h & gt; # शामिल करें & lt; stdlib.h & gt; #include & lt; string.h & gt; # शामिल करें & lt; ctype.h & gt; #define MaxWordSize 20 त्रुटि के साथ कार्य है: int getword (FILE * में, चार अक्षर []) {// अगले स्टोर यदि कोई हो, तो शब्द में; यदि शब्द एक शब्द मिल जाता है तो शब्द // को लोअरकेस // रिटर्न 1 में कनवर्ट किया जाता है; 0, अन्यथा चार च; Int n = 0; जबकि (! इसाल्फा (ch = getc (इन)) & amp; amp; ch! = EOF); अगर (च == ईओएफ) {वापसी 0; } Str [n ++] = टोलर (ch); जबकि (इसाल्फा (ch = getc (इन)...

ios - How can I save an image taken through AVCaptureSession -

I have set a custom camera view, which is the overlay button on the scene. Everything works as it should. The camera takes the picture, and the picture appears in the UIImageView. How can I save this image once in UIImageView? Code below: ViewController.h @ View Interface Viewer: UIViewController & lt; UIImagePickerControllerDelegate, UINavigationControllerDelegate & gt; {} @protecti (strong, non-monomitive) IBotlate UIUUUI * framefactor; @protecti (strong, nonmomic) IBolet UIImageView * imageView; - (IBAction) LEFOTO: (ID) sender; ViewController.m @ View implementation controller AVCapture session * session; AVCaptureStillImageOutput * stillImageOutput; - (zero) viewDidoadload [[Super Viewedload]; // Setup an additional after loading the view, usually from a nib } - (Zero) ViewVillage: (BOOL) animated {session = [[A Wikipedia session alloc] INS]; [Session set sessionprayset: AVCepture sessionPreset photo]; AVCaptureDevice * Input Devices = [AVCaptureDevice...

c++ - sqlite3_step() doesn't seem to work -

I have this C ++ function that works to determine if a given name exists or not . But every time it is mentioned even when a name is already present. Where am I wrong? bool database :: hereditary (std :: string repoName) {string sql = "select * from store WHERE NAME = '" ;; Sql + = repoName + "'"; Sqlite3_stmt * selectStmt = nullptr; Sqlite3_prepare_v2 (connection, sql.c_str (), sql.size (), and selectStmt, NULL); Int result = sqlite3_step (selectStmt); Sqlite3_finalize (selectStmt); If (result == SQLITE_ROW) return true; Second false return; } You should check the return value of all the functions, which return the error signal You can. For example, sqlite3_prepare_v2 will return an error code if there is a syntax error in the statement. He may have told you that the statement given by you is wrong (if any). You can use sqlite3_errmsg and sqlite3_errstr to create more readable error messages. It is never good to throw specific informa...

xcode - Can a Swift Console App have an app Icon? -

I looked seriously at the Apple developer site and SO for this, but I could not find any answer. I created a small console app in Xcode 6.4 and I want to change the app icon. Is this possible for a console app? Thanks for the reply! David

asynchronous - Julia: understanding when task switching happens -

I could not find detailed documentation about the macro. From documents about equality, I think that Julia is the only system thread used in the process and the clear work switching is done with the help of the yield function - if I am wrong about this Correct me It is difficult for me to understand that when this work is done only by looking at the code, it is important to know when this happens. As I did in a above code (or some functions called by the code) somewhere to make sure that the system is not only with one function. For example, when a read is inside the operation, maybe there is a wait call and the implementation of wait There is probably a yield in the name of Pu. I thought without the yield the call code would get stuck in one task; Although the following example is running, this estimate is proved wrong. Start @async # Task A while the correct println ("A") is the end of the end while the correct # Task B println ("B") end...

html - responsive 3 div side by side with image -

Div inside div and div div inside DIV. Trying to leave the float, but not working For a quick overview here is the CSS: . Container {Clear: Both; Padding: 0 pixels; Margin: 0 px; Hidden flurry; } .profile1 {background-color: #ccf; } .profile2 {background-color: #cfc; } .profile3 {background color: # FCC; } @ Media only screen and (minimum-width: 480px) {.span_1_of_3 {width: 32.2%; } .col {display: block; Swim left; Margin: 1% 0 1% 1.6%; } .col .: First-child {margin-left: 0; }} HTML: & lt; Div class = "container" style = "border: 2px solid black;" & Gt; & Lt; Div class = "col span_1_of_3 profile1" & gt; & Lt; Img src = "http://placehold.it/100x100" /> Advertisement for the website & lt; / Div & gt; & Lt; Div class = "col span_1_of_3 profile2" & gt; & Lt; Img src = "http://placehold.it/100x100" /> Advertisement for the website & lt; / Div & gt; & Lt; Div ...

scanf - C fscanf formatting -

I am quite new to C and I have trouble in these pieces of code: Four Words [STRING_LEN]; While (num_words & lt; ARRAY_SIZE & amp; amp; amp; 1 == fscanf (infile, "% 79s", & amp; शब्द)) When I try to compile I get a warning: / P> format '% s' is the argument type * four *, but argument of type 3 is char (*) [80]. Now it is remedied using the and the word [0] . Now, to find out at the beginning of the array, these two points should not be shown? When you use , in the format Fscanf , it is assumed that the argument is a char * , which can catch the characters read from the stream. This tells the warning message. In your case, the numeric value is the same as and the word and the word [0] . However, this is not true at all times, for example, if you have: four * words = molk (20); Then, the numeric value & amp; The term that & amp; The term [0] is not equal to Compiler is not taking responsibility for dealing with...

objective c - ASIHTTPRequest setDomain -> NSURLRequest equivalent? -

I'm trying to rely heavily infection at some old code to SOAP requests that ASIHTTPRequest library rather than the standard NSMutableURLRequest use However, I am having an issue with, while ASIHTTPRequest I had access to a setDomain function, I can not seem to find an equivalent with NSMutableURLRequest . Does anybody know that there is a equivalent function? I tried to set it as a header named "domain", but it did not seem to work. Finished after some advice from : Opting out, you domain There is no need to set up independently; You can set it by passing it as a part of the username such as: domain \\ user name was ended using the exact code within an NSURLCredentials object: takes care of // HTTP authentication - (void) connection: (NSURLConnection *) connection didReceiveAuthenticationChallenge: (NSURLAuthenticationChallenge *) challenge {NSString * authMethod = [[challenge security space] authentication method]; If ([authMethod isEqualToStrin...

How many websockets can one dyno handle on Heroku? -

As I have understood that any runtime application (client side) will open this websetet server . And the server will open a socket to communicate on behalf of the customer. Also, as I know that Heroko witch has only handled only one open socket the last time all requests were sorted in sequentially. Obviously, it is not going to fly with websacetes (it will require 100 dinosaurs on the server, with just 100 simultaneous users.) And I can not find the information, how many webcuts Update 1 Oh .. I have seen any information on this topic Some informal figures were found: Still looking for some more official information. Oh .. I found some informal figures:

entity framework - ASP.NET Identity 2: trouble creating Fluent Code First relationships -

Image
I am trying to create an ASP.NET identity DBCOnTech from scratch (IDECTED to get rid of depenency at BCCXTT & lt ; ...>) Almost there ... but my EF code first fluent relationship is not yet true. The table structure should will come in this form: but get more like the following: Even after being clear HasForeignKey is clearly defined My question is ... I have relationships Where's the wrong? Thank you! The following is the use of mapping: public class ApplicationDbContext: DbContext {... public ApplicationDbContext (): Base ("default connection") //, ThrowIfV1Schema: Incorrect {Database.SetInitializer & lt; ApplicationDbContext & gt; (New ApplicationDbInitializer ()); } ... Protected Override Zero OnModelCreating (System.Data.Entity.DbModelBuilderModelBuilder) {base.OnModelCreating (ModelBuilder); Modlbilder Configuration. Add (new identityRollMap ()); Modlbilder Configuration. Add (new identity usermap ()); Modlbilder Configura...

Amazon Fees are not updating in Magento Orders when importing orders using M2E pro -

Image
I am using M2Epro in a Magento site while syncing Magnou stores with Amazon order, this order and products Properly prepares but Amazon fees always show 0 (zero) in order details in Magento. I've created a screenshot to describe this issue more clearly: See the Amazon order import log Magento orders are imported and imported with similar information Order #, Magento Order # Note An Amazon Magento order has been created for each Amazon order. See details of Amazon order . View details of Magento command counter of Amazon command Note that Amazon fees show 0 but actual charges are not zero. We have to update it with real value I appreciate your help. As far as I know it is not possible and only your monthly reports from Amazon The report can be found in. Although M2 APRO is the third party extension. This question would be better through their support channel.

.htaccess - Creating a redirect from viewinvoice.php/?id=xx to viewinvoice./?=xx? -

Hello I am updating an invoice system and using any of the http requests using /client-area/viewinvoice.php Will not redirect /? Id = xx to / client-area / viewinvoice /? Id = xx is basically removing the php extension, we can not delete them completely because some pages still use them. How do you do it through HTACs? DOCUMENT_ROOT / .php . to rewrite the rewrite / # externally Re-insert /dir/file.php to rewrite / dir / file% {THE_REQUEST} \ s / + (?:?) \. Php [\ s?] [NC] rewriting rule /% 1 [R = 301, L, Northeast] # Internally forward / dir / file /dir/file.php rewrite% {REQUEST_FILENAME}! -d Recovery code% {DOCUMENT_ROOT} / $ 1 .php -f [NC] Rewritable ^ (. +?) /? $ / $ 1.php [L]

javascript - Returning an object from a Class like mongoose -

कैसे mongoose.js एक ऑब्जेक्ट को वापस लौटाता है: बर मौन = नया बिल्ली का बच्चा ({name: 'silence'}); console.log (चुप्पी); // {name: 'silence'} लेकिन अगर आप स्रोत कोड बिल्ली का बच्चा जांचते हैं तो model नामक फ़ंक्शन है दस्तावेज़ स्रोत कोड को इंगित करता है। फ़ंक्शन दस्तावेज़ (obj, fields, skipId) {यह। $ __ = नया आंतरिक कैश; This.isNew = सच; यह। एरर्स = अपरिभाषित; // ... this._doc = यह। $ __ buildDoc (obj, fields, skipId); अगर (obj) {this.set (obj, अपरिभाषित, सच); }} इसका अर्थ है कि इसे वापस लौटना चाहिए: var मौन = नया बिल्ली का बच्चा ({name: 'silence'}); console.log (चुप्पी); // {_obj: {name: 'silence'}} तो यह कैसे है कि वे खुद को निर्माण वर्ग की तुलना में एक और ऑब्जेक्ट में लौट रहे हैं? आगे की जांच : मैन्युअल रूप से ret को बदलकर क्लास रिटर्न दिया जाता है, जो कि निर्दिष्ट रिट।

list - Prolog : Recursive Function Branching & "Returning" -

I was predicting some recurring Prolog and ran into a certain point which I did not quite understand at this time. For example, I wrote a bill split / 3 that divides a list of integers into a list of non-negative integers and the list of negative integers: version 1 partition ([], [], []). Split ([ListHead | ListTail], [List Head | Plist], NLIIS): - Listside & gt; = 0, Partition (Listlist, Pllist, NLIIT) Partition ([ListHead | ListTail], PList, [ListHead | NList]): - ListHead & lt; 0, Partition (Listal, Plist, NLIIT) But before reaching that solution, I wrote the solution below and wondered why it was not working: Version 2 split ([], [], []). Partition ([ListHead | ListTail], PList, NList): - ListHead & gt; = 0, Partition (ListTail, [ListHead | PList], NList, Partition ([ListHead | ListTail], Plist, NLIIS): - List Head & lt; 0, Partition (Listlist, Plist, [List Head | NLIIS]). Where: The argument given earlier is divided into ListHead and L...

node.js - how to use Express 4 with Socket.io 0.9.x? -

I am an iOS developer, the objc-Socket.io library still supports socket.io 0.9.x I use Express 4.0 with my NodesJS server: server.js var Express = required Is ('express') (); Var io = Required ('socket.io'); Io.listen (express); But I run it in the terminal, puts an error to me: % node test socket. Io's `(`) means the meaning of 'http .server' as your first parameter, are you migrating from Express 2.x to 3.x? If so, see the "Socket.io compatibility" section at https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x . This code should do the trick: var express = require ('express' ); Var http = Required ('http'); Var app = express (); Var server = http.createServer (app) .listen (1337); Var io = Required ('socket.io'). Listen (server); Io.on ('connection', function (socket) {// emissions and listening to the message}}); App.get ('/', function (req, res) {// do something...

c# - Bind object properties to another object - different type -

मेरे पास classmaster नामक एक वर्ग है और classa नामक 4 अन्य वर्ग हैं , क्लासबी , क्लासिससी , क्लासडा जो क्लासमास्टर प्राप्त होता है। सार्वजनिक वर्ग क्लासमास्टर {सार्वजनिक क्लासमास्टर () {} सार्वजनिक स्ट्रिंग प्रोए {प्राप्त करें; सेट;} सार्वजनिक स्ट्रिंग PropB {get; सेट;} सार्वजनिक स्ट्रिंग PropC {get; सेट;} सार्वजनिक स्ट्रिंग PropD {get; क्लासमैस्टर {सार्वजनिक वर्ग} क्लासएमस्टर {सार्वजनिक क्लास (क्लास): {}} पब्लिक क्लास कक्षा बी: क्लासमास्टर {पब्लिक क्लासबी ()} {}} पब्लिक क्लास क्लास क्लास: क्लासमास्टर {पब्लिक क्लास सी () {}} पब्लिक क्लास क्लासडेड: क्लासमैस्टर क्लासडा () {}} क्लास क्लास्टर क्लास = नए क्लासमैस्टर (); क्लास ए सीएलएसए = नया क्लास (); कक्षा बी सीएलबी = नया वर्ग बी (); क्लास सी सीएलसी = नया वर्गसी (); क्लासोड सीएलसीसी = नया वर्गडी (); मेरे सभी अन्य उदाहरण क्लासमास्टर गुणों का उत्तराधिकार प्राप्त करेंगे। मेरा प्रश्न यह है कि: क्या क्लास मास्टर इंस्टेंस के गुणों को बिना अन्य वर्ग के उदाहरणों में बाँध करने का एक तरीका है? : clsA.PropA = cls.PropA; मैं क...

Accept Button Is highlighted but when I submit the button not creating the new Device Definitions in Android Eclipse -

I want to make a new device definiton in Android alpase. I have entered all the specifications of the device and make the make buttons , But this device is not working and if I cancel the button the button is working. Try to select lower level target API Lower level of system images by selecting

objective c - Is there a way to make some parts of UITableView not scrollable? -

I'm using a paper fold animation to show some content at the top of the screen above the table view. Now I have a button that triggers this folding action. I would rather try to swipe this action from top to bottom rather than triggering. But my tableview is full screen, so I think that if UITableViewCell, or a part of the table, is not scrollable, then there is a way to trigger Fold swipe for it I Trying to use the UISwipeGestureRecognizer but it does not work so well ... scrolling through the UITB There are several ways to stop the scene. UITableView is the subcategory of the UIScroll view so that you can use the UIScroll View methods to prevent the table view to scroll. Therefore, in your table view controller, you can enable the [[self tableview] setcrawl: No] call. You should also be able to prevent any user interaction on the table view by calling [[self tableView] setUserInteractionEnabled: NO] (a method on UIView). You could cancel the UITableView subcl...

javascript - Is json_encode extremely picky? -

It seems that json_encode inside my PHP file can have other stuff, which is fine, because I just Something I normally do in file A (with json_encode) in my file I thought I would ask because I would rather update $ my $ d database with variables as $ _SESSION because json_encode does not seem to work when all the files I have in its file are in. For example, this code does not work: & lt ;? Php session_start (); Include 'dbcon.php'; $ SessionID = uniqid (); Echo json_encode ($ sessionID); If (hasset ($ _ POST ['clear session']) == '1') {$ query = "update currentID SET id = ('0')"; $ Execute = $ mysqli-> Query ($ query) or die ($ mysqli-> error .__ LINE__); } And {$ query = "update current ID SET id = ('$ sessionID')"; $ Result = $ mysqli- & gt; Query ($ query) or die ($ mysqli-> error .__ LINE__); }? & Gt; When I go to the file in my browser, I actually get json_encode results, though my javasc...

node.js - Cropping a Base64 PNG in-memory using PURE JavaScript on the client side w/o using canvas -

Reference: JavaScript, as part of SDK (can be on node.js or browser). Start point: I have a base 64 string that is actually a base 64 encoded PNG image (I got it from Selenium WebDriver - LaserSchot). Question: How can I crop it? Canvas related techniques seem irrelevant (or am I wrong?) My code runs as part of the test - maybe node.js The canvas approach does not seem fit here and can cause extra noise in the image too. Any libraries I found, either meet with streams (maybe I should change the string to somehow stream?) Or deal var base64png = Driver .See Screenshots (); Var png = new PNG (base64png); Return png.crop (50, 100, 20, 80) .toBase64 (); ? Thank you! Adding my previous comment as an answer: Any such To get the raw image data needed to use the library as an image in the image, do not rely on the canvas.)

java - cmd Error : Could not find or load main class -

इस सवाल का पहले से ही एक उत्तर है: 35 उत्तर कई लोगों को दिए गए समाधान की कोशिश की है धागे लेकिन मेरे कोड में क्या गलत है यह समझने में सक्षम नहीं: बीजावा सी: \ कॉम \ चेक 2 \ pkgs2 \ bjava सिस्टम पाथ = सी: \ प्रोग्राम फ़ाइलें \ जावा \ jdk1.7.0_51 \ bin; सीएमडी स्थिति: सी: \ & gt; गूंज% CLASSPATH%% CLASSPATH% C: \ & gt; जावैक कॉम \ चेक 2 \ pkgs2 \ B जावा सी: \ & gt; जावा कॉम \ चेक 2 \ pkgs2 \ bclass त्रुटि: मुख्य वर्ग com \ check2 \ pkgs2 \ bclass नहीं ढूँढ या लोड नहीं हो पा रहा है सफलतापूर्वक संकलित और। वर्ग तैयार हो रहा है। लेकिन निष्पादित करने में सक्षम नहीं है समस्या क्या है? कृपया मेरी मदद करें। ओएस: विंडोज 7 जावा संस्करण: 1.7.0_51 जावा (टीएम) एसई रनटाइम पर्यावरण: 1.7 का निर्माण 0_51-b13 संकलित करने के लिए: C : \ & Gt; जावैक-डी Com \ check2 \ pkgs2 \ bjava चलाने के लिए: सी: \ & gt; जावा-सीपी Com.check2.pkgs2.B

javascript - removing row from database through delete button in a php table -

I'm trying to create a little control panel so that I add and remove rows in the database. I have already worked by linking it, but there is some problem with me being removed. The page shows each row in the table and there is also a deleted button behind it. This is the code I have This is the code that creates the table: ". $ Line ['uname']." & Lt; / Td> "; echo" & lt; Td> "$ line ['pass']." & Lt; / Td> "; echo" & lt; Td> ['E-mail']. "& Lt; / td> Echo "& lt; td & gt; & lt; input type = 'submit' class = 'button' id =". $ Line ['id']. "Value = 'del' & gt; & lt; / td & gt;"; Echo "& lt; / tr & gt;";} echo "& lt; / tbody & gt; & lt; / table & gt;";? & Gt; Here is the AJAX code: & lt; Script type = "text / javascript" & gt; ...

javascript - Styling specific <li> element in unordered list <ul> -

उदाहरण के लिए, मेरे पास निम्न HTML है: & lt; ul & gt; & Lt; li & gt; 1 & lt; / li & gt; & Lt; li & gt; 2 & lt; / li & gt; & LT; ul & gt; & Lt; li & gt; 1 & lt; / li & gt; & LT; ul & gt; & Lt; li & gt; 1 & lt; / li & gt; & Lt; li & gt; 2 & lt; / li & gt; & Lt; / ul & gt; & Lt; li & gt; 2 & lt; / li & gt; & Lt; / ul & gt; & Lt; / ul & gt; & LT; ul & gt; & Lt; li & gt; 1 & lt; / li & gt; & Lt; li & gt; 2 & lt; / li & gt; & Lt; / ul & gt; & Lt; ul & gt; `कोड दर्ज करें '& lt; li & gt; 1 & lt; / li & gt; & Lt; li & gt; 2 & lt; / li & gt; & Lt; / ul & gt; और, मैं केवल li तत्वों को ही शैली में रखना चाहता हूं, जिनके पास value = 1 है मैंने इसे jQuery में करने की कोशिश की और यह काम करता है, लेकिन मुझे यह जानना है कि क्या इसको सही करने का एक बे...

php - Special messages on Google Cloud Messaging (PUSH to Android) -

I can send the string to my android phone through push system At least I have seen on my iPhone that people push push with images, push with play / stop control (IIRC), push with custom sounds. How can I send such data to Android phones? My current data: $ fields = array ('registration_ids' = & gt; $ registration_ids, 'data' = & gt; array ("message" = & Gt; $ message),); $ message is a string. This is the plugin I am using: Edit: Spend some time in studying After I came to a conclusion that you are only able to send a string or an array of data and to keep an image on the push notification, you must send a certain message, And then continue to change the push notification view to show the image. So do not have a build-in image support, or are there Play / Pause buttons for that matter? Am I on the right track? You are right from a custom property in the payload, sending your app through your GCM server to your server...

Android: Date Picker Dialog Fragment: A lot of calls for Garbage Collection -

Image
This is my small program to test date picker communication. MainActivity.java Public Class Main Activity FragmentActivity tool extends OnClickListener {button bSelectDate; @ Override Protected Zero (Bundle Saved Instantstate) {Super. NET (Saved Instantstate); SetContentView (R.layout.activity_main); BSelectDate = (button) FindById (R.id.bSelectDate); BSelectDate.setOnClickListener (this); } @ Override Public Wide OnClick Onclick (see V) {// Tudo Auto-Generated Method Stub DateDocumentation Date = New DateDialogFragment (); Date.setCallBack (onDate); Date.show (getSupportFragmentManager), "date picker"); } OnDateSetListener onDate = new OnDateSetListener () {@Override public void Prdetset (Tithikar Show, Int year Mahineopriyr Int, Int Deofmonth) {Calendar cal = Calendar.getInstance (); Cal.set (calendar.YEAR, year); Cal.set (calendar. MONTH, monthoffier); Cal.set (Calendar. DAY_OF_MONTH, at the end of the day); Toast. Maketext (menactivity.es, "" + string.va...

prime number generation code in python -

I'm trying the following approach to create primes: primes = [2] Candidates = 3 lac = 1000000 while candidates & lt; Million: If all (prime candidate for prime prime minister ** 2 and lieutenant; = candidate): primes.append candidate (candidate) = 2 However, it is relatively high Slower than my previous code, where I was not using the function, and was checking myself below: primes = [2] Candidates = 3 million = 1000000 While the candidate & lt; Million: can_be_prime = In primes for P: if P ** 2 & gt; Candidate: Elife candidate% break = p == 0: can_be_prime = Incorrect break if can_be_prime: primes.append (candidate) candidate + 2 = while the other one ends within 10 seconds Is it always takes to complete the first one, does anyone help me to understand why the first 100000 numbers are being produced for the first time slowly? The idea of ​​shortening the code using that generator expression and any Good, they are not equal. Specifically, in your ...

f# - How to use FSharpx TaskBuilder with functions taking parameters -

I am currently programming with and especially. Now I wonder if it is possible to define a function that takes the parameter and takes the result like give the dot (parameter: int) = task = taskbugder (scheduler = task scheduler. ) Work {Return! Work. Factor Match with StartNew (fun -> gt; parameter + 1)} FSharpx.Task.Run doTask (1). _ - & gt; () I think a function does not take any parameters to look at the source code, and a function & lt; 'A & gt; Returns does not look like examples either. I would be happy if someone can give advice on how to get a scenario that should run with FSHRPX or if the library should not be used like this & lt ; Edit: I believe that I can wrap the doTask as follows wrapperDoTask () = Dootasak (101) Match FSHRX Tasks. With roll rapper do Task _ - & gt; () And this can work, I am not currently with a compiler, so it is a bit of a hand cut. Does anyone have any opinion in any direction or Have I answered my q...

How do I put this dropdown menu below header in Wordpress? -

I created a dropdown menu through this site. An .html file in the final code zip file. Css file and a .js file. How to keep under the headers? If you want to use this menu as an editable WordPress menu, you & lt; Php should use wp_nav_menu ($ args); ? & Gt; In your HTML code,

javascript - jstree don't add new node -

I have just copied the demo code from the site of jstree and tried to add the option of the new node. There is no error but do not add this node. This is my code: & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; JsTree test & lt; / Title & gt; & Lt ;! - Load 2 theme css files - & gt; & Lt; Link rel = "stylesheet" href = "dist / themes / default / style.min.css" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt ;! - 3 one container element setup - & gt; & Lt; Div id = "jstree" & gt; & Lt ;! - In this example, the tree is populated with inline HTML - & gt; & Lt; Ul & gt; & Lt; Li & gt; Root node 1 & lt; Ul & gt; & Lt; Li id = "child_node_1" & gt; Hair node 1 & lt; / Li & gt; & Lt; Li & gt; Child node 2 & lt; / Li & g...

multithreading - What are some good use cases for calling 'yield' in a thread? -

Many languages ​​that support multi-threading provide an action to present a thread to the reference switch in other threads allows for. Haskell for example. However, the documentation does not tell what the real use cases are. Is it worthwhile to use these yield tasks, and when not? Recently I have seen such an experiment where it has been found that when a network server sends a message, before trying to get the data yield is worth calling, because the customer takes some time to answer and issue another request. Yield when you call, like other examples or guides. I am mainly interested in Haskell, but I have no problem learning about other languages ​​or concepts in general. Note: It is not used with generator or cortinin, such as yield in Python or Ruby. The use of GHC's IO Manager to improve the performance yield does. Can be found on use but I will paste it here as well. step :: EventManager - & gt; IO State Stage @ Event Manager {..} =...

Is it possible to change the URL without re-loading the page in Meteor? -

I remember in angular, I could have changed the URL only by changing the $ location without reloading the page Is it possible to do something similar to the meteor? I have tried to use the router, but it clears all areas and reloads the page. You use a pure JavaScript (in modern browsers) to replace the URL without reloading the page. can do. As an example, evaluate history.pushState ({}, "a new page", "myNewPage.html") in the console in your browser, and see the change in the address bar. I think that when you change the page, the iron router uses it under the hood.

How to fan-gate mobile Facebook users? -

As you all know, mobile users can not access the Pages tab app. I've got googled around and found some ways to increase the mobile user experience. But any way to work the fan-gating feature (other than third-party like shortstack) is now to send the user to a page, and on the page, either they are labeled as the Fab page tab (desktop / tablet user) or a Send mobile-friendly external pages (mobile users). However, the external pages do not allow you to do fan-gates. Is there no solution, or have I not got it yet?

javascript - A bit confused with q and promises in nodejs -

I currently have some JS files in the nodes that are loaded as modules and increasing the app object ( Using Express). Then their signature looks like this: module.exports = function (app, callback) {// ... callback (); } So I currently have my code of about 5 will look like this: is required (". / Setup / a") (App, function) (". / Setup / b") is required (ap, function () {requires (". / Setup / c") (app, function) {requirement (". / Setup / d "(App, function () {requires (". / Setup / e ") (app, function () {startapp ();}}}}}})}}}); Now it looks crappy in the form of "Pyramid of Doom", although I am not completely convinced that I need to change this method to use Q because I was assuming that I Q.fcall (... a) then (... b) .etc.done () . Although I am unsure of how I can pass this app and if I have been promised for it then the callback needs to be returned. Ideally, I do not want to start cue completely...

Trigger doesn't working in oracle sql -

I have a table called reading , there is a column call ReaderID To specify who is read to read, now I want to add a trigger when adding a new row to the reading , always check if the reader has already read 5 times Yes, then do not mix, to ensure that a reader can not read more than 5 times here is my code, That which is not working, the row can still be inserted without checking Before creating or inserting the TRIGGER TRIGGER1 REPLACE, read each row declaration for the varReaderCount int. VarRID Int; BEGIN varRID: =: new.ReaderID; Select varReaderCount by reading COUNT (*) Where ReaderID = varRID; IF (varReaderCount> = 5) Then start DBMS_OUTPUT.PUT_LINE ('************************************************************************************************* *** ***************************); DBMS_OUTPUT.PUT_LINE ('Reader has reached the reading limit.'); DBMS_OUTPUT.PUT_LINE ('********************************************************************** ** ***** '...

javascript - error in filling form in using jqueryin a chrome extension? -

I am trying to fill the form using a jquery in a webpage inside the chrome extension. This is my code: (new.js) chrome.tabs.onUpdated.addListener (function (tabId, changeInfo, tab) {y = tab.url; $ .get (y, function Web page {//console.log(data); $ (data) .find ('input') to parse (data) // function. Each (function () {// alert ("inside"); If ($ (this) .attr ('id') == "email") {warning ($ (this) .attr ('id')); $ ("# email"). Val ("xxx"); } //console.log ($ () text ());});});}); And there are many variations of the webpage and I want to fill in an input whose id ID is email. This is the html code for the webpage: & lt; Form id = "login_off" action = "https://www.facebook.com/login.php?login_attempt=1" method = "post" onsubmit = "return window.Event & amp; appent.__inline submit & amp; ; Amp; amp; amp; amp; amp; incident; .inline submit inline (this, incident) "...

java - Getting an infinite loop while trying to remove from a queue -

I am modeling a fast food drive-in using the Event Objects (yes, homework) priority queue. There are three stations, an order, payment and collection station, each with its own queue. An issue removing an item from the collection station (the last station visit by a customer) when the archive queue is full, the simulation indefinitely starts with the loop and the timer no longer increments. I think this is due to this line: Public Zero Process Collection (Customer C, Event E) {collection.remove (c); // This is the same issue which I consider to be a collection. Setserverstats (wrong); However, if I try to use my standard exit () method (which just calls queue.poll () in the station class), then it gives the blank space. . I do not know why this will happen after being added to the queue, this has given me zero problems at any other time, and I have used it on other stations (and I just copy the methods of each station class. Paste, they are all the same) I really appreciate any ...

django class based form validation using bootstrap -

I have to validate the form for areas like email, name, etc. The use of bootstrap in my HTML is like the following, {% load bootstrap}} {{form | Bootstrap}} {{form.email | Bootstrap}} Please help me validate fields as a use of bootstrap. Thank you. By looking at those filters, I think these are from django-bootstrap -toolkit (). I am the author of this library, this server is for side bootstrap, so it does not provide any functionality for onChange validation. Also, it's Boostrap3 version for bootstrap's v2.

ios - Unknown class <MyClass> in Interface Builder file in Swift -

I am programming the toDoList Objective-C tutorial from Apple, but I'm trying to do this in Swift. () Now when I run the application, I get an error: Swift in the unknown class AddToDoItemViewControllerIn Interface Builder file. In , someone solved, as I think the problem in the same problem [MyClass class] is to do so in Swift Any way? Thank you for your help! Swift will have the same line as AddToDoItemViewController.self . Which really matters, you call your visual controller with the swift code, so the linker knows to include that file.

module - ocaml: create set of polymorphic type -

In a module, I have defined a type that represents a graph node, which has a multicolored data field Type 'at = {data:' a; Adj: 'A T-list}' How can I go about creating this data? I according to one of the following recommendations (suggestions. Let CMP (G 1: intraday charts) (G 2: ET grafts): Int = if Fijh_ajend G 1 G 2 to 0 Compare Else Int.compare g1.data g2.data Let make_set () = module ORD = straight type t = int Graph.t to = cmp end (module Set.Make (ORD): set type S with Elt = Ord .t) But when I do, I get "gets", there is no component with distracted signature " I'm not sure what you are trying to do, but if you want to create a set of nodes, whose data type is int module graph = structure type 'at =} {/ p> data:' a; adj: 'in the list) Finally CMP 1: Intai graph) Compare (G-2: intra graph): Int = Ready g1 == G 2 0, and 1 g. Gregkdeta G 2. graph Kdeta module GSet = Set.Make (struct type t = Int graph.t...

android - How to verify that app has been instrumented in calabash? -

I want to automate the Zamoren Android app for which I am planning to use the Kailash Automation Tool. I'm new in this tool. I have successfully installed Ruby, Ant and SDK on my system. After running the order to run Kailash-Android, I am receiving the following logs: - 2014-07-25 12:13:42 - Installing : C: / user / & lt; Path apk & gt; 4150 KB / s (11783001 bytes 2.772s) 2014-07-25 12:13:50 - pkg: /data/local/tmp/xxx.apk Success 2014-07-25 12:13:51 - Using the test server Starting: 2014-07-25 12:13:51 - "D: \ softwares \ ATT-bundle-Windows-X86-20140321 \ SDK / platform-tools / ADB.XA" -s 3230A28FB 94 FB09B Shell Age Tool - A target_package com xxx. Android-A main-activity xxx.app.android.activities.StartActivity-a test_server_port 7102 -e class sh.calaba.instrumentationbackend.InstrumentationBackenD com.xxx.android.test / sh.calaba.instrumentationbackend.CalabashInstrumentatio nTestRunner 2014-07- 25 12:13:53 - It looks like your app is no longer runn...

c# - ILNumerics: ILArray<T> as instance variables; -

I am using ILNumerics to represent the time series. Ideally, I want to dissolve all the data a la object-oriented and, therefore, to use the instance variables and installation methods to process such variables. I have many questions, but the best way to implement all ILArray in class is efficient way and, possibly, as an example variable, I have gone through relevant documents and the last few examples But no one explicitly addresses these issues. First of all: The proposed example on the website of 'Array Utility Class' [Source:] Do not think at least the ILNumerics trial version and VS 2013 to compile with professional (.net 4.5) Am I forgetting something? Or is it because this part of the code: public ILRetArray & lt; Double & gt; A {get lagging (if m.a.IsEmpty) {m_a.a = ILMath.rand (100,100); }} Set {m_a.a = value; } Not a return statement? For example, the m_a array can be modified through the following example method: public zeros () {(ILSc...

cookies - How to store data on another domain using javascript -

कहो, मेरे पास एक वेबसाइट है DomainA.com जो DomainB.com से जावा स्क्रिप्ट फ़ाइल का उपयोग करता है। अब, जब कोई उपयोगकर्ता कोई क्रिया करता है तो मुझे उस डेटा को संग्रहीत करने की आवश्यकता होती है जिसे मैं DomainB.com से एक्सेस कर सकता हूं, इसलिए मैंने डोमेनबॉक से लोड की गई जावास्क्रिप्ट फ़ाइल से कुकीज़ सेट करना शुरू कर दिया, कुकीज़ को domainB के बजाय domainA.com में संग्रहीत किया जाता है .com। मैं कुकीज़ या स्थानीय भंडारण जैसे क्लाइंट साइड मेमोरी का उपयोग कर डेटा को स्टोर करने के लिए जावास्क्रिप्ट का उपयोग करने के लिए प्रतिबंधित हूं, इस परिदृश्य में मैं डोमेन बी.ओ. कॉम पर डेटा कैसे स्टोर करूँ? अगर आपके पास सिर्फ जेएस (फ्लैश, सिल्वरलाइट, जावा, एट वगैरह) तक पहुंच नहीं है, और सर्वर-साइड भंडारण प्रक्रियाओं में आपके पास कोई एक्सेस नहीं है, तो वहां सच में एक डोमेन पर डेटा को स्टोर और पुनः प्राप्त करने का कोई तरीका नहीं है, जो किसी दूसरे डोमेन के लिए करना है। यह डिजाइन से है आप वर्तमान में क्या मांग रहे हैं, डेवलपर्स के लिए ज़िंदगी को आसान बनाने के लिए बहुत मददगार होगा, लेकिन यह हैकर्...

Git ignore local file changes -

मैंने दोनों कोशिश की है git update-index --assume-unchanged config / Myconfig और संपादन .git / info / exclude और config / myconfig जोड़ रहा है लेकिन जब मैं जीआईटी खींचता हूं तो मुझे हमेशा मिलता है: 0156abc..1cfd6a5 त्रुटि को अपडेट करना: निम्न फ़ाइलों में आपके स्थानीय परिवर्तन मर्ज द्वारा अधिलेखित होंगे: config / myconfig कृपया, अपने इससे पहले कि आप विलय कर सकें, उन्हें बदल दें या उन्हें छिपाने दें। Aborting मुझे क्या याद आ रहा है? जीआईटी खींचें चाहता है कि आप या तो अपने वर्तमान कार्य को निकालें या सहेज लें, जिससे मर्ज हो सके, आपके अव्यवस्थित कार्य के साथ टकराव का कारण न हो। ध्यान दें कि आपको केवल उन्हीं फ़ाइलों को निकालने / सहेजने की आवश्यकता होनी चाहिए, यदि आप अपने स्थानीय असम्बद्ध फाइलों के रूप में उसी स्थान पर फाइल बनाते हैं, तो उन बदलावों को हटा दें। अपने अव्यवस्थित परिवर्तनों को निकालें ट्रैक किए गए फाइलें git checkout -f अनट्रैक की गई फ़ाइलें git clean -fd बाद में ट्रांस्ड फाइल git stash ट्रैक की गई फ़ाइलें और अनट्रेक्टेड फाइ...

arrays - Punktion Marks as Chars in C# -

I want to write a caesar cipher (D) encode, but I'm stuck in punctuation marks. I am using a four array for single letters, but punctuation is not copied from the string to the array. Is there an option to do that I am trying to use it ['A', 'B', 'C', 'D', 'E', 'F', ' G ',' A ',' H ',' I ',' J ',' K ',' L ',' M ',' N ',' O ',' P ',' Q ',' R ' , 'S', 't', 'you', 'v', 'w', 'x', 'y', 'z'}; (Int i = 0; i.e.l.to.to encrypt.language; i ++) {for (int j = 0; j and lt; alphabet langeth; j ++) {if (toincript [ii] == alphabet [Ja]) {encrypted I] = alphabet [(j + c)% 25]; }}} Thanks for your time and sorry for the stupid question :) 'A', 'B', ' C, D, E, F, G, H, I, J, K, L, I, N, (Int i for 'p', 'q', 'r', 's', 't...

javascript - Load jquery function and progress bar on button click -

I have a page on which I have a button, I want to load a jquery function that loads one Progress bar .. Progress should be hidden when reaching 100% and the page should be sent to any other URL. But when I click on the button progress is not at all .. The original demo of the progress bar can be found below .. I have done this yet .. & Lt; / Div & gt; Plas help .. You do not want to do this JQuery Wrap the location object in. Change: $ (location) .attr ('href', url); From to: window.location = url;

ruby - Error pushing Rails application to Heroku -

I am making an application in ROR from Linux / Ubuntu and posted in Hokku, but when I want to push Hirok I try this error: function: top => Assets: precompile (see full traces by working with trace)! ! Precompiling Assets Failed! ! Push rejected, Ruby app failed to compile git@heroku.com: herokuangelapp.git! [Remote Dismiss] Master - & gt; Master (Pre-Received Hook Rejected) Error: Failed to push some referee for 'git@heroku.com: herokuangelapp.git' Thank you for your help. Precmulation Strong> The question arises as to what the error is saying. You will not be able to precompile the properties for your Rail application (obviously) You may have several reasons for this problem, but the main culprit is that the precompilation system of problem Harokee is That you have syntax errors in your asset files, prevent them from being precompiled. Local As recommended in the comments, you can use locale locally using the following command precom...

node.js - using WiFly with ws websockets -

I'm trying to remove a way to connect WiFly to an Arduino so that my exposure data is stored in my node. To send in Server. Net server >> This is basically a TCP request, so my server receives information from 3. WS Websites >> It takes data from Net server and streams it on the client side. Here is the code: var http = Required ('http'); Var FS = Requirement ('FS'); Var path = requirement ('path'); Var url = requirement ('url'); Var Net = Requirement ('Net'); Var sensorata; Var message = {"data": ''} var newValue, oldValue, diff; // settings var HTTP_PORT = 9000; Var NET_PORT = 9 001; Var WS_PORT = 9002; // server var mimetaps = {"html": "text / html", "jpeg": "image / jpeg", "jpg": "image / jpeg", "png": "image / png", "js" : "Text / javascript", "css": "text / css"}; Http.createSe...

swift - nsMutableUrl addvalue adding quotes "" around key -

मेरा अंत लक्ष्य एक सरल आईफोन दृश्य है, जब स्विच चालू होता है, जब मेरे स्पार्क कोर के लिए एक पोस्ट अनुरोध भेजता है (वाईफाई माइक्रोचिप) रिले को चालू करने के लिए मैं एक प्रारूप में पैरामीटर जोड़ने के लिए संघर्ष कर रहा हूं जो पोस्ट अनुरोध के लिए काम करता है। यह एक CLI में काम करता है: कर्ल https://api.spark.io/v1/devices/<myDeviceId>/led-d access_token = & lt; myAccessToken & gt; -d params = l1, कम यह मेरा प्रयास स्विफ्ट में पुन: उत्पन्न करने का प्रयास है: func toggleLight (on: Bool) {var urlToUse = sparkAPIBaseURL + coreId + lightsMethodName वर url = NSURL.URLWithString (urlToUse) वर अनुरोध = NSMutableURLRequest (यूआरएल: यूआरएल) वर सत्र = NSURLSession.sharedSession () request.HTTPMethod = "पोस्ट" अगर (पर == सच) {request.setValue ( paramsForOn, forHTTPHeaderField: "पैरामीटर")} else {request.setValue (paramsForOff, forHTTPHeaderField: "पैरामीटर")} // अगर request.setValue (accessToken, forHTTPHeaderField: "ACCESS_TOKEN") pr...

sql - How can I include in schedules today's departures after midnight using GTFS? -

I started with GTFS and ran into a big problem with my SQL query: Code> SELECT *, (some columns in the form of shortcuts) stop_times from left_stimes.trip_id = trips.trip_id Where trips.max_sequence! = Stop_times.stop_sequence trips join and ($ incodes) stop_id and ($ service_ids) trips.service_id and (departure = gt = $ time) and (trips.end_time & gt; = $ time) and (trips.start_time and lt ; = $ Time_plus_3hrs) GROUP by T, L, SAP, SAC, L DESC LIMIT 14 This should show departure from some stops in the next 3 hours. It works but near midnight (eg 23:50) it only captures "today's departure". After midnight it only grabs the "New Day Departure" and the departure from the previous day disappears, because They have departure_time "24:05" (= $ not greater than $ 00:05). Is it possible to use a little light with the same query for the next day UNION? UNION is using, how can I order departure from border to cart? Trips.start_time and end_time are...