Posts

Showing posts from July, 2011

java - NewCookie.getMaxAge() always returns -1 -

I have two servers S1 and S2S2 is a REST API based server S1 is a HTTP server I have clients The request from S1 from the browser is requested. I retrieve request URI and request method and, on some conditions, calls a specific other API on S2. I am using Jersey Client to create these calls (VAR.1.17). Now, when I respond to the S2, I agree to remove a cookie from the reaction, i.e. cookie-domain, maxage, path etc. This is necessary because I need to create a new cookie from it and add it to the last response that S1 is going to send back the customer (I can not just find any other way to go to cookies on feedback from S1 Was). But when I retrieve the maximum number - cookiemaxedge = cookie.getmaxage (); // This cookie is a purpose of javax.ws.rs.core.NewCookie This gives 1 -1 so when I try to add new cookie to the last response, it is not created on the browser going. Is there a bug in this jersey client or is there anything wrong? I tried to search for the answer but there

javascript - addClass on all matches attribute -

I have three containers in which there is a specialty I want to add a class for all elements of the match on such a parent. The usual features are: If I click on any of the sidebar, the main content area or header class must be added to all matching attributes. (Something like triggering all three attributes on one click). The code below is: & lt; ul class = 'main-nav' & gt; & Lt; Li & gt; & Lt; A link-tab = "left-department" href = "" & gt; Department & lt; / A & gt; & Lt; / li & gt; & Lt; / Ul & gt; & Lt; ul class = 'Content tab-container' & gt; & Lt; Li & gt; & Lt; A link-tab = "left-department" href = "" & gt; Department & lt; / A & gt; & Lt; / li & gt; & Lt; / Ul & gt; & Lt; ul class = 'sidebar' & gt; & Lt; Li & gt; & Lt; A link-tab = "left-department" href = "" & gt; Dep

solr - Can I create the full text as an index along with NGramFilterFactory -

मैंने एक फ़ील्ड प्रकार text_ngram परिभाषित किया है। & lt; fieldType नाम =" text_ngram "वर्ग =" solr.TextField "positionIncrementGap =" 100 "& gt; & Lt; विश्लेषक प्रकार = "सूचकांक" & gt; & lt; टोकनेइज़र वर्ग = "solr.KeywordTokenizerFactory" / & gt; & Lt; फिल्टर वर्ग = "solr.LowerCaseFilterFactory" / & gt; & Lt; फिल्टर वर्ग = "solr.NGramFilterFactory" minGramSize = "3" maxGramSize = "15" / & gt; & Lt; / विश्लेषक & gt; & Lt; विश्लेषक प्रकार = "क्वेरी" & gt; & lt; टोकनेइज़र वर्ग = "solr.KeywordTokenizerFactory" / & gt; & Lt; फिल्टर वर्ग = "solr.LowerCaseFilterFactory" / & gt; & Lt; / विश्लेषक & gt; & Lt; / fieldType & gt; मुझे पता है कि NGramFilterFactory कैसे काम करता है कहें कि हमारे पास एक पाठ है स्टैक ओवरफोल में सोलर खोज । अब फ़ील्ड परिभाषा के अनुसार, संपूर्ण पाठ को कम

javascript - Need paste event for IE7 (Jquery paste event do not work in IE7) -

I know that IE7 is far behind in order to support and the latest browsers are reliable. But in the IE7 based tool Dependent paste (mouse paste and whistle + pe paste) is required. Any help is appreciated. You may use the wrong version of JQuery: < P> JQuery 2.x has the same API that is in the form of jQuery 1.x, but Internet Explorer 6, 7 or 8 does not support. Try using the 1.x version.

intellij idea - Should I include Junit Tests in production jar -

This question is not found, maybe I'm missing something here. My project (written by IntelI) I added some resources - files which are too big (1.5 MB) which are the expected results of my tests. I think I should add them to the jars. It does not look right which I send to the customer. Is there no way which is a way to take out everything connected with jars? You should not do it. One reason is that you have a bunch of libraries that you use only for testing, eg Mokito, Junket, you do not want in your production space and can certainly be a matter of size, as you say 1,5 MB for some testing resources. But you can still ship your test code. We collect those unit testing and test resources in a test jar. So in the end we produce three jar files that can be sent to a customer library.jar library-src.jar < Li> Library- with an UL>

jquery - Select all in check box -

इस सवाल का पहले से ही एक उत्तर है: < / P> 4 जवाब यहां मेरा कोड है: < / P> & lt; SCRIPT भाषा = "जावास्क्रिप्ट" & gt; $ (फ़ंक्शन () {$ ("# selectall")। क्लिक करें (फ़ंक्शन () {$ ('। name')। attr ('checked', this.checked);}); $ ("। name") क्लिक करें (फ़ंक्शन () (यदि ($ ("। नाम")। लंबाई == $ ("। नाम: चेक किया हुआ") लंबाई) {$ ("# selectall")। एट्र ("चेक किया गया", "चेक किया गया") ;} और {$ ("# selectall")। RemoveAttr ("चेक");}}};}); & Lt; / स्क्रिप्ट & gt; और फ़ॉर्म के लिए: & lt; td & gt; & lt; इनपुट प्रकार = "चेकबॉक्स" id = "selectall" /> gt; & lt; / td & gt ; & LT; टीडी & gt; नहीं। & Lt; / टीडी & gt; & Lt; td वर्ग = "वेब" चौड़ाई = "400" संरेखित करें = "केंद्र" & gt; नाम & lt; / td & gt; & Lt; td वर्ग = "वेब" चौ

ruby - What is the syntax for `gem install` multiple gems, specifying versions for each one? -

How can I use gem install to install several gems at the same time Can I do that version? Example: Install gem akami -v 1.2.0 - Install Ignore-Dependency Gem Atomic-V 1.1.14 - Insertor-Dependencies Mani Aws-s3 -v 0.6.2 Install - Install Ignore-dependents gem Backport - v 3.3.0 - Install anignor-dependencies gem brendanlim-sms-fu -v 1.0.0 - Ignore-dependencies gem installer builder-v 3.1.3 - Install Ignore-dependents gem capistrano -v 2.9.0 --igner-dependency How do I execute in a row Can I specify gem install for? Answers answered accepted questions. But the last approach I took was to use Bundler 1.0.22, which is compatible with Ruby 1.8.6. With RubyGums 2.0, you can specify a version for many package installers in this way: $ gem install akami: 1.2.0 atomic: 1.1.14 a VS-S3: 0.6.2 backports: 3.3.0.0 brendanlim-sms-fu: 1.0.0 Builder: 3.1.3 Cassistrano: 2. 9.0 \ --igner-dependency

php - Order array multi-dimensional -

