Posts

xml - Android Multiple Screen Support not working -

I created my application only in one layout but now I need to support high resolution screens. I have JSON to get images from ListView . Images have shown good size on the 4-inch device, but the tablet images are on: Cropped up and down, so I added This code, which appears then from list_v.xml to droble-xhdi and droble-xxhd copy was done. And then i android: layout_width = "fill_parent" android: layout_height = "174dp" to Android : Layout_width = "fill_parent" Android: layout_height = "350dp" But still the XML file is running in my application layout folder. How do I set it to run XML file in the draweble-xxhdpi folder? You can set your XML layout file to drawable Folders !! Instead of just put it in: Layout - Small layout - Big layout - xlarge ...

c++ - How to return a dynamic object from operator function? -

I am writing an operator function - where my class object is a dynamic array of integers, operator takes Lieutenant and RAS object and Moves the object which is the set of elements in the LAS, but not the rhs. Although I have written a function but I am unable to return the set because right after the district object is called. IntegerSet & amp; IntegerSet :: operator - (IntegerSet & amp; rhs) const {IntegerSet Temp); // Local object elements are designed to store the same size as lhs int k = 0; Int lhssize = element (); // no set in the elements of rhssize = rhs.ElementSize (); For (int i = 0; i & lt; lhssize; i ++) {for (int j = 0; j & lt; rhssize; j ++) {if (rhs.ptr [j]! = Ptr [i ]) {k ++; }} If (k == rhssize) {temp = temp + ptr [i]; } K = 0; } Return temporary; } And here is the creator if you can not understand the object IntegerSet :: IntegerSet (const int and size) // works correctly {Capacity = size; Ptr = new int [capability] (); } IntegerSet :: ...

regex - Remove everything after last folder htaccess -

मेरे पास निम्न htaccess कोड है: पुनर्लेखनकोंड% {REQUEST_FILENAME}! -f पुनर्लेखक % {REQUEST_FILENAME}! -d रिवेराइटियम ^ ([^ /।] +) / ([^ / \।] +) Index.php? कार्य = स्थान और राज्य = $ 1 और शहर = $ 2 [एल] यह यूआरएल की तरह है: website.com/texas/houston website.com/new-york/new-york ... अगर मैं यूआरएल के वेबसाइट www.texas/houston/bfdsjfds पर जाता हूं, तो मुझे यूआरएल के लिए वेबसाइट www.doxas/houston जैसे सामग्री मिलती है। ऊपर दिए गए उदाहरण में मैं "/ bfdsjfds" कैसे निकाल सकता हूं? या उस पृष्ठ को 404 पर रीडायरेक्ट करें। आप एंड एंकर $ केवल / state / city : रीवाइट कंडोम% {REQUEST_FILENAME} से मेल खाएगा! -f पुनर्लेखन कन्वर्ट% {REQUEST_FILENAME}! -d रीव्रेट नियम ^ ([^ /।] + ) / ([^ /।] +) /? $ index.php? कार्य = स्थान और राज्य = $ 1 और शहर = $ 2 [एल] यह स्वचालित रूप से वेबसाइट / टेक्सास / उज्ज्वल / बीएफडीजफ़ोड यूआरएल के प्रकार।

apache - How to output single character text with php? -

I am implementing an API for some service that has only one content in '0' or '1' Letter should be back in the letters header ('content-type: text / plain'); echo "1"; and header ('content-type: text / plain'); Print "1"; I also tried to leave the header line, but I always get a new line character at the end of the output. This is the output of PHP-V.PAP 5.3.28 (CLI) (Created: 15 December 2013 17:43:05) Copyright (C) 1997-2013 PHP Group Zend Engine v2.3.0, Copyright (C) 1998-2013 Zend Technologies httpd -v Server version has Outlook: Apache / 2.2.23 (UNIX) Server created: November 25, 2012 15:00:50 This code will only help in one file :) & lt ;? Php echo 1;

javascript - Align target to middle when using -

मैं कब उपयोग कर रहा हूं & lt; a href = "# id" & gt; । । । & LT; डीएल & gt; & LT; डीटी & gt; & lt; / डीटी & gt; & LT; dd & gt; & lt; / dd & gt; & lt; dd id = "id" & gt; & lt; / dd & gt; & LT; dd & gt; & lt; / dd & gt; & LT; डीएल & gt; पृष्ठ को स्क्रॉल करने के लिए आईडी को लक्षित करने के तरीके के रूप में पृष्ठ के शीर्ष में लक्ष्य आईडी दिखाता है क्या यह संभव है कि लक्ष्य पृष्ठ के मध्य में दिखाया जाएगा? पी.एस. यदि संभव हो तो सीएसएस का इस्तेमाल करके मैं इसे हासिल करना चाहूंगा। > $ ('। clickme') के रूप में इस प्रकार प्राप्त किया जा सकता है jQuery "(function () {var docHeight = $ (window)। हल्का () / 2; अलर्ट (डॉकहाइट) $ ('html, body')। ({scrollTop: ($ ('# target')। ऑफसेट () .top - docHeight) +11 / 11 # लक्ष्य / 2 की ऊंचाई या सटीकता के लिए पहली पंक्ति / 2 की ऊंचाई}, 1000);}); उम्मीद है कि यह मदद करता है

java - Custom map-reduce input formatter for Cassandra using native protocol -

I am using Apache Cassandra (1.2) and Apache Maps- to reduce some data, minimize I currently I use org.apache.cassandra.hadoop.cql3 to CqlPagingInputFormat . This provider uses Thief to draw data It seems that the thrift is quite slow (300M records, 3 node clusters take 8 hours to read), and since the original binary protocol is present, then I wonder Has anyone used it? Any other optimization and configuration is interested in tweaks - this is a different issue. My questions are What is the implementation of a map - reduce the input format which directly use the Cassandra Basic Protocol? If not, to use the datestacks driver, what will be the first steps to writing your own? Organization> apache.cassandra.hadoop.cql3.CqlInputFormat org.apache.cassandra.hadoop.cql3.CqlRecordReader org.apache.cassandra.hadoop.cql3.CqlConfigHelper Example of / Word code code in hasoop_cql3_word_count These classes are updated to use. It has been started

java - Split function issue? -

रिलेप्लेयर यूजर 1 कोड कंसोल पर उपरोक्त इनपुट के साथ ठीक काम करता है यह मेरे लिए खिलाड़ी 'user1' सफलतापूर्वक निकालता है हालांकि, यदि प्रयोक्ता कोई उपयोगकर्ता नाम का उल्लेख नहीं करता है, तो यह ऐरे-सूची में उपस्थित सभी खिलाड़ियों को हटा देने का संकेत देता है। रिलेप्लेयर (प्रविष्ट द्वारा दर्ज किया गया), कोड के नीचे विफल रहता है क्योंकि str [1] यहाँ पर कुछ भी नहीं है लेकिन मैं चाहता हूं कि स्ट्र [1] जैसे कि यह मान रिक्त है, यह मुझे सभी खिलाड़ियों को निकालने में मदद करता है। param = "0"; System.out.print ( "& gt;"); // type_op = in.next (); स्ट्रिंग str = in.nextLine (); स्ट्रिंग [] str1 = str.split (""); Type_op = str1 [0]; Param = str1 [1]; स्ट्रिंग [] param_split = param.split (","); if (type_op.equals ("removeplayer") & amp; amp; amp; param.Sequals (नल)) removeAllPlayers (); else if (type_op.equals ("removeplayer")) removeplayer (); मैंने अगले () के साथ ही प्रयोग करने की कोशिश की है, लेकिन उस स्...