Posts

android - Google Map Inside viewpager and a vertical scroll view not getting displayed in some devices -

Image
i have viewpager 5 fragments , 1 among them search fragment google map weired issue in device map displayed no problem in device(micromax aq 5000 kitkat) it's not getting displayed fragment <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/mainlayerr" android:orientation="vertical" > <scrollview android:layout_height="wrap_content" android:layout_width="match_parent" > <linearlayout android:id="@+id/ll_menulayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > <autocompletetextview android:id="@+id/txtsearchh" android:layout_height...

c++ - Read an ifstream word for word into char* -

just trying programming test fun. stipulates should read each word of file, 1 one. it hints might want use ifstream, won't let me use std::string , looks have use char* in c read line line & use strok() have multiple delimiters (white-space, quotes, brackets, etc). what c++ way - words 1 one - without using std::string ? first must make sure have memory allocated string (this part handled automatically std::string ). use normal input operator >> , separate on whitespace. don't forget free memory allocate (also handled automatically std::string ). lesson learned: use char pointers exercises these, otherwise use std::string .

RYTHM not working deployed on GAE server, works on local GAE server. (1) -

i configured rythm to: rythmengine engine = null; map<string, object> conf = new hashmap<string, object>(); conf.put("engine.file_write", false); engine = new rythmengine(conf); string body = engine.render("hello @who!", "kitty"); resp.getwriter().println("{ \"name\": \""+body+"\" }"); works great on local gae server, deploy on google server, file write error. assume configuration "engine.file_write" not changed false or changed default. why happening? there solution?

css - Nesting flex box -

i find flex box useful, , since discovered tempted use everywhere. question is practice nest flex-boxes? having lot of them , nested ones has impact on performance? in short yes see dip in performance around 10x still talking milliseconds here though. so wary of using lot of them because 1 change render speed 10ms 100ms lot of them in essence highly increase render time. plus there comparability browser's , inability play absolute positioning , block element's. for recommend using display:table , children display:table-cell & display:table-row . here example of use: .align-table { display: table; width: 100%; table-layout: fixed; } .t-align { display: table-cell; vertical-align: top; width: 100%; }

ajax - Why is php://input rejecting my large file uploads? -

i've been turing internet upside down in order chunked large file uploads work symfony2 application. in order simplify things i've made test program seperate rest of application. thing trying test if php://input can accept large file upload method described in article: http://www.webiny.com/blog/2012/05/07/webiny-file-upload-with-html5-and-ajax-using-php-streams/ the way understand if user uploads large video file 2gb+ take 2gb+ ram on server , method in article cuts down 4096 bit per concurrent uploader. (i unsure how test ram usage on localhost server) however when try upload large files browser waits second , 2 , posts 1kb videofile. i have set high values php.ini settings. here relevant part of php code: public function lastoppaction(request $request) { $videofilename = (string)$request->request->get("filnavn"); $inputhandler = fopen("php://input", "rb"); $filehandler = fopen("videoer\\myfile.tmp...

javascript - Not able to insert a map -

i find code allows city information. how can implement simple map https://developers.google.com/maps/documentation/javascript/examples/map-simple ? see map on app. function same write on code. <!doctype html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>reverse geocoding</title> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> var geocoder; if (navigator.geolocation) { navigator.geolocation.getcurrentposition(successfunction, errorfunction); } function successfunction(position) { var lat = position.coords.latitude; var lng = position.coords.longitude; codelatlng(lat, lng) } function errorfunction(){ alert("geocoder fa...

android - TextView ignoring EditText style on device -

i have textview apply edittext style it, follows: <textview android:id="@+id/textview1" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="click here" android:theme="@android:style/widget.edittext" android:singleline="true" android:layout_margintop="16dp" android:onclick="opendialog" android:clickable="true" android:textappearance="?android:attr/textappearancemedium" /> in design mode looks fine (api 22), on device (api16), textview doesn't have style of edittext. what missing? edit using api 19 or api 16 in design mode, textview style not same edittext. it's api-related. do need appcompat jar?