मेरे पास एक सरणी है जो इस तरह दिखता है: $ cars = array (array ( 'ए' = & gt; 'ऑडी', 'बी' = & gt; 'ए 4'), ऐरे ('ए' = & gt; 'पेगीट', 'बी' = & gt; '306'), ऐरे ('a' = ' एआरए ('ए' = & gt; 'ऑडी', 'बी' = & gt; 'ए 5'), ऐरे ('ए' = & gt; 'प्यूज़ो', 'ए' ',' बी '= & gt; ',' बी '= & gt;' 106 '), सरणी (' ए '= & gt;' पेगोट ',' बी '= & gt;' 106 '),); मुझे इस तरह के arrays (आईडी नाम के समान है) की आवश्यकता है: name = & gt; ऑडी आईडी = & gt; ऑडी डेटा = & gt; ए 4 = & gt; 2 ए 5 = & gt; 1 नाम = & gt; पगुएट आईडी = & gt; पेगोट डेटा = & gt; 306 = & gt; 1 106 = & gt; 2 तो कार ब्रांड को कार प्रकार की गिनती की जानी चाहिए। मुझे पहले से ही यह कोड है; लेकिन यह केवल समूह के भाग के लिए है और गिनती का हिस्सा गायब है। फ़ंक्शन

mysql - PHP 5.4 SQL Injection -

I'm trying to create a simple php page that shows SQL injection. & lt ;? Php ... if ($ _POST) {$ user = $ _POST ['user']; If ($ result = $ db-> query ("Select * user WHERE user name = '". $ User. "'") ")) {// display result array} else {// invalid query}} ...? & Gt; In the html input, the injected code is whatever "or 1 = 1; drop table user; - but it always triggers invalid query blogs How do I run a script to validate this SQL? How do I validate the script in thinking about this SQL? You can not invoice it in thinking This is a valid SQL. It is a valid SQL. It can help when resonanting the resulting SQL statement to see the actual result: $ stmt = "Select * from users where user name = ''. $ User ""; $ Stmt echo; If ($ result = $ db-> query ($ stmt)) {// â ?? |} Since the injection is in one, you provide pieces of SQL that allow you to avoid that string. Since the str

.net - Theme in ASP.NET using framework 4.0 -

Are any predefined ASP.NET themes available inside .4.44 or not? If the answer is positive then are they located to embed in my web application? As far as I know there is no predefined themes, I but has been able to locate a group of ASP.x subjects, it applies to Visual Studio 2008, other versions do not have the same link, it can give you a start but you hardly have your own Want to make better, loads of links to CSS theme sites for some inspiration See A Question.

exception - CX_ROOT with Message Class -

I have several custom exception classes, which were created "with message class" since I did not receive a message directly from them So, I want to create a utility method which returns BAPIRET2 to IF_T100_MESSAGE ~ T100KEY with the exceptions given on the basis of values. However, I can not provide that method with a normal CX_ROOT import parameter because it is not class-enabled message. I can not even create a normal message-enabled exception class because the new classes are CX_STATIC_CHECK is inherited from one of the , CX_DYNAMIC_CHECK , or CX_NOCHECK . How do I get message details with an unspecified exception? Should I make any such method that gets a CX_ROOT and then three calls to the imported methods for each of the three potential sub-classes? Or what are the better options? You can prepare a type descriptor (one time) of the interface: data: lr_t100_descr type reef to cl_abap_intfdescr lr_t100_descr? = Cl_abap_typedescr = & gt; descri

jsp - Get servlet context in javascript -

मेरे jsp में मैं & lt;% स्ट्रिंग बेस = (स्ट्रिंग) application.getAttribute ("base") का उपयोग करता हूं; % & Gt; मैंने javascript में 'बेस' का उपयोग करने की कोशिश की लेकिन काम नहीं किया। नीचे मेरी जावास्क्रिप्ट है: & lt; script & gt; Var न्यूबेस = & lt;% = बेस% & gt ;; & Lt; / स्क्रिप्ट & gt; क्या कोई मुझे इस को हल करने में मदद कर सकता है? धन्यवाद आप बल्कि इसे इस तरह आज़माएं, छुपा फ़ील्ड के लिए मान सेट करें, इनपुट प्रकार = "छुपा" id = "hidVal "नाम =" टीसीटी 2 "मान =" $ {बेस} "/> और अपनी जावा स्क्रिप्ट में, & lt; स्क्रिप्ट & gt; Var x = document.getElementById ('hidVal')। मूल्य; चेतावनी (x); & Lt; / स्क्रिप्ट & gt; अपडेट : var newBase = '& lt;% = base% & gt;'; आप मान को स्ट्रिंग के रूप में रखने के लिए उद्धरण याद कर रहे हैं। आशा है कि यह मदद करता है !!

tfs2012 - TFS - Workspace to build definition with only required files -

In our project we are building the project with the TFS build definition feature. There is an option like "workspace" in TFS build definition. We all need folders which include the file which was used to successfully construct the project. We have different folders according to the requirements, which have different units. So these units are in large numbers, so when we create a project and mention a folder in the workspace, it removes all the files in that particular folder. In fact, we require some of them to build a project. Because we used different files for each project, but it was the files under one roof. Can anyone help us how do we create our own project, the entire folder? position = active source control folder = $ / Artiion / ADO / LibForms / Loginf.pas: create agent Folder = $ (SourceDir) \ LibForms \ Loginf.pas Works fine for example

ImageMagick: convert image to PDF with A4 page size and image fit to page -

I want to convert different image formats (BMP, JPG, GIF, PNG, membrane-suppliers) to PDF format A4 fit in page with page size and images (resized if needed). The image should be located at the center of the page and I want to define the offset. I tried the code below, but there is no offset on the top and the image quality is really bad. convert png.png - progressively 500x500 -quality 100-page a4x5x5 myout.pdf > Convert image.tif -resize 575x823 ^> -Gravity Center -Back Ground White -North 595x842 image.pdf

serversocket - Matlab SocketSever -

आयात करें java.net.Socket आयात java.io। * % # सर्वर से कनेक्ट मैं मैटलब में नेटवर्क सॉकेट करना चाहता हूं। यह कल तक अच्छा काम करता है, लेकिन अचानक यह त्रुटि संदेश के साथ काम नहीं करता .. जबकि true fprintf ('सर्वर शुरू ...'); Sockets.client_socket = ServerSocket (6678); Sockets.client_output = sockets.client_socket.accept; Output_socket = sockets.client_output; .............. एंड त्रुटि संदेश = & gt; [अपरिवर्तित फ़ंक्शन या विधि 'ServerSocket' के इनपुट तर्क के लिए टाइप 'डबल' == & gt; में त्रुटि 1 9 सॉकेट्स पर Con_sock.client_socket = ServerSocket (6678);] मैं कैसे कर सकता हूं? मैंने 6678 डेटा प्रकार को int8 (), uint8 () को भी बदलने की कोशिश की। जहां तक ​​मैं पता है, Matlab में कोई सर्वरसॉकेट फ़ंक्शन नहीं है, इसलिए आप शायद एक बाहरी वर्ग की बात कर रहे हैं। यदि आप मैटलैब में सॉकेट्स के साथ काम करना चाहते हैं, तो यह करने का सही तरीका है tcpip funcion: सॉकेट = टीसीपीआईपी ('0.0.0.0', 30000, 'नेटवर्करोल', 'सर्वर&#

uiwebview - How to calculate web view content height in iOS? -

I need to resize the web view frame according to the height of the content. I need to calculate the height of the content. is. This is the solution I use NSUntiger contentHight = [[Webview StringBevilingJavascriptFormString: [NSSTING stringWaterFormat: @ "Document.com.Sworldite;"]] interview]; All possible content in your webview should be smaller than the size

matlab - Where does Simulink start execution from? -

I believe it is possible to transfer the MATLAB code to the simulac. When we program in MATLAB, I know that it will be executed according to the line from top to bottom line. On the other hand, simulals are connected to Indian blocks which are connected to each other, reaction signals may be sub-systems whose outputs are input to other blocks and it seems ... we have 3 subsystem blocks Are connected to each other and the last block's output is fed first, which starts with the simulin block? My question may be silly after a long time playing with MATLAB and Symuly, but I do not know the answer yet! It depends on the actual simulation model. Before the simulation began, Simulal analyzed the model (where the blocks are connected, there are algebraic loops, etc.). The result is the so-called ordered order of the blocks, which is actually used to execute the blocks code. See for details.

svn - TortoiseSVN shows head revision instead of revision specified in URL -

ओपन टॉर्टेइसएसवीएन रिपॉज़िटरी ब्राउज़र दर्ज करें यूआरएल (एक फाइल या डायरेक्टरी का, उदाहरण: एक पुराने संशोधन संख्या दर्ज करें (जैसे 8093) पेस्ट करें URL हाल ही में रिपो ब्राउज़र की नेविगेशन बार में गया, दबाएं दाईं ओर "संशोधन:" जांचें, यह निर्दिष्ट संशोधन संख्या (80 9 3) के बजाय "HEAD" दिखाएगा क्या एक ऐसा यूआरएल मिल रहा है जो रिपो ब्राउजर को वांछित संशोधन में ले जाता है? यूआरएल प्रारूप url? R = संशोधन के लिए आवश्यक है कि svn सर्वर कम से कम संस्करण 1.8.0 या बाद के समय किसी वेब ब्राउजर में उपयोग किया जाता है। < p> TortoisSVN रेपो ब्राउज़र के लिए प्रारूप अलग है: इसके लिए उपयोग करें।

android - Python API for querying Google Developer Console? -

I want to get the details of one of my Android apps from Google Developer Console (i.e. the number of installs, and the current rating ). I prefer to do this primarily through Python. I prefer not to go under screen scrapping / beautiful soup route, so I'm searching for a relevant API. My question is as follows: Is there a Python-based Google API (and if so, where is it)? If not, is there any other Python-based library that I can use? If not, what would people recommend as a non-python option? < Using M and it really works great! You can get the number of downloads of a specific app, rating and other data that you want. Try it, you will not regret it!

java - how to know resource from which a bean is loaded in spring project. -

I am new to the spring structure. I want to know the list of referenced XML files while loading beans. By writing a class that is ApplicationContextAware, I am able to see the list of beans: @RunWith (SpringJUnit4ClassRunner.class) @ContextConfiguration ("ClassPath: Spring / Spring-Test Contrast. XML ") Public Class Sample Application ApplicationContextAware {@Autowired ApplicationContext applicationContext; @Test Public Invalid testMethod () {for (string name: applicationContext.getBeanDefinitionNames ()) {System.out.println ("BeanName" + beanName); }}} But I want to know which configuration files beans are loaded Say "sample-testcontext.xml" & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Beans: beans xmlns: beans = "http://www.springframework.org/schema/beans" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: reference = "Http: //www.springframework.org/s

c++ - Why do my simple HTTP server implemented with Boost.ASIO needs sleep to work correctly -

I am trying to write a very simple HTTP server using Boost.Asio. This is the code (almost like the example from Boost. ASIO Tutorial) #include & lt; Iostream & gt; #include & lt; String & gt; # Include & lt; boost / asio.hpp & gt; #include & lt; Thread & gt; # Include & lt; Chrono & gt; Boost :: asio :: ip :: tcp; Int main () {try {boost :: asio :: io_service io_service; tcp :: acceptor acceptor (io_service, tcp :: endpoint (tcp :: v4 (), 12345)); For (;;) {tcp :: socket socket (io_service); acceptor.accept (socket); Const char message [] = "HTTP / 1.0 200 OK \ r \ n \ r \ n Object body & lt; i & gt; Hello, world & lt; / i & Gt; & lt; / body & gt; & lt; / html & gt; "; Boost :: system :: error_code ignored_error; Promotion :: ASIO :: Write (socket, boost :: aso :: buffer (message), ignored_uper); }} Hold (std :: exception & e) {std :: cerr & lt; & Lt; E.what () & lt; & Lt; Std

sql - How to use "IN" operator with several columns? -

Is this possible to query this: Select from the table where * (t. key1 with multiple columns and many values ​​ You have to divide it into several statements I did not know that you want or or and , so I used this code in the AND took: <('A', 'B', 'C', 'D') and (TK2) IN ('A', 'B', 'C ('A', 'B', 'C', 'D') or 'A' Use and inline view: Join the select table (select 'one' from dual union) Select 'dual union' from 'b' Choose from dual union 'c' Select Dual from 'D') x on t.key1 = x.col and t.key2 = x.col and t.key3 = x.col

recursion - I want to solve the recurrence relation F(n,m) = F(n-1,m) + F(n,m-1) + 1? -

I want to know how to solve repetition in 2 variables I want to solve the following link: F (n, m) = f (n -1, m) + f (n, m -1) + 1 initial conditions: F (m, 0) = m f (0, n) = nf (0,0) = 0 F (n, m) {if (n == 0) & amp; Amp; Amp; Amp; Amp; Amp; & Amp; Amp; (M == 0) return 0 and if (n == 0) returns M and return (M == 0) back and other return F (N -1, m) + F (N, M-1) + 1 } / pre>

python - Hi, How do I run the equivalent using pymongo? cfg = rs.conf() db.printSlaveReplicationInfo() -

1 & gt; मैं pymongo का प्रयोग करके समकक्ष कैसे चला सकता हूं? a & gt; cfg = rs.conf () b & gt; db.printSlaveReplicationInfo () 2 & gt; PyMongo का उपयोग, मैं अन्य प्रतिकृति के विवरण कैसे प्राप्त क्लस्टरों में CLI आउटपुट सेट कर सकता हूं। (नोट: मैंने पहले से ही सफलतापूर्वक क्लस्टर बना लिया है। बस मैं rs.conf () और db.printSlaveReplicationInfo () के आउटपुट को देखने के लिए प्राथमिक में एक अजगर स्क्रिप्ट लिख रहा हूं क्लस्टर के अंदर सभी प्रतिकृति सेट करता है और आउटपुट को पार्स करता है।) इस संबंध में कोई भी मदद काफी सराहनीय है। प्रतिकृति सेट कॉन्फ़िगरेशन को "स्थानीय" डेटाबेस में "system.replset" नामक संग्रह में संग्रहीत किया जाता है, इसलिए rs.conf () के बराबर होगा db .system.replset.findOne () जब डीबी स्थानीय या उसके समकक्ष find_one () पायथन में। db.printSlaveReplicationInfo ( ) एक बड़ा और शामिल है, लेकिन आप उस सभी सूचना को स्थानीय डेटाबेस में भी प्राप्त कर सकते हैं। यह व्यवस्थापक डेटाबेस कमांड के माध्यम से इसे प्राप

python - return two lists from a list comprehension -- performance -

In my program, I am getting all the directories and files ( running ) Write all dictionaries as keys for a dictionary in the form of keys, get the path as values, then get a keyword from the interface ( tk.Entry ) and enter two lists Return all matches from I'll show them ( tk.Listbox ) and open the selected one ( win32shell ). I used to make two lists with one understanding. In the comments, it says, "The calculation of just two separate lists is simple and perhaps faster." So thats confuses me to use one because this program will be run through ~ 3TB data which I do not have yet so I can not run and can not see which will be faster. This is my minimum code, I have removed the interface and defined keyword and path through the keywrd , folder variable, respectively. import os import sqlite3 audio_ext = [".mp3", ".mp4", "etc ..."] folder = "C: \\ user \\ Lafexlos \\ music \" keyboard \ "= "Mo" ## The

php - Improving simple order query -

मैंने इस तरह mysql क्वेरी बनाई: का चयन करें m_id, user, date, home, दूर, चुनना, हिस्सेदारी, अजीब, एनालिजा, रेजल्टैट, खेल, मैच के समय का समय है, जहां दिनांक & gt; DATE_SUB (NOW (), INTERVAL 1 सप्ताह) $ ऑर्डर के अनुसार $ DESC $ सीमा आप देख सकते हैं यह ऑर्डर $ आदेश है पृष्ठ के शीर्ष पर मैं हूं $ आदेश की खोज इस तरह से अगर (isset ($ _ GET ['order'])) {$ order = $ _GET ['order']; } और {$ order = "date"; } मैं यह कैसे कर सकता हूँ कि यूआरएल में उपयोगकर्ता इनपुट कहता है कि: index.php? चूंकि केवल दो संभावित विकल्प दिनांक और दिनांक के अनुसार क्रमबद्ध हैं धन्यवाद स्विच / केस का उपयोग करें। स्विच ($ _ GET ['ऑर्डर']) {केस 'डेट टाइम': $ order = 'datetime'; टूटना; डिफ़ॉल्ट: $ order = "date"; }

c# - Crop picture right after taken in windows phone 8 development -

I am preparing the app which allows the user to use pictures from the photo hub; Take a new photo to edit I know that I can take photos from photocopier Task but I need 2 different things. Now after catching me, I have to grasp the right picture (like what I can do with PhotoChoserTask) How can I get it? Unfortunately the camera capture task does not have the height and width of the property, so you take it Immediately after the image can not crop you can do two things: <- (I do not like it!) Allow the user to take a picture using camera capturet and after completion, call photocorrects so that user can Selecting the clicked image from the sub-option You can crop the image by using the PhotoChoserTask height and width properties by using 2 - Use Nokia Imaging SDK to crop the image. This SDK includes several filters, which include crop filters, which can be used to crop images. It's not as easy as a photocopier task crop, but you can still crop the image. Look at

c# - Change WPF ListView SelectedItem binding value -

When I double click on a line, then I am trying to change the compulsive value, Have seen through the medium but I did not find anything that I need. Here's my code and the example is how I want to work. Is it possible to edit a line bidding value in a listview like this? WPF: & lt; ListView x: name = "LstLinks" horizontal alignment = "left" height = "108" margin = "10,53,0,0" vertical alignment = "top" width = "641" selection mode = "single" & gt; & Lt; ListView.View & gt; & Lt; GridView & gt; & Lt; GridViewColumn Header = "G" Width = "20" DisplayMemberBinding = "{Binding LG}" /> & Lt; GridViewColumn Header = "P" Width = "20" DisplayMemberBinding = "{Binding L.P.}" /> & Lt; GridViewColumn Header = "Link Type" Width = "100" DisplayMemberBinding = "{Binding LType}" /> &a

php - why isn't my code working to check if username has already been taken? -

$ query = ("उपयोगकर्ताओं से चयन करें"); $ परिणाम = mysqli_query ($ कनेक्शन, $ क्वेरी); यदि (! खाली ($ _ POST)) {जबकि ($ पंक्ति = mysqli_fetch_assoc ($ परिणाम)) {if ($ username == $ row ['username']) {गूंज "उपयोगकर्ता नाम ले लिया, पुनः प्रयास करें"; } और अगर (खाली ($ उपयोगकर्ता नाम) ||! Isset ($ username)) {echo "कृपया एक मान्य उपयोगकर्ता नाम दर्ज करें"; } Else if (खाली ($ ईमेल) || | isset ($ email)) { मैं यह जानना चाहता हूं कि क्या उपयोगकर्ता नाम पहले से ही लिया गया है जब वे अपने विवरण को अपडेट या रजिस्टर करते हैं मैंने देखा है कि मुझे पता है कि यूज़रनेम फ़ील्ड रिक्त है और इसके बाद सेट किया गया है कि मैं इसकी जांच कर रहा हूं कि क्या इसकी गई है। मैं इसे बदलूंगा। हालांकि, मैं अब भी एक उपयोगकर्ता नाम पंजीकृत कर सकता हूं जो पहले ही लिया गया है? कुछ टिप्पणियों की तरह, चलो मैं आपके लिए फिर से मुहावरा हूं। आदर्श रूप में, आपको यह देखना चाहिए कि उपयोगकर्ता के नाम पर सभी यूजरनेम लाने और प्रत्येक (जो कि अनावश्यक और जरूरी नहीं है) की जांच के बजा

open a page html in a web service in java in SSO -

I would like to open an html page in a web service, I am responsible for doing this but I have all the rights ... is not !! So I try to login and login to the URL and it does not work! Public String String Ginger HTML (String Dockid, String Chemenebase, String Nameview, String Name Servers, LogWSDTO Logiteo) ExceptionWS {String Str 2 = Faucet; {Stringbuffer sb; InputStream Stream In = Null; InputStreamReader str; Buffrenderer binoin; URL docURL; String URL_FIN = "? Open document"; String Notes url = "http: //" + "nomserveur / names.nsf? Login and Username = Login and Password = Password and Redirect = http: // nomServeur" + SEPARATEUR + cheminbase + SEPARATEUR + nomVue + SEPARATEUR + Docid + URL_FIN; DocURL = new URL (note URL); streamIn = docURL.openstream (); str = new InputStreamReader (stream in); BinIn = new BufferedReader (str); String line next; sb = new stringbuffer (); While ((lineNext = binIn.readLine ()) = = null {sb.append (lineNext);} st

c# - WPF DataGrid - Align Column with Autogenerated Columns -

I have a WPF Datagrid surrounded by a dataset; Columns are autogenerated I need to align number columns to correct. I can use a converter, like I found on the web in this example: & Lt; / Style & gt; & Lt; /DataGridTextColumn.ElementStyle> & Lt; / DataGridTextColumn & gt; & Lt; /DataGrid.Columns> & Lt; / Data grid & gt; But in my case the columns are automatically inspired, so I And I do not know how to bind the property any solution? This can not be an ideal solution This is what I have tried P> Style style target type = "text block" x: key = "column style" & gt; & Lt; Setter Property = "Horizontal Alignment" value = "{Binding Path = Text, Relative Soros = {Relative Asris}, Converter = {Static Resource Alignment Converter}}" /> & Lt; / Style & gt; XAML for DataGrid & lt; DataGrid x: name = "DG" items source = "{binding

html - pseudo element css tooltip not working in ie10 -

My website is using CSS to show tooltips. I use pseudo classes to get tooltip functionality in CSS I am here. The following is the CSS code. .tooltip {display: inline; Status: Relative; } .tooltip: Hover: after {background: # 333; Background: RGBA (0,0,0,1); MS-Filters: "ProgID: DXImageTransform.Microsoft.Alpha (Opacity = 0)"; Boundary-radius: 3px; Top: -11px; Color: #fff; Content: Atri (text); Correct: 25px; Padding: 5px 15px 5px 15px; Status: Completed; Z-index: 1000; Width: Auto; Height: auto; } .tooltip: hover: before {border style: solid; Border color: transparent # 333 transparent # 333; Threshold Width: 6px 0px 6px 6px; Top: -5px; material: ""; Correct: 20px; Status: Completed; Z-index: 1000; } and the following HTML code is This code is working correctly in 9 or 11, Firefox, Chrome and Safari. But it is not working in IE10 Please suggest where I need to find a solution I tried to change the DOCTYPE but it is not a help. Here is a tooltip

sql server 2008 - SSRS Matrix Reports (Calculated Fields) -

Image
Please see the Matrix report before and after running it. How to get the percentage, for example: 2/6 = 0.3 (% 33) The expression can be used in female gender in comparison to the number of members in the group / male column to calculate each gender in that group: Male = yoga (IIF (field! Value = "m", 1, 0)) / count (field! Member.value) Women = Sum (IIf (field! Gender = value = "f", 1, 0)) / calculation (field! Member.value) This is happening to the total male or female members The percentage of total member count is found in the scope.

html - Javascript: Compare values in a table -

I am currently learning JavaScript and completing some courses on Codecadi and Coleschool. I now know a little bit about how you write functions in javascript. If I am familiar with more statements, but one thing is that I can not hang on now and this is the reason I am hoping that people can help me with this and understand how it works. That's why I can learn from this. Use myself in the future. I have searched all day and tried to do a lot of things, but it just does not work. I have a table that contains some values ​​(including JSField), these values ​​are not stable because they are in the examples but will change everyday. Actually what is this: This is a table that shows how many hours a person has to work and how many hours worked. These values ​​should be compared to see what is the difference. If there is a difference then the checked row should have X. In JSfiddle I have put some javascript which does not work. But this is the same idea about which I should impl

Do I need permissions for underlying tables when querying a view in SQL Server? -

अगर मेरे पास निम्न दृश्य है: सृजन देखें [dbo]। [Vw_Sample] के रूप में चुनें T1.Column1, T1.Column2, Table2.Column1, Table2.Column2 से dbo.Table1 T1 JOIN dbo.Table2 T2 ON2.Column3 = T1.Column3 GO और मैं चाहता हूँ उपयोगकर्ता को उस दृश्य से SELECT तक पहुंच प्रदान करना; मुझे या तो निम्न की आवश्यकता है: ए - उस उपयोगकर्ता को केवल दृश्य पर SELECT अनुमति दें: अनुदान का चयन [dbo] पर। [ Vw_Sample] [MyUser] या बी - उस उपयोगकर्ता को SELECT अनुमतियों को देखने और अंतर्निहित करें तालिकाओं: अनुदान का चयन [dbo]। [तालिका 1] [MyUser] से [dbo] पर अनुदान चुनें [तालिका 2] [MyUser] से [डीबीओ] पर अनुदान चुनें। [Vw_Sample] [MyUser] से बस देखें (ए) अंतर्निहित तालिकाओं पर चयन देने से उन्हें अधिक आवश्यकता होगी। नीचे दी गई लिंक दृश्य / तालिका के स्वामित्व पर कुछ सहायक जानकारी है और इससे आपके एक्सेस पर असर पड़ सकता है।

How can i give Google spreadsheet standard values -

I would like to give my spreadsheet standard values ​​such as: name, surname, email. And if possible, with a color. As stated earlier it is properly enough to answer sufficient information But I would try to guess it: If you want to choose from standard values, then you should add verification to the cells. (Data menu recognition, and you can add criteria there.) In addition, if you want to color cells based on specific values, then you should use the Format menu conditional formatting. If you do not want this, please specify your questions further.

php - Safety pictures at server -

I am trying to upload my pictures to users on my website and I do not want them to see others, here Even if they know their URL I would like to apply something like Apache without any unusual folder (if it is possible with .htacess) I do not want to put them in the database because this server is very slow (IMO) Is there a solution? I saw something on FB, but its quite a different league. You can disable public access in a directory by using the public directory .htaccess RewriteEngine On RewriteRule ^ (?: Images) \ b * Index.php / $ 0 [L] This will request in the image folder in your index.php file. This will only work if you have mod_rewrite enabled. Also you can add a .htaccess file to that folder that you want to disable public access and add the following rule. Deny all

postgresql - Rerturn returning ID from function -

I'm basically trying to return the updated ID to the following function. The following is a simplified version of my code: create confirmation user (_token varchar (255)) integer AS $$ Return to Return (Update User has been confirmed = true Where _token = token returning id)); End; $$ LANGUAGE plpgsql; What's wrong with this? I do not think you can return the value in such a way that you can store it in a variable And then return to that variable: confirm the function user (_token varchar (255)) declare integer $$ declare _id integer; BEGIN Update user to SET has been verified = true, where _token = token returning id _id; Return _id; End; $$ LANGUAGE plpgsql; But for this you do not need a PL / pgSQL function. A plain SQL function will work correctly: Confirm functionUserver (_token varchar (255)) Returns as integer AS $$ UPDATE users have been set up confirmed = True where _token = token returning id $$ LANGUAGE SQL; But you have to make sure that

javascript - Add and init jQuery Datepicker inside jQuery Dialog on the go -

Image
I am creating a jQuery dialog on a button click, and the Dedeker text boxes are also displayed in the dialog box of another DIV cloned Are made inside. But when I click on the text box, Date Pictures do not pop up as expected. & lt ; div id = 'searchdialog' & gt; Blank Div ​​& lt; / Div & gt; & Lt; Div id = 'search' & gt; & Lt; Input type = 'text' id = 'arrivDate' / & gt; & Lt; Input type = 'text' id = 'deparDate' / & gt; & Lt; / Div & gt; & Lt; Button ID = "popup" onclick = "setPopupForm ()" & gt; Click & lt; / Button & gt; Function Set popup form () {$ ('# searchdialog'). html ($ ('#search'). html ()); .. $ ('# Searchdialog') ('# arrivDate') attr ('id', 'arrivDate2'); .. $ ('# Searchdialog') ('# deparDate') attr ('id', 'deparDate2') is received; $ ('# Searchdial

excel - Insert a column chart that shows the number of values found in a range of rows -

Image
Assume that I have the data: Id; Author; Customer ticket 1; John, Alice Ticket 2; John, Bob Ticket 3; Ken; Charles Ticket 4; Ken; Darren (I use ; to symbolize the end of the cell / column) Then I created a column chart I want to have a column and column height for a unique value for the author , when the value is the value. In this example, I will have two columns ( John and ken ) and each will have the 2 size. How can I do this? I think what you want can be obtained with a PivetBb where If the author is computed sigma value of ROWS and author, then select the data and enter the column chart:

mercurial - Tortoise HG bisect menus in version 2.10 -

Where is a bisector menu in Turtle HG ? How to use a diploma with GUI? I have version 2.10 . Or can I use bisectors only from the console? Bisect option is in the repository menu, Or you can select two changes and Bisect in the context menu.

jsf 2 - If i lost the JSF Session scope i want to change to the login page -

I used JSF 2.2 Moserra and Session Scope. After some time the session scope is removed or something else. If I go back to the login page and log in again, I have a new session area and everything works again. If I have worked on a web application then the area of ​​session has not been lost, and I have no problem. So I think it should be lost after some time if I do not use the web application. Any ideas I have lost the chance of the session, so how can I return to the login page automatically? Your state savings method should be set below like a server to expect < / P> & lt; Context param & gt; & Lt; Ultimate Name & gt; javax.faces.STATE_SAVING_METHOD & lt; / Lastname & gt; & Lt; Ultimate Price & gt; Server & lt; / Super-valued & gt; & Lt; / Reference param & gt; After that, you can access your web.xml & lt; Session-config & gt; & Lt; Session timeout & gt; 20 & lt; / Session timeout &

wordpress - Wrap Div around WP Posts / Pages function -

I need a function for WordPress because I have to wrap a post / post title at the top of the page. The title looks like this: & lt; H1 class = "entry-title" & gt; Test Post & lt; / H1> So I need to do something like this: & lt; Div id = "mydiv" & gt; & Lt; H1 class = "entry-title" & gt; Test Post & lt; / H1> & Lt; / Div & gt; Any ideas if I can do this? This is the correct way, you need to add filters, enter the following code in function.php or your Plugin Page: add_filter ('the_title', 'title_div_wrapper'); Function title_div_wrapper ($ title) {$ title = '& lt; Div id = "mydiv" & gt; & Lt; H1 class = "entry-title" & gt; '. $ Heading. ' & Lt; / H1> & Lt; / Div & gt; '; $ Heading back; } will now have the post title output () with the DIT wrap. For more detail, read the WordPress documentation @ bod

java - How to achieve a bounded model in DynamoDB? -

I have issues with the following: I have a list of sorted user events in DynamoDB I want to keep in the descending order, as if I look at the latest events at the top, however, I only take an interest in the latest 1000 events. At the moment I have a table with the user id as the hash key, and the timestamp of the user event as the range. Is any effective measure with a maximum of 1000 to keep the number of items in the range for any user, first with the latest events? I am using Java lower-level API, if it matters. I think your table schema is perfect, you can ask the table with the user id More options can be used ScanIndexForward = & gt; False This will sort your data in descending order on the boundary key (which is the timestamp) and you can use the option range => 1000 This will display only 1000 programs. Hopefully

excel - Collecting the first digit of 1000 random numbers and putting each 9 digits into frequency -

I have created 1000 random numbers under a spreadsheet (A1, A1000), but I search for the amount of time each time The first issue comes up. Issue 2 / /> Example 12345 1354 2849 Digitally comes twice, Points 2 comes up once in the B1 : C1 in = LEFT (A1,1 ) Enter and copy : = COUNTIF ($ B $ 1: $ B $ 1000, ROW ( )) and C9 / ht Ml>

python - pyrouge: 'pyrouge_set_rouge_path' is not recognized as an internal or external command -

I have Windows 7 and use Python 2.7 I recently created RVEGE (Recall-Oriented Undertidity for Gest Evaluation) I had installed so that I could evaluate the summary. Unfortunately, my summaries are in .txt format, and will not work with ROUGE. That's why I have installed the Purpose. In the above website, they have installation steps. I followed the first step, which was used to install the pipe. The next step is to say:. Assume that a work ROUGE-1.5.5 installation is done, pyrouge_set_rouge_path / absolute / path / to: "ROUGE path with this command tell pyrouge / ROUGE- 1.5.5 / directory " Try the line that I am at the command prompt: pyrouge_set_rouge_path C: \ rouge So far I'm getting this error. pyrouge_set_rouge_path 'is not recognized as an internal or external command, prevailing program or batch file Any help in this matter is quite Thank you Try this: set pyrouge_set_rouge_path = C: \ rouge

c++ - call a function and loops in parallel -

I have no experience in OpenMP, so I have to do this how to do the following: For (int i = 1; i & lt; = NumImages; i ++) {// call a function myfunction (...); For (int k = 0; k & lt; SumNumber k ++) {for (int l = 0; l & lt; elnum; l ++) {// do 2 while summarizing calculations within a time loop } // end k loop} // end I loop Now, at my disposal I have 40 cores. For the number 50 to 150, the more general 150. SumNumber <200p> Alan will be around 5,000. So, with this, the best behavior function is specifying each thread in the call and executes in parallel to the L-loop? And if so, then it will be: paragraph for num_threads (40) for #pragma omp (int i = 1; i & lt; = NumImages; I ++) {myfunction (...); For (int k = 0; k & lt; SumNumber k ++) {#pragma for omp (int l = 0; l And above (for NumImages = 150) that myfunction will also be executed 40 times in parallel and L-loop and then when the l loop and the K-Loop end, then the next 40 thre

IntelliJ Code coverage Java 8 - requires ASM 5 -

Is anyone getting me this error message from IntelAge? (I used Java 8 - error is only on very small percentage of squares) [2014.05.06 10:14:39] (coverage): Class Error during instrumentation: xxx.yyyy: java Lang.IllegalArgumentException: requires ASM5 on INVOKESPECIAL / STATIC thanks Daniel If you are Google for that exception message, you will find that there are a small number of hits in many code analysis tools, it seems that there is a tool-chain compatibility problem. Or 8 code breaks the various third-party tools that use older versions of the ASM library. You need to report it to the developer for the device or plugin.

java - BigDecimal CastException in hibernate -

I am using a bean object to retrieve data from the database, which is called AudienceInfo two features in the Audiences Are: public string message body; Public is BigDekelal Audience; The database does not have body varchar2 and number of viewers in the database. To get data in the DAO class, everything is fine and data has been selected. But when I pass an object (customer) form Dao class in my main class, there is an error. Here's my code in the main code: Iterator & lt; AudienceInfo & gt; Iterator = Customer.itator (); Int i = 0; While (ifr. HasNext ()) {BigDCULUM COM = (Customer Gate (i) .getAudienceno ()); String msgBody = customer.get (i) .getMessageBody (); Iterator.next (); ++ i; } error is: Exception in thread "main" java.lang.ClassCastException: java.math.BigDecimal not inserted for com.htsc .sms.model.bo.AudienceInfo When I use this code in jdbc, everything is fine and I can see the result set but in hibernation, is. < query

Finding whether a number is Prime or not by limiting the number of iterations-c# -

I have to find out whether a number is prime or not as limited by the number of iterations as possible. The following program was suggested in a blog. I can understand these parts of the code. Public stable bull isprrome (long) {if (i == 1) {return false; } And if (i & lt; 4) {back true; } And if (i% 2 == 0) {return false; } And if (i & lt; 9) {back true; } And if (i% 3 == 0) {return false; } But I do not understand why f grows by 6. else {double r = Math.Floor (Math.Sqrt (i)); Int f = 5; While (F & LT; = R) {if (i% f == 0) {return false; } If (i% (f + 2) == 0) {return false; } F = f + 6; } Back true; }} Because every major number (excluding 2 and 3) is of form 6k +/- 1 Each second number can not be predominant, because they are divisible by 2 or 3, as well as some modifications in your method: Public stable bull ISSprime (long I) {if (I & lt; 2) {return false; } And if (i & lt; 4) {back true; } And if ((i and amp; 1) == 0) {return false; } A

Facebook API Post Search Deprecated? -

I am trying to do a search through Facebook API and get the following error from Facebook - ( # 11) Post search has been deprecated The URL I am using to query the graph: https://graph.facebook.com/search?q = Search_query & type = post & amp; access_token = {access_token} Any idea why this is happening because I can not find anything about the deprecation of post search? Yes, version 2.0 of GraphAPI does not let you search for posts anymore. See. You can continue searching for the posts to change your API call: https://graph.facebook.com/v1.0/search ? Q = search_query and type = post & amp; Access_token = {access_token} after Ie v1.0 / https://graph.facebook.com/ Add

node.js - Javascript function inside another function a new instance created? -

I'm trying to figure out whether express.Router () is a router Returns a new example or not. So when I read the code I go into this basic Javascript question. ./ router / index.j var proto = module.exports = function (option) {options = options || {}; Function Router (Rick, Race, Next) {Router Handle (Rake, Race, Next); } // Mixon router class functions router .__ proto__ = proto; Router.param = {}; Router _param = []; Router.caseSensitive = options.caseSensitive; Router.strict = options.strict; Router.stack = []; Return router; }; At any time when the external function is executed (I think it is via express.Router ()), is creating a new internal function? I believe this var router = function (...) {...} is so. But I am not sure about this matter. Yes, it creates a new function object every time Function declaration is effective A designated function is similar to expression that is hoisted: function f () {} versus var f = function f () {}; // hoisti

java - Could not find HttpResponse in httpclient 4.3.3 -

Image
I try to implement a simple http program which sends the request and receives the response from the given URL. For this, I use httpclient 4.3. Jarars add to my project as an external library. But the problem is, I could not get the HTTPRPS pension in the jar file. And I also want to handle NTLM authentication in this application. Please help me Sample code: HTTP client client = http clientbilder.credit (). Build (); HTTPGet Request = New HTTP Gate ("https://www.google.com/?q=java"); {Try HttpResponse response = client.execute (request); Println (response.getStatusLine ()); } Hold (exception e) {e.printStackTrace (); }

Java socket multiple file transfer over single stream -

I have written a client-server file transfer program. I am trying to achieve the following work flow: Connect to server -> open stream -> authenticate -> message ('send file') -> message ([file name]) -> message ([file size]) -> Send a message -> Message ('Send File') ... Message ('Disconnect') The goal is to connect and authenticate only once the same data stream Send multiple files. I have revised the method of copying a stream to ensure that the copy does not copy too much data from incoming and outgoing streams. For example, send a file to a client server: Server: copy (dataInputStream, fileOutPutStream, length) For example, this copy method server And used to send and receive clients. Fixed zero copy (InputStream, I answer the question: output stream out, long length) throws IOException {byte [] buf; If (length & lt; 8192) {buf = new byte [(int) length]; } Buf = new byte [8192]; Int len ​​= 0; Long reading = 0; Wh

c++ - Template instanciation errors, MSVC vs GCC -

OK I found the following template (which has a big error): template < Class FluxVar = IloIntVar, Class FluxVarArray = IloIntVarArray, Class DelayVar = IloIntVar, Class DelayVarArray = IloIntVarArray, Class LoadVar = IloIntVar, Class LoadViraRaire = IloIntVarArray, Class BoolVar = IloBoolVar, Class BoolVarArray = IloBoolVarArray & gt; Classroom Myllic {public: int getAlpha () {return m_alpha; } Private: int m_alpha1; // "1" see here} In my code, I do something like this: MyClass & lt; & Gt; MyClass1; MyClass & lt; IloNumVar, IloNumVarArray, IloNumVar, IloNumVarArray, IloNumVar, IloNumVarArray & gt; MyClass2; MyClass & lt; IloNumVar, IloNumVarArray, IloNumVar, IloNumVarArray, IloNumVar, IloNumVarArray, IloNumVar, IloNumVarArray & gt; MyClass3; / * Some items with my class, but never call coded with MSVC, call myClassX.getAlpha () * / , but with GCC, (of course) saying Is: MyClass.h: 109: 39: error: m_alpha was not declared in thi

c++ - lldb alias for executable -

'myprogram' was used with GDB debugger to work on behalf of GDB microblogging, but now with LLDB, I have to provide the same kind of address as executable. / I / Program / myprogram ' Therefore lldb / path / to / my / program / myprogram I tried to define an alias on the LLDB: order surname myprogram / path / to / my / program / myprogram but it says Are that error: 'alias' . "Does not start with a valid command, no alias created any solution? Use targets in Lldb (aka file < / Code>) Command code / ~ / .lldbinit file): % xcrun lldb (lldb) command alias cls target Create / bin / ls (lldb) cls The current executable set '/ bin / ls' (x86_64) (lldb) r process 5099 was launched: '/ bin / ls' (x86_64) README.html README.md ...

business intelligence - DAX equivalent for MDX Calculated Member -

We have an SSAS 2012 logistic model in our disposal, which we are reporting with the Taj. Currently, we have the dimension [content] with a feature [content]. What are we trying to implement in the custom grouping of department attributes, make members of the computation of MADX. For example: create a member [content]. [Department] [AB] as AGGREGATE ({[physical]. [Department]. [And], [content]. [Department]. & Amp; [B]}) We have tried to add a calculated member [ab] to the hierarchy [physical]. [Department] In this makeup with MDX expression: AGGREGATE ({[Material]. [Department] [A], [content]. [Department]. [And] / Code> At the design time, the expression is confirmed, but when we get that error in our report to the member, we ask that the members who compute this kind of MDX in DX Not supported. Is anyone aware of the equivalent and how should we work on this MDX member? Use I think your DAAP measurement looks like this: <> > > ( Html>

css border-radius and background color -

यह मेरा कोड है: HTML: & lt; Div वर्ग = "मुख्य" & gt; & Lt; img वर्ग = "इन" alt = "" src = "https://lh6.googleusercontent.com/---lrEvAvGGs/U2i572OasiI/AAAAAAAACVw/zKSuueH1n5Q/s720/1024x1024.jpg" & gt; & Lt; / div & gt; सीएसएस: .main {height: 240px; चौड़ाई: 240 पिक्सेल; पृष्ठभूमि: # F00; सीमा: 1 पीएक्स ठोस # सीसीसी; सीमा-त्रिज्या: 30px; स्थिति: रिश्तेदार; छिपा हुआ सैलाब; } .in {width: 240px; ऊंचाई: 240 पिक्सेल; } लाइव उदाहरण: जैसा कि आप उदाहरण में देखते हैं, छवि के कोनों पर एक छोटे से पृष्ठभूमि का रंग (लाल) है। इन्हें कैसे निकालना है लेकिन सीमा-त्रिज्या विशेषता को रखते हुए? बस शैलियों को हटाएं पृष्ठभूमि: # F00; सीमा: 1 पीएक्स ठोस # सीसीसी; मुख्य से

Java variable references -

I'm sorry if this question is really silly but I was thinking that someone could tell me why Is: string halstrings = "hello"; String referencesofholo = halstrings; Hello string = "bye"; Println (referenceOfHello); And the production is Hello. I was expecting goodbye for production but it did not happen. I know this is a very basic question, but I always thought that the reference is stored by the Buffalo memory instead of its value, instead of its value. Thank you. code string halstrings = "hello with explanation in the comment "; // mem address 1001 with string reference creates variables in heap = hello = hello string; // now referencing hello and halstrring poemnting the same object hello string = "bye"; // Now, hello string indicates that the difference object is 1002, but still, the reference will point to the FAO 1001 object

javascript - Jquery mobile pages navigation -

I am trying to develop a mobile app using phonegap and jQuery mobile. My problem is that pages do not change when events are triggered Here is the page and code code: Not working between navigation pages I think Your form is being triggered to reload your operation. Take a look at this demo where I've changed the form code so that it can take an empty action. HTML: & lt; Div id = "deviceready" data-role = "page" & gt; & Lt; Div data-role = "header" & gt; Header & lt; / Div & gt; & Lt; Div role = "main" square = "ui-content" & gt; & Lt; Form action = "javascript: zero (0);" & Gt; & Lt; Label = "username" & gt; Username: & lt; / Label & gt; & Lt; Input name = "user name" id = "user name" value = "" type = "article" /> & Lt; Label = "password" & gt; Username: & lt; / Label

php - htaccess Rewrite Rule - Internal Server Error -

I'm having problems thinking what should I rewrite a simple htaccess to work ... Current URL: Required URL: Current htaccess code: RewriteRule RewriteEngine current ^ ([^ /] *) $ /profile.php? The result from the id = $ 1 [L] above is the internal server error: I will also work for it like a custom Domain (if set), though I'm sure that working properly for the above solution will work just fine. Desired URL: thanks in advance. "itemprop =" text "> I used this .htaccess and it works for me : RewriteCond% {REQUEST_FILENAME} RewriteEngine on! -f RewriteCond% {REQUEST_FILENAME}! -d RewriteRule ^ ([^ /] *) $ profile.php? Id = $ 1 [L, QSA] QSA flag is used, you can add many received parameters like this: Http://www.website.com/61338848?para meter = value RewriteCond% {REQUEST_FILENAME}! -f checks that request_filename is a file, if yes, the rewrite rule will not be executed

javascript - Calculate sum of values -

I'm trying to get some values ​​in jQuery. I do this var sum = 0; $ ("Total") Text (zodiac + = parsint ($ ("numbers."). Text (), 10)); But that is not making the amount I have tried the following which is not working? var sum = 0; $ ("Total") ParseInt (sum + = parseInt ($ (". Number"). Text (), 10)); How can I calculate this amount? Demo: To sum up the values ​​you have to Need to be repeated. Issue element: var sum = 0; $ ('Number'). Each (function () {sum + = parseInt ($. Text (this), 10);}); $ ('Total') text (sum). Demo:

android - Google Drive - Retrieve contents of publicly shared file programatically -

Is it possible to programmatically retrieve the contents of a shared file? I tried their demo in the code to get data in it, is able to retrieve data from my account with which I login with my demo. If I try to access a file from another account that is public, I can not recover it.

search - Django admin - Add button for ForeignKey in inline -

In a DNS administrator window, I would likely like to take an existing entry in DB as an area in an inline zone. My models are like this (it's a weird way to design, this is just an example): class buyers (models.Model): Name = Models.CharField (max_length = 255) class vendor (models.Model): name = models.CharField (max_length = 255) class association (models.Model): type = model.yrgyinke (buyer) type = model. ForeignKey (vendor) In the Seller Admin page, I have an inline (tabular inline) list for all the affiliates for the vendor for all buyers. Or was. class association inline (admin.TabularInline): Model = Assigning Class Credar Admin (admin.ModelAdmin): inlines = (DevisAssignationInLine,) Representation in the field The seller has a text input instead, instead, I would like to click a button, which opens a search page, where I can search the sellers in DB, click on it and that's it, it is related to the buyer. How do you do that? is what you are loo

javascript - Adding another marker to google maps breaks the map -

I have a map that goes into coordination and then shows all nearby fitness, school, grocery and train installations . / P> The problem is I would like to add another marker which just sits at the top of the order that I'm focusing on. I have tried to add one using the code given below but whenever I do this, it does not load the map. var marker_home = new google.maps.marker ({map: map, location: location.agency.place, icon: home_icon}); My code below: If you are trying to create a marker "when at home the map Loads "", just add it to your initialize function: var marker_home = new google.maps.Marker ({map: map, location: home , Icon: home_icon});