Posts

Showing posts from July, 2013

javascript - Bring an element to top of the page even if the page does not scroll -

Image
Background: Assume that you have a simple page A logo and title only and a paragraph & lt; Img src = "http://blog.stackoverflow.com/wp-content/uploads/StackExchangeLogo1.png" & gt; & Lt; H1 & gt; Foo Bar & lt; / H1> & Lt; P & gt; ABC12345 & lt; / P & gt; It looks like But that does not work even when the page does not overflow < P> Note: Please note To create an overflow In addition & lt; Br / & gt; is not the way to add, it can be done in that way, but this is a very simple solution Why is it needed? For this one form for mobile devices, the simple requirement is to take the first field at the top of the page and hide the logo (one they want to see it), so do not care Does not use jQueryMobile for this particular task. If you want the user to be able to scroll and view the logo, then the logo body should be within the top bounds of the tag, because anything outside that tag wi

android - How to programmatically open contacts pick with search filter entered programmatically? -

What should be the activity of taking contacts from my application with search fields? Can someone suggest if the URI has cheated me or anything to add to the intent? Personal Static FINAL End PIC_CONTACT_SUBACTIVITY = 2; Private Zero Starter Activity () {Uri Uri = Uri.Parse ("Content: // Contact / People"); // In general, we pass the numbers eg Uri.encode ("987"), but I want to name because the filter is possible? // I also // uri = Yuri Trying Upepath (android.provider.ContactsContract.Contacts.CONTENT_FILTER_URI, Uri.encode ("pra")); // Uri = Uri With expected term (phone type CONTENT_FILTER_URI, Uri.encode ("Pvt")); Yuri = Uri. Along with expected terms (contactcact.contacts.contENT_FILTER_URI, Uri.encode ("Pvt")); Intention = Intention = Intent (Intent.ACTION_PICK, uri); startActivityForResult (intent, PICK_CONTACT_SUBACTIVITY); } Can someone recommend how I can get it? You can follow: or

How do I parse XML with attribute in python? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 14 जवाब मेरे पास एक XML है जो कई पंक्तियों की संख्या विशेषीकृत एट्रिब्यूट आईडी के लिए, तत्व का नाम और मूल्य मूल्य पूछे जाने चाहिए। उदाहरण के लिए, मेरा पेड़ ऐसा दिखता है: & lt; मेनू & gt; & lt; खाद्य आईडी = "1" & gt; & lt; नाम & gt; पेस्टो चिकन सैंडविच & lt; / name & gt; & LT; कीमत & gt; $ 7.50 & lt; / कीमत & gt; & Lt; / भोजन & gt; & lt; खाद्य आईडी = "2" & gt; & lt; नाम & gt; चिपोटल चिकन पिज्जा & lt; / name & gt; & LT; कीमत & gt; $ 12.00 & lt; / कीमत & gt; & Lt; / भोजन & gt; & Lt; खाद्य आईडी = "3" & gt; & LT; नाम & gt; बरिटो & lt; / नाम & gt; & LT; कीमत & gt; $ 6.20 & lt; / कीमत & gt; & Lt; / भोजन & gt; & Lt; / मेनू & gt; मैं किसी विशेष आईडी (1 या 2 या 3) के नाम और मूल्य का मूल्य कैसे प्राप्त कर सकता हूं? मैंने पार्स करने के लिए min

php - PDO - best way to get row after insert into database -

After inserting, I already know a method to get the line. Something like this: // database $ id = $ PDO-> lastInsertId (); $ Lastrow = $ PDO- & gt; Query ("SELECT * FROM table WHERE id = $ id") - & gt; fetchObject (); However, I am afraid that this is not the best solution, is there any better way in this matter? This is not apparently the best because it does not prepare statements < Code> $ id = $ PDO- & gt; Last InsertID (); $ Stmt = $ PDO- & gt; Ready ("SELECT * FROM table WHERE id =?"); $ Stmt- & gt; Execute ([$ id]); $ lastrow = $ stmt-> Fetch object ();

c# - To get identity value in Entity Framework 6 -

मेरे पास एक इकाई कार्य है, इसका डोमेन वर्ग है सार्वजनिक वर्ग कार्य {सार्वजनिक लंबे कार्यआदेश {प्राप्त करें; सेट; } // ब्ला ब्ला} सार्वजनिक डीबीसेट & lt; कार्य & gt; कार्य {प्राप्त करें; सेट; } मुझे उम्मीद है कि टास्कआईडी प्राथमिक कुंजी और ऑटो-वेतन वृद्धि है इसलिए हमारे पास सुरक्षित ओवरराइड शून्य OnModelCreating (DbModelbuilder मॉडल निर्माता) {modelBuilder.Entity & lt; कार्य & gt; ()। संपत्ति (x = & gt; x.TaskId) .हाडेटाबेस GeneratedOption (DatabaseGeneratedOption.Identity) .IsRequired (); } अब मैं डीबी सार्वजनिक बूल AddTaskTable (इंट नंबर, स्ट्रिंग [] पैरामीटर) को जोड़ता हूं (dbContext db = new dbContext (using) )) {var t = नया कार्य {blah blah}; db.Tasks.Add (टी); कोशिश {db.SaveChanges (); वापस सच; } भविष्य में उपयोग के लिए सिस्टम द्वारा उत्पन्न TaskId प्राप्त करने के लिए मैं क्या चाहता हूं उदाहरण के लिए, यह एक विदेशी कुंजी है जिसे मैं इसे दूसरे इकाई में उपयोग करना चाहता हूं। मूल्य कैसे प्राप्त करें? मुझे लगता है, जब आप करते हैं:

grails - HTTPBuilder library -

I want to use the HTTPBuilder class to send json data to my server, I have imported the following namespaces, but my The symbol can not be solved to identify intelliJ IDEA "Groove". Import groovyx.net.http.ContentType Import groovyx.net.http.HTTPBuilder Import groovyx.net.http.method I BuildConfig.groovy compilation "org.codehaus.groovy.modules.http- Builder: http has been added to: http-builder: 0.7" grails and grails fresh-dependency and see if it fixes.

c# - Pass in callback url when seeking request -

I'm adding Twitter integration to the web applications of my companies, but I'm blocking it. This issue is currently with callback url. In Twitter, it seems that it should be a fixed value, but the way our application is set up, every customer who arrives on that site has their own URL. / P> Ideally I want to set the callback url on the fly, but I am having difficulty finding any information on it. Edit: Think I may have to add something that has been given more detail here to help you better your help The problem is that I set up the callback URL parameter But when I'm going to take permission, it will have to go to the callback setup on the API, which I have not set public string oAuthToken (string callback url) {Ury oauthUrl = new Uri ("https: // api .twitter.com / OAuth / request_token"); Var oauthNonce = Convert.ToBase64String (new ASCIIEncoding (). GetBytes (DateTime.Now.Ticks.ToString ())); Var oauthTimestamp = this.GenerateTimeStamp ();

JavaScript closure and scope chain -

Can anyone explain why document.write part always 10 output? function creatFunctions () {var results = new array (); For (var i = 0; i & lt; 10; i ++) {result [i] = function () {return i; }} Return result; } Var funcs = creatFunctions (); For (var i = 0; i & lt; funcs.length; i ++) {document.write (funcs [i] () + " I think the answer to this question is more intense than the duplicate question , so this post is worth keeping. "post-text" itemprop = "text"> Sure. In your in the loop, you reference i . Do you expect this to happen that every stop time ceremony has been created but I get a snapshot, so in the first ceremony it will return 0, then 1, etc. What is actually happening is that external variables each closure i is to get references, which i to i in the loop as . So, for the first time through the loop, you get a task that gives i , which is 0 at this point. Next time you get two functions which are i , which i

html - Javascript string comparison -

Therefore, im trying to create interactive quiz and im almost complete. Only the answer part of the investigation fails badly, I have arrays for questions, options and correct answers, but the comparison just fails. function check (clicked_id) {document.getElementById ("question"). Value = "" + questionArray [i]; document.getElementById ("OptionA"). Value = "" + aArray [i]; document.getElementById ("OptionB"). Value = "+ + bArray [i]; document.getElementById ("OptionC") Value = "+ + cArray [i]; document.getElementById ("OptionD"). Value = "+ + dArray [i]; var selected = document.getElementById (clicked_id) .value; Var answers = answer [i]; document.getElementById ("text"). innerHTML = Answer + "& lt; br & gt; + Selected; If (selected == answer) {document.getElementById ("comparison"). InnerHTML = "true"; } And {document.getElementById ("comparison&

objective c - Editable textfield in popover not working -

I am working on a Mac app which uses the popover window for additional functionality I have a popover Opens where I need a user to input some text and I can not understand the field as editable. Behavior is considered editable in the Xcode under Attribute Inspector and other option matching settings are from a similar application in which the text field is editable in a new window. What am I missing? - (IBAction) DataTransferButton: (ID) Sender {[Self Data TransferPopor] ShowOverwitchTrack: View of [Sender's limit]: Sender Favorites Edit: NSMaxXEdge]; _employeeCheckBox.enabled = No; [DatatransferPropor First Responder]; userAccountTextField.editable = Yes; Applying and applying NSPopoverDelegate to your app representative - (zero) popoverDidShow: (NSNotification *) Notification {[self.dataTransferPopover.viewController.view.window makeKeyWindow]; Self.datatransferopopover.viewController.view.window makeFirstResponder: userAccountTextField]; } You should not text the

sql - Using decode to input 'Not a valid month' value as it is -

कास्ट कास्ट (LAST_DAY (to_temestamp (lpad (डाली (NUMBER_COLUMN varchar2 (6)), 6, '0 'टाइम' के रूप में), 'MMYYYY')) के रूप में NUMBER_COLUMN_ALIAS से TAB1 T1 जहां मौजूद नहीं है (SELECT TIMESTAMP_COLUMN FROM (SELECT TIMESTAMP_COLUMN FROM TAB2) WHERE TIMESTAMP_COLUMN = CAST (LAST_DAY (to_timestamp (एलपीड (डाली (NUMBER_COLUMN varchar2 (6)), 6, '0'), 'MMYYYY')) TIMESTAMP के रूप में)); मेरे पास दो डेटा कॉलम हैं - एक NUMBER_COLUMN है और एक TIMESTAMP_COLUMN है। मुझे NUMBER_COLUMN को TIMESTAMP_COLUMN प्रारूप में कनवर्ट करना होगा और उनके अभिलेखों से मिलान करना होगा। उपरोक्त क्वेरी काम करता है लेकिन बात यह है कि मेरे NUMBER_COLUMN में कुछ खराब डेटा मान हैं जो 'वैध माह नहीं' की त्रुटि वापस करेगा। मेरी क्वेरी केवल संख्या मानों जैसे 52002,41995,122016 के साथ काम करती है, जो क्रमशः 5/31/2002, 4/31/1995, 12/31/2016 की तरह कुछ में परिवर्तित हो जाएगी। अब ये 'खराब' डेटा मूल्य हैं जैसे कि 0, 10000, 131994,421996,731989 और कई और अधिक मैं क्वेर

lua - Corona SDK - Removing drawn line group and then drawing again -

I am trying to delete any line that I have drawn with a widget button and then draw the player again Allow to I have tried to remove the group many times ... and it works ... but then when I get attracted again it crashes! Any help with this scenario? display.setStatusBar (display.HiddenStatusBar) requires local physics = "physics" physics. Local (Local) widget = Required ("widget") Local line = {} Local line group = display.newGroup () Local prevx, prevailing local heading = false local i = 0 local kitten = display. NEERact (10, 10, 25, 25) Physics Adbodi (kitten character, "dynamic", {density = 1, local function distance = (x1, y1, x2, y2) local dist_x = x2 - x1 local dist_y = y2 - y1 local distance = math.sqrt = ( dist_x * dist_x) + (dist_y * dist_y) friction = 0.5, bounces = 1.6})) The return distance between the end of the local function drawline (e) (e.phase == "start") then prevx = pre prevy = ey IfDrawing = true i = i + 1 elseif (e

heap - SQL Developer won't attempt to import an .xlsx file because it's too large -

Image
I have two .xlsx files that are a total of 1.6 million rows, and I try to import these things into SQL developer I am doing / P> I right-click on the table name and select "Import Data ..." and then select my file and nothing happens. This file logs my attempt to open the file "file - log" in output There are two different attempts to import the same file here, log in here. When I click on one of them, I get the following message: AddVMOption -XX: MaxPermSize = 2048M sqldeveloper.conf Has been changed to > And add another value AddVMOption -Xmx2048M which helps in Java VM according to this source: but this has not done anything for me , And I still get the same errors I am using SQL Developer version 3.2.20.09 but I have also seen it in this effect at 4.0.1.14. Many thanks! I tried to look in the SQL * loader, apparently you would see a table & gt; Import data & gt; The next and SQL * should be the option to generate the loa

php - Relative path with last restful parameter -

It seems that this should be a simple fix. I have a sluggish PHP backend and setup where I have the URL: site.com/profile/100/photos/ And Site.com/me/photos The photo controller will be the same for both and some parts of the front are shared for both Are there. My question is: If I am at this URL: site.com/profile/100 and I href: This is taking me to site.com/profile/100/photos instead of site.com/profile/photos . How do I add the URL after 100? What do you want: $ url = "http: / $ _ Server [HTTP_HOST] $ _SERVER [REQUEST_URI] / photo ";

java - new libgdx setup build keeps failing -

I have downloaded the new libgdx-setup and whenever I create a project with box2dlights, it fails and I can not import it because it is giving me an error about not finding the box 2 diets. I also had a problem with the old GDX-Setup-UE where I was not able to use third-party libraries so I'm getting frustrated with libgdx. * What was wrong: One problem occurred while configuring the project: 'Android' & Gt; All dependencies for the configuration could not be solved: Android: _debug compile '& Gt; Com.badlogicgames.box2dlights could not be found: box2dlights: 1.2. Required by: Test: Android: 1.0 Test: Android: 1.0 & gt; Test: Core: 1.0 When I create a project with any dependency check, I can import it properly into eclipse, but I can choose box 2 delites I want to be able because I'm going to use it. I can see box2dlights in my build.gradle, so I should automatically download it from what I have collected. This is my build.gradle buildscript

c++ - Unconventional sorting of table elements using SQL in Qt -

I am creating a ticket system and I want to create a table for people to see all open tickets. I want them to be priority - important - & gt; High - & gt; Medium - & gt; Less. While (currentRow & lt; rows) I did before a test database program, which I did earlier, which ordered entries in a table. {Qry.prepare ("Select Last Name From Username: F1, F2"); Qry.bindValue (": F1", currentro); Qry.bindValue (": f2", present-day + 1); qry.exec (); qry.next (); CurrentCol = 0; // This loop will populate all the columns in the current row (current call & lt; ui- & gt; table- & gt; column;) ()) {QTableWidgetItem * setdes = new QTableWidgetItem; setdes-> setText (qry.value (currentCol) .toString ()); UI- & gt; Table-> Set item (calculation, current call-1, setdes); currentCol ++; } CurrentRow ++; } Obviously I can not change the query of last name with priority because it sorted alphabetically instead of sequence I

c++ - Unexpected output printed -

I am writing a C ++ program which is necessary for: student names Declare a straight line of the following parameters: - student id - lastname - student score [school subject K: 1 I also need to write a function to insert and display each student. The program does not work, there are no errors, so I It seems that the syntax is correct because it is compiled. Can you help me make a mistake in code? #include & lt; Iostream & gt; using namespace std; Student student {int FN; Character last name [32]; Double digits [10]; }; // y = number of school subjects; Zero determinant (student x, int y) {cout & lt; & Lt; "Insert student id:"; Cin & gt; & Gt; x.fn; Cout & lt; & Lt; "Include the student's last name:"; Cin & gt; & Gt; X.Lastname; Cout & lt; & Lt; "Insert student score:"; For (int i = 0; i & Gt; X.marks [y]; Cout & lt; & Lt; Endl; } cout & lt; & Lt; "------

JQuery each count result error -

Image
I have a button that ends with the last tr in a table. Every time this happens, it is used to work together using the mainTotalCalc () . Total .each is used and classes are used. This problem occurs when I reach a final line balance. The total will be in the form of the last total it never gets. 0.00 Now I think I can see why, because JQ considers the last total in each variable. I fully calculate that I am stuck about how to overthrow the last remaining line. JS / JQ function mainTotalCalc () {/ p> var activetableID = $ ( "li.till_table_button. active"). attr ('id'); // Alert (active); Var Tableclerk = $ ("#" + Activation). Data ("TableRF"); // Alert (Tablenumber); // test var newtotal = 0, total = 0; $ ('._______' + tablenumber + '_ row__totalprice'). Each (function (i) {var number = $ (this) .text (); // warning (content); // num = parseInt (number); num = ParseFloat (number); newtotal + = num; // al

c++ - Android convert byte array from Camera API to color Mat object openCV -

I stopped the camera API and am trying to process color post. My problem is that when I can convert a byte [] object to a muted object, I can not get a color channel without getting any errors I started with the following post: but this implementation does not work . Here is the relevant code: @Override Illustration on public vignettes (byte [] data, camera camera) {// Camera preview was automatically shut down. Start it again mCamera.startPreview (); MCamera.setPreviewCallback (this); // file in a file (in jpeg format) file image file_interp = getOutputMediaFile (MEDIA_TYPE_IMAGE); try {// now try to convert and save parameter parameter = camera.getParameters (); Size sz = params.getPictureSize (); // error in the bottom line !!!! Mat raw = new mat (sz.height, sz.width, cvType.CV_8UC4); Raw.put (0, 0, data); Mat targ = highigiimd code (raw, 0); Orig = new mat (); Imgproc.cvtColor (targ, orig, Imgproc.COLOR_GRAY2RGB); //Iggproc.cvtColor (Targ, Fixed, Improp. COLOR_BGR2RGB); //

javascript - Is it safe to use hidden inputs to retrieve user data? -

I have a huge form divided into 5 subforms. When you go from form1 to form2, then given in Form 1 The information is stored in DB and userID is created. Then this userId in form2 has been added as a hidden input. Something like this: & lt; Form action = "" method = "post" & gt; & Lt; Input type = "hidden" value = "userIDnumber" id = "userId" /> & Lt; Input type = "hidden" value = "& lt ;? php echo base_url () ;? & gt;" Id = "url" /> // Form data & lt; Input type = "button" id = "prevButton" value = "previous" /> & Lt; Input type = "submit" value = "next" /> & Lt; / Form & gt; If the user decides that to edit the data, go back to Form 1, clicking on the 'Back' button becomes the following: var prev = document querySelector ('# prevButton'); if (! prev.addEventListener) {prev.atta

Chopper Java: what is wrong with this? -

आयात करें java.util.Scanner; सार्वजनिक श्रेणी के लाइन-क्वेंटर {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {System.out.print ("पूर्णांक की रेखा प्रविष्ट करें"); स्कैनर हेलीकॉप्टर = पहला स्कैनर (); int x = हेलिकॉप्टर.एक्सआईटी (); जबकि (हेलिकॉप्टर.hasNextInt ()) {System.out.println (हेलिकॉप्टर.एक्सआईटीआईएनटी ()); }}} यह मुझे बताता है कि ';' उम्मीद है कि स्कैनर हेलिकॉप्टर से शुरू होने वाली रेखा पर, समस्या क्या हो सकती है? पीएस क्या आप जानते हैं कि मैं इसे कैसे प्राप्त कर सकता हूं कि कितने पूर्णांक टाइप किए गए हैं? आपके पास लिखित पहले स्कैनर () के बजाय नया स्कैनर (System.in) । आपको एक इनपुट स्रोत निर्दिष्ट करना होगा, और जब से आप उपयोगकर्ता को इनपुट इनपुट करना चाहते हैं, तो आपको System.in को तर्क के रूप में उपयोग करना चाहिए।

php - Magento cron trying to contact Paypal? -

A client's own server was transferred and Magentron Cron.FP was never set back. When I enabled them, I found that Magento was posting in PayPal: cron / usr / bin / php -q /home/dev/public_html/cron.php * (api-3t.paypal.com) port 443 (# 0) * 173.0.88.69 is trying to connect ... * connected * api-3t.paypal.com ( 173.0.88.69) Port 443 (# 0) * Verify Certificate Successfully Location: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: Using any * DES-CBC3-SHA * server connection * Server Certificate: * Subject: C = US; Scheduled Tribes = California; L = San Jose; O = PayPal, Inc.; O = paypal production; CN = api-3t.paypal.com * Start date: 2013-07-03 00:00:00 GMT * End of Date: 2015-09-18 23:59:59 GMT * subjectAltName: api-3t.paypal com Match * Issuer: C = US; O = VeriSine, Inc.; O = VeriSign Trust Network; Terms of use on OU = https://www.verisign.com/rpa (c) 10; CN = VeriSign Class 3 Secure Server CA - G3 * Verify SSL Certificate Properly & Gt; Post / NVP HTTP / 1.1 Host:

java - javax.xml, XPath is not extracted from XML with namespaces -

वहाँ "मूल" XML है & lt; साबुन: लिफाफा xmlns: साबुन = " http://www.w3.org/2003/05/soap-envelope"> & LT; साबुन: हैडर & gt; & Lt; संदर्भ xmlns = "कलश: ज़िम्बाब" & gt; & Lt; सत्र आईडी = "555" & gt; 555 & lt; / सत्र & gt; & lt; परिवर्तन टोकन = "333" / & gt; & Lt; / संदर्भ & gt; & Lt; / साबुन: हैडर & gt; & LT; साबुन: शरीर & gt; & lt; AuthResponse xmlns = "कलश: ज़िम्बारएकाउंट" & gt; & LT; जीवनकाल & gt; 172799999 & lt; / जीवन & gt; & Lt; सत्र आईडी = "555" & gt; 555 & lt; / सत्र & gt; & LT; त्वचा & gt; कार्बन & lt; / त्वचा & gt; & Lt; / AuthResponse & gt; & Lt; / साबुन: शरीर & gt; & Lt; / साबुन: लिफाफा & gt; XML इस तरह से पार्स किया जाता है // javax.xml.parsers। * DocumentBuilderFactory कारखाना = DocumentBuilderFactory.newInstance (); DocumentBuilder बिल्डर = कारखा

Does signing a Unity3D Android App give security against decompilation? -

Is there a protection against the disruption of the C # code by signing a Unity 3D Android app? No, the signature on your application only recognizes you as the developer of that application. It does not provide any additional protection against decompilation. If you wanted you to go on the path of ambiguity, but even there is an annoyance to those people who are not guaranteed for reverse engineering done by you, and indeed security.

html5 - Local video files won't play in Cordova Android App -

I am creating an app in Cordoba where the first page of the app has a video tag set on autoplay. I did not find any 404 errors in loading the file ... The file will not play yet The video is black with a duration of 0:00 only, which does not make any changes. The strange thing is that I get two network requests in the Chrome Remote Dev tool for the video file: First one shows the (success) status, and the other has a (cancellation) status. I have tried to use two different URLs for the file: File: ///android_asset/www/video/nameofmyvideo.mp4 In fact with the video file /www/video/nameofmyvideo.mp4 . and android.resource: // mypackagename / raw / nameofmyvideo I am running the latest Cordova (3.4.1-0.1.0) and testing the fire running CM-11 (4.4.2). Here's the markup I'm using: & lt; Video width = "400px" height = "300px" autoplay control & gt; & Lt; source src = "file: ///android_asset/www/video/video-test.mp4" type = &

python 2.7 - AttributeError: 'int' object has no attribute 'write' -

I am reading through a CSV file and writing the result to a logfile, "p.log". Although I am converting the data into a string before writing it in the file, and doing it successfully through many iterations, I am running in a situation where I finally get this error: AttributeError: Anyone in the 'int' object The attribute is not 'write' I will provide a snippet of my code as well as the results printed on my screen: p = open ("p.log" , "w") line in line: line = line.split (",") print Line, type (str (line)) p.write ('string:' + str (line) + '\ n') [f * '14 -04-21 08: 30: 00.973000 ',' EEm 06211440.5p ',' EEm ',' 2014-06-21 ', '40 .50', 'P', '16084', 'Auto', 'PHLX', '0.82', '10', '0.82', '31 ',' 0 ',' 0 ',' 0 ',' 0 ',' 0 ',' 0 ',' 0 ',' 0 ',

wso2 - API Manager passing JWT to backend service -

A backend service needs to know the user for a service call. Reading through the API 1.6.0 documentation I have configured it to generate JWT and have said that my services have been removed and republished. Running Test, I am not passing Backward Service to JWT in fielders' response headers. I am not using ISB or Identity services from WSO2 What am I missing? The JWT information should be given in the heading below given the parameter X-JWT-Assertion . Content is encoded Use the TCPMon to block the request and see if the API Manager is actually going through JWT. This will be a good starting point for debug.

Powershell - after a count how to trim line -

I'm using the following to count with netstat but counting on the next line is visible. Here's what I'm doing $ LIST = (netstat -an | select-string 443 | select-string "LISTENING"). Type "LISTENING:" $ LIST & gt; & Gt; D: \ entNew.txt is output: LISTENING: 40 How do I get the output To type in: LISTENING: 40 < P> Just test your case: "listen: $ list" & gt; & Gt; D: \ entNew.txt However, I have & gt; & Gt; but do not use set-content CmdLet, and I have a regular expression to filter the output of a netstate.

javascript - Making ajax call to jsp page -

I am calling an Ajax on a jsp page like this: $ ( Document ("Image", Function (Event, Data URL) {Warning (Data URL); // Alert ($ ('# MyGuesUsRead')) ($ ('# mygroupuserid')); //alert(document.Clickpictures.OwnerId .value); // Alert (IMGDATA); $ .ajax ({url: 'upload vbikemej.jsp', type: "post", data: {encoded data url, owner id: document .Clickpictures.OwnerId.value, OwnPhone: document.Clickpictures.OwnerPhone.value, mobilepass: document.Clickpictures.mobilepass.value, e ("# Gallery"). $ ("# Gallery"). Show () .html ('' '' '' '' '' '' '' ' & Lt; img src = "'++++" "& gt;';);});}); Now in that jsp page, Decisions have to be made: if (flag == true) {out.println ("& lt; script> warnings ('the mark is successfully detected and password is sent') ; Document. Location = 'main Jesp '& lt; / Script&g

objective c - Encryption of session in MultipeerConnectivity framework for iOS -

I am working on the iOS Multipurpose Framework and am very happy with it. I am sharing some synergy data, so encryption has to be done. When we create session we have three options: self.session = [[MCSession alloc] initWithPeer: self.myPeerID securityIdentity: zero encryptionPreference: MCEncryptionRequired]; MCEncryptionNone MCEncryptionOptional MCEncryptionRequired I've read the Apple Guide but could not find any more information about it if I pass through MCEncryptionRequired Does anyone know what this is? Kind of encryption? Thank you. Alban DeWat analyzed the structure of the structure. From page 58: with MCEncryptionRequired authentication : a ?? ¨ DTLS with mutual authentication: Each colleague sends his certificate and validates the other party's certificate RSA & Amp; EC-DSA TLS Cipher Suite Suitable for a total of 30 cipher PFS cipher suites. In practice, TLS_RSA_WITH_AES_256_CBC_SHA256 is always done through negotia

android - set default text to edit text, and hide it when onClick -

I want to create an edit text with text "enter text, please" But when users click on this edittext - this text should be hidden. myEditText SetHint ("Please enter text, please");

html - Need CSS to make all fields in-line when shown within a browser -

People are just a simple problem with CSS. I want my form field to be in-line. I need CSS to preview my field in the browser's line. For example: Input type: Color ...... ............. field goes here Input type: Date ............... ..... field goes here Input type: Date time ........ Field goes here Input type: datetime-local ..... field goes here and so on . .. Input type: Email ................... field goes here and so on ... < / P> Input Type: Month Any support will be greatly appreciated! Thank you. You can do so many ways here are some examples: Example: & lt; Ul & gt; & Lt; Li & gt; & Lt; For label = "color" & gt; Color: & lt; / Labels & gt; & Lt; Input id = "color" type = "text" value = "color" /> & Lt; / li & gt; & Lt; Li & gt; & Lt; Label = "date" & gt; Date: & lt; / Label & gt; & Lt; Input id = "d

full text search - Rails 4 + Sunspot: searching things a User has "liked" by their attributes (polymorphic has_many through associations) -

मेरे पास कुछ रेलवे 4 ऐप में निम्नलिखित हैं: class like & lt; ActiveRecord :: बेस is_to: liker, class_name: 'उपयोगकर्ता' belongs_to: likeable, बहुरूपता: सच अंत वर्ग फोटो & lt; ActiveRecord :: बेस # के पास एक `शीर्षक` और` विवरण` विशेषताओं है__मैं: पसंद, जैसे: पसंद करने योग्य है_माइं: पसंद, के माध्यम से: पसंद करती है अंत वर्ग गाने & lt; ActiveRecord :: बेस # के पास एक `शीर्षक` और` विवरण` विशेषताओं है_माइंड: पसंद, जैसे: पसंद करने योग्य है_माइं: पसंद, के माध्यम से: पसंद करती है अंत कक्षा वीडियो & lt; ActiveRecord :: बेस # के पास एक `शीर्षक` और` वर्णन` विशेषताओं है__मैं: पसंद, जैसे: पसंद करने योग्य है_माइं: पसंद, के माध्यम से:: पसंद करती है अंत क्लास उपयोगकर्ता & lt; ActiveRecord :: बेस has_many: likes, source:: liker has_many: liked_photos, के माध्यम से:: पसंद, स्रोत:: likeable, source_type: 'photo' has_many: liked_videos, के माध्यम से:: पसंद, स्रोत:: likeable, source_type: 'वीडियो' मुझे एक खोज फ़ॉर्म है जहां वर्तमान उपयोगकर्ता तस्वीरें, गी

Running scripts in u-boot with qemu on arm -

I am working with U-Boot on ARM using QEMU, I can do both Linux and U-Boot I am using a 'versatile pub' machine. I would like to write one for handling some boot processes (set kernel ARG, calculation of CRC, etc.) - but I can not seem to know how to run my script. I got the script in memory and I got it with U-Boot Identify the image: Verbatim PB # ImmunoFXx285EC ##000285 Checking Image on AC ... Legacy Image Found Image Name: Test Linux Boot Image Type: ARM Linux Script (Asmod Data Size: 300 Bytes = 300 Bytes Load Address: 00000000 Entry Point: 00000000 Material: Image 0: 292 Bytes = 292 Bytes Checksum Checking ... OK However, I Do not know how to run it: VersatilePB # run 0x285EC unknown command 'run' - try 'help' VersatilePB # autoscr 0x285EC unknown command 'autoscr' - try ' Starting application on 'VersatilePB # go 0x285EC ## 0x000285EC ... qemu: Fatal: 0x56190526 to execute code outside RAM or ROM I understand that the last

Powershell Remove-Item IF file already exists after Copy-item -

I need to add security net to my script. I am trying to get a copy job provided by a TCT file Based on the list of users. Copy that user from the home directory to a new location. Once the files are copied, check whether the file exists in the new location. If so, remove-item Can anyone help me? I do not know if "if file exists" to apply the logic. $ username = get-content ' Users.txt 'foreign currency ($ UN $ UN) {$ dest = "\\ server \ homedirs \ $ un \ redirectedfolders" $ source = "\\ server \ homedirs \ $ un" new item-type type directory - path $ Dest \ document, $ dest \ Desktop Get-ChildItem $ source \ documents -Recurse -Exclude '* .msg' | Copy-item-destination $ waste \ document gate-childItem $ source \ desktop-reservation-allow '* .msg' | Copy-item- Destination $ Dest \ Desktop Get-ChildItem $ source \ mydocuments, $ source \ desktop -Recurse -Exclude '* .msg' | per << code> To answer your q

sql - Why can't I use this where clause in my mysql trigger? -

उद्देश्य एक ट्रिगर बनाएँ जो नए-डाला एक ही विभाग में एक छात्र को प्रशिक्षक जो वर्तमान में कोई सलाहकार नहीं है, और सलाहकार तालिका में एक इसी रिकॉर्ड को सम्मिलित करता है। टेबल्स: छात्र (आईडी, नाम, dept_name, tot_cred) प्रशिक्षक (आईडी, नाम, dept_name, वेतन सलाहकार (s_id, i_id) नोट: छात्र Dept_name छात्र के प्रमुख, s_id को संदर्भित करता है student.id से संबंधित है, और i_id instructor.id के साथ जुड़ा हुआ है । DELIMITER $$ ट्रिगर सलाहकार_मैच बनाएं प्रत्येक रूट के लिए प्रशिक्षक पर निर्देश के बाद सलाहकार को एक SET a.i_id = new.instructor.id + (SELECT a .s_id, s.dpt_name विद्यार्थी से LEFT OUTER JOIN सलाहकार WHERE a.s_id IS NULL और s.dpt_name = new.instructor.dpt_name;); END $ $ DELIMITER; वहां से संभावित रूप से संभवतः इस कोड के साथ और अधिक मुद्दों की तुलना में मुझे पता है, लेकिन अभी, MySQL इस WHERE क्लॉज का उपयोग करने के बारे में मुझे एक त्रुटि डालता है और मुझे क्यों नहीं समझा जा सकता। संपादित करें: मेरे वर्तमान दुर्दशा को प्रतिबिंबित करने के लिए कोड को तय

gtk - Python, Ubuntu and GStreamer - specifying one of two webcams -

Using the initial code from this question, I can get a live window from a webcam I have two webcams on my system, and I want to specify which camera I am calling for the viewer. I am poking around, and with nothing connected to it, I get this error: Error: Resource not found. v4l2_calls.c (493): gst_v4l2_open (): / GstPipeline: pipeline0 / GstV4l2Src: v4l2src0: system error: such a file or directory This notifies me that I To see the pipeline ... maybe / GstPipeline: pipeline1 / GstV4l2Src: v4l2src0 or / gstPipeline: pipeline0 / gstv4l2src: v4l2src1 My Ubuntu foo It's not good, and I'm not sure which camera I can specify to use. I suspect that there is something in this line that I can change: self.player = gst.parse_launch ("v4l2src! Autovideosink") Any suggestions? Each camera should make the device / dev / videoN (where n one v4l2src device = / - dev / video0! The Autovideoink should work, where device = specifies which de

python - Creating a Google App Engine datastore entity without initializing a particular property -

Image
I have a class entity, which has the property name , and students . I want to make the unit first, then add value to student property later. But I'm not sure how to do this. I've tried null (I'm sorry if this is disgusting, new to Python) but it gives an error message. This is my class definition class category (ndb.model): name = ndb.StringProperty (required = true) students = ndb.KeyProperty (repeated = true) ... and handler for my class model class classhandler (webapp2.RequestHandler): def post (self): name = self.request .get ('class_name') callback = self.request.get ('callback') class = class.get_by_id (name) if class: Self.error (409) Other: n = self.request.get ('class_name') Class = class (id = n, class_name = n, member) # & lt; & Lt; & Lt; --- // This is the place where the stuck team. Put () If Callback: self.response.write (call Previous + '(' + Team to JSN (+) ') Other: Write a self-response.

Three.js fireball example and Internet Explorer -

Alterdq's Fireball example is a great example of using procedural noise generation in the shader, as I base it for some other shaders Which I have used as three. I'm writing in J, but I saw that none of them work in IE. So I tried the fireball of Altardack in IE 11 and I saw the same error: Shader is apparently very complicated? What limitations have been reached for IE 11's WebGL implementation? (FWIW: The Fireball Shader and Eye Derivatives work on Windows 8.1 on Firefox and Chrome) Thank you for the feedback! April 11 for the implementation of SEOGL enables to increase the range of complexity of the update shader and enable more real-world content to run. Disclosure: I am on a team that uses Microsoft's WebGL Works on the implementation of

ios - Incompatible pointer Type initializing 'NSString *' with an expression of type 'UITextField *' -

I currently have a problem with my app, however, when I am trying to push data on my PHP script I press the button, the whole app freeze here is my code. The guestlist viewfinder.m file // // GuestlistViewControler.m // Club La Boom // // Created by Kevin Archambault on 2014-04-21. // Copyright (C) 2014 Club La Boom All Rights Reserved. // #import "GuestlistViewControler.H" @implementation GuestlistViewControler - (IBAction) addData: (ID) sender {NSString * name = self.NameText; NSString * invite = self.InviteText; NSString * Email = self.EmailText; NSString * phone = self.CellText; NSString * date = self.DateText; NSString * rawStr = [NSString stringWithFormat: @ "name =% @ & amp; invite =% @ & amp; email =% @ & amp; phone =% @ & date =% @", name, invitation, email, Phone, date]; NSDT * data = [raw STR data usage encoding: NSITF 8 string encoding]; NSURL * url = [NSURL URLWithString: @ "http://www.clublaboom.com/guestlist_iphone.php&qu

C++ Array average not working right -

Then im using C ++ and I can not understand what I'm doing. Number of numbers in the array and the number of numbers in the array were submerged. I think my problem is in the array but I am not sure because I am getting it as an average result. then I input this 2 3 4 5 6 output average number The correct average of numbers is 4, so it is not to ensure that where my mistake is, any help or hint will be very helpful. Here I have my average line Which I have seen here on the stack overflow but there is no luck yet. #include & lt; Iostream & gt; # Include & lt; iomanip & gt; using namespace std; Zero main () {// variable double average; Double zodiac = 0; Int numabove = 0; Int i, array [5]; Int n = 5; // Sir seat & lt; & Lt; "Input 5 value .." & lt; & Lt; Endl; (I = 0; i & lt; 5; ++ i) cin & gt; & Gt; Array [5]; For (int i = 0; i <5; i ++) average average = ((flat (array [i]) / n)); Cout & lt; & Lt; &q

php - convert excel cell containing json into csv -

I have a series of test cases in the xlsx format which I have to convert to a CSV file, though there are some lines Jason Snippets of are mixed directly with text and they have line breaks (/ n) (return) within the room. It is converting a nightmare into CSV. I change my test cases in CSV to test rail Application Section (which I am trying to import is suggesting a php script), but CSV Jesn cells with content will not work script after failing to delimit, please) help! The script is expected to contain: Title, Type, Priority, Phase, Result. 1 line of data in the xlxs file (Office 2011 for Mac) includes: Title: Test 1 Type: Some test types in the text i.e.: 'regression' priority: some text, that is 'high', phase: create a capable profile with only one base visit history rule Ie: json body: {"Name": "only basic rules", "description": "" only one basic rule "}} The result: There is some text with ctrl + alt + option

android - Converting strings to date and time and extract year, month, day, day of week, hour and minutes -

I am retrieving JSN objects on my Android app. They have two fields: date and time . On Layout, I need to remove the following string from these two fields: The day of the week (like Monday) The day of the month (like 21) minutes (like April) Years (like 2014) Hours (such as 17) Minutes (e.g. 35) fields are date = "2014-04-21", time = "17:35:00" How can I do this? A class is SimpleDateFormat that parses the date and when you specify Here is an example of your problems: string string = "2014-04-21 17:35:00"; Calendar calendar = calendar.justinstance (); Calender.setTime (new Simple Format ("yyyy-MM-d k: m: s"). Pars (string)); System.out.println ("Day of the week:" + calendar.get (Calendar. DAY_OF_WEEK)); // 2 Monday System.out.println ("Day of the month:" + Calendar.Gate (Calendar DAY_OF_MONTH)); System.out.println ("Month:" + calendar.get (calendar. MONTH); // January 3 is ap

internet explorer 9 - AngularJS on HTTP calling service on HTTPS on IE9 -

My ANGLARJs applications hosted on my HTTPS are required to call a HTTPS service. I have a problem getting this job on IE9. To enable Corus in IE9, I enable "Access Data Sources across the domain" in the security settings in IE9's Internet Options. Although this setting helps to call the HTTP service in the domain, it still gives me a "error" when calling "HTTPS service". There is no way to call an HTTPS service from the HTTP hosting angle application in IE 9 Thanks. Did you try to use this library

java - Source not found on array -

This is what I wanted to do: Genital spreads in this class, like others The manufacturer has two criteria: the number of controllers and tracks. You should not store this member in the variable. This is all in the constructor: Set the layout to clear. Store the numTracks SoundNameBox version in a member variable array, where the number is the number of track tracks. This means that you should have a loop, and each time create another SoundNameBox instance through the loop. Track number 0 to numtracks -1 will be sure to have a track between them. GAP_SISE size difference. Set the size of this SoundBank so that it just holds the SoundNameBox instance. I had to create a similar category first and it worked fine, though it does not display a box which is considered to be it and when I try to debug it, it says that when a member Returns the array in the variable then no source is found. Here's my code: package view; Import javax.swing.JPanel; Import controller Controller; P

Floating Point Comparison C++ - Finding maximum -

When I compare floating point, I get printed inf in the output screen Can help? unsigned longer temporarily; Long double tempDec = 0.0, max = 0.0; Unsigned long maxInd = 0, j = 0; (Unsigned for long I = 1; i & lt; 100; i ++) for {j = i-1; Temporary = 0; While (h> gt; 0) {if (returnGCD (j, i) == 1) {temp ++; } J--; } TempDec = ((long dual) i) / ((double long) temporary); If (tempDec> max) {max = tempDec; maxInd = I; }} Cout & lt; & Lt; Max. & Lt; & Lt; "#" & lt; & Lt; Maximum end lieutenant; & Lt; Endl; When I tried to exclude this snippet, I would like the output inf # 1 I do not know what's wrong with this. For only one comparison, we can use fibers (), is there any other special way to find out more numbers in the float? The loop has its first recurrence, temp = 0 , j = 0 create tempDec due to division by 0. if (tempDec> max) will be true for the first time and max From that onwards, if will alway

html - Why do regular form submits POSTing data result in page refreshes? -

The title question asks, what process is there? Why should I use AJAX if I want to add that form asynchargly? This is the way HTTP was created After this, JavaScript was not ubiquitous and today's form Not powerful in. Anyway, when you post data to a page (a path), you are issuing a request for a server. The server can respond in a variety of behaviors, the simple "return is some content", whether it be HTML, text, JSON, XML etc. Even the server also has the possibility of returning a redirect, so that you can be sent to a different location. AJAX has requested this request only to run this request in the background and to hide the fact that the data was submitted to the server and the response was returned from the user's perspective.

symfony - Symfony2/Doctrine - How to select a single tag from a blog.tags property -

Image
How do I choose a tag from blog.tags? I'm trying to add a tag to the blog.tags property. Now when I hover over a single tag, I look at the group of tags instead of just a single one. Tags < P> Group of tags while hovering over a tag: I am using Loop for all blogs and this is the property in the tweak file. I need to be able to choose to link each tag in the blog tag field, how do I set it? Toggle file % blogging for% {% blog in%} {blog.tagsArray%} for tag% lt; P & gt; Tags: & lt; Span class = "highlight" & gt; & Lt; {{Path ('AcmeDemoBundle_tag', {'tag': tag}}}} {{tag}} P & gt; & lt; br & gt; {% Endfor%} {% endfor%} Entity / ** * @ wise string * * @ORM \ column (name = "tag", type = "text") * / private $ tag; / ** * set tag * * @ ultimate string $ Tag * @ layer blog * / public function set tag ($ tag) {$ this-> tag = $ tag; $ this return;} / ** * get tag * * @ returning

c++ - CreateProcessAsUser fails with ERROR_ELEVATION_REQUIRED for a process with UIAccess="true" -

Image
I'm trying to use the following code to run a user-mode process from my service application ( Local System .) The user-mode process is required to run without aliasing, but UIAccess = "true" To be able to have your manifest. So I run my user-mode process (from my service): // Note: Check for error left for readability the // 'dwSessionID' = user-mode user session ID to run the process 'Piusrpikrap' = L "C: \\ program files (x86) \ \ software \ \ user_process.exe" handle HToken = NULL; WTSQueryUserToken ( DwSessionID, and HT token); Handle HTCon 2; DuplicateTokenX (HT, MAXIMUM_ALLOWED, NULL, Security Scheduling, T Knpramiri, and Actiken 2); Elpiviod Piianviblok = NULL; CreateEnvironmentBlock (& ​​amp; pEnvBlock, hToken2, FALSE); STARTUPINFO C; Jhoremori (& amp; si, size (STARTUPINFO)); Si.cb = size (STARTUPINFO) ; si.lpDesktop = L "winsta0 \\ default"; PROCESS_INFORMATION pi; Jiromori (S & P, Akarf (PI)); // I