Posts

Showing posts from April, 2015

winforms - C# Raising event to inherited classes only -

मेरे पास एक सामान्य उपयोगकर्ता नियंत्रण है: सार्वजनिक आंशिक वर्ग SearchBoxGeneric & lt; T & gt; : UserControl {सुरक्षित वर्ग RecordFoundEventArgs {सार्वजनिक टी रिकॉर्ड {get; निजी सेट; } सार्वजनिक RecordFoundEventArgs (टी रिकॉर्ड) {this.Record = record; }} संरक्षित घटना EventHandler & lt; RecordFoundEventArgs & gt; RecordFound; // खोज बटन से सार्वजनिक शून्य खोज () {// 1। डीबी / 2 में रिकार्ड के लिए खोजें व्युत्पन्न वर्गों के लिए ईवेंट बढ़ाएं}} मेरे पास ऐसे उपयोगकर्ता नियंत्रण हैं जो इस सामान्य नियंत्रण से वंचित हैं अब जब मैं डीबी से एक रिकॉर्ड की खोज करता हूं, तो मैं घटना को विरासत में मिली नियंत्रण में बढ़ाऊंगा। मैं यह कैसे कर सकता हूं? सार्वजनिक शून्य खोज () {टी रिकॉर्ड = FindRecordCore (); अगर (रिकॉर्ड! = डिफ़ॉल्ट (टी)) {var रिकॉर्डफ़ाउंड = रिकॉर्डफ़ाउंड; अगर (रिकार्डफ़ाउंड! = रिक्त) रिकार्डफाउंड (यह, नया रिकॉर्डफॉउन्डएवेंटअर्ज (रिकॉर्ड)); }} घटनाओं के लिए सामान्य पैटर्न का अनुसरण करने के लिए आपको एक विशिष्ट OnXyz विधि जोड़ना चाहिए: संरक्षि...

SVMWithSGD in Spark documentation example not working -

I'm running SPARC 1.1.0 with PySpark. When I run the example taken directly from the documentation: Import from pyspark.mllib.regression LabelingPoint from pyspark.mllib.classification Import SVMWithSGD Import Array Data = [LabeledPoint LabelingPoint (1.0, [2.0] ]), LabelPoint (1.0, [3.0]) svm = SVMWithSGD.train (sc.parallelize (data)) svm. Prediction (array ([1.0])> I get an error: type error traceback (most recent call final) & Lt; module & gt; () 12 13 svm = SVMWithSGD.train (sc.parallelize (data)) in & lt; ipython-input-5-68bcda022b28 & gt; 14 svm.predict (array ([1.0]) gt; Error type: 'module' object is not worth the corner What could be the problem? I was importing incorrect array package I import array numpy income From the array

.net - VB6's vbNull equivalent in VB.Net? -

I would like to use VB.Net to search and it should have seen the value of VbNull VB6 , But I can not find the proper value that represents zero value. NumberFormatInfo = DirectCast as Dim formatProvider (CultureInfo.GetCultureInfo ("es-ES"). NumberFormat.Clone, NumberFormatInfo) with FormatProvider .NumberDecimalSeparator = Microsoft.VisualBasic.vbNull with End String = Math.PI.ToString (String.Epty, Format Provider) as a slow PI NumberDecimalSeparator property does not accept empty values, but it vbNull also stores the value and it works completely (the separator has been deleted), so ... I think I get the same result again in VB6 thing Not on the net class library to avoid resort. I have tried to replace vbNull with those codes, but all the exceptions are due to the blanket restriction of the pro, I mentioned above that perty: "" string. Empty control charge. > I have also tried these solutions, none of these throws an exception to the ...

javascript - Is this a bad design pattern? -

In a recent discussion for junior JavaScript developers, I mentioned the following techniques to reduce laboriousness if / Or blocks where OR operand is used: if (/^(cat_dog_horse)$/.test(animal)) {...} instead of if (animal == 'cat' || animal == 'dog' || beast == 'horse') {...} I have never had any problems with this but a person suggested This was a poorly designed pattern, because without extension, I think that "trying to be very smart" and in doing so, you have introduced many new potential points (in reggax syntax) of the failures, and Code is made less expression / idiotic Usually, in this way I am only going to work, you can also fight if your operands 'cat' Being either dynamic or variable in some way Areas were going. As far as an array is started: if (['cat', 'dog', 'horse']. IndexOf (animal)! = -1) {... } Honestly, though, all this laugh is subjective, so there is no "right...

vb.net - Output to Word Visual Basic -

Good morning stackers, this community has not helped anything but so today .. my dilemma Right now I directly output it to a preformatted approach window, this amount to dim outl object outl = CreateObject ("Outlook.Application") if outl isnot nothing then As the object OMSG = Outl.CreateItem OMSG dim (0) omsg.To = IncidentCommander omsg.bcc = "ICTimeline@nshs.edu" omsg.subject = "Time for CSTR (IncidentName)" + "-" + CSTR ( Incprob) + "#" + CSTR (IncidentNumber) + "-" + "Date:" + D + vbCrLf omsg.body = TimeLine.Text omsg.Display (true) 'message will display the end to the user then I need to change that from an MS with the same parameter To output to Word Doctor, output those outputs to those outputs with those parameters I'm directly opening my approach to copying objet or some insight .. Thanks in advance! In addition, What if the syntax for X or Y or Z is Good, I've received a whi...

ios - UITableView Height does not fit container vertically (bottom) for different iPhone devices -

I have a UITableView that is in one view. I am testing the app on iPhone 4S and it is very good doing work. Now I tried to test it on iPhone 5S (which has a long screen). UITableView is not suitable for the bottom I know that it has to do with auto layout, but I'm not sure how to set it up. There are two approaches in my mind: 1-) Programmaticly set the height for the screen and then setting the UITableView height to the screen to fit the program 2 -) Using auto-layout in the interface builder. But I get the warning that autolayout works only for iOS 8 and higher. So how do I apply it to the lower versions of iOS? So my question is: How to set the speed of a UITWV so that it fits in the lower part of the screen whether it is the iPhone screen? Thanks for any help. You can set different table views for different screen sizes in this way. It defines in the header of the .m file #define IS_IPHONE_5 (Fibs ((double) [[UIScreen main screen] limit] .size.height - (d...

qt - qcombobox: use non-first character for keyboard navigation -

Assume that I have a list of items: "1 apple 1" , "02 Apple 2", "03 banana", "04 orange 1", "05 orange 2" Is there a way to create a QComboBox " Ken "to select" Code "> 04 Orange 1" and "B" to select the "O" user (for example). You can use an event filter for this purpose. For your combo box. Install an Event Filter if the Event Type is QEvent :: KeyPress , find out which key is pressed and if you are interested, then your widget / dialog / main window will need the necessary information Simply emit the signal that combo-box. You can find an example.

python - Fastest way to convert ubyte [0, 255] array to float array [-0.5, +0.5] with NumPy -

The question is in the title and it is very straightforward. I have a file from F I am reading the ubyte array: arr = numpy.fromfile (F, '& gt; u1', size * rows * cols Currently, I am rearranging the data in 3 passes, as follows: arr = images.astype (float) arr - = max_value / 2.0 arr / = max_value Since The array is somewhat larger, it takes an important part of each other. It would be nice if I could do this through data 1 or 2 near Because I think it will be faster. Do I have to reduce the number of passes for a "composite" vector? or, do I have to speed up this speed Another way? itemprop = "text"> I did: ar = ar - 255/2 r * * = 1./255 looks fast :) No, I have finished it, this is my system It is almost twice as fast as it seems that ar = ar - 255/2 In addition to decreasing and type conversion on the fly, it does not optimize the segmentation with a scalar: it is faster to split a bunch of times man...

Registering an Interceptor For All Interface Implementaions in Castle Windsor -

I'm quite new to the castle and especially to the Windsor using Interceptors and if it's all across a It is possible to register the interceptor, in return, instead of specifying each implementation, implementing a particular interface. For example, I have an interface called IComponent , which will be implemented by multiple classes. I have a ComponentInterceptor class written to work on these classes when they have performed a particular method, I want to do something like this: _container Register (Component.For & LT; IComponent & gt; () .Interceptors ("ComponentInterceptor") .LifestyleSingleton ()) Rather than what to do: _container.register (Component.For & lt; IComponent & gt; (). ImplementedBy & lt; Componenta & gt; () .Interceptors ("ComponentInterceptor") .LifestyleSingleton ()), _container.Register (Component . & Lt; IComponent & gt; (.) ImplementedBy & LT; ComponentB & gt; () .Interceptors (...

php - Dependency Injection / LoD -

I understand the basic principles of dependency injection, but how to handle early classes within the methods of other classes, Wants some advice; Does this dependency go against the injection pattern? In addition, I would like to write the object (class) in DB (object form in Mongo) and do not want it to be framed with other dependencies. To illustrate better what I'm saying here is an example: We say that we have a user class that is injected with a server class - class user {public $ user_id public $ user_name; Public function __ composition (server $ server) {$ this- & gt; Server = $ server; } Delete Public Function () {// ... Delete user code // Send mail to user mailer = new mailer ($ this-> server); $ Mailer- & gt; Sendmail (); }} Two things about this This means that the user class is now bloated because it also has a server class Does it break demeter's law? In addition to passing the user class to the mailer class, the server class is n...

java - Jersey REST service as Mule pooled component doesn't work as expected -

I am trying to work as a component shared in a Jersey resource vertically ESB 3.4.0 Mule flow configuration looks like this (Jersey resource is managed by Spring): & Lt; Pooling-profile maxactive = "3" /> & Lt; / Deposit Components & gt; & Lt; / Jersey: resources & gt; this & lt; Flow / & gt; is defined inside the tag. I assumed that it would be recycled by giving three examples of service. When the service runs 100 calls (each call is in its thread), then I think that only one example of service (jersey resource) is called if annotated with @Sington, And 100 different instances are said without @ Sissington. How can I ensure that only 3 instances are created and reused?

java - onLocationChanged isn't called even though the GPS provider is availble -

मैं MyCustomLocationListener का उपयोग करके उपकरण वर्तमान स्थान प्राप्त करने का प्रयास करता हूं। मेरा कोड यहाँ से गुजरता है और संकेत दिया जीपीएस और नेटवर्क प्रदाताओं दोनों उपलब्ध हैं // जीपीएस स्थिति isGPSEnabled = androidLocationManager .isProviderEnabled (LocationManager.GPS_PROVIDER) हो रही है। // हो रही नेटवर्क स्थिति है NetworkEnabled = androidLocationManager .isProviderEnabled (LocationManager.NETWORK_PROVIDER); If (! IsGPSEnabled & amp;! IsNetworkEnabled) {// कोई नेटवर्क प्रदाता लॉग सक्षम नहीं है। (MyLogger.TAG, "गैर प्रदाता सक्षम हैं"); showEnableGpsDialog (); वापसी; } If (isGPSEnabled) {androidLocationManager.requestLocationUpdates (LocationManager.GPS_PROVIDER, 0, 0, saveToSharedPrefListener); लॉग डी। (MyLogger.TAG, "जीपीएस सक्षम"); } अगर (isNetworkEnabled) {अगर (androidLocationManager == नल) {androidLocationManager.requestLocationUpdates (LocationManager.NETWORK_PROVIDER, 0, 0, saveToSharedPrefListener); लॉग डी। (MyLogger.TAG, "नेटवर्क ...

MySQL CROSS JOIN FROM syntax -

मेरे पास निम्न क्वेरी काम कर रही है SELECT newTable.Score, COUNT (1) AS कुल, COUNT (1) / टीक्यूएन्ट * 100 एएबी से आईबेटेबल से नयाटेबल क्रॉस जॉइन करें (SELECT COUNT (1) AS mytable से गणना करें) टी ग्रुप द्वारा newTable.Score ORDER फ़्रीक्वेंसी डीईएससी हालांकि, दो चीजें जो मुझे MySQL डॉक्स से नहीं समझती हैं: 1) मुझे समझ में नहीं आ रहा है कि क्यों कोई अल्पविराम नहीं है, या एक जुड़ने के प्रकार, खंड से निर्दिष्ट MySQL दस्तावेज़ पढ़ना, यह आवश्यक लगता है। 2) क्रॉस जॉइन क्लॉज में 'टी' क्या दर्शाता है? किसी भी सलाह की सराहना की। t जैसा कि newTable - यह तालिका के लिए एक उपनाम नाम है और उस अस्थायी तालिका का निर्माण किया जाता है जो कि सबक्व्यूरी बनाता है। वैकल्पिक के रूप में कीवर्ड का उपयोग किया जाता है नया टैब्लेट चुनें.कोक, COUNT (1) एएस कुल, COUNT (1) / टीक्यूउंट * 100 एसी के रूप में mytable से नएटेबल क्रॉस के रूप में जुड़ें (SELECT COUNT (1) AS mytable से गणना करें) टी के रूप में ग्रुप द्वारा newTable.Score आदेश द्वारा आवृत्ति डीईएससी एक उपनाम नाम ...

Javascript API for Office: How Can I Manually Trigger MS Office's AutoFormat Functionality? -

Background: I'm building a web application within MS Excel JavaScript for office Using APIs. A functionality I am adding to the app has the ability to edit data from the app. This sends data to the API in the API via the setDataAsync function, it works for plain text. If I enter an email address in a strange'm running into a problem when I manually from a cell with an email address, Excel Auto him a mailto: in the Hyperlink This does not happen when I set the data with javascript. I need to remove a way to force Excel to auto-format. I have an alternative idea that has already created the data in a link itself, using it: = hyperlink ("mailto: person @ website. However, when looking at a manual cell, they will see that only the address instead of the long formula Function writeData (bindingID, newData, line, column) {var newTable = New: and reading it back in the web app will be a nightmare current code. Office.TableData (); NewTable.rows = [[New data...

php - Exported Database is Empty -

I have a code to backup the database using mysqldump though, output There is a file inside the empty data. Below is the script. $ command = "mysqldump -u root -p vti_ctes_demo> db / backupfile.sql"; System ($ command); mysqldump -u root-p [root_password] [database_name]> dumpfilename.sql It seems that you forgot to type the password

git branch - Recover from Git Detached HEAD -

I was stupidly mistaken in the guitar, I was clicking twice on a tag. And my repository checked that specific tag and git status gave the following output HEAD added - separated on MySQL-cnf I Just want to go back to my master branch I created a new tmp branch and now when I execute GIT checkout master Then it should check the master branch. git checkout master error: tree files that do the following unwanted work will be overwritten by checkout: docs / make.bat script / mycycle_backup.bat script / run.bat please switch the branches Move them or remove them first. Revoke the status of GT on Branch TMP untracked files: (What will be included in this to use "GIT Ad and lieutenic; File & gt; ...") ../docs/ ../scripts / Is added to do anything, but unretch files are present (use and to save no local changes to hide git I have no idea what to do please can help me , I just want to return to my master branch .

ruby - Can't get service to start on chef -

"postprint" itemprop = "text"> I have a service resource, but I can not get the chef to start it, instead the chef simply spit out an error message: SystemCallError: The specified service does not exist as an installed service - Open Service: The specified service does not exist as an installed service. I'm not sure what to do to fix it and I can not find anything on this error (I is not showing in the right place.) This service is distributed as an established gem. Service is that Win32-Service uses a Sinatra app GEM This is a service platform to start as Windows Server (I know, but I have no choice, I have windows server The chef recipe for this service is the code: service service_name init_command ("# {% {gem env gemdir} .strip" .gsub ('/', '\\')} \ gems \\ # {SERVICE_NAME} - # {installation_version} ") START_COMMAND" Rake service: start "stop_command" rake service: stop "reload_command...

delphi - Auto refresh of UI control -

I have a problem while using Delphi. In my UI, I have a label and 5 buttons. Clicking on the 5 button may change some status, which affects the label caption. The onclick functions of 5 buttons have already been implemented, so I need to add the code to change the labels caption to each of these functions. This is not good. How do labels auto change captions while checking the status? In VC, the label can notify the message from time to time, can Delphi do this? Update Update for a verb, action list or action manager event handler These events are removed when the message loop completes the process of user input and becomes useless. This is perfect for your needs because the result of the change of label captions is always the result of user input. Another way to achieve the same effect is to assign a TApplicationEvents component to the OnIdle event of that component.

C# - Creating an overloaded method where one int uses a fixed value and the other receives a value -

I am trying to set the value of an overloaded method to 1, but I wanted the original to remain raw I am {} Public zero method1 (string string 1, decimal decimal 1, int int1) {} public zero method 1 (string string 1, decimal decimal 1, int int1 = 1) {} I get the following error: & gt; Error 2 type 'Application1.Application' already defines a member named 'Method1' with the same parameter type this int int1 = 1 . In the second version of the law, I want always equal to 1 int1 , but first I want the user to get the value entered, and therefore is now crude for Sorry if asked before, but after an hour of searching I have not found any results for this. If I am missing something here, please tell me, I will try to give a better description or more details. The problem is that you have got two methods with the same signature. The simplest solution is to remove the last parameter from the second overload, and only call the first overload with a hard-c...

validation - Unity3d 4.6 beta17 UI Restrict input text to numbers only -

Image
According to the title, is there any way to limit input text to numbers only? Edit: It seems that the solution will be: Public input input; Zero Starter () {input.keyboardType = TouchScreenKeyboardType.NumberPad; Input.validation = InputField.Validation.Integer; } or debug inspector and more, choose: Switch the inspector into debug mode, then you can enter a field You can use the keyboard type called and change it to what you want

Is nexus able to provide artifacts of not configured repositories? -

I'm using Nexus to make our companies server as a proxy, sometimes developers can tell me Adding new dependencies to projects, therefore, the list of proxy treasures is sometimes not in sync which is really necessary. Consequently, jobs in our Jenkins Build server fail due to artificial disappearances. Jenkins is configured to use the Nexus Proxy repositories. Is it possible for Nexus to download artifacts from the original store if it does not get found in proximity people? I believe developers should get further reliance on repository entries in their Maven palm file And / or their settings .xml has been added to modify. On the other hand, the CI server is configured to get everything with the IRROF *. There is no additional repository based on this setup Or you have two things to educate your developers Iho Create scripts that use the Nexus REST API for you. You can also tell you to add a proxy repo to the Nexus Potentially you can also use in POM a...

if statement - PHP If Else Error -

I am trying to fill the table with the data from the database using mysqli and php. Using the following code: & lt ;? Php if (mysqli_num_rows ($ search_query) & gt; {) {to {& lt; Tr & gt; & Lt; TD & gt; Resonate $ rows ['COL 1']; & Lt; / TD & gt; & Lt; TD & gt; Resonate $ rows ['COL 2']; & Lt; / TD & gt; & Lt; TD & gt; Echo $ rows ['COL 3']; & Lt; / TD & gt; & Lt; TD & gt; $ Rows ['col 4']; & Lt; / TD & gt; & Lt; TD & gt; Resonate $ rows ['col 5']; & Lt; / TD & gt; & Lt; TD & gt; $ Rows ['col 6']; & Lt; / TD & gt; & Lt; TD & gt; Repeat $ rows ['COL 7']; & Lt; / TD & gt; & Lt; TD & gt; $ Rows ['col 8']; & Lt; / TD & gt; & Lt; TD & gt; Resonate $ rows ['col 9']; & Lt; / TD & gt; & Lt; TD & gt; $ Lines ['COL 10'] resonate; & Lt; / TD ...

jquery - convert a parsed json to javascript array -

नमस्कार, मेरे पास उस PHP कोड की तरह है: $ array1 = array (" फल "= & gt;" केला "," सब्जियां "= & gt;" टोमेटो "); $ Array2 = सरणी ("नाम" = & gt; "जैक", "आयु" = & gt; "32"); $ Array3 = सरणी ($ array1, $ array2); गूंज json_encode ($ array3); जावास्क्रिप्ट कोड jquery शामिल हैं: var json_data = $ .ajax ({प्रकार: 'पोस्ट', url: 'स्क्रिप्ट / myfile.php', डेटा: {action: 'myaction'}, डेटाप्रकार: 'जेसन', कैश: गलत, सफलता: कार्य (परिणाम) {}}); Console.log (json_data); यह ब्राउज़र की कंसोल में json_data सामग्री है: "{" HUM ": [{" label ":" 2014-10-16 17: 08:55 "," y ":" 58 "}, {" लेबल ":" 2014-10-15 08:16:55 "," y ":" 56 "}, {" लेबल ":" 2014-10 -15 08:16:50 "," y ":" 56 "}, {" label ":" 2014-10-15 08:16:45 ...

netbeans - Display two windows at the same time "on fullscreen" with JavaFx Scene Builder 2.0 -

I am working on a small application where I have to show the user twice at the same time but on fullscreen (The app will be made for users on dual screens.) I am working with JavaFox View Builder 2.0 on Netbusiness 8.0.1 I tried to do this but Only full screen display on the second window. Public Zero Show Docerian () {{Root = FXML Loader. Load (getClass (). GetResource ("ClientsOperationsWindow.fxml")); Visual View = New View (Route); GlobalStage.setScene (view); GlobalStage.setFullScreen (true); GlobalStage.setResizable (true); GlobalStage.show (); Phase One and Phase = New Phase (); Parents secondRoot = FXMLLoader.load (getClass (.) GetResource ("ClientsSearchWindow.fxml")); Visual secondarystage = new view (second root); SecondStage.setScene (anotherScene); SecondStage.setFullScreen (true); SecondStage.show (); } Hold (exception pre) {System.out.println (ex.getMessage ()); }} Is it possible to display two windows on fullscreen? Thank you! I ...

android - Configure Eclipse for Phonegap build -

I am new to PhoneGrap and have successfully created my first app and have compiled first on-line, then PhoneGap, Android Set SDK etc. Locally, I can encode and run in the emulator using 'PhoneGap Run Android' on the command prompt (windows). I installed the eclipse for an IDE and imported the project. Now I can run the project from inside eclipse. Although I am really struggling with Eclipse Build. To solve all the problems and to reach this stage, it has already taken days, but I have reached the point where I can not make progress, though it seems very easy. Build project option is disabled, it is turned on that I add something under 'Builder' under 'Builder Path Configure', but I do not know what I should do here. I can go back to CMD prompt and build, refresh in Eclipse and run modified version but it can not be the right way to do this? I must tell 'Phonegap Build' with Eclipse. But how? When you create a project using phonegap, i...

Install4j: Create shortcuts "Create program group" in Linux doesn't work -

In install4j, when I click on the "add button" button, "create program group" (add file link or add URL link) It works fine in Windows, but it does not work in Linux (no shortcut is created in Debian) Can someone help me? Thank you Launcher integration on Linux only works for launchers Additional program group entries were created only on Windows Are there.

hyperlink - W3c validator recursive -

When we use to check our links, one option is whether you use recycling or How does this option work? w3c validator will follow the link to your site, and follow all links again from there ( Depending on what you specify)

"End of statement expected " string syntax error in python -

Image
मेरे पास निम्न चर असाइनमेंट है: xpath_query =" xpath = '// a [@ id = "mylink"]' " यह मुझे मेरे pycharm संपादक में एक त्रुटि दे रहा है और जब मैं इस कोड को चलाता हूं तो एक वाक्यविन्यास त्रुटि देता है। मैं क्या कर रहा हूँ गलत? जब मैं लाल squiggle पर कर्सर पकड़ यह कहते हैं: "बयान का अंत उम्मीद है" आपके ब्लॉक के अंदर डबल कोट्स हैं इसलिए यह हो जाता है: "xpath = '/ a [@ id =" & lt; - साथ मिलकर -> "]'" इसलिए यह एक स्ट्रिंग वाक्यविन्यास है त्रुटि। " अंदर " " ब्लॉक को शामिल करने के लिए, आप \ को वर्ण से बचने के लिए उपयोग कर सकते हैं: xpath_query = "xpath = '// a [@id = \" mylink \ "]' '

Access 2013 VBA - Setting New Click Event for Controls -

I searched everywhere for this, and it looks like a simple improvement, but I do not seem to find a solution Happen. I have many rectangles controls in my Access 2013 form, and I'm creating an OnClick event that manages them all. I've worked on a few different ways, and I think I found the simplest / clear way to do this. I put control in one collection and I change the OnClick event for each control. Here's my problem: Opens the access form and acknowledges that I have changed the event for control, but once I click on the control, it throws an error and will not execute this event. Error: "event property setting has generated the following error recorded went expression as the name of a function in the went expressions recorded by the Microsoft Can not get access. " code: Collection dim CTL as Access.CONTROL set m_colRectangle = new archive for each CTL in Me.Controls Private Sub Form_Load () dim m_colRectangle so ctl.ControlType = acRectangle the...

docusignapi - DocuSign visual editor on web site -

Image
My company wants to integrate DocuSign for our project. We have an implemented form workflow for the Ecosyag API and we want to know that Docusin has embedded the visual editor To create envelope templates from us, we want to create a template in our service without requiring redirecting the user without any direction. I believe that you have the embedded signature functionality that DocuSign offers is. See "Embedded Signing" listed below in the API walkthrough below:

c# - ESRI Map control PanTo -

I am trying to create a map center on some latitude / longitude, but the Aryan Map controls its own X / Y coordinate system uses it. Control. MachinControl.Panto (new mappoint (control mapceter.latidad, control.mepCenter.length)); This code does not work. Is there any "conversion" routine to exit Metpaul Lat / Lon or what should I do? The method which I use in the Esri coordinates (local reference 102100) from LIT / Long (local reference 4326) , Is as follows: // Map with latitude / long coordinate var mappoints = new mappoint (long, latitude); // Lat / Long to Esri var webMercator = New WebMercator () is required to be converted; Var changed = (mappoint) webMercator.FromGeographic (mapPoint); Before you make a conversion step, you can check the spatial reference of mapPoint to see if it needs to be changed.

string - PHP not rendering newlines in content retrieved from database -

My own CMS is going to be complete, but for some reason the article does not display new lines in the viewing page content Is derived from the database. After creation, new lines look fine in the "Edit Post" window so that they can be saved correctly. I am passing the content through htmlspecialchars () when it is retrieved what could be wrong? Thank you, Illiante You get a $ Content = nl2br ($ Content) Call to convert real line breaks to HTML line breaks after your HTML.

sorting - SSRS sort before group on in a row group -

I did a grouping in a report on it. I had a group on a code, to get rid of duplicate code. However, there was also a sequence in my date. My intention was to get the code first and remove all the duplicates, though instead SSRS got rid of it duplicate code, and then sort all the results according to the date! How can you "add to group" settings of a row group that you want only the initial date? You can group only the query if you are doing this in SQL: SELECT Code, MIN (SomeDate) AS MinTate code code from MyTable GROUP

c# - AWS Elastic Transcoder Endpoint cannot be resolved -

I am working on a project for which the video needs to be transcoded and through the use of the AWS Lowstick Transcoder There are thumbnails to be removed. I have followed the APIs for my capabilities and I have the right code. However, I still get an error with NameResolutionFailure and an internal exception is saying that the remote name can not be solved: 'elastictranscoder.us-west-2.amazonaws. Com 'my code is: var transcoder = new Amazon elastic troncoder client (static.amazon s3evicet, static. Amazon s3 secret, personal endpoint, USWest 2); Var G = New JobPaint {Aspectatio = "Auto", Container = "mov", Framerate = "Auto", Interlaced = "Auto", Resolution = "Auto", Key = Filename}; Var output = new CreateJobOutput {ThumbnailPattern = filename + "_ {count}", rotate = "auto", preset id = "1351620000001-000010", key = file name + "_enc.mp4"}; Var createJob = New CreateJobRequest {...

java - How to use goto statement correctly -

मैं अपने उच्च विद्यालय एपी कंप्यूटर विज्ञान कक्षा ले रहा हूं। मैंने सिर्फ एक प्रयोगशालाओं में से एक में गोटो कथन फेंकने का निर्णय लिया है, लेकिन मुझे यह त्रुटि मिली है। सूत्र में अपवाद "मुख्य" java.lang.Error: समाधान नहीं किया गया संकलन समस्याओं: टोकन पर सिंटेक्स त्रुटि "गोटो", जोर की उम्मीद पुनः आरंभ Chapter_3.Lab03_Chapter3.Factorial में एक चर को हल नहीं किया जा सकता है। मुख्य (फैक्टोरियल.जावा 28) मैं इसे ठीक से कैसे करना है यह जानने के लिए स्टैक ओवरफ्लो पर एक गोटो प्रश्न पर गया, और मैंने ठीक उसी तरह किया जैसा दिखाया गया था उत्तर में से एक में मुझे सच में समझ में नहीं आ रहा है कि कंपाइलर एक जोर कथन (कम से कम मुझे लगता है कि यह चाहता है) चाहता है, और न ही मेरे पास कोई भी विचार है जिसका उपयोग assert ऐसा लगता है कि गोटो पुनरारंभ करने का पुनः आरंभ हिस्सा चाहते हैं; एक चर होने के लिए, लेकिन पुनरारंभ केवल एक लेबल है जो प्रोग्राम को वापस 10 तक खींचता है ताकि उपयोगकर्ता एक वैध int । यदि वह एक चर पुनरारंभ करना चाहता है, तो मैं ऐसा कैसे कर सकता हूं? ...

java - OSGi: Conditional Permission Admin OR User Admin -

Is the conditional permission for OSG's supplement or special administration and user administration services? I am developing a home automation project based on OSGI and I am not sure whether I should implement security services or not. The application will eventually reach through the internet, but there will be no group of users with accounts. I think the 'User Admin' is the ideal for a website or an application that will be a certified dedicated user. In my case, the application can communicate with other applications that live in different places, so some authentication may be required for this. But implementing the 'conditional permission administration' user will not have enough security benefits? My plan is to use 'conditional permission administration' and to create custom conditions to control such special actions, such as sharing resources with other bundles. Is it enough or will I apply both. Apart from this, will both services be running...

arrays - Abort trap 6 error in C -

I have this code: Invalid DrawinelAnim (Int number 1, int no 2 , Int number 3) {int board [2] [50]; Make an array with // 3 columns int i; // i, j, k loop counters are int j Int k; For (i = 0; i & lt; num1 + 1; i ++) // fill the array with rocks, or 'o' board [0] [i] = 'o'; // For example, if num1 is 5, then fill the first row in 5 rocks for the board 5 (i = 0; i & lt; num2 + 1; i ++) [1] [i] = 'O' ; For (i = 0; i When I compile it with GCC, then it's OK. When I run the file, I get the error abort trap 6 after entering the values. I have looked at other posts about this error, and they do not help me. Try it out: Try it: Invalid Drawnational Anime (int no 1, Int number 2, int number 3) {int board [3] [50] = {0}; // This is a local variable, it is not possible to use it after returning from this function. Int i, j, k; For (i = 0; i & lt; num1; i ++) board [0] [i] = 'o'; For (i = 0; i & lt; num2; i ++) board [1] [i] ...

windows runtime - Is there a quick way to locate the SQLite database that my app creates? -

I used my form as a base for creating SQLite tables , I I can see built tables well. However, to make connections in that device first, I had to find out the SQLite database that was created. I searched for a hard drive for it, and found it in: c: \ user \ clay \ apeda \ local \ package \ 99129e92-ebeb-4800-a0e5- d0e43b016009_qtyjefqf75sa6 \ localet \ Fotrax .sqlite Now how in the world would I know that it was in the 99129e92-ebeb-4800-a0e5- d0e43b016009_qtyjefqf75sa6 (there are many similarly Welch- The folded folders are C: \ Users \ Clay \ AppData \ Local \ Packages below, so how do I know what it is? Surely there is another great way to find it instead of doing a global search. c: \ user \ clay \ appadata \ local package where all your applications store their data And your package ID is most likely to be from 99129e92-ABB-4800-AA-501A 43 BCC9XX Manifest. You can simply use ApplicationData.LocalFolder.Path to get the path.

java - How to map domain objects to CQL Tables using Spring Data Cassandra? -

मेरे पास दो मॉडल वर्ग हैं: सार्वजनिक वर्ग AlertMatchesDTO Serializable लागू करता है {निजी स्थिर अंतिम लम्बा SerialVersionUID = -3704734448105124277L; @PrimaryKey निजी स्ट्रिंग चेतावनी; @ कॉलम ("मैचों") निजी सूची & lt; HotelPriceDTO & gt; मैचों; ...} सार्वजनिक वर्ग HotelPriceDTO Serializable लागू {निजी स्थिर अंतिम लंबे धारावाहिक VERSIONUID = 8751629882750913707L; निजी लांग होटलओड; निजी डबल कीमत बायलाइन; निजी दिनांक चेक इन; निजी तिथि चेक आउट; ...} और मैं वसंत डेटा का उपयोग कर एक Cassandra कॉलम परिवार में प्रथम श्रेणी के उदाहरणों को जारी रखना चाहता हूं। विशेष रूप से इस तरह के कैसन्द्रा टेम्पलेट का उपयोग कर: ... cassandraTemplate.insert (डीटीओ, लेखन विकल्प); ... और स्प्रिंग डाटा में समस्याएँ सूची & lt; HotelPriceDTO & gt; मुझे लगता है कि मुझे क्या चाहिए cassandraTemplate कैसे बताई जा सकती है आधिकारिक प्रलेखन में, यह कह रहा है कि मुझे CassandraMappingConverter और मैपिंगकैसैंड्रैक कनवर्टर का उपयोग करना है, लेकिन वे अभी तक एक उदाहरण प्रदान नही...

firefox addon - How can I track which tab or content script a message came from? -

In the Firefox add-on I need to track what tab content is associated with the contents of the script data to the Main.js . Later, when the user clicks the extension's button in the toolbar, he will see data related to the active tab. In Chrome Extensions, when a message was received, I could ask which message came from which tab and track messages by tab id in Firefox also, but the content from script to them There is no easy way to reach. The answer depends on which content you are creating the script. Below is an example of a main.js file to add the content script below. var button = required ('sdk / ui / button / action'), pageMod = is required ('Sdk / page-mod'), data = ('sdk / Self '). Data; Map of messages marked with // tab id var messages = {}; PageMod.PageMod ({include: 'http://www.example.com', contentScriptFile: [data.url ('my-script.js')], etet: function (worker) {// received from tab id Save the worker var tabId ...

bufferedreader - Skipping a character in java -

I try to write a code that is reading data from a file and writing it to another file And should also include the functionality to leave a specific character from my input file and then it should be written in another file. import java.io. *; Class Test {Public Static Zero Main (string [] args throws IOException {// open new fileReader in streams ("input.txt"); BufferedReader br = new BufferedReader (in); FileWriter Out = New FileWriter ("output.txt"); Buffett Vitter BW = New Baffed Vetter (Out); Int c = 0; While ((c = in.read ())! = -1) {in .read (); Bw.write ((four) c); } Br.close (); Bw.close (); }} I want to leave the character one from the input file data, and say my input file is name: ABC I have to type Nme: bc in the output file. But instead I'm getting nm:. BC in the output file I also try to use () the method of BufferedReader but it still give the right output Is not it itemprop = "text"> leave There...

Magento Onepage Checkout Place Order button redirects to empty cart instead to success page -

I have an issue, and can not figure out what is the reason for this. Everything is working fine on my local machine, but when the code is run on the staging server on the location order button, I am being redirected to the empty cart page. I've seen system.log and exceptions.log, and also inspected through firebug, but I can not find anything. Was there a problem similar to someone, or how to fix it. Thanks BTW This is Magento EE 1.14

sqlite - Select query with logical operators as sub query -

I will run conditional selection queries on the table of sewer structures (S_ Structure) in Sikyat. The table contains the following columns: struct_type (structure type) and year (construction year). The selection will be based on the structure type as well as the structure age, I think I have sorted the selection selection bit and in relation to age, I want to cut the year from the local time. It's all right and well, but what kind of rational operator do I define as sub queries for: 2 & lt; Age and lieutenant; = 5. Select [Year], [StrikeTipp] from [S_Structures] WHERE [Struc_Type] No ("Manhole", "Roading I", "Dummy", "And Manhole", "T-Piece "," Sub-catchment "," top end "); And where (striptime ('% Y', 'now') - year) & gt; '2' and (striptime ('% Y', 'now') - year); & Lt; = '5'; A subquery will be included in an additional selection fie...

java - How is a merge-base done in JGit? -

I'm looking at the current version 3.5.1.201410131835-r , and I can not Find Equals I would like to determine whether a branch is up-to-date, backward, forward or different, as shown. What is the shortest way to find a merge in jeggage as a good general ancestor as possible? You RevFilter.MERGE_BASE for: RevWalk walk = new RevWalk (repository); Walk.setRevFilter (RevFilter.MERGE_BASE); Walk.markStart (commit1); Walk.markStart (commit2); RevCommit merge = walk.next (); Also keep in mind that if you are interested, then the number of any branch is ahead / behind than its tele-television branch.

javascript - Rotating a simple cube twice -

I have some experience on Blender 3D, but there is almost no one on 3D programming and I with three I'm trying to work .js now. My question is this: I have a simple cube and I have rotated it around y-axis ; So I need to rotate it around y-axis , but as if the axis was rotated I would press RKEY twice on Blender. The first time I used to rotate: cube.rotation.y + = Math.PI * .5; How can I do this in three.js? I also tried some matrix changes, but I could have. - @Myoumota help me with a puzzle, so I am completing my explanation below: Thanks @Myoomota, this example will help me Explain what I am trying to do! Here is a more explicit description: The cube has been rotated twice (y and z) and then will be rotated unlimited at y axis . What I am trying to do is to always turn parallels in his face - just like the first rotating faces have similarities. If you rotate cubic 90 degrees every frame, it will look the same and you feel that it does not rotate (B...

regex - python re.sub using() replace string within a line -

I'm trying to simplify: I have a line of text file and I know the exact format. There are six integers in a row different than the spaces. For example: line = '78 170 180 1 2 3 ' What should I do with the second number Number This replacement has been passed as a variable (i.e., is not known and not hard-coded): num_replace_str Therefore, I want a part of the code like: newline = re.sub (r '\ d + \ s \ d + \ s \ d + \ s (\ d +) \ s \ d + \ S \ d + \ s', num_replace_str, line) A result will arise like this: Print Newline 78 170 180 50 2 3 I Just want to change the fourth number, which I have tried to group (), num_replace_str with string (num_replace_str = '50' in this example. It seems that you can split the string, enter the new value and " .add. back together. split = Line.split () partition [3] = str (50) new_line = '' .join (division) example: & Gt; & Gt; & Gt; Line = '78 170 180 1...

javascript - Append Dupplicates First Time -

I am facing two issues if someone can help me who would be great. Addend Duplicate. Blog Post For the first time when I try to click Load more buttons, but it works fine with the second click. Duplicate the same post again by clicking on a quick click or again // AJAX load more Blog Post Function AJAXLoadMorePosts ($ {'(more .posts'). Click (function (e) {e.preventDefault (); // variable vari element = $ (this); var target = element.attr ('href' ); Var post_wrapper = $ ('.blog-post-wrapper'); / / AJAX $ .Jack up AJAX ({type: 'GET', url: target, success: function (data, textstats, xmlHttriwist) {// store New data var new_post_items = $ (data) .fi ('.blog-posts'); var next_page_url = $ (data) .find ('.nav-ago a'). Attr ('href'); // update load more button href (Next_page_url) {element.attr ('href', next_page_url);} and {element.slideUp ();} Post_wrapper.append (new_post_items);}, complete: function () {element.h...

csom - DraftProjectResource->IsGenericResource returning wrong value -

I am using CSOM to cross a project through Project Server 2013 resources. I am checking that the resources are normal because I wrote code logic based on it. I have a BA and PM generic resource which is part of a project I added to the project server using the Build Team feature. These resources are shown with the normal Zedic flag while viewing them in the Resource Center. But returning IsGenericResource as the program code False . Here the code snippet (relevant code ** is in): Public string process generic resource (ProjectConttex PC, published published project project) {try {Boolean BSFringRoustEight update = False; // It will be set to correct when a staffing list item updates the string sResourceApproverAttr = ExceptionUtility.ReadKeyFromConfig (sResourceApproverKey); String sRet = ""; Draft project project; If (published project.isacquetteat) project = published project. Draft This includes the custom field; Other Project = Publish Project. check out (). I...

Can a cell in ui-grid be rendered with a custom template? -

Disclaimer: I am new to UI-grid According to the UI-Grid document, this style It is possible for A. But is it possible to choose a template for a given cell? I just want to style more than class Yes, you cell template The default cell template you can use is cell template: '& lt; Div class = "ui-grid-cell-content" & gt; {{COL_FIELD CUSTOM_FILTERS}} & lt; / Div & gt;

javascript - Upload image from URL using AJAX just like StackOverflow does? -

Image
I am creating a project management module for SUGRMM and a part of my module is made up of the entire discussion forum. . Now when a user creates a new topic post or post reply, then I would like a button to add an image, then the user will be allowed to upload an image and post the URL of the uploaded image , It will also allow them to input the URL of an image and then upload it to our server and enter the URL as it was uploaded from the computer. Basically 2 examples that work exactly like I need GMAIL and StackOverflow. I illustrate the picture examples given below if it is in action on both sites. I've got a great AJAX upload script so I think how will I need to create a model window that is the uploader and after that tab which allows them to input a URL At the point I need to trigger an upload with the URL and then put it in my tetherera. Do anyone have any examples of this kind or library's address which does this already? This code uses jQuery to...

Tomcat APR connector and POODLE -

I have an APR + SSL connector Tomket 7.0 running some production server and recently caused me crazy attack asked was to completely disable SSLv3 in some of these servers I opened through the document and accordingly, SSLProtocol to TLSv1 ( instead should be sufficient to disable SSLv3 and apply TLSv1. The problem is that TLSv1 does not reject but the server SSLv3 seems to enable TLS. I got it openssl s_client -connect -ssl3 and I verified that plain-old SSLv3 connection can still be accepted , So I was thinking that this is a bug in tomcat or if there is anything else that requires me to disable SSLv3 completely set. UPDATE: I now Disabled APR for and use an NIO connector with sslProtocol = "TLS" New disabled and it works fine. The problem especially affects the APR. For reference, this is my new connector configuration: & lt; Connector port = "443" protocol = "org.apache.coyote.http11.Http11NioProtocol" SSLEnabled = "tru...

Is that possible to develop an Android app to control Sony SmartEyeglass? -

We believe that Sony has installed a host application on the Android device and a wired controller in SmartEyeglass, it seems that on the HostApp Android Is there a service without running UI? Is it possible to create an Android app with the user interface to control the glass? The SmartEggles extension is an Android app If you start developing with sample projects available in SmartEyeglass SDK, you will find that none of these are a launcher activity but you can add additional activity, it can provide additional control to your SmartEyeglass app. Note: HostApp also has a UI, which you can access in the System Tray by SmartEyeglass function, when the SmartEyeglass device or emulator is connected. This device is mostly used for configuration and its applications The host app is responsible for the communication between your extension and the host device.

What are good Haskell conventions for managing deeply nested bracket patterns? -

I am currently working in an HDF 5C library with Haskell binding. Like many libraries, it uses several points in the call of its functions. Use the Haskell function, such as alloca , android , etc. to allocate and release common resources "best practice" I often enter many nested brackets. For example, here is a small fraction for the HDF 5 binding: Select the hyperslab RID DN name = Dataset with RID dName $ \ dID -> What to do & lt; - Dataspace 10 $ \ dstDS - & gt; Do srcDS & lt; - c'H5Dget_space did dat & lt; - alloca3 (0, 1, 10) $ \ (start, sort, count) - & gt; Make a mistake & lt; - c'H5Sselect_hyperslab srcDS c'H5S_SELECT_SET start string count nullPtr - do some work ... return value alloca3 (a, b, c) verb = alloca $ \ aP - & gt; AP to Eloca $ $ bP - & gt; BPB light $$ cp - & gt; In the above code, nested brackets are bracket functions which I have written with dataset , withDataspace / Code>, and all...

c# - Async methods causing 404 errors in app start -

I am using async methods in my global.asax file, and one of the issues I am experiencing. Even though should work with async methods, when I set them to fire in Application_Start () , I get 404 errors until my App does not start, it has to be done when it should not be completed. This is the code in my global. Essex: Public class MvcApplication: System.Web.HttpApplication {protected Async zero applications_start () {var Init = new Init (); Awaiting Init.LoadAsync (); AreaRegistration.RegisterAllAreas (); FilterConfig.RegisterGlobalFilters (GlobalFilters.Filters); RouteConfig.RegisterRoutes (RouteTable.Routes); }} Since I'm thinking application_start () to wait command, app When starting, the Application_Start () function is not being waiting for itself, so invoke the method without creating the application_start () function or Application_Start () another way > a async method (the latter will be given preference). ASP AISNC is not allowed for...

syntax error - mySQL corruption "Cannot add foreign key constraint" trying to CREATE table -

संपादित करें यह एक भ्रष्ट mySQL डीबी समस्या है I Pls को "edit:" नीचे देखें क्लाइंट को एक नया mySQL डीबी में जोड़ने की कोशिश कर रहा है: बनाओ टैब 'क्लाइंट' (`आईडी` INT नहीं नल एटऑन्ग्रेमेंट , `व्यक्ति_आईडी` INT नहीं शून्य से कम '0', प्राथमिक कुंजी (` आईडी`)) COLLATE = 'latin1_swedish_ci' इंजन = InnoDB; हर बार जब मैं मिलता है: # 1215 - विदेशी कुंजी बाधा नहीं जोड़ सकता । मैंने सभी आरक्षित वर्ड सूचियों को देखा है जो मुझे मिल सकता है उनमें से कोई भी "क्लाइंट" नहीं है। मैं "क्लाइंट" का उपयोग कर सकता हूं (लेकिन टेबल को -0 के अन्य सभी एकवचन के रूप में पसंद नहीं करते हैं), "क्लाइंट पिक्चर्स" आदि। मैं वास्तव में "ग्राहक" का उपयोग करें क्या यह एक रास्ता है? यह महत्वपूर्ण है कि वे ग्राहक न हों। पीएस मैंने डीबी से अन्य सभी तालिकाओं को हटा दिया है, फिर भी यह उड़ नहीं जाएगा। पीपीएस हालांकि सूचीबद्ध नहीं है client है वास्तविकता में एसक्यूएल में एक आरक्षित शब्द (या कम से कम हेइडीएसक्यूएल इसे सूचीबद्ध करत...

java - generic array with wildcard cause error -

I wanted to create with JComboBox type string, but it is in an array, so I used wildcard for array And string for single elements: JComboBox & lt ;? & Gt; [] Combos = new JComboBox & lt ;? & Gt; [10]; ... cobas [i] = new jcbox box & lt; String & gt; (); DefaultComboBoxModels with same: DefaultComboBoxModel ... combo [i] .setModel (combo model [i]); Now the compiler returns the error (Capture # 13-of? # 14-Not applicable to capture?). One could expect that the single elements are set on the string and everything is fine. What is it about, how to deal with it? (Except for doing this raw) Java needs to be ensured that the model and combo are the same Are of type. On the given example, once the type went away after extinction, there is no way to do this. You can see the model & lt; Integer & gt; to combo & lt; String & gt; can be set.

java - Duplicate local variable n -

I am trying to solve the problem in Java, and am trying to find the answer. I could not find anything other than this fact, which I have declared a variable twice, which I do not know I received the user input for the starting number of the bottle, an integer "N" I am trying to do Please help and tell me how to change it and fix it. Here is a section of my code: public class bottlefoods {Private stationary scanner bottle; Bottles.useDelimiter ("\ n"); Bottles in the beer bottle Bottle on "System.out.println (" "" Beetle "+" Bottles in the Song " Enter the initial number of: "); int n = bottles.nextInt (); if (n> gt; 1) {System.out.print (n +" beer bottles on the wall, "+ +" bottles of bottles , Then "take one down," + or "pass around it"); N = n - 1; System.out.println (n + "beer bottles on the wall."); Number (n); } Else {if (n == 1) {System.out.print (n + "beer ...

Executing Ubuntu commands from java program -

आयात करें java.io.buffferedReader; आयात करें java.io.File; आयात java.io.IOException; आयात करें java.io.InputStreamReader; आयात करें java.util.ArrayList; आयात java.util.List; पब्लिक क्लास MyCommand {सार्वजनिक स्थैतिक शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {स्ट्रिंग [] कमांड लिस्ट = {"/ bin / bash", "- c", "/ home / atul / desktop / javaprogramm /", "एमकेडीआईआर न्यूमैनिशा", "एमकेडीआईआर न्यूमैनिशा"}; रनटाइम आर = रनटाइम.टाट टाइमटाइम (); कोशिश {प्रक्रिया p ​​= r.exec (commandList); बफ़रेडडर रीडर = नया बफ़्टेड रीडर (नया इंटस्टस्ट्रीम रीडर (पी.जेट इन्पुटस्ट्रीम ())); स्ट्रिंग लाइन = रीडर। रीडलाइन (); जबकि (रेखा! = नल) {System.out.println (रेखा); लाइन = reader.readLine (); }} पकड़ (IOException ई) {e.printStackTrace (); }}} इसे निष्पादित करने की कोशिश कर रहा है, लेकिन कुछ नहीं होता है मैं उबुंटू 13.10.how का प्रयोग कर रहा हूँ ताकि जावा प्रोग्राम का उपयोग करके उबुंटू में सीडी कर सकें। मैंने "-सी" का इस्तेमाल किया है लेकिन यह काम नहीं ...

jquery - Sticky Header, Up to a point -

I have a square "sticky" that is being added to a div, when it reaches the top of the page, It changes CSS status fixed. When the user reaches the bottom of that part of the page, I want to remove the sticky class. That header is only relevant to any part of the page. > Any ideas about how to add to my existing code & lt; Script & gt; $ (Document) .ready (function () {var stickyNavTop = $ ('.header'). Offset;) top stickyNav = function {var scrollTop = $ (window) .scrollTop (); if (scrollTop ($. 'Header'). $ ('Header') AddClass ('sticky');} and {$ ('header'). Removeclass ('sticky');}}; sticky (); $ ( Window) scroll (function () {sticky ();}}}}}; & lt; / script & gt; Use this function to calculate scrolling to reach I Added container when The header is changed to code> therefore the height of the document is the same the document height - window height which will ...

Difference between scanf("%s",name); and scanf ("%[^\n]%*c", name); -

I have written RSS using GMP packages. While taking a plain text I have taken it as a string using the scanf ("% s", name); and then converted to gmp type after running its program for 50 times, which was successfully executed, the scanf function did not work. Therefore, I have the fgets (name, 100, stdin); Has read the input using and scanf ("% [^ \ n]% * c", name); And it works well. What is the difference between using these 2 types of scan functions scanf (name, "% s"); The user will scan the input until it encounters any place, that is, when you type hi bye , only hi will be stored in name . On the other hand, scanf ("% [^ \ n]% * c", name); will scan unless it copes with \ n or an enter key. To scan a letter, % * c tells scanf and discard it. In your case, the % * c is marked by the \ n character which is present in stdin as you entered the string Was pressed.

How to import the right package (python-django) -

I have a demo application that I have added celery in the demo app 'parser' , Is the package named 'API' . I configured celery since I followed the following tutorial: I have 'models.py' in the parser package. Do you have the 'task.py' package 'API'? When I try to do the 'Parser import model' in the API package, I get the following error: module named module I saw and found The following import file: lib / python2.7 / lib-dynload / parser.x86_64 -linux-gnu.so webpage / manage.py api / __init__ Py model_packaging / works.py ... parser / __init__.py groups.py Views.py ... settings / __init__.py base.py celery.py devp If I were to call 'models Requires i 'pas' command of the package that you use May include, following the start celery: Celery - A settings worker --loglevel = info . When I run cilvery in manage.py, take the correct file: Python manage.pySellary -A settings worker --loglevel = info api /...