Posts

c++ - Why doesn't QString overload + operator? -

i've stumbled upon strange behavior when using operator+ on qstring s until found out qstring doesn't overload operator+ (in contrary std::string ). reasons there not (especially since overloaded quite bunch of other operators)? edit: sorry, have looked wrong section in docs. can please close question? it provides + operator, question have @ right hand side?

java - Flipping to next screen shows black color in background -

in vertical flip effect,when flip next screen background shows black color happens in gt_n7100 mobile...how fix problem???can please me... <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/white" android:orientation="vertical" > <imageview android:id="@+id/bar" android:layout_width="480dp" android:layout_height="1dp" android:layout_margintop="36dp" android:scaletype="fitxy" android:src="@drawable/line" /> <textview android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/bar" android:layout_margin="5dp" android:textappearance="@android:style/textappearance....

android - Samsung Galaxy Devices can't use geolocation.getCurrentPosition -

ok, i've been looking adequate response issue quite time. have web application uses navigator.geolocation.getcurrentposition user's position. the native browser on samsung galaxy devices have problems getcurrentposition code. have tried kinds of variations of code callbacks , timeouts, same issue. plenty of people have documented issue, , indicate restarting device work (sometimes restarting work, not - , alert telling users restart device seems beyond rediculous). has figured out surefire way use getcurrentposition work on samsung galaxy device? here's i'm working with... <script> $(document).ready(function(){ if( navigator.geolocation ) { navigator.geolocation.getcurrentposition( success, fail ); } else { alert("sorry, browser not support geolocation services."); } function success(position) { window.location = "mobile_set_coordinates.php?user_lat=" + position.coords.latitude + "&user_lon=" + po...

distribution - Jquery plugin to calculate correlation coefficient -

is there jquery plugin calculate correlation coefficient, standard deviation , covariance. please refer me link if need simple stuff covariance, correl, ..., jsanalysis should trick. more advanced features, jstat contains need.

dependencies - Browser or server version of module -

using requirejs , javascript modules, i'd share code between server , browser, there 4 situations. 1/ module server define([], function() { if(typeof window != 'undefined') return null; // server //module code }) 2/ module browser define([], function() { if(typeof window == 'undefined') return null; // browser //module code }) 3/ module shared define([], function() { //module code }) 4/ module different code server/browser define(['require'], function(require) { if(typeof window == 'undefined') // server version { return require('nodejs module'); } // browser version }) what want solve better way including module code browser, have past whole code of browser version. nodejs require sync, works. in browser have use like define(['require'], function(require) { if(typeof window == 'undefined') // server version { return require('nodejs_module'); } ...

css - Padding on input element not working as expected on mobile safari (iphone) -

why doesn't padding work in iphone safari? padding-right exact simple html: <div class="content"> <input class="inputsblock"/> </div> and css: .content{ padding:18px; } .inputsblock{ width:100%; border:2px solid #000; } it works in anothers browsers. solution? image: link actually, remove padding .inputsblock{ padding: 0; } http://jsfiddle.net/lkhtm/9 tested on simulator only

tclsh - Tcl version change issue from 8.4 to 8.5.12 -

i have problem changing tcl version 8.4 8.5.12 on rhel machine. our product uses tcldevkit components tcldom, tclxml, etc. using incr tcl (itcl). trying create pkgindex.tcl file in itcl in order find itcl when package required follown: package ifneeded itcl 3.4 [list load [file join $dir "libitcl-o.a"] itcl ] but when use package require itcl getting report: couldn't load file "/somepath/itcl/lib/libitcl-o.a": /somepath/lib/libitcl-o.a: invalid elf header it seems can't load files .a extention, same done previous version of tcl (8.4) , works fine. googled lot, read lot of documentation, doesn't go further. please help. thanks in advance libraries come in 2 general sorts, static libraries , shared libraries. on linux, static libraries have extension .a default, , shared libraries have extension .so (plus optionally numbers indicate version). only shared libraries work tcl's load command , have designed work way (with app...