Posts

Showing posts from April, 2015

php - Storing image in a server directly from android mobile -

I want to capture the image from the Android device and want to store it on the server. This server should be ready to read from the PHP file for image retrieval. Who can recommend this specific server? You can do this via multipart unit or VIA FTP server.

ios - UITableViewCell subclass's content duplicated -

मुझे इस कोड के साथ UItableViewCell subclass मिल गया है: < कोड> #import "RegisterTableViewCell.h" @ कार्यान्वयन रजिस्टरटैब दृश्यकेल - (आईडी) initWithStyle: (UITableViewCellStyle) शैली reuseIdentifier: (NSString *) reuseIdentifier {आत्म = [सुपर initWithStyle: शैली reuseIdentifier: reuseIdentifier]; यदि (स्वयं) {// प्रारंभ कोड _ टीटीओलो = [[यूआईएलबल एलोक] इनिटविथफ्रेम: सीजीआरएक्टमेक (10, 0, 80, सेल्फफ़्रेमआकार। हाइट)]; _titolo.numberOfLines = 0; _titolo.lineBreakMode = NSLineBreakByWordWrapping; [Self.contentView addSubview: _titoll]; _लाइनरेक्टांगोलरे = [[UIView alloc] initWithFrame: CGRectMake (100, 10, 1, 25)]; _linearettangolare.backgroundColor = [UIColor सफेद रंग]; [self.contentView addSubview: _linearettangolare]; _input = [[UITextField alloc] initWithFrame: CGRectMake (_linearettangolare.frame.origin.x + 6, 10, स्व.फ्रेम.size.width-110, 25)]; [Self.contentView addSubview: _input]; } स्वस्थ वापसी; } - (शून्य) awakeFromNib {// प्रारंभिक कोड} - (शून्य) सेटसेटेड

mysql - I would like to insert into a table using a select query; the select query has an auto-increment field and multiple records -

I know that you can use it: AUTO_INCREMENT from info_schema.tables Select WHERE table_name = 'myTable' and table_schema = 'myDatabase' If I am inserting a line at a time but with the key 'primary' An error of duplicate entry will be generated if the selection query returns many records select myTable (select from info_schema.tables AUTOCREMENT from WHOE table_name = 'myTable' and table_schema = ' myDatabase ') Customer_ID, myTable2 client, where the customer is '% Tech%' Easy: Choose from Meritबेस 2 customer in INSERT Merchant (customer) '% Tech%' like customer ' : -) Editing (Explanation): This is the correct meaning of AUTO_INCREMENT, you can just leave it out and it can get an unused number, I think you can also give zero as value, which is translated as "next not Free price will be. " However with @Varials you can easily create line numbers and similar, but it has been kept for more

enums - smartgwt DataSourceEnumField example -

