Posts

Showing posts from September, 2015

javascript - Render HTML after each iteration in loop -

I'm trying to gradually increase the font size of text on a web page. The code works in my place, although the new HTML / CSS does not render after every iteration of the loop and when all this is done, then display only the text of 100 px size. To see the text as if it is slowly zooming, I need to do this JavaScript is down because it is being used from a different file here is what I have ... < Pre> & lt; P class = "game-title" style = "font-size: 50px" & gt; Test & lt; / P & gt; Function sleep (milliseconds) {var start = new date (). GetTime (); For (var i = 0; i & lt; 1e7; i ++) {if ((new date). GetTime () - start) & gt; Milliseconds {break; CSS ('font-size', 'parseInt ($ (' game-title '). CSS (' font-size ')) + 1 + "pixels"); } While (parasont ($ ('# text'). Css ('font-size')) & lt; = 100) {sleep (1000); IncreaseSize (); Using CSS: Use of jQuery (sample):

java - Joda Time Interval Not returning what I expect -

मेरे पास निम्न प्रोग्राम है import java.util। *; Import java.text। *; आयात करें org.joda.time। *; सार्वजनिक श्रेणी के स्कोप कंट्रोल {सार्वजनिक स्थिर अंतराल मिलनसार () {दिनांक समय currDate = नया दिनांक समय (2008, 4, 4, 15, 30, 0, 0); दिनांक समय epochDate = नया दिनांकटाइम (2000, 1, 1, 12, 0, 0, 0); अंतराल अंतराल = नया अंतराल (युरोप डेट, करोडेट); वापसी अंतराल; } सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {डबल दिनबात = मिलते समय ()। ToDurationMillis () / 1000/60/60/24; StdOut.println (daysBtween); }} मुझे आउटपुट मिल रहा है: 3016.0 लेकिन जो मैं देख रहा हूं वह है: 3016.1458333333 मैं क्या कर रहा हूँ ? toDurationMillis एक लंबा लौटा देता है, और प्रत्येक प्रभाग को int के रूप में घोषित किया जाता है। जावा इस प्रकार इनट्स को लॉन्ग में परिवर्तित कर देगा और डिवीजन को लंबे समय तक लौटाना होगा। परिणाम को अंत में दोहरे रूप में परिवर्तित करना। डबल्स का उपयोग करके अभिव्यक्ति करने के लिए जावा को बताने के लिए, अभिव्यक्ति के किसी भी घटक को दोहरे रूप में घोषित करें। उदाहरण के लिए:

Creating a sparse matrix in Matlab with a specified number of independent Bernoulli +-1 nonzero entries -

How can we create matrix x, 1000 by 1000 in the matteback, which is sparse, say Are, 5% of independent Bernoulli + 1 nonzero entries? I.e. In such a matrix, rho = = X <_0 / 10 ^ 6 = 0.05. Choose 5% of irregular elements n = Numel (x); Ind = Randie (n, round (.05 * n), 1); Assign these elements with random variables x (ind) = binorend (1, .5, length), 1) * 2-1; Check for more information To prevent duplicate rand numbers, from the Statistics Toolbox, or randperm as mentioned in some, or something like this Ind = []; T = round (.05 * n); T1 = length (IND); While T1 & LT; T Ind (end + 1: t0) = rand (n, tt-1, 1); Ind = Unique (Ind); T1 = length (IND); End

Member with no value in F# -

After I am trying to convert F # to the following C # code: < Code> [StructLayout (LayoutKind.Sequential, charset = CharSet.Ansi)] Private class DOCINFOA {[MarshalAs (UnmanagedType.LPStr)] public string nomeDocumento; [Marshall (UnmanagedType.LPStr)] Public string arquivoSaida; [Marshall (UnmanagedType.LPStr)] Public String Tipodo; } I am doing the following: Named place printer module RawPrinterHelper = [& LT; StructLayout (LayoutKind.Sequential, charset = CharSet.Ansi) & gt;] Type DOCINFOA = [& LT; MarshalAs (UnmanagedType.LPStr) & gt;] Member this.nomeDocumento [& LT; MarshalAs (UnmanagedType.LPStr) & gt;] Member this.arquivoSaida [& LT; MarshalAs (UnmanagedType.LPStr) & gt;] Member This Tipoda [/ code> But I get: One type of definition is necessary for one or more members . Can I vacate these members? you val code> member : [& lt; StructLayout (LayoutKind.Sequential, charset = CharSet.Ansi) & gt;] Type DOC

sqlite3 - UPDATE a table from the SELECT of another one -

I have the first table article where some data is missing. In the table, articles_tmp I have a part of the missing data. So I want to update the articles. Where the path path is data in articles_tmp.path where the path is not zero . With SQLite , it does not work: update article SET path = (SELECT at.path FROM Articles_tmp as AS, WHERE at.article_id = a.id and a.asp, the text is in the form and not on. It has been transmitted) where the path is null MS Access Along with, it works fine: Update Articles Join the Inner Articles at articles_tmp articles.id = articles_tmp.id SETP articles.path = articles_tmp.path Can anyone help? Sin CE SQL Server Syntax, which I provided, was not working, here this solution With whom I have come. A little modification of your original query, but with my "correlation" suggestion added. There is a SQL Bella for this: Here is the code: update article SET path = (SELECT path from articles_tmp AS T WHERE t.id

pandas - Iterate on Groupby Object's fields -

I want to be able to iterate over a group object: grouped = Df Groupby ('zzz') question_list = [a, b, c] How do I get a list of values ​​for: grouped .grouped.b grouped.c but using a for-loop? You can either remove such a key print Df Groupby ('zzz'). Groups.keys () To capture the grouped. You can do this ... print df.groupby ('Zzz') group ['A'] or you can open the key, For this type of group key, in df.groupby group ('Zzz'): print key # group key Is a dataframe related to

c# - Showing a SelectedItem's Property -

So I have enabled a rightclick option for my DataGrid. I want to display the only chosen property but it is not behaving like what I would like it to display my name and additional. Public category Paymentinfo {public int PaymentNo {get; Set; } Public string date {get; Set; } Public Double Pay {get; Set; } Public Double Principle {get; Set; } Public Double Interest {get; Set; } Public Double Balance {Received; Set; }} Private Zero MenuItem_OnClick (Object Sender, RoutedEventArgs e) {MessageBox.Show (AmortGrid.SelectedItem.ToString ()); } I'm trying to apply it without using a View Module! If I place a breakpoint where the messagebox and the recipient place it on selected ITEM, then this property will display the payment. A date-payment-principle-interest-balance is the only value that needs payment. Was hoping that it would be something like this MessageBox.Show (AmortGrid.SelectedItem.PaymentNo.ToString ()); When you call ToString () So you get the class typ

c# - Grouping and flattening list with linq and lambda -

मैं निम्नलिखित वर्ग है सार्वजनिक वर्ग SolicitacaoConhecimentoTransporte {सार्वजनिक लंबे आईडी {मिल; सेट; } सार्वजनिक स्ट्रिंग CodigoOriginal {get; सेट; } सार्वजनिक तिथि समय डेटा {प्राप्त; सेट; } सार्वजनिक सूची से & lt; CaixaConhecimentoTransporte & gt; कैएक्सस {प्राप्त करें; सेट; }} मैं अगर वहाँ (लैम्ब्डा अभिव्यक्ति वाक्य रचना के साथ) LINQ का उपयोग कर नीचे कोड का एक ही व्यवहार achiveing ​​का एक तरीका है जानना चाहते हैं, सूची से & lt; SolicitacaoConhecimentoTransporte & gt; auxList = नई सूची के & lt; SolicitacaoConhecimentoTransporte & gt; (); अग्रवाल (लिलिटाकाओ कॉन्सेसिन्टोम ट्रांस्पोर्ट्स एस लिस्टे सोलिएटाकाओ में) {सॉलिटेकाको कॉन्सेसिन्टोम ट्रांसस्पोर्ट्स की मौजूदा = ऑक्सिलिस्ट। फर्स्टऑर डीफॉल्ट (एफ = & gt; एफ.कोडिगोऑरिनल == एस। कोडीगोऑरिनल & amp; एफ.डेटा == एस। डेटा एंड amp। एफआईआईडी == एस आईडी); अगर (मौजूदा == नल) {auxList.Add (s); } और {मौजूदा। कैयक्सस। एडरेंज (एस। कैएक्सस); }} वापसी auxList; दूसरे शब्दों में, समूह सभी संस्थाओं में बरा

sql - How can I get the company's fiscal year for a date? -

The company uses this year as the financial year on July 1 next year till June 30 next year, with January January Is referred to. 1. For example, May 20, 2014 is in fiscal year 2014 and July 21, 2014 in fiscal year 2015. I have to show the rental / date plus fiscal year (only 4 marks a year). Hire_date 01-Jun-98 16-Aug-2012 -Feb-09 09-01-March 06 01-DC-08 17-Mar-99 16-FA0-07 select rent_date, remove (add_months (trunc (from year), hire_date, 'mm'), 6)) as the order of t42 by fiscal_year hire_date; HIRE_DATE FISCAL_YEAR --------- ----------- 01-DC-08-2009 01-Jun-1998 1998 01-March 06 06 06 02 02 February 09 -09-16- Eg-99 2000 16-Feb-07 2007 17-Mar-1999 1999 You can use the extract () and case What Andrew was pointing to: select rent / debit, withdraw (rental_data year) + Remove the case (month from rental_date) & gt; = 7th, 1 second 0 year as Android; .