I tried to do some research on SmartGWT Showcase and forums, but I could not find the answer. I also tried to spread a wide spread Google search and did not get the answer. So, I hope I can get some help here. I have an enum Java class in the "Share" folder: public enum PointInTimeType {FIRST ("F" "," first "), start (" S Min ("MI", "Min"), Max ("MX", "Max"), EDD ("E", "End"), Last ("L", "Last") ; Private string code; Private string name; Private PointInTimeType (string code, string name) {this.code = code; this.name = name;} public string getCode () {return code;} public string getName () {return Name;} I know that I I can make a Datacoren Enamfield and set a Valuemap, but these values ​​are hard-working and the Enum Java class can add more emos in the future. I do not have to update the value even when the enumix is ​​updated. Therefore, knowing that I a

c - Why does my code not return anything? -

It appears that an entry like: 1 1 524 5 Truth-1 Where the first parameter is idOrder , the second parameter has the number of idOrder products, the third parameter is a code, the fourth parameter is the quantity of the product, the fifth parameter distinguishes the product To do is a bullion and the sixth parameter is the last mark. It should return an output such as: 524 -15 Where the first parameter is the code of the product, the second parameter is the last mark and the third parameter is the product Is the quantity. This is my code: #include & lt; Stdio.h & gt; typedef enum {false, true} bool; Int main () {const int = -1; Int Idear, Nain Products, IDCodproduct, Zodiac, Total, Temporary; Bull Generic, Endsak; scanf ("% d", floating); / * Printf ("% d", floating); * / IdOrder = temp; endSeq = temp == END; If (and SEC! = True) {total = 0; Scan ("% d", and temporary); NumProducts = temp; Scan ("% d", and temporary)

winforms - Disable the hover effect of a toolstrip in Visual Studio -

I created an icon based navigation in my C # application. I have used a toolstrip to do this but I want to get rid of the hinge effect. I am unable to find anything in properties or code and I am using vanofha. Thanks in advance Toolstep 1 Shoemoteol tip = false;

algorithm - How to diff/substract two lists in Clojure -

उदाहरण: 1 1 3 3 4 4 5 5 6 एल 1 1 3 3 4 5 L2 1 1 4 5 6 Res प्रतिबंध: अंतर / घटाव को एल 1 शून्य से तत्वों के "सेट" के रूप में परिभाषित किया गया है एल 2 हमेशा एल 1 और एल 2 के तत्वों में डुप्लिकेट हो सकते हैं तत्व प्राथमिकताएं हैं (इंट, स्ट्रिंग) और एक ही प्रकार (clojure.set / difference) यहां (3) की मदद नहीं करता है । (defn diff [s1 s2] (मैपैक (fn [[xn]] ( उदाहरण के लिए, दिए गए (डीईएफटी एल 1 [डीएपी एलए 1] 1 1 1 3 3 4 4 5 5 6]) (def L2 [1 3 3 4 5]) तब (diff L1 L2) ; (1 1 4 5 6)

jquery - Why isn't .prop("selected",true) not working when .attr() or .addClass() does? -

I have a script that replaces the box by selecting a box with a set of style divisions, and with it When targeting the user clicks on the "fake" device, I am targeting the selected items like this: targetSelect.eq (optionIndex) .prop ('selected'); optionIndex is the indicator of the selected div because it matches the hidden selection box option. For the above line "Selected" Goal Option I know that I am targeting the right one since targetSelect.eq (optionIndex) .addClass ('selected'); will add that class and set a selected attribute for targetSelect.eq (optionIndex) .attr ('selected targetSelect.prop (' selectedIndex ', optionIndex) . ); But that also does not work. I believe this should work: $ (' # Selectbox options'). eq (optionIndex) .prop ('selected', true); You can also try (make sure that there is no optionIndex string!): targetSelect.val (optionIndex) < / Ex>

How to get Used disk space in Windows Phone c# -

Is there any way to know how much disk space has been occupied by the individual disk in an empty space, my There is only one way to go in the mind. Update: I should be more clear about my requirement. Actually I want to display the app disk space usage within the app, I already know about the IsolatedStorageFile.AvailableFreeSpace but it does not solve my problem On the other hand, claims that the UsedSize property to evaluate property under System.IO.IsolatedStorage in Windows Phone 8.0 SDK Provides a IsolatedStorage class is available using disk size If this class is not actually available in sdk, then if anyone has any idea about it please share. Use the property to get used space. And use the property. This will not clearly give you the full disk space used by the phone, but only using your own applications isolated storage.

java - Future.get() timeout precision and possible alternatives -

I have some tasks that are limited to the time i have a request for the work server and the result is a response. Time is about 10 milliseconds, after the time has expired, I want to get the results immediately (or within 2-5 milliseconds) or blank so I packed my work in the cell and hoped confidently that the futures with timeout. The gate () will be thrown out of the moment immediately after the expiration. But as I see the futures. With time () can not provide such precision. In my simple test, there are 12 milliseconds in its deviation and it is without high weight. Now I know that it is normal for future Is the behavior. But my work is still there and it will be great to end this more precise time. I've heard of Java Real Time System, but it seems like a very sophisticated tool for me. Is there any easier option for FutureGet () and Java Real Time System? Did you think record time in the same thread that you use to call with the request Are you? You can throw an excep

javascript - compile error, accordion controller required -

कोणीय-बूटस्ट्रैप UI का उपयोग करते समय मुझे कंसोल में निम्न त्रुटि मिली मेरे पास कोणीय 1.2.6, बूटस्ट्रैप 3.0, और कोणीय-बूटस्ट्रैप 0.10.0 है। त्रुटि: [$ संकलन: सीटीआरएसी] नियंत्रक 'एडेरियन', जो निर्देशन 'एडेनियन ग्रुप' द्वारा आवश्यक है, टी पाया! किसी को पता है कि ऐसा क्यों होता है? मेरा html कोड। & lt; div ui-view & gt; & lt; accordion-group id = "crud-talbe" एनजी-दोहराने = "ग्रिड में ग्रिड" शीर्षक = "{{grid.name}}" & gt; & lt; a ng-click = "createNewEntity (grid.name)" वर्ग = "बीटीएन बीटीएन-डीफॉल्ट" & gt; नया {{grid.name}} बनाएं & lt; / a & gt; & Lt; div class = "crudGridStyle" एनजी-ग्रिड = "ग्रिड" / & gt; & Lt; / अकॉर्डियन-समूह & gt; आपके द्वारा प्रदान किए गए कोड से, आप पर्याप्त आवश्यक कोड शामिल नहीं कर रहे हैं यूआई-बूटस्ट्रैप से यह आपको जो कुछ चाहिए वैसे कम से कम दिखता है और कम्पाइलर त्रुटि क्यों दे रहा है। & lt; accordion

r - Fix the order of strings that have both letter and number components -

मेरे पास नीचे स्ट्रिंग डेटा है। a & lt; - c ("53H" , "एच 26", "14 एम", "एम 47") ## "53 एच" "एच 26" "14 एम" "एम 47" मैं एक निश्चित क्रम में संख्याओं और अक्षरों को ठीक करना चाहता हूं जैसे कि संख्या पहले हो जाती है, अक्षर दूसरी जाता है, या फिर दूसरी तरफ। मैं यह कैसे कर सकता हूं? ## "53H" "26 एच" "14 एम" "47 एम" या < कोड> ## "एच 53" "एच 26" "एम 14" "एम 47" आप संख्याओं और अक्षरों को gsub के साथ अलग से निकाल सकते हैं, फिर उन्हें किसी भी क्रम में रखने के लिए paste0 का उपयोग करें। a & lt; - सी ("53 एच", "एच 26", "14 एम", "एम 47") (अंक और एलटी; - gsub ("[^ 0- 9]", "", ए)) ## निकालने नंबर # [1] "53 ## निकालें पत्र # [1] "एच" "एच" "एम" "एम" (एलटी; - Gsub ("[^ AZ]", "", ए)

How to Clear recently viewed items (frontend user function) - Magento -

There is currently a link button in the Magento cart that clears the cart of its contents. In a similar manner, I should have a link button in the "Recently Viewed" panel, which clears the list of the user's recently viewed products. I'm doubting the need to get the user cleaned by cash in any way - I'm not sure how Magento records and stores visited the products. Do anyone know how to do this in Magento? If someone has any suggestions on how I can do this, I would be grateful. (Note that this is not the question of clearing the overall cache in Magento admin) Recently viewed product data is stored in the report_viewed_product_index table. You can delete these records based on customer_id / visitor_id

ios - Multiple Google Maps Navigation -

I think I'm a total idiot here, but I have total brain fart and XCode . To be able to navigate to a certain destination for the user, I have to open this code (below) Google Maps on which they click the button. On this page it's a fixtures list, which has an option next to navigation matches, am I right in saying that I do not need a new view controller because Google Maps should also pop up on the button press? In addition to this, I will need to create an IBOutlet at the top to create by pressing the button segue , obviously I will code this code to - (zero ) Will not be able to view the view in the because I only want to show the button on the basis of press - (zero) getDirections {CLLocationCoordinate2D start = {(startLatitude), (startLongitude)}; CLLocationCoordinate2D end = {(end latitude), (endlined)}; NSString * googleMapsURL String = [NSString stringWithFormat: @ "http://maps.google.com/?saddr=%1.6f,%1.6f&daddr=%1.6f,%1.6f", start.latitud

http - Save query result from GET method for future reference -

I want to apply a query to my web page that gets results from another web service and lets users For this, I send the request as a GET method from the curriculum web page. Server Side, I process the request, I get the results of that web service and return them back to the user. However, I want to save the results for the future in the future, like the history of the questions, for that I will store the results in a database. Now, the question is, when I create a query, then increasing my database every time, should I use the post method on the web page or do GET? Does the HTTP explicitly say anything to this scenario? HTTP does not say that you have to use the post - - If you send your data to the Curiosity The technique will work fine. But the current conference says that you should use the post, especially if API services are used under an undoubtedly model, if you also have data (on the query parameter) ), Who is making a new record, then post it to the post verb Yog

sql - not able to convert String date to unix timestamp in hive -

मैंने निम्न क्वेरी निष्पादित करने की कोशिश की: SELECT L_RETURNFLAG, L_LINESTATUS, SUM (L_QUANTITY ) AS SUM_QTY, SUM (L_EXTENDEDPRICE) के रूप में SUM_BASE_PRICE, SUM (L_EXTENDEDPRICE * (1 - L_DISCOUNT)) SUM_DISC_PRICE के रूप में, SUM (L_EXTENDEDPRICE * (1 - L_DISCOUNT) * (1 + L_TAX)) SUM_CHARGE, AVG (L_QUANTITY) के रूप में AVG_QTY, औसत (L_EXTENDEDPRICE) AVG_PRICE के रूप में, औसत (L_DISCOUNT) एवीजीडीआईएससी के रूप में, LINEITEM जहां से यूनिक्स_टाइमस्टैम्प (एलसीएचआईपीडीटीई, 'य्याय-एमएम-डीडी')> 1000 ग्रुप द्वारा L_RETURNFLAG, L_LINESTATUS ORDER द्वारा L_RETURNFLAG, एल_लिनेस्टास; लेकिन, मुझे त्रुटि मिल रही है: फ़ंक्शन 'unix_timestamp' दिए गए तर्क प्रकारों के साथ नहीं मिल सकता है तर्क को यूनिक्स_टीमस्टैम्प के अंदर स्ट्रिंग में डालने का प्रयास करें

php - Symfony2 DataFixtures error? "Only variables should be passed by reference" -

सख्त मानकों: केवल चर संदर्भ में सी: \ xampp \ htdoc s \ EliteFifa2 \ src \ लाइन 70 पर इस रेखा का जिक्र है: $ lastHomeTeam = array_shift (array_splice (एआरएआर_एसिस) $ होमटेम्स, 1, 1)); मुझे समझ में नहीं आ रहा है कि क्या गलत हो रहा है क्योंकि निम्न एल्गोरिथ्म एक सामान्य PHP पृष्ठ में काम करता है। वर्ग MatchFixtures AbstractFixture लागू करता है ऑर्डर किए गए FiextureInterface, ContainerAwareInterface { निजी $ कंटेनर; सार्वजनिक फ़ंक्शन सेट कंटनेयर (कंटेनर इंटरफेस $ कंटेनर = नल) {$ this- & gt; कंटेनर = $ कंटेनर; } सार्वजनिक फ़ंक्शन लोड (ऑब्जेक्ट मैनेजर $ मैनेजर) {$ teams = array (0, 1, 2, 3); $ worldSeason1 = $ this- & gt; getReference ("WorldSeason1"); $ लीग 1 = $ इस- & gt; getReference ("लीग 1"); $ जुड़नार = $ this- & gt; बनाएँ फिक्चर ($ टीम, $ worldSeason1, $ league1); } निजी फंक्शन बनावट ($ टीम, $ मौसम, $ प्रतियोगिता) {$ teamsCount = count ($ टीमों); $ राउंड = $ टीमों संख्या -1; $ मैचोंपरराउंड = $ टीमोंकाउंट / 2; $ awayTeams = array_splic

c# - Linq, combining multiple records into comma separated string, grouped by distinct value -

I am trying to isolate from a group, then create a CSV string: < img src = "https://i.imgur.com/7NsSCtq.png" alt = "Enter image details here"> [FOr] One-to-many include: var allCustomerRoles = (Customers join crawl on CRRole_ID in the customer equals r.Role_ID, select new {cr.Customer_No_, r.Role_ID}); So the question is, can you please tell me how to write the LINQ query to reach the [TO] framework, where client_NO is different and this role_ID value to the CSV string Is added to thanks @ red_mader, your link prompted me to solve, what i see here To have: var allCustomerRoles = (R.Role_ID in the customer joining RILs is equal to r.Role_ID group r.Role_ID from CR in CR.Customer_No_g select new { customer_no_ = g.Key, Role_ID = string.Join (",", g.ToArray ())});

c# - Binding Button IsEnabled depending of the ComboBox selection -

I'm sure it's really easy, but I do not know how it happens I have a combo box and a button , And I need to enable the button only if an item is selected in the combo box, i.e. the combo box shows no element, then the button should be disabled. How can I do this? I have tried to do the following: IsEnabled = "{binding element name = mycombobox, path = selected index}" /> But this does not work, I'm using Silverlight 5. Thank you in advance Something in MSDN may have helped you for It suggests that you use a converter or data trigger. I have not tested it, but maybe it will work? & lt; window. Resources & gt; & Lt; Style x: Key = "MyButtonStyle" TargetType = "{x: type button}" & gt; & Lt; Setter Property = "Iceded" value = "true" /> & Lt; Style.Triggers & gt; & Lt; DataTrigger binding = "{binding path = selected item, element = combobox1}" value = "{x:

linux - Shell user prompt (Y/n) -

I just wanted to write a small scripts to copy some files for my NAS, so I have shell-scripting . I know that many command line tools on Linux use the following sim for the Yes / No input Do you know Yuri [Y / N] Where the letter indicates the standard verb which will be started by killing . Which is good for quick use. I also like to apply something like this, but I have some difficulty in caching the Enter key. This is what I have so far received: read -p "Are you sure? [Y / N]" Reaction Case $ [yy] Response [EE] [SS] | [Yay] | [JJ] | [# Insert coding here et #]) echo files will be echoed;; *) Echo canceld echo echo ;; esac Whatever I want I can add but it will not work with only enter . Here's a quick solution: read -p "what Are you sure? [Yi] [Yi] [EE] [ss] | [or y] | [jj] | '') resonant files will echo; *) echo echo echo echo; >

Confirmation email with devise gem in Ruby on Rails 4 - Error:undefined local variable or method `confirmed_at' for # -

Or method `confirmation_it 'for # when I submit the registration form. How to make a confirmation email with Divise Mani in Ruby on Rail 4? What is the need for other requirements as well? My code currently looks like this: class users & lt; ActiveRecord :: Base # Include modules to develop by default include: #: Confirmable,: lockable, timetable and: ubiquitous schematic: database_authorized, registerable, authentic, recoverable, memorable,: Trackable, valid: Qualified_Im: PIN valid: Name, Attendance: Correct confirmation: Email, Format: {with: /.A ([^ @ \ s ++) @ ((::? :: -JS- 0- 9] +++ ) + Edu) \ z /} end class addConfirmableToDevise & lt; ActiveRecord :: Migration Def changed change_table (): | T | T.confirmable end add_index: user,: confirmation_token ,: unique = & gt; True end DEF self.up add_column: user,: confirmation_token: string add_column: user ,: confirm_at ,: datetime add_column: user,: confirmation_sent_at ,: datetime # add_column: us

html - Add :hover to decendent -

मैं निम्न में एक होवर कैसे जोड़ूं: table.pvtTable tr th, table.pvtTable tr th मैं इसे अंतिम "वें" तत्व में जोड़ना चाहता हूं। अगर मैं करता हूं: तालिका div class = "post-text" itemprop = "text"> यह अंतिम th के लिए काम करेगा: table.pvtTable tr th: last- बच्चे और : होवर चयनकर्ता के साथ समान तत्व: table.pvtTable tr th: आखिरी बच्चा: होवर < / कोड>

php - MYSQLI_NUM_ROWS THROWS SERVER ERROR -

Can someone please explain to me that when I use the mysqli_num_rows () function, why do I keep the following error? Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator for notifying that time. That error has occurred and whatever may be the reason for the error could have been you. More information about this error may be available in the server error log. This is my PHP script: & lt ;? Php // store user input variable $ username = $ _POST ['username']; $ Password = $ _POST ['password']; // user chooses from the table $ sql = "SELECT * members from WHERE user name = '$ user name' and password = '$ password'"; $ Result = mysqli_query ($ con, $ sql); $ count = mysqli_num_rows ($ result); / * // session starts and sets a cookie if the count is correct ($ count> = 1) {session_start (); $ _SESSION ['username'

Cannot login my koding vm via ssh by putty -

I have followed all the instructions, but still can not log in. Nothing, but without warning, only an empty black screen will help me with any help. In this way I have done it with the help of this. Puttygen Move the mouse cursor until it is complete Using the public key (such as public-key.txt ) and the private key (such as private-key.ppk ) related buttons. Copy the contents of the public key, to paste it into the OpenSSH authorized_keys file box. Turn off confirmation Coding from VM: File ~ / .ssh / authorized_keys Open it, paste it and save it Alternatively, you can go to the settings of your account - & gt; SSH keys and it here before Connecting with the cyst Get your VM address from your coding workspace: On the top left, Click koding-vm-0 on the mouse, ... , the VM address is correct for Assigned URLs , "http: // "(such as unkk05c3f84e.joshmurray.koding.io ). Open cyp: host name (or IP address) as the us

php - link takes form fields and then redirects -

I have a simple form field with two form fields. Again, under two areas, I have a button that is & Lt; A & gt; is provided with the property & lt; A & gt; button redirects to another URL with a large form, to move two form fields and enter it in the URL & lt; A & gt; The button is required. Like & lt; A href = 'http: //siteurl.com/zipcode=.$_POST [' zipcode '].' & Gt; Button & lt; / A & gt; Is this possible? The way I wanted it, I found out a way to do it. People here with the same question and even posting here for recommendations on my method and if there is a better / simpler way to do this. & lt; Script & gt; $ ('# Submit_form'). Click (function () {var url_beg = 'http: //SITEURL/sellermoredetails.aspx? SiteName = Great% 202% 20Be% 20 Home and SiteURL = Salbbabet's Dots and Reader URL = http: // Www.SITEURL.com & amp; ; Zip = 'var zipcode = $ (' input [name = "

c# - Unwrap exception stack -

I have a common method in my code that logs errors, something like < Code> static zero logarre (exception preceded string noun name) {// real logging is more complex console. WrightLine (methodName); Console.WriteLine (ex); } Now, in every method, I have to use try / hold in some form static zero testMethod1 () {try {// do Actual operation here string S = faucet; s = s.Substring (1); } Hold (exception exec) {LogError (exec, System.Reflection.MethodBase.GetCurrentMethod (.name)); }} If there is an exception, the logged information will be displayed the exact method name TestMethod1 . Although I do not like this work to add effort / grip in every method, so I thought of writing such a replacement Static Zero DoWithLog (Action A ) {Try {a (); } Hold (Exception Pre) {LogError (formerly, System.Reflection.MethodBase.GetCurrentMethod (.name)); }} Private Static Zero TestMethod2 () {DoWithLog ((=) ({string s = null; s = s.Substring (1);}); } In this method, I'

javascript - Monitoring custom events in chrome? -

I am trying to figure out when an event is firing, and I have zero fate. So we have it: this.model.on ('change: list', this.inventory_callback, this); And I set up a breakpoint here and tried to do this in the Chrome Dev Tool console: MonitorEvents (this.model) < / pre> But I did not find any tips? advice? What am I doing wrong? Can i do this If not, is there any other way? Monitor events () is targeted only to track native DOM events According to the tip-off-tree source (), this is a comprehensive list of monitorable event types (read "Name already named event name"): "mouse" "Control" "Load" "Unload" < Li> "Reset" "Reset" "Submit" "Reset" Blur " " Resizing " " Scroll "Devicemotion" "DeviceWise" "Search"

wcf security - Is an exported SSL cert required for a client of a WCF application? -

I have a WCF application that is only configured for transport security Web accrual to which application has an SSL for that app The certificate has been established. A customer is creating their customer to consume WCF services, their development team is urging that they need to provide SSL certification to be established in their favor. I do not understand why I needed to export my certificate and provide them? With the protection of transport, does it not work like a browser where the connection goes on HTTPS without any extra work on the client? Before I tell them that they are wrong, I want to make sure that I am right. I created a sample application for the scenario and it is not necessary for it WCF service with transport security only binding & lt; WsHttpBinding & gt; & Lt; Binding name = "wsHttpBindingConfiguration" receiveTimeout = "00:10:00" SendTimeout = "10.00: 00: 00" MaxBufferPull Size = "1073741824

android - Prevent AdView from being pushed up screen by keyboard -

यह मेरी गतिविधि का सरल प्रतिनिधित्व है: & lt; linearLayout & gt; & LT; LinearLayout & gt; & lt;! - मेरा विज्ञापन यहां है - & gt; & Lt; / LinearLayout & gt; & lt;! - कुछ सामान - & gt; & LT; EditText & gt; & lt;! - बहुभाषी संपादन टेक्स्ट - & gt; & Lt; / EditText & gt; & lt;! - कुछ अन्य सामान - & gt; & Lt; / LinearLayout & gt; जब संपादन टेक्स्ट फ़ोकस हो जाता है तो कुंजीपटल ऊपर आता है और मैं टाइप करना शुरू कर रहा हूं। अगर मैं कुछ समय में प्रवेश करता हूं, तो संपादन टेक्स्ट को फिर से बदल दिया जा रहा है (यह एक मल्टीलाइन एडिटेक्स्ट है, के बाद से बड़ा हो जाता है) और संपादन टेक्स्ट के ऊपरी किनारे को ऊपर की तरफ से मेरी विज्ञापन को स्क्रीन से ऊपर धकेल दिया जाता है। I 'Google Play सेवाएं मोबाइल विज्ञापन' का उपयोग कर रहा हूं। क्या स्क्रीन पर विज्ञापन को बनाए रखने का कोई तरीका है? मुझे परवाह नहीं है कि संपादन टेक्स्ट की सामग्री को स्क्रीन से "स्क्रॉल किया गया" है। मैं चाहता हूं कि उपयोगकर्त

css - anchor won't center vertically inside list item -

I am trying to put an anchor horizontally in the center and inside a list. # menu liu {display: inline-block; Width: 100%; Height: 40px; Padding: 12px 0 12px 0; Text-decoration: None; Color: #AAAAAA; Font-size: 40px; Text-shadow: -2px -2px 0 000, 2px -2px 0 000, -2px 2px 0 000, 2px 2px 0 000; Expanded Edit: Text-aligned is working fine but even vertical-align: mid work Has been doing. Edit 2: As suggested, now I am using an line-height equal to the anchor height, it is actually anchor closer to its vertical center But for some reason it still has some pixels from its real vertical center. Here's an update Bella ... EDIT 3: Just out of curiosity I defined a 1px solid range for the anchor element and saw that the text inside the anchor was not centered vertically is. Therefore, things like the vertical-alignment or the position change in the anchor in this regard also do not affect some . Can anyone explain this strange behavior? As mentioned,

java - Need a word list from the internet -

Hello I'm making a hangin game and I want an array of words coming from the internet. It is not for me to start, can anyone help? This is the code. get public string (try {url = url = new URL ("http://dictionary-thesaurus.com/wordlists/Adjectives%28929%29.txt"); // URLConnection urlConnection = (URLConnection) url.openConnection (); // inStream = new inputstream reader (urlConnection.getInputStream ()); BufferedReader = new in BufferedReader (new InputStreamReader (url.openstream ())); String str = faucet; ArrayList & LT; String & gt; Line = new arreelist & lt; String & gt; (); While ((str = in.readline ())! = Null {lines (str); word = lines.error (new string [lines.size]);}} hold (exception e) {e.getStackTrace ( );} Random R = New Random (); int num; Num = r.nextInt (words.length); Return word [num];} Try it. public static zero main (string [] args) {ArrayList line = new Arrielist & lt; string & gt; (); Try {url = url = new URL ("

python - Truncatewords by percentage of total words count -

How can the text area be reduced according to the words based on the counting of words? For example {{post.content | truncatewords_by_percents: "20%"}} Custom template tag built-in template tags only characters or See the documentation that allows transcription by words.

html - Opening Apple Help Viewer from web page -

With a link on the webpage, is there a way to open the apple help and then can show a special page? The related application is loaded on the computer (and therefore its help book), is it possible? Something like this: & lt; a href = "open-page.html-in-apple-help" & gt; & Lt; / A & gt; TIA No, I believe it is possible but You can see the help book on an internet browser if you open "redirect.html" inside the help pane .

ios - For loop when I don't know what objects are in an array? -

itemprop = "text"> I have an array with some objects Want loop I thought I would use id for typing. NSArray * myArray = [[NSArray alloc] initWithObjects: @ "one string", @ "other", @ 3, zero]; (Id = some in myArray) {....} What is wrong with for loop? Why can not I use the id and what will be the proper "type" to use it. I am a beggar in iOS Dev. id is an intrinsic indication, so you only need all Is: Some code in myArray (for example btw, uses continuous object syntax, such code is more legible: @ [@ "one string", @ "other", @ 3]

c - static declaration follows non-static declaration error message -

The compiler is giving me an error message on line 20 : "Stable announcement" Time "definition of non-static declaration" and then another line 12: "previous announcement" "time difference" was here " / Code> I know that my function is to do something with 'time difference' here my code is: #include ; Composition time {int hours; int minute; int seconds;}; main () {int time difference (stroke) RFFF;); Composition time: initial, late, difference; printf ("hh: mm: ss" at start time); scan f ("% d:% d:% d", and initial, start, and initial minutes, And initial. Seconds); printf ("hh: mm: ss"); scanf ("% d:% d:% d", and late horror, late minutes, and late seconds.); Int Time Depression (Structure Time FIF) {If (late seconds; Lt. Beginner.second) late seconds seconds = 60; late.minutes - = 1; if (late.meats & lt; early.minutes) late. Minutes + = 60; Late hor - = 1; If (late a

sql - Why does mysql show 2 different results on 2 different servers for the same query -

Image
I have a single MySQL SQL statement that is running on 2 separate databases (My local machine and my production machine) is. One moves fast on my local machine, while one production is slow. Here are the exponent results on each. Local Machine Production Machine If I did not want to, I could not post the exact query The only difference is that I can tell between 2 that my local machine 5.6 version is running while the production server is running 5.5 . Also, the data on my server is 3 days old, which is not a record. Specifically, I understand where one type "referee" reads from and reads "ALL" and there is a great difference in reading 28k rows. 5.5 and earlier, a derived table never was not indexed, the only way to derive the table will be by a full scan. (This all shows you 5.5 in the display output from the server.) With MySQL 5.6.3, one of the derivative tables in MySQL For Index, which can improve performance (Note the name of the in

android - Asynctask cancelled when interstitial ad shown -

My app has an asynchronous process that runs a process in the background to load a website and information about it again During this time I show a loading dialog. The process is underway, I show an interstitial (full screen) ad. Edit: When this ad is shown (not necessarily when pressed X), app cancels my acnectscak I do not want to cancel advertising to cancel my accessory. Private Class Loan Operation Async Tasks and LTs; Object, void, string & gt; {Progressive dialogue dialog; @ Override protected string doInBackground (object ... parameter) {try {log d. (TAG, "parsing website ..."); ArrayList & LT; String & gt; Link = new arreelist & lt; String & gt; (); Link = bridge link (string) param [1]); Configuration config = new configuration (); Config.setLocalStoragePath (string) parameter [0]); // Desktop Versions only config.setBrowserUserAgent ("Mozilla / 5.0 (Windows NT 6.1; WOW64) Apple WebKat / 537.4 (Chrome / 22.0.122 9.94 Safari

file io - Replacing a line of text in Java -

I have an ATM and I need to open a text file in which the account information is in the following format: < Ul Account Name Last Name First Name Balance (None will be empty but this site does not let me) The file name is Accountnfomation.txt. Actually, I have to change / change the balance value based on the user's wish. I know how to know the account number in the text file, but I do not know how to leave the next two lines and edit it. Here are some code I have written: try {scanner account = new scanner (new file ("Account Information.")); FileOutputStream Account2 = New FileOutputStream ("AccountInformation.txt", true); While (account. HasNextLine ()) {String NextToken = Account. If (nextToken.equalsIgnoreCase (MyLoginID)) {// search for a specific match // will be here to edit the rest of the balance}}} It has yet to me It finds the account number, but I do not know what to do next. In your problem, it would be best to get a l

iphone - iOS simulator OpenGL depth buffer issue -

When running my OpenGL 1 app on the simulator, very close polygons flicker / merge in each other (z is not the value Perfect for these pixels) My machine is an old mac mini. It looks like this happens in the simulator and everything is fine on the actual device. Anybody now why Does the simulator use a depth buffer with less depth than the iPhone? Accurate Accurate Errors' will see different models for model from PowerVR model because it is too much Internal working values ​​are necessarily accurate, on which the final values ​​are deposited; I think the simulator is working correctly within the requirements placed on it ??? A buffer of the specified depth, with the value is essential as the calculation ??? But different round errors have to be done. In general the simulator is not an emulator.

javascript - How do I get the value of a user-selected radio button in the controller? -

I'm writing a simple survey app in AngularJs, and want to capture the result of the radio button selection, one inside the controller Array I have an array of question objects, one field of each body and one choice field in which there are string values ​​for the option. I am trying to force the value of the radio button selected with the 'ng-model' attribute. I can not get this value from within the controller. Here is the index.html file: & lt ;; Doctype html & gt; & Lt; html ng-app = "estimatorApp" & gt; & Lt; Top & gt; & Lt; Script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "js / controllers.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; body ng-controller = "QuestionListCtrl" & gt; {{FAQ}} & lt; Br / & gt; & Lt; Ul & gt; & Lt; Li ng-repeat =

c# - Update treeview by sending multiple objects to invoke delegate method -

I am trying to update a previewview but I got an error that I can not convert ob to string . I am creating a type of scanner that uses multiple threads, once each item is checked I want to invite a representative to update the treeview with new information . I am able to easily update the information if I invoke the method with only one object, but as soon as I try with a string, I get an error. Here's how I am doing this: Public Representative Zero String Delegate (string input, string address); Public Zero UpdateScan (String Input, String IP) {Treeode TreeNode = New Triode (Input); If (OutputTree.Nodes.ContainsKey (input)) // Add our parent node output. Node.ed (treeoid); // Add Our Baby Node Tree Node Nodes.ed (ip); } Else {// Add node tree only node. Node.ed (ip); }} Public Zero ScanItem () {// Scan Code // Results Code String Output = "The Outcome of Results"; // Invite our callback object [] obj = new object [1]; Obj [0] = outPut; OutputTree.BeginInvoke (

interrupt - Print Screen button seems to bug check Windows when debug boot option is enabled -

I am developing some drivers on my Windows machine and I was wondering why pressing the PrtSc (print screen) button My machine seems to hang on to take a screen capture, some platforms suggest that this happens when the DEBUG boot option is set in Windows and it is a panic / bug-check in the Windows kernel . Is this a Windows bug? Or is it really useful in some way, such as in Linux where the PrattasC / SSL is actually a kernel interrupt key? UPDATE # 1: I am using Windows 7 X64 Professional Build 7601. You can disable the SYSRQ key by editing the registry. In the HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Services \ i8042prt \ Parameter Registry Key, create a value named BreakOnSysRq and set it to DWORD 0x0. Then, restart the computer After restarting the computer, you can press the SYSRQ key on the keyboard of the target computer and it will not break in the kernel debugger.

c - Strange behaviour of gcc in Debian -

char * stft (const char * fmt, ...) {va_list आइटम; चार * बाहर; इंट जादू = 0; // & lt; - यहां जादू? va_start (आइटम, एफएमटी); Vsprintf (बाहर, एफएमटी, आइटम); va_END (आइटम); वापसी; } जैसे प्रयोग करें: char * str = stft ("% s-% s% s", a, b, c); यह समाधान काम कर रहा है? अगर अप्रयुक्त "जादू" चर को हटा दें - मेरे पास रिटर्न स्ट्रिंग के बाद सेगमेंटेशन फॉल्ट है I क्या गलत है? $ gcc --version जीसीसी (डेबियन 4.4.5-8) 4.4.5 $ uname- एक लिनक्स गहरे स्टेशन (निचोड़) 2.6.32- 5-686 # 1 एसएमपी शुक्र 10 मई 08:33:48 यूटीसी 2013 i686 जीएनयू / लिनक्स आप एक अपरिहार्य संकेतक बाहर लिखने की कोशिश कर रहे हैं यही कारण है कि आप दुर्घटना यह बुरी तरह से अपरिभाषित व्यवहार है जादू संयोग है; यह व्यवहार को बेहतर परिभाषित नहीं करता है। इसका उपयोग करना सबसे अच्छा है: char * out = malloc (256); ... vsnprintf (बाहर, 256, एफएमटी, आइटम); ... बाहर निकलो; या ऐसा कुछ। आप इसे सुधार सकते हैं। उदाहरण के लिए: char * stft (const char * fmt, ...) {va_list आइटम; va_start (आइट

c - Strings, char array sizes, and calloc --- what causes this segmentation fault? -

To keep this question low, briefly summarize (no check for tap, etc.) are the following. program1.c main () {char * aString = calloc (10, size (four)); Printf ("Enter String" :); Scanf ("% s", aString); Printf ("You typed in% s \ n", aString); } program2.c main () {char aString [10]; Printf ("Enter String" :); Scanf ("% s", aString); Printf ("You typed in% s \ n", aString); } program1.c I think enter the letters forever. I have entered 2000+ characters and despite this fact the program will execute without error, it is "undefined behavior". program2.c will enter more than 10 characters, but if coming closer to 30 or 40 characters, then this will give me a split mistake. Now my limited understanding of class and other tutorials tells me that these two programs are doing the same thing under the hood --- the array of characters in length of 10 pieces towards a piece of memory Have to be B

python - Take a segment from a list -

In addition to using a loop, there is a way to take a block from a list for example For, if I had the list: l = [1,2,3,4,5,6,7,8,9,0] And I wanted to take a break from the third item to the 5th, ending with the i ... Segment = [4,5,6]] I know that it can be done with a loop, but I was wondering if there was a more "python" arousal? l [3: 6] is what you are looking for. This list uses skiing 3 The start index is 6 the end index is we end index as 6 (Even if index 6 is 6) because the piece signaling requires the index of the element after the last element, so that we should be part of the segment. Demo: & gt; & Gt; & Gt; L = [1,2,3,4,5,6,7,8,9,0] & gt; & Gt; & Gt; L [3: 6] [4, 5, 6] This answer explains how python functions to work in the list - < / Html>

scala - SLICK: How to use query result in another query? -

I want to do something like the following: I want to return a list by users first Sorted, the user who is "the following", second by some extra point score. I wrote what I wrote under the following code, but does not work because the funder is type of salt type removed and therefore it is never found in the list. // The following are just for the query for the fund, we are following following folders: list [user] = {{funder <- all_funders f & lt} ; - If f.followeeId === All the current user followers on the funder receive, then f.followerId === id // complies. Id} generated funder) .list val all_funders_sorted = {funder & lt; - all_funders Sort the _funder = following_funders funder} yield (funder, following_funder) / funders whether they are following the funder and then only funders (i.e. remove boolean) all_funders_sorted.sortBy (_._ 2.desc) .sortBy (_._ 1.score.desc) .map (x = & gt; x._1) Appreciate all help! You have to work with ID (prima

php - Using a loop to append query variables to a message -

मेरे पास एक सरणी है, जिसका उपयोग मैं अपने संबंधित CourseID को एक MySQL। लूप को प्रत्येक CourseID को उस ईमेल से संबद्ध होना चाहिए और उसे एक संदेश पर जोड़ना चाहिए और उसके बाद इसे भेजना होगा। हालांकि, ईमेल पहले $ पंक्ति ['CourseID'] भेजता है और यह बाकी संदेश या किसी भी अन्य $ पंक्ति ['CourseID'] यह पाया गया था। यह मेरा कोड है, क्या कोई मुझे बता सकता है कि मुझे क्या याद आ रहा है? & lt;? Php $ courseList = array (); $ StudentList = सरणी (); $ विषय = "कोर्स सर्वे"; $ चोर = mysqli_connect ( "", "", "", ""); // चेक कनेक्शन अगर (mysqli_connect_errno ()) {गूंज "MySQL से कनेक्ट करने में विफल:"। mysqli_connect_error (); } // पाठ्यक्रम सूची सरणी foreach ($ _POST ['कतार'] $ cID के रूप में आबाद करें) {array_push ($ courseList, $ cID); } // प्रत्येक पाठ्यक्रम में सभी छात्र ईमेल ढूंढें और उन्हें ($ i = 0; $ i & lt; = गणना ($ पाठ्यक्रम सूची); $ i ++) {$ theCourse = $ पाठ्यक्रम सूची [$ i] के ल

xaml - Silverlight: how to set a button's width to the maximum available space? -

I am relatively inexperienced with Silverlight UI development, please forgive me if there is a clear answer to this question, but I am unable Here to find one or "outside" I just want to set the width of a button to the maximum available space. This is "essentially" the width of its parents, although margins and so on (on both) will be playable. I have a list of dynamically generated buttons inside the items control, which is arranged systematically, and wants all those who use the full width available in the parents. I have seen examples that bind the parents' breadth, but I was hoping for another brief solution, because the width of the parents is not ideal due to scroll bars, margins and other elements. Any advice regarding this will be beneficial and commendable. EDIT: In response to the request to post the XAML, I did it. XAML I initially (with a hard-coded width): & lt; ScrollViewer VerticalScrollBarVisibility = "Auto" Horizo

wix - How do I set the version visible in 'Programs and Features'? -

Image
I have to set the version that appears in the 'Program and Feature' dialog in Windows I know that this version is Head . Small . Build . Modification For example, wxPython shows '2.8.12.1-Unicode' in its 'Versions' column), but when I try to set the version attribute in the product element, I get the following error Is: product. Wxs (50,0): error CNDL0108: value of the product / @ version attribute, '2.3.4.0-55628f206205451282ae6060d9305254bd79cb87' is not a valid version. Legal version values ​​should look like 'x.x.x.x' where x is an integer from 0 to 65534. There should be a different asset, but I can not find it in Wix documentation. How do I set this version visible in Wix for a strange string? Edit: View the image below to see some different version plans that are available for Windows Installer Standards (wxPython, Windows Driver Package *, Windows Mobile 5.0 SDK) Do not follow. Windows Installer does not suppo

apache pig - Embed shell in PIG script -

I'm new to match pig and shell patterns. I have a file and the third column is the content like "M2534896R402Qnew" I need to draw the number between 'M' and 'R'. In Pig script, raw = load 'record.txt' as PigStorage ('\ t') (Charrey, Charra, Charra, Charra); Data = raw through 'command command'; How can I change the third column so that the 3 columns of all the data are removed from the crude? Thank you. There is no need to use streaming for it. Use the underlying UDF REGEX_EXTRACT pig already can handle it: $ cat record.txt f1 f2 M2534896R402Qnew f4 f1 f2 M2534896R987Qxyz f4 f1 F2 M2534897R421Qabc f4f 1 F2 M47Rzxcvzxcv f4 f1 f2 12345m000r f4f1f2m 23551finnf4f1f2m298793r133r23quinf4 $ cat test pog raw = load 'record.text' used in pygdottage ('tttta') (F1: Chararay, F2: Chararay, F3: Chararai, F4: Chararai); Ext = FOREACH Raw Origin REGEX_EXTRACT (f3, 'M (\\ d +) R', 1); Dump Extras; $ P

javascript - Universal analytics added with Google Tag Manager shows real-time events but not historical -

I am using Google Tag Manager to add Universal Analytics to a page and an event with Javascript API I am triggering. I am being sent to GA on the GA debugger and "Real-Time -> Events" page and it has been live for about 2 months on the "Behavior -> Events" page (no filter or filter) sections) , So I would have thought that raw data will be processed well and actually processed so far. Is there any such thing that why is this happening? Event Overview - I resolved by changing the default tracking period from the default in the calendar (top right) on the page. Page

android - Parsing multiple json object value leading in last value of that object. -

I am working on an app, where I am getting a response from a remote server. I am also able to parse and place marker on the basis of that reaction. But I have failed to parse pH data from feedback and passing it in any other activity. This is sending the phone number of the last json object data in the setOnInfoWindowClickListener event. I know some minor modifications I have made to. Please give me a suggestion in this. This Jason reaction is getting me. "Abcdef", point: "77.588018,12.959282"}, {{id: 965, distance: "1.47", pH: "33441111", name: "XYZ", { ID: 965, Distance: "1.47", Ph: "33,441,111", Name: "XYZ", RAS: "abcdef", point: "77.588018,12.959282"},. . ] I tried this type of parse AsyncTask the private class HttpGetTask & lt extends zero, zero, string & gt; {// progress dialog show // URL @ Override protected string DoInBackground (zero ... parameter) {

ios ui automation - XCode - Data-Driven testing? -

I'm new to XCode Instruments Automation; I'm very curious about one thing & amp; I did not get any online help on this how to do data-driven automation? That is, I have a script to enter an application with a first name, last name and address details in a user. Like I need to register 500 users. I have my data in the CSV file. Is there a way to get data from CSV / XML / JSON / any other perspective that you suggest dealing with the scenario? Is "Registering 500 Users at Once" is actually a test case or test setup? If this is a test case, then it seems that you want to test your backend. This is not a good idea by using this UI automation, because it is very slow (which is hard to stress your backend) and is very complicated if you (tension) want to test your backend, test JMeter from server As with the device, if it is the installation of the test then you can call any shell command from your automation script. For example, you can write a script or progr

java - Error while loading image -

यह मेरा कोड है: आयात करें java.awt.image.BufferedImage; आयात करें java.io.File; आयात java.io.IOException; आयात javax.imageio। *; आयात javax.swing.ImageIcon; आयात javax.swing.JLabel; आयात मॉडल। मैप; सार्वजनिक वर्ग MyView {निजी BufferedImage img = null; निजी स्थिर MyPanel पैनल; // init छवि {img = imageIO.read (नई फ़ाइल ("/ src / minepic / start.png") का प्रयास करें); } पकड़ (IOException ई) {System.out.println (e.getMessage ()); }} मुझे src निर्देशिका से पीएनजी छवि लोड करना है, लेकिन मुझे नहीं पता कि यह क्यों काम नहीं करता है, कोई भी मेरी मदद कर सकता है? त्रुटि कमांड में "पकड़ने की कोशिश करो" और नेटबैंस का कहना है कि "अपरिवर्तित अपवाद IOexception; पकड़े जाने या घोषित करने के लिए घोषित किया जाना चाहिए" एक और भी, मैंने भी पहले एक बफर्ड इमेज के रूप में आईएमजी को घोषित किया है, लेकिन कमांड में "पकड़ने की कोशिश" आईएमजी की तरह ही घोषित नहीं किया गया क्योंकि NetBeans में यह हरे, फिर भी काला नहीं बनता है। कोड के साथ कुछ समस्याएं हैं: < /

regex - XML snippet with substitution crashing sublime text 3 -

I am trying to write a sublime XML snippet but I have two problems. First of all, not appearing for full xml files, so the only way to activate the snippet is with cmd-shift-p they work in other file types So it is not sure why this is. More importantly, I am using regex in the snippet to force the input text to uppercase, so that I can work in the following scenario: < Code> & lt; Content & gt; & Lt ;! [CDATA [Low: $ 1 and Upper: $ {1 / (. *) / \ U 1}}] & gt; & Lt; / Content & gt; But if I try to do it with uppercase only: & lt; Content & gt; & Lt ;! [CDATA [Only upper: $ {1 / (* *) / \ U \ 1 /}]] & gt; & Lt; / Content & gt; ST3 accidents. I think you need the text to replace and why it crashes, but there is another way to do this? > Besides, I am thinking that this is a bug and should throw an error instead of closing the white ... (I have seen a bug report somewhere for this). In the default settin

cygwin - Undefined references: cygwin_posix_to_win32_path_list and cygwin_posix_to_win32_path_list_buf_size -

I'm trying to compile a code in Sigwin and I'm getting an undefined reference error for "cygwin_posix_to_win32_path_list" and "cygwin_posix_to_win32_path_list_buf_size". Is there a missing library that I should add? I'm sure the win32 api packages are installed. Thank you for your help. tclEnv.o: tclEnv.c:. Text + 0xf6): Undefined reference `Cygwin_posix_to_win32_path_list_to_win32_path_list_boot_size 'tclEnv.o: tclEnv.co: text + 0xf6): The transfer is truncated to fit: R_X86_64_PC32 Unlike undefined Icons,` cygwin_posix_to_win32_path_list_buf_size' tclEnv.o: tclEnv.c: . Text + 0x118): 'Cygwin_posix_to_win32_path_list' tclEnv.o: tclEnv.co: text + 0x118): The transfer is truncated to fit: `cygwin_posix_to_win32_path_list '/ usr / bin / ld: tclEnv.o against the R_X86_64_PC32 undefined symbol : 'Bad reloc address 0x0' .pdata 'collection in section 2: Error: ld 1 has made exit status Makefile: 550:' libtcl8.5.dll