knockout.js - Perform lookup when ko postbox value published -

I started writing this question that I want to know how to set a lookup function when someone The properties of the view can be changed by the other view model, and now I ask how I am delivering this problem. In any case, this is my scenario: I have a grid of an item on that page. The user clicks on a button to edit an item, and we show the popup window that contains all the original data, with detailed data about that record, which is not in the main grid object. Edit window I have a separate overview of data for "copy of the work". When the user changes by clicking on the save button, then my plan is to copy over the original object so that the grid The changes appear. I am currently using the ko.postbox library to communicate between two viewmodels. Both have been observed using "sync" to store that item that has been selected and kept in sync Here it shows how it looks: function MainVM () {self = this; This.Item = K. Horoscope (). SyncWith ("

javascript - Iframe src depending device width -

I am doing a web page, and I have ads in it. I am advertising with Google Web Designer, this program generates an iframe In the work of the client device, especially the width of this device, I show a specific iframe I like. Can I specify the source of the iframe which I want to show in device-width work? I try to use the media queries in CSS to hide all iframes except the correct, but this is not working correctly; I try it on Windows Phone and Android. Offopaxic: If someone knows better software than Google Web Designer, then let me know. You can use jQuery, say that the id in your iframe is "frame" & lt; Script type = "text / javascript" src = "http: //ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> & Lt; Script & gt; Var width = (window.innerWidth> 0)? Window.innerWidth: screen.width; If (width == 950) $ ('# frames'). Attr ('src', url); And if (width == 750) $ ('# frames&

ssh - interactive services for a git user on GITLAB -

I have installed gitlab and when I try to do the following: ssh Git@ domain.com I get the following error PTY allocation failed on the request channel GitLab, welcome to the zone! Close the connection with Domain.com I read the following comments in one thread: You can not ssh to gitlab server as a GIT user, even here If you do not have permission to add your own SSP key through Gitlab, you can push / push as a git user only. You can login as a root user if necessary. Is it true for all cases I installed Gitlab at 6.5 on the Centes. I just want to make sure that we can not enable interactive services for GIT users on gitlab and I should get the result which should be expected. I want to make sure that we enable interactive services for GIT user on gitlab Can not do and the results I get which should be expected. Yes, except you can get rid of the first error message: ssh -T git @ domain View GitLab uses SSH, such as , which means there is no inte

objective c - Setting a Label to a Preset Point -

I would like to create some preset points for my label in Xcode 5. To set the status of the label, you can select Label.center = CGPointMake (Exports, Y Point); . How do I create a Preset Point, so there is no need to type CPExax and Coordinate / Variables. Is there a way, just type: Label.center = A-Variable-That-Store-X-And-Y ? Use something like this: CGPET label center = CP point make (exponent, y point); Label.center = labelcenter;

mysql - Combining web services under one domain name. -

I want to add webs.com website with a digital ocean website so that my company's website and MySQL data chairs Are all accessible under a single domain (eg, YourDomain.com) Is there any way that is possible? Thanks in advance. Yes, just host your MySQL on one server and connect your site's DB to Server IP . Provide some code buddies or your actual setup

javascript - Making a form not submit on refresh -

मेरे पास & lt; form action = "review / review" method = "POST "नाम =" # लोड "& gt; समीक्षा लेखक: & lt; br / & gt; & Lt; इनपुट नाम = "लेखक" आकार = "8" प्रकार = "लेख" वर्ग = "उपयोगकर्तापास" / & gt; & Lt; br / & gt; & lt; br / & gt; कंपनी का नाम: & lt; br / & gt; & Lt; इनपुट नाम = "कंपनी" आकार = "8" प्रकार = "टेक्स्ट" वर्ग = "उपयोगकर्तापास" / & gt; & Lt; br / & gt; & lt; br / & gt; समीक्षा करें: & lt; br / & gt; & Lt; textarea id = "comment" नाम = "टिप्पणी" पंक्तियाँ = "6" cols = "35" & gt; & lt; / textarea & gt; & Lt; br / & gt; & lt; br / & gt; & Lt; input type = "hidden" name = "date" size = "8" प्रकार = "text" class = "userpass" मान = "& lt ;? गूंज '$ rev

Classify type of tweet based on regex in python -

Extend this question: I classify each as one of my datasets Attach the twitter type to the following, and for each record in the dataset. Currently, when I run my script shown below, returns me [none] , so obviously I'm missing something here The current format : ['CREATED_AT'] ['text'] Desired format: ['CREATED_AT'] ['text'] ['tweets_type'] tweet classification: ( 1) Tweet -> There is a "RT @ many names" in the Tweet text column (2) Meditation -> In a "tweet post" someone G "but no" RT @ any user name " (3) Tweet -> There is no" RT No "name in the column and no" @Username " code: import json import time of import reload loading streaming streaming json data dcit def import_tweets (parameter1): data = [] row Except for (parameter1): Try: Pass data for i: '[CREATED_AT'] = 'except for the. Append (json.loads (line)): time.strftime

spring - securing controller added to jasig cas 3.5.2 -

I have succeeded in adding password functionality to our CAS server, but new to CAS and Spring. I have successfully added a Multi-Action Controller to the overlay, but I see how it can be secured before viewing the pages and the user needs to authenticate. So far, I have added this to the CAS Overlay Project: web.xml & lt; Filter-mapping & gt; & Lt; Filter-name & gt; SpringSecurityFilterChain & lt; / Filter-name & gt; & Lt; URL pattern & gt; / Pm / change / * & lt; / URL pattern & gt; & Lt; / Filter-mapping & gt; & Lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; Cas & lt; / Servlet-name & gt; & Lt; URL pattern & gt; / Pm / change / * & lt; / URL pattern & gt; & Lt; / Servlet-mapping & gt; cas-servlet.xml & lt; Property Name = "Mapping" & gt; & Lt; Theater Content & gt; ... & lt; Prop key = "/ pm / change / *" & gt; Password Change Adm

C++ program freezes during COM port read -

I am trying to write a simple program to send a letter to a program through a COM port and I Read the answers that you get. I think that I am working on the script, where I can send the command at least through a comm port, but when the ReadFile function starts, it is free. I have a comm timeout of 100 mms , So I do not think this port is closing, but I can be wrong. I am not getting any error, and when I compile there is no warning. I'm very new to C ++ (usually working with Python), so please be possible with your answers. // comtest.cpp: defines the entry point for the console application // # include "stdafx.h" #include & lt; Iostream & gt; #include & lt; String & gt; # Include & lt; Sstream & gt; # Include & lt; Dos.h & gt; # Include & lt; Stdio.h & gt; # Include & lt; Conio.h & gt; #include & lt; String.h & gt; #include & lt; Windows.h & gt; Int main (int argc, char ** argv) {std :: cout &

ios - Prevent UITableView out of cell bound views from clipping on insertRowsAtIndexPaths: -

This video shows that cells with sequences coming out of cell area periodically Is cut when a new cell is inserted: This simple project clearly shows the problem and is used for quick prototyping This clip is only when the table is mutated The cells are clear. Cells are displayed correctly if there is no mutation. Is there any kind of optimization that only uses pixs from within cell area for animation? Everything is correctly setup, stable and functioning as expected, we are not using specific cell data for this example: [Tableview startupdates]; Self.cells ++; [Insert tableviewRR & EXPaith: [NSARRAARIJject: IndexPath] with Row Animation: UITTualviewAnonymousRight;]; [Table view end update]; Response from DTS: I'm afraid you are not going to be able to update: " UITableViewRowAnimation ", even if you call" insertRowsAtIndexPaths "directly affect the inclusion animation behavior, the contents of the cell do not tradition

parsing - Scraping HTML info with Python -

I want to find product name (product 1) given product ID (product ID 1111111) using Python. To return the status of the productive character, we have to use the function to back up some characters, but I'm sure there is a better way to do this. HTML code: & lt; Html & gt; & Lt; Table & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; An id = "ProductID1111111" class = "product" href = "some url" & gt; & Lt; Span id = "ProductID1111111" & gt; Product 1 & lt; / Span & gt; & Lt; / A & gt; & Lt; BR & gt; & Lt; An id = "ProductID2222222" class = "product" href = "some url" & gt; & Lt; Span id = "ProductID2222222" & gt; Product 2 & lt; / Span & gt; & Lt; / A & gt; & Lt; / TD & gt; & Lt; TR & gt; & Lt; / Table & gt; & Lt; / Html & gt; python: from selenium import to sele

c# - Sending an object with a command parameter -

I am using PRISM to develop my Windows Phone app using MVVM design patterns. I have to pass my chosen ITem object through my lawal order through my lawal order through my representative order. The problem I can do is, I am passing in the wrong object. I do not know whether this is a design problem or I am improperly bound. I need an object object object What I'm doing instead is either zero or my view model (I've changed the code several times and those are just the things I can get .) XAML & lt; Phone: LongListSelector X: Name = "AlbumList" ItemsSource = "{Binding album}" margin = "10,0,0,0" LayoutMode = "grid" GridCellSize = "200, 200" ItemTemplate = "{StaticResource AlbumTemplate}" toolkit : TiltEffect.IsTiltEnabled = "This is True" & gt; & Lt; I: Interaction.Triggers & gt; & Lt; I: EventTrigger EventName = "Selective Change" & gt; & Lt; I: InvokeCommandAc

How to find the array indexes for each element in another array in MATLAB? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 3 जवाब दो सरणियाँ हैं: < / P> ए = [2,6 9, 10]; बी = [6,10,9,2,2,9,10,10,6,6,2,9]; मैं निम्न सरणी को आउटपुट करना चाहता हूं: सी = [2,4,3,1,1,3,4,4,2, 2,1,3]; यह काम कैसे करें? मुझे समाधान मिला , [~, c] = ismember (बी, ए) ;

python - How to place sprites onto rect object in pygame? -

I was wondering if any of you knew how I had already created a Reich object in PagMem Have a phantom attached? Here is my code: blocker 1 = pygame.sprite.Sprite () blocktexture1.rect = self.platforms for blocks in self.platforms: pygame.draw .rect (screen, self, cloor, block, 0) I do not understand which rectangle to apply the Phantom Rect thing! assign rect attribute to the rectangle you created . For example: example_sprite = pygame.sprite.Sprite () example_rect = pygame.Rect (0, 0, 50, 50) example_sprite.rect = example_rect

javascript - Color-changing Button -

I am creating a 3-color button that switches between red, green and blue colors when you press it . I think the error is in this if (color.style.backgroundColor == 'ff0000';) {color.style.backgroundColor = '00ff00'; } If (color.style.backgroundColor == '00ff00';) {color.style.backgroundColor = '0000ff'; } If (color.style.backgroundColor == '0000ff';) {color.style.backgroundColor = 'ff0000'; } Code, but I do not know what the specific problem is. & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Button & lt; / Title & gt; & Lt; Script type = "text / javascript" & gt; Function buttonpress () {alerts ("hi"); } Function color () {if (color.style.backgroundColor == 'ff0000';) {color.style.backgroundColor = '00ff00'; } If (color.style.backgroundColor == '00ff00';) {color.style.backgroundColor = '0000ff'; } If (color.style.backgroundColor ==

php - Making a Pyramids card game, unsure of how to setup the pyramid -

I generally do not make a game in PHP, I usually only do the website but I first created a card game in PHP is . This time I wanted to try a pyramid solitaire game because I love playing it. I started the pyramid (the front row below, example: I used pyramid for loops and it Everyone sets well, but my problem is it is not certain how to check to see if I need it or need a new card. I have usually found out how things work, but it is stumped. < / P> This is for the loop for the bottom line of the 10 shown cards. ($ Deck is an array of ready shafed decks.) for ($ i = 0; $ I & lt; 10; $ i ++) {$ card = array_shift ($ deck); resonate "div style = 'position: full; top:". $ Card_lvl_1t. "Left:" $ card_lvl_1l . ", Width: 55px; height: 90px; '& gt; & lt; img src ='". $ Card. "'Border =' 0 '& gt; & quot; / div & gt; \ n"; $ Card_lvl_1l = $ card_lvl_1l + 56;} Any suggestions would

c++ - Why std::set is an associative container -

I have gone through different texts The only thing I have found is that this set is an associative container that was sorted And there are unique keys. Now if any key is used to map any key, so that there is a union in the set. "itemprop =" text "> is an object used to store the care of the management of memory used by other objects and objects in it Done An ordered container that provides fast viewing of objects based on the key. is an associative container in which there is a set of specific types of a specific object So what makes it cooperative? The fact is that the elements in a set are referred to by their key and not in their container in their full position. The key, of course, is that the element is a map where the key values ​​are equal and understand as given that, where the second copy of the same content is removed. So what would be a disorganized set? Std :: unordered_set container, complete the requirements of AllocatorAwareContainer

Windows 7 Python installation: Works with full command, but "file.py --version" returns "Could not load Python dll" -

यह इस सवाल का अनुसरण है: मैं सफलतापूर्वक चला सकता हूँ एक कमान, django-admin.py कहते हैं, जब तक मैं दोनों अजगर और पूरी तरह से Py फ़ाइल के लिए योग्य पथ। उदाहरण के लिए, यह ठीक काम करता है: अजगर c: \ अनुप्रयोगों \ प्रोग्रामिंग \ python_341 \ लिपियों \ django-admin.py startproject mysite लेकिन इनमें से कोई नहीं निम्न काम (विशिष्ट प्रतिक्रियाओं के लिए पिछले प्रश्न देखें): django-admin.py startproject mysite अजगर django- c: \ अनुप्रयोगों \ प्रोग्रामिंग \ python_341 \ लिपियों \ django-admin.py startproject mysite P> सबसे अधिक संबंधित है जब मैं चलाता हूँ, जैसा कि: django-admin.py --version इसका जवाब है < पूर्व> पायथन डीएल लोड नहीं किया जा सका मैं ईमानदारी से यह नहीं जानता कि इसका क्या जवाब है, लेकिन मैं यह अनुमान लगा रहा हूं कि यह नहीं है। < P> मैंने इसे अनइंस्टॉल कर दिया है, अपने कंप्यूटर को पुनरारंभ किया है, और अजगर (और साथ ही pip फ्रीज़ द्वारा सूचीबद्ध सब कुछ) तीन बार आज फिर से स्थापित किया है। क्या यह मुझे चिंता करने की

android - Docx file download -

Image
I'm trying to download. The Docx file I will download using the HTTP connection but the link is not a direct link, so I am using the intent to open the URL in the browser. As a result, the browser will download it. string URL = "http://dev.businessinfo.uz/document/template/download/link/528b07d162135"; Intent I = new intent (Intent.ACTION_VIEW); I.setData (Uri.parse (url)); StartActivity (i); The problem file is downloaded in the bin file extension, which can not be opened by the Doctor Viewer. How to solve this problem Do you? The problem is not in your code, it happens when you use the original browser It downloads the file in ".bin" file format. However, if you use Chrome, it will download in the ".docx" file format. I just tested your code, it works fine; I get that file in the ".docx" file format. I need to download it through the Android Google Chrome browser. So I recommend you to open the Android Mobile Goo

javascript - Facebook escaped json with Parce.com -

मैं json में एक फेसबुक पेज फीड पढ़ रहा हूं, जैसे: https://www.facebook.com/feeds/ पृष्ठ.php? Format = json & amp; id = 237173582992285 प्रतिक्रिया से बच निकलती है ... विशेष वर्णों और अन्य चीजों को कैसे अनपेक्षित करें?! जावास्क्रिप्ट एक पठनीय स्ट्रिंग में यूनिकोड को परिवर्तित करना चाहिए। आप HTML संस्थाओं के लिए PHP के html_entity_decode () का उपयोग कर सकते हैं।

r - How can I call a function with some parameters specified in parent environment? -

वैश्विक वातावरण में परिभाषित निम्नलिखित फ़ंक्शन पर विचार करें: परीक्षण & lt; - फ़ंक्शन (x eval (उद्धरण (परीक्षण (1)) का उपयोग करना, सूची (y = 2)) काम नहीं करता है। & gt; परीक्षा (1) में त्रुटि: (वस्तु) 'y' नहीं मिला ऐसा इसलिए है क्योंकि फ़ंक्शन नहीं मिलेगा < कोड> वाई में सूची (y = 2) । क्या कोई ऐसा सरल तरीका है कि मैं जिस तरह से उसका मूल्यांकन कर सकता हूं उसे संशोधित कर सकता है ताकि परीक्षण (1) एक वातावरण में काम करता हो जहां y परिभाषित किया जाता है? मुझे लगता है कि पुराना फ्रेम से y के डिफ़ॉल्ट मान को परिभाषित करने का सबसे सुरक्षित तरीका होगा यदि नहीं । परीक्षण & lt; -function (x, y = मिल ("y", envir = parent.frame (1))) {x + y} y & lt; -3 परीक्षा (1) # [1] 4 टेस्ट (1, 10) # [1] 11 लेकिन वास्तव में यह एक भयानक विचार की तरह लगता है।

rubygems - Weird error trying to install Ruby Gems Before I can Install Rails -

I am stuck trying to install the original Rabbi gems so that I can install it on my machine and install it. I have tried a few different things, so I am not sure that I have messed it up elsewhere and now the result is a bit displeasing. I have RVM installed and this path has been followed to get the gems: RVM established with this command: $ curl -sSL | Bash -s static then it: $ rvm is stable then be sure to install the following From Homebrew: $ Alcohol Exchanges, Libbylloule libxslt libksba openssl Where all is established with my previous efforts. Then I tried to show the RVM where the OpenSLL was located using this command and then when things went south (and since I had failed to establish the railways first, I knew it was a Gem issue was): rvm install 2.0.0 - with-openssl-dir = $ HOME / .rvm / opt / openssl I run the command in the Mac terminal: "gem list" I take it back: & gt; Gem list & gt; / System / library / framework /

c - sscanf using @ as delimeter -

using '@' sscanf as a delimeter, I can not find the expected result < P> example: #include & lt; Stdio.h & gt; Int Main () {Four Buffs [512], Scan_book1 [512], Scan_book2 [512]; Sprintf (buf, "abc @ def"); Sscanf (buf, "% s @% s", scan_buf1, scan_buf2); Printf ("scan buffer 1 -% s scooter buffer 2 -% s \ n", scan_buff1, scan_buff2); Expected session: Scanned buffer1 - ABC scan buffer2 - def actual op: scanned buffer1 - ABC @ def scan buffer2 - I use some special syntax for "@" should do? I can not see anything for this in the man page. After the you can read, you will see that the "% s" format The order of non-white characters This means that until "% s" will read up to the letters It does not reach a white space. Since you do not have a white space in your input it will be read in the first string You can solve this by using "% ["]. sscanf (buf, "% [^ @] @%

javascript - For Firebase Simple Login, I have to login twice for it to register -

I'm sure that this is a problem for me, which is not fully understood asynchronous javascript, but I I will explain the problem. / P> I have an email / password authenticated with Firebase, and I have a login page with the following form: & lt; Form class = "form-signin" role = "form" action = "#" onsubmit = "return login (this);" & gt; & Lt; H2 class = "form-signin-title" & gt; Please login & lt; / H2 & gt; & Lt; Input type = "email" id = "email" class = "form-control" placeholder = "email address" required autofocus & gt; & Lt; Input type = "password" id = "password" class = "form-control" placeholder = "password" required & gt; & Lt; Button class = "BTN BTN-LG BTN-Primary BTN-Block" type = "Submit" & gt; Sign in & lt; / Button & gt; & Lt; / Form & gt; Whe

java - Hibernate throws TransientPropertyValueException when saving an entity -

I have two related institutions, organizations and registrations, such as registration and organization there are many relationships, The institution must obtain registration entries. institutions and relationship mappings: @ Antiti qualified public class registration {@NotNull @ManyToOne (optional = false) insert @ Jonk column (updating qualified = false, = Wrong) Private Institute Institute; } @Entity bring public square Institution {@OneToMany (cascade = {CascadeType.REMOVE, CascadeType.MERGE} = FetchType.EAGER, mappedBy = "body", private set orphanRemoval = true) & lt; Registration & gt; Registration; } and error trace is available: [INFO] 04: 34: 26,043 warning [org.hibernate.action.internal.UnresolvedEntityInsertActions] (http -Localhost / 127.0.0.1: 8888-4) HHH 000437: Attempts to save one or more organizations who have a non-ineligible affiliation with the unmanned transient unit. Before saving these dependent institutions, the unstated transien

vaadin - How does Component.setVisible() method work? -

मुझे GWT के साथ कुछ अनुभव है जीडब्ल्यूटी में, widget.setVisible () विधि विजेट में शैली = "प्रदर्शन: कोई नहीं" शैली जोड़ देगा। लेकिन वैदिन का घटक नहीं होगा। मैंने फायरबग के साथ चेक किया है, जब घटक झूठे को दिखाई देता है तो मैं अपना घटक नहीं देख सकता। क्यूं कर ? मुझे लगता है कि उसमें शामिल नहीं होने के बजाय छिपी शैली भी होनी चाहिए मैं फिर से दोहराता हूं कि वडाइन के कोड सर्वर साइड थे। लेकिन कभी-कभी, अगर मैं सिर्फ छिपाना चाहता हूं ( सेट शैली डिस्प्ले में कोई भी नहीं ), तो क्या सीएसएस का उपयोग करने के बजाय इसे पूरा किया जा सकता है? मुझे घटक जोड़ते बिना और सेटिव्यबल (झूठे) जैसा कि आपने पहले से ही देखा है, एक अदृश्य घटक सर्वर से ब्राउज़र में स्थानांतरित नहीं है, और ब्राउज़र के दृष्टिकोण से यह घटक मौजूद नहीं है। सुरक्षा: उपयोगकर्ता अदृश्य घटकों का अन्वेषण नहीं कर सकता है 'फायरबग जैसी उपकरण के साथ एचटीएमएल जेनरेट करता है क्योंकि ये नहीं है ब्राउज़र पर मौजूद है। तो ब्राउज़र की दृष्टि से मूल रूप से यह एक ही बात है कि आप इसे UI पर बिल्कुल नहीं जोड़ते हैं।

cql - How Cassandra can provide optimized solution for a Overlapping range check -

I have a key in my input, low limit R1, an upper bound limit R1 and some data. Only after doing this data must be included that my input range R1 should not overlap any existing limit in the cassandra. Therefore, before each converge I have a selected query key | Lower arrears | Upper bound | Data ------ + ------------ + ------------ + ---------------- -------------------------------------------------- ------ 1024 | 1000 | 1100 | & Lt; Blob & gt; 1024 | 1500 | 1900 | & Lt; Blob & gt; 1024 | 2000. 2900 | & Lt; Blob & gt; 1024 | 3000 3900 | & Lt; Blob & gt; 1024 | 4000 4500 & Lt; Blob & gt; Given range 1, range R (S, E) = (1,999), this is a positive case therefore the system should contain data Case2: given range R (S, E) = (1001,1010) This is a The negative case is therefore the system should be left out I have a solution with a range query and a programmatic check solution Please let me know that the solution to this type of pr

email - Google Rest api to get primary mail -

How to get Gmail primarily using Google's rest API Currently I'm using the GET Rest API, but it's social and promotion mail. I am referring to this site: Its beauty straight ahead We You can query messages using labels. Labels are of two types of system labels and user labels. For primary, we can use the system label "INBOX" and get an email related to that category. Other system labels like CATEGORY_PROMOTIONS, CATEGORY_SOCIAL, etc. are You can try it! To get a label: For a given label, tell INBOX in your case that ask questions about the message You also have to You can get Starred, Starred from CATEGORY_PERSONAL Inbox and for important email. Edited for sample code. Java code is available within the sample link, but here's a snippet: throws IOException the public static zero list label (Gmail service, string userID) {ListLabelsResponse response = Service.users (). the label (). List (userId) .execute (); & Lt; Label & gt

c# - How to change WP c4fToolkit:TimeSpanPicker value format -

I have a countdown timer in the page, but in the format hh: mm: ss and me in mm: ss Is there any way to change? Add this property to your timeppen picture in XML. ValueStringFormat = "{} {0: mm: ss}"

html - Why do the div elements overlay here? -

I am about that page: There is a yellow block with the text " Help translate this translation into incomplete ... " and under a block" article "which is surplus with it I do not know why this happens There is no full position below (Article) Relative in the position of the block but no margin. I'm curious why this is happening. I played in firebug with CSS properties and nothing. You are setting .dev-program-first {Margin-top: -60px; } Connect to $ style , line 80 in This translation affects three boxes under the message overlay. Setting it to 0 , it seemed to me that overlapping is often caused by negative margins, so it is possible that you should avoid them.

c - Is a^a or a-a undefined behaviour if a is not initialized? -

इस कार्यक्रम पर विचार करें: #include & lt; stdio.h & gt; Int main (शून्य) {अहस्ताक्षरित int a; प्रिंटफ़ ("% u% u \ n", एक ^ ए, ए-ए); वापसी 0; } क्या यह अपरिभाषित व्यवहार है? इसके चेहरे पर, a एक अनिर्मीकृत चर है ताकि अपरिभाषित व्यवहार को इंगित किया जा सके लेकिन a ^ a और aa के बराबर 0 के सभी मानों के लिए a , कम से कम मुझे लगता है कि यह है मुकदमा। क्या यह संभव है कि यह तर्क देने का कोई तरीका है कि व्यवहार अच्छी तरह से परिभाषित है? में C11: < / P> यह स्पष्ट रूप से 6.3.2.1/2 के अनुसार अनिर्धारित है यदि a इसका पता कभी नहीं लिया गया है (नीचे उद्धृत) यह एक जाल प्रतिनिधित्व हो सकता है (जिसके कारण यूबी का इस्तेमाल होता है)। 6.2.6.1/5: कुछ ऑब्जेक्ट प्रस्तुतिकरणों को ऑब्जेक्ट प्रकार के मान का प्रतिनिधित्व नहीं करना पड़ता है। अस्वाभाविक इनटी में जाल का प्रतिनिधित्व हो सकता है (उदाहरण के लिए अगर इसमें 15 परिशुद्धता बिट्स और 1 समता बिट है, तो a तक पहुँचने से समता दोष हो सकता है)। 6.2.4 / 6 का कहना है कि प्रारंभिक मान अनिश्चित है और 3

php - Fatal Error While trying to open Joomla Redirect Component -

When I try to open my Joomla's redirection component I see this line: Fatal error : 67108864 acceptable memory size of bytes Please help me! > Thank you in advance! It seems that you redirect to the table that contains the value limit You must also add a php.ini file to the root directory: memory_limit = 512M You can also try adding it to your .htaccess file: < / P> php_value memory_limit 512M Another method is to use your redirect table and clear it via phpmyadmin.

date format jquery with common output format from date -

my date is some time 2014-08-01 and sometime 01-08 -2014 but I need production such as 01-08-2014 regdate.split ("-") This is not suitable for the above input. To get the normal output date format, I am left by using a client side method 01-08-2014 Try it out: var day = myDate.getDate (); Var month = myDate.getMonth () + 1; Var year = myDate.getFullYear (); If (day & lt; 10) {days = "0" + day; } If (month & lt; 10) {month = "0" + month; } Var formatted date = day + "-" + month + "-" + year; This will give you an output date in the format DD-MM-YYYY regardless of the date the server received.

How to use Reactor to dispatch events to multiple consumers and to filter events based on event data? -

I am evaluating the reactor if it would be appropriate to dispatch the framework inside my spring / enterprise application . First, consider the scenario in which you have an interface A and the solid event class B , C and on. I want to send concrete events to many consumers i.e. the supervisors are registered for the global reactor example during those bean post processing, however, you can dynamically register them. In most cases a manufacturer has many Sending events to consumers at a higher rate. I have sent the code to use selector s, that is, ClassSelector . The correct event type for the right consumers works well. reactor reactor = ... b event = ... consumer & lt; Events & lt; B & gt; & Gt; Consumer = ... // Registration is used to cancel the subscription later on & lt ;? & Gt; Registration = Reactor (T. (Event .getClass ()), Consumer); Inform the event as a key, B event = ... reactor.update (event.getClass (), event.wrap (acci

c# - Combine 4 parameters into something that only three arguments? -

I have some static data that I am using in C # and the first method looks like this that basically They have been declared public class privilege profiles {string PROFILE_ID; String COMPANY_CODE; String PRIVILEGE_CODE; Public Privilege Profile (string PROFILE_ID, string COMPANY_CODE, string PRIVILEGE_CODE) {this.PROFILE_ID = PROFILE_ID; this. COMPANY_CODE = COMPANY_CODE; this. PRIVILEGE_CODE = PRIVILEGE_CODE; }} It's all right and good, but I've got a second method with it. Add keywords and since it only takes 3 arguments, I can not add all the required static data. PRIVILEGE_CODE has several bits of data where PROFILE_ID and COMPANY_CODE have only one, do I have some bands to use or do it Do I have a format to do? Public ServispostSpops GetPrivileges () {ServiceResponse SR = New Service Report (); & Lt; PrivilegeProfiles & gt; PrivilegeProfiles; Privileges Profile. Add new private profile ("Train Manager", "GW", ["DASER" "

How to get unique rows by column value using linq -

मेरे पास तालिका प्रारूप में मान हैं IEnumerable & lt; IEnumerable & lt; डेटा & gt; & gt; टेबल रिजल्ट = नए आईएनइमेरेबल & lt; IEnumerable & lt; डेटा & gt; & gt; (); // नीचे पंक्ति तालिका काम नहीं करती है रिजल्ट = टेबल रिजल्ट। डिस्टिंक्ट (पंक्ति = & gt; पंक्ति ("आईडी")); तालिका रिजल्ट तालिका स्वरूप में मान शामिल है, कहते हैं (डमी उदाहरण)। रिकॉर्ड मुझे मिल रहा है IEnumerable & lt; IEnumerable & lt; डेटा & gt; & gt; तालिका नहीं है उम्मीद है कि आपको कॉलम नाम मिलेगा आईडी का नाम पदनाम 1 सैम इंजिन 3 एमओएस डॉक्टर 3 पीटर चालक 4 बॉब बिल्डर अपेक्षित परिणाम है: कैसे प्राप्त करें आईडी द्वारा अद्वितीय पंक्तियाँ linq का उपयोग कर। आईडी नाम पद 1 सैम इंजिन 3 एमओएस डॉक 4 बॉब बिल्डर आप आईडी से समूह कर सकते हैं और प्रत्येक आईडी समूह में पहली आइटम का चयन कर सकते हैं। अपने आईडी कॉलम को मानते हुए आंतरिक IEnumerable में पहला तत्व है: tableResult.GroupBy (x = & gt; x.First ())। चुनें (x = & gt; x.First ()); य

Changing the Visibility of PanoramaItem using C# in Windows Phone 8 -

I am able to make a panoramaItem visibility using C #. As a default, the panorama ITAM is set to collapse. See below: & lt; Phone: Panoramite Header = "Select" visibility = "Abbreviated" x: name = "Selectgroup" & gt; & Lt; Text block text = "HI" margin = "30" font system = "36" & gt; & Lt; / TextBlock & gt; & Lt; / Phone: PanoramaItem & gt; is now a text block and I have created a tap event: & lt; TextBlock x: Name = "SeachBloodGroup" Text = "A +" FontSize = "30" Tap = "Blood Group Group" & gt; & Lt; / TextBlock & gt; Code: Private zero bloodGroup_Tap (Object Sender, System.Windows.Input.GestureEventArgs e) {SelectGroup.Visibility = SelectGroup.Visibility == Visibility Closed? Visibility View: visibility. Collapsed; } But the panorama item is not appearing. Try this: Private Wide Blood Group Glaps (Object Sende

How to pass F# a string and get the result back in c# -

इस सवाल का पहले से ही एक उत्तर है: < / P> 4 जवाब मैं एसक्यूएल डेवलपर हूँ और हूँ वास्तव में F # और C # दोनों के लिए नया है मुझे नीचे दिए गए फ / फंक्शन के लिए स्ट्रिंग कैसे पारित करने के लिए मदद की ज़रूरत है और परिणाम को F # से C # से वापस करना है। प्रोजेक्ट का विवरण: मैं एक वाक्य टैग करने के लिए स्टैनफोर्ड पोस्टागर का उपयोग कर रहा हूं भाषण के कुछ हिस्सों के साथ मैं इस कोड को कॉपी किया है, जहां से संदर्भ लिंक। () मॉड्यूल फ़ाइल 1 खुला java.io खुला java.util ओपन edu.stanford.nlp.ling ओपन edu.stanford.nlp.tagger.maxent // मॉडलों के साथ फ़ोल्डर के लिए पथ modelsDirectry जाने = __SOURCE_DIRECTORY__ + @ '.. \ stanford-postagger-2013-06-20 \ मॉडल \' लोड हो रहा है पीओएस टैगger टैगर = मैक्सेंटटैगर (मॉडल डायरेक्ट्री + 'wsj-0-18-द्विदिश- nodistsim.tagger') tagTexrFromReader दें ( पाठक: रीडर) = चलो संस्कार = अधिकतमतमटैगर। टोकन पाठ (रीडर) .toArray () भक्ति | & gt; Seq.iter (मजेदार वाक्य - & gt; टैग करेंसेंटेंस = टैगरटैगसेंटेंस (वाक्य:? & Gt; ArrayL

javascript - Auto hide bootstrap tooltip -

I want to hide Boostrap tooltip automatically after a few seconds. & lt; Input type = "text" title = "" data-placement = "bottom" style = "width: 200px" data-toggle = "tooltip" auto-integer = "off" data-provided = "typeahhead" class = "form- Control Waring "name =" Medic_name "id =" medic_name "data-original-title =" Please enter valid drug name "& gt; is out of the bootstrap box, you can set the delay property in the options (< In Js: delay: {show: 500, hide: 100} and in HTML: data < / P> > / html>

android - Listview crashes when scrolling only on kitkat -

But it only crashes on KitKat devices and it also works on KitKat emulator, so I do not get anything in the logk If I remove imageView.setImageResource (imageId.get (status)) then works on APK KitKat devices, but I need it. Here is my code: Custom list: Arrayadaptor expands in public category customists & lt; String & gt; {Context of personal end activity; Personal Final List & lt; String & gt; Name; Private Final List & lt; Integer & gt; ImageId; Private typeface myFont; Public catalog (activity reference, list & lt; string & gt; name, list & lt; integer & gt; image id) {super (references, r.lit.list_single, name); This.context = context; This.names = names; This.imageId = imageId; } @ Override Public View getView (View of Entity, View View, ViewGroup Parent) {layoutInflator inflater = context.getLayoutInflater (); See row view- inflater.inflate (R.layout.list_single, empty, true); TextView txtTitle = (text view) rowView.findViewByI

php - Using ajax to submit a form to update database -

Trying to cross the same hidden data to update your SQL using AJAX. But it is not working and there is no error message too. HTML & lt; Form id = "hidden_form" & gt; & Lt; Input type = "hidden" id = "id_hidden" name = "id_hidden" & gt; & Lt; Input type = "submit" value = "accept" & gt; & Lt; / Form & gt; Submit (function () {$ .ajax ({type: "GET", url: " Ajax $ (" # hidden_form "). $ ("# Add_success") HTML (data); $ ("#"), "$" ("# hidden"), data: $ ("#happyform"), serialize (), // form elements of the serial . Add_err ") .HTML (" ");}});}); php $ id = $ _GET ['id_hidden']; $ Sql ​​= "Update ProjectMileNeston SET = 1 where id = '$ id'" Accepted; If (mysqli_query ($ conn, $ sql)) {resonant "project approved"; } And {echo mysqli_error (); }? & Gt;

c - It is not able to display message -

// To display the message as a parameter, use the function # include & lt; Stdio.h & gt; #to & lt include, process.h & gt; // Return name char name_desplay (four * name) {return * name; } // display name zero performance (four (* display) (four * name1), four * name 2) {char name3; NAME3 = Performance (NAME2); Printf ("name is% s", name3); } Zero main () {display (name_display, "message"); Definitely: printf ("name is% s" Name3); wants to print a string, but name3 is only a char or modify your code: printf ("Name% c", name3); or modify your code: four * name_display (four * names) {return name; } // Display Name is zero display (four * (* display) (four * name1), four * name 2) {four * name3; I.e.: Work with strings instead of letters.

maven 3 - java.lang.ClassFormatError: JVMCFRE074 no Code attribute specified; class=javax/servlet/http/HttpServlet, method=<init>()V, pc=0? -

I'm getting this error while starting the server? 'Java.lang.ClassFormatError: JVMCFRE074 No code attribute specified; Class = javax / servlet / http / httpServlet, method = () v, pc = 0 ' Can anyone help me solve it? Dependance from JavaBi API: & lt ; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven- Perfect-plugin & lt; / ArtifactId> & Lt; Configuration & gt; & Lt; Classpath dependencyExcludes & gt; & Lt; ClasspathDependencyExclude & gt; Javax: javaee-api & lt; / ClasspathDependencyExclude & gt; & Lt; / ClasspathDependencyExcludes & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt;

java - Publishing REST apis through javax.xml.endpoint -

मैंने निम्न कोड का उपयोग कर सर्वर बनाया है @WebServiceProvider @ServiceMode (value = Service .Mode.PAYLOAD) सार्वजनिक वर्ग सर्वर लागू प्रदाता & lt; स्रोत & gt; {सार्वजनिक स्रोत आमंत्रण (स्रोत अनुरोध) {नए स्ट्रीम संसाधन (नई स्ट्रिंग रीडर ("& lt; p & gt; नमस्कार वहाँ! & Lt; / p & gt;")); } सार्वजनिक स्थैतिक शून्य मुख्य (स्ट्रिंग [] आर्ग्स) इंटरवर्टेड एक्सपशन {स्ट्रिंग एड्रेस = "http://127.0.0.1:8080/" फेंकता है; समापन बिंदु समापन बिंदु = समापन बिंदु। बनाना (HTTPBinding.HTTP_BINDING, नया सर्वर ()); endpoint.publish (पता); System.out.println ("सेवा चल रही है" + पता); System.out.println ("प्रकार [CTRL] + [सी] छोड़ने के लिए!"); Thread.Sleep (Long.MAX_VALUE); }} अगर मैं इसे जावा एप्लिकेशन के रूप में चलाता हूँ तो मैं सर्वर का उपयोग कर सकता हूं। अब मैं कुछ आरईएस एपीआई रजिस्टर करना चाहता हूं ताकि इन्हें उजागर किया जा सके। मैं ऐसा कैसे कर सकता हूं? मैं एक गतिशील वेब प्रोजेक्ट बनाना नहीं चाहता मैं इसे केवल एक जावा प्रोजेक्

ios - Can't update Xcode 5.1 to Xcode 5.1.1 with Yosemite -

I created an app using Xcode 5.1 for iOS7 and Yosemite OS. When I tried to submit my app, he showed the following error: "This bundle is invalid. New apps and updates submitted in the app store will be created publicly" Search about the error After doing so, I realized that Xcode 5.1.1 is required to submit my app so I went to the App Store to update my Xcode 5.1 on the new version (5.1.1) and said that I Software not updated Because I was using a new OS version (Yosemite). This time I'm stuck because I do not want to downgrade Mavericks and I want to update Xcode 5.1.1 ... Is it possible to fix this problem? Or do I have to downgrade to Mawrix? Download Xcode 5.1.1 from and install it from .dmg .

c# - Trouble calling variables -

यह मेरा कोड है (जो संकलन नहीं करता है): सार्वजनिक मेनवांडो () { InitializeComponent (); } प्राइवेट इंट एक्वल्यूज () {int var1 = int.Parse (box1.Text); Int var2 = int.Parse (box2.Text); वापसी var1; वापसी var2; } निजी शून्य plus_Click (ऑब्जेक्ट प्रेषक, RoutedEventArgs ई) {int परिणाम = addValues ​​(var1, var2); इंट रीप्लस; रीप्लस = (var1 + var2); Res.Text = (resplus.ToString); }} मुझे var1 और var2 को plus_Click विधि में उपयोग करने की आवश्यकता है लेकिन यह कहता है कि ये दोनों मौजूदा संदर्भ में मौजूद नहीं हैं। दूसरी बात जो मैं चाहता हूं Var1 और var2 को एक साथ जोड़कर "रिप्लस" बनाएं और फिर इसे टेक्स्टब्लॉक (नामित "रेस") में दिखाएं। < P> आपके द्वारा प्रदान किए गए नमूने में कुछ गलतियाँ हैं आपके कोड में addValues ​​ विधि किसी पैरामीटर को स्वीकार नहीं कर रही है, लेकिन आपका कोड 2 मापदंडों को पार करने का प्रयास कर रहा है मैंने आपके कोड को फिर से लिखा है I कृपया नीचे देखें कोड स्निपेट आपकी आवश्यकता को पूरा करता है निजी इंट एक्वल्यूज (इंट वर्ट 1, इंट var2

android - How create notification on status bar using phonegap -

How do I create a notification in the status bar on Android, as shown below, using PhoneGap? The example of this notification which I want You will see its "push notification" Name is required Some plugins for PhoneGrap This can also be helpful: < Li> -> Here you can see how the plug-in is installed and used Be careful, using the right push notification First there will be your app - if your notifications are not only of course local In the To send push notifications, you will need to register your app with the first platform of your app to match a push notification service (Apple APN or Google GCM).

flash - Best way to build video chat into a website? -

It seems that I'm actually ending my options with browser based video chats. The search for solutions which enabled the maximum number of browser setups, and supported a good level of call quality (including acoustic echo cancellation). Here was my process: Be ready for more futures, I tried out services such as Tokkbox, Bistrri, QuickBlocks, but this service only got Chrome and Firefox Attempted VideoIO.swf but could not connect to other PCs tried other chat services like Camachat (CamchatScript dot com), but Problem of the above issue (possibly peer-to- Aaron Issue - Tested and Issue was not specific to my network) No service is available that provides an API such as setup and API for a Flash-based video chat system, Uses the server, but is this the way to go? How do I start this route? Is there a sample that I can use for testing? Thanks in advance

firefox - How to get text from webpage using selenium and python? -

When launching Firefox with selenium, how do you get all the text on that page to save it to a text file? try it selenium import web driver as a driver browser In = driver. Firefox () Browser.Gate ("http://www.google.com") Print Browser.Find_Alment_b_expit ("html"). Text

utf 8 - How can I programmatically change file encoding linux? -

Is there a program to change file encoding to the UTF-8 program? I have 1000 files and I want to save them in linux in UTF-8 format. Thanks Will take care of that, use it like this: Iconv -f ISO88591 -t UTF8 in.txt out.txt Where is the encoding for 88591 , the most common 8- One of the bit encodings, which might (or may not) be your input encoding. If you do not know the input charset with the input command or dragon based, for example: iconv -f $ (file -b myfile.txt | Sed -e 's /.* [] charset = //') -t UTF8 in.txt out.txt You want to make this stronger than a liner, such as Encoding is unknown, do not process files. From here, to override multiple files, you can do something like find -name * .txt -exec iconv -f ISO88591 -t UTF8 { } {} \; I have not checked this, so you can find and find Google icon, read about them here, or just read your man page.

xaml - WP8 passing Geometry Item to Code behind to add to Path.Data type causes XamlParseException -

मुझे एक ज्यामिति आइटम को UserControl तत्व मुझे XamlParseexception मिलता है, जब मैं पथ तत्वों डेटा को यह ज्यामिति आइटम में विशेषता सेट करने का प्रयास करता हूं। यहाँ कोड के पीछे मेरा कोड का एक हिस्सा है शून्य कार्डबैक_लोडेड (ऑब्जेक्ट प्रेषक, RoutedEventArgs e) {Header.Text = _title; Text_run.Text = _title; Image.Data = setGemometry (AppResources.SECURITY_IMAGE_DATA); // यह वह जगह है जहां मुझे सीडीसीक्रेशन। पाठ = _description; } छवि मेरे पथ को यहां बनाया गया पथ है जो पथ तत्व के लिए xaml है & lt; path x: name = "छवि" मार्जिन = "30,20,30,10" वर्टिकलएलिनेमेंट = "केंद्र" ग्रिड। पंक्ति = "1" / & gt; मैंने "setGeometry ()" के कार्यान्वयन को छोड़ दिया है क्योंकि यह एक ज्यामिति तत्व को वापस करता है और इस विधि के साथ कोई समस्या नहीं है? AppResources.SECURITY_IMAGE_DATA मूल रूप से एक ऐसे कोड की स्ट्रिंग है जिसे मैं एक ज्यामिति उदाहरण में बदलता हूं। अगर कोई मुझे अपनी सहायता कर सकता है, तो इसकी सराहना

linux - How to prepend timestamp to the STDERR and redirect to a file -

I am redirecting to STDERR only in one file (which is working more or less), but I also add / Want to include a time-ticket for each redirection I do not want time in every line, just at the beginning of the block. I tried to do this: UKMAC08: ~ san $ (date1 & gt; & amp; 2; df -jj) 2 & gt; And 1 1> / dev / null 2> testErr.log; Cat testErr.log Friday 1 August 2014 10:50:00 BST DF: Illegal Option - J Usage: DF [-B | -H | -H | -c | -M | -G | -P] [-ailn] [-T type] [-T] [filesystem ...] What I'm trying to do for a failed run, but this It's also taking the time when it's a success: UKMAC08: ~ san $ (date1 & gt; & amp; 2; df-h) 2 & gt; And 1 1> / dev / null 2> testErr.log; Cat testErr.log Friday 1 August 2014 10:50:07 BST How can I avoid this? the best! This can: OUT = $ (df - H2 & gt; and 1> / dev / null) || {Date; Echo "$ out"; } & Gt; TestErr.log Test: $: & gt; TestErr.log; Out = $ (df -j

WSO2 Enterprise Store : Calling Services from Javascript -

After I am testing the Enterprise Store and implementing the admin service from custom jug file using ws.WSRequest () Managed in; Now I am tryingbing to do the same with simple javascript code with ajax call $ 172.27.11.44:9443/admin/services/AuthenticationAdmin/getAuthenticatorName but do not succedd with phone 172.27.11.44:9443/admin/services/ For AuthenticationAdmin / Login, for example only diference message payload is to use the following message & lt; Soapenv: envelope xmlns: soapenv = "http: //authentication.services.core.carbon.wso2.org" & gt; & Lt; Soapenv: body & gt; & Lt; Aut: Login xmlns: aut = "http://authentication.services.core.carbon.wso2.org" & gt; & Lt; Aut: username & gt; Admin & lt; / Aut: username & gt; & Lt; Aut: Password & gt; Admin & lt; / Aut: Passwords & gt; & Lt; / Aut: Login & gt; & Lt; / Soapenv: Body & gt; & Lt; / Soapenv: envelope & gt; I got the

ajax - Delete an image without reloading a page -

I am using the function in my page. I am using this function to delete one or more uploaded images. The code is working fine, but when I click on the "delete" button, then reloading a page is it possible to delete images without reloading the page using the "post" method or Ajax? & lt; Div onclick = "delete_files_inmos1" ('Seguro de Elimminar el Archivo', 'im_Delete_Chk', 'Im_FileUp', 'im_imgf', '& lt; php echo $ url? & Gt;', Php echo $ this- & Gt; Config- & gt; Maximum file upload? & Gt; & lt ;? php $ count? & Gt;; & gt; delete & lt; / div & gt; & lt; script & gt; function delete_Files_Inmos1 , Varbase, varimginput, varimgg, urlbase, maximg, imgdelete) {if (confirmation)} {var obj; var imgsdelete = ''; obj = AJAX_MM_findObj (varbase + imgdelete); if (obj) obj.checked true =; For (I = 0; i & lt; maximg; i ++) (obj = AJAX_MM_findObj (varbase + i);

android - Disable fragment transaction animation after it's been commited -

I have some unusual piece navigation, because I want the app to be responsive due to this I have almost only show / hide the pieces I use methods Every time I want to navigate to another piece and return back with the key, I add this transaction to the backstack. With this, I also set the transition animation for the transaction so that when a user presses back, it shows a reverse animation (the effect of popBackStackImmiediate ()), when the user goes to the previous section. I add these animations by: Segment Transaction.Set Transition (Fragment Transaction. TRANSIIRRAMMEMAPANA); Let's call it A -> B -> A navigation. So when A is taken to A, an opening animation is shown, and then when we go back to A, a reversed animation is shown. However the problem is, when I have a situation where I want this transaction to be able to return the stack (back to A with the back button), and then from B to C To add this transaction back to back) to return, and to withdraw f