Posts

Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 27830 (ple.myfragexample) -- only on Android 4.1.2 -

i using fragmentactivity in application several fragments. each of these fragments hold image , text animation. when user swipes on screen, fragment changes. now have been working on since 10 days , have tested fragmentactivity on different devices different android versions. reason stuck on last 10 days getting crash fatal signal 11 (sigsegv) @ 0x00000000 (code=1), thread 27830 (ple.myfragexample) now, error occurs when test fragmentactivity on android 4.1.2 particularly. run fine on android 2.3.3, 4.0.3, 4.0.4, 4.2 , 2.2. error log below: 08-07 14:34:13.843: d/dalvikvm(27830): gc_for_alloc freed 3845k, 14% free 35407k/40903k, paused 4ms, total 14ms 08-07 14:34:13.848: i/dalvikvm-heap(27830): grow heap (frag case) 39.590mb 3932176-byte allocation 08-07 14:34:13.878: d/dalvikvm(27830): gc_concurrent freed 3k, 5% free 39244k/40903k, paused 11ms+4ms, total 30ms 08-07 14:34:13.928: d/dalvikvm(27830): gc_for_alloc freed 0k, 5% free 39244k/40903k, paused 16ms, total 16ms 08-07 1...

overlay - Creating thumbnails of Overlayed images in jquery -

i tying address problem facing in creating thumbnails of overlayed images. the problem have database of samller images , static image. user select few smaller images needs overlayed on static image. user selects position on static image smaller images needs overlayed. of not creating seperate image of newly created overlayed image, storing images , co-ordinate information. when user logs back, want show thumbnail view of overlayed image[though dont store overlayed image seperately, have selected image, co-ordinates overlaying images, etc stored in db]. there jquery plugin avaialable or other pointer achieve same? rgds, sandep if want produce stored, combined image of static 1 , smaller ones; have process in back-end. if using php, gd2 library available. if audience html5 compatible, can use html5 canvas overlay images, output raw-pixel-data js image() object, , display on page.

sql server - SQL - Convert results into comma separated string -

using article on stackoverflow ( how split date ranges based on months in sql server 2005 ) have run select statement splits date range month , returns 2 columns ( datefrom, dateto ) in sql. declare @sdate date = '2012/08/01' declare @edate date = '2013/09/01' select dateadd(month, n.number, @sdate) datefrom, dateadd(day, -1, dateadd(month, n.number, dateadd(year,-1,@edate))) dateto master.dbo.spt_values n n.number < datediff(month, @sdate, @edate) , n.type = 'p' i need add each of returned rows string separating columns | ( dateto|datefrom ) , each row , . for example if run code above result (just example im using first 4 rows need of them in 1 string): r | date | date 1 | 2012-08-01 | 2012-08-31 2 | 2012-09-01 | 2012-09-30 3 | 2012-10-01 | 2012-10-30 4 | 2012-11-01 | 2012-11-30 code: declare @stralldates varchar(max) /* set @stralldates = insertcode */ print @stralldates what need print return: 2012-08-01|20...

codeigniter - PHP namespace error -

Image
i have problem php api library supposed work. using codeigniter framework. i trying use phpevecentral library eve_market_model. can see library composed of several files using namespaces. use library, have include main file phpevecentral. here, can find screenshot of arborescence folders. namespace phpevecentral; class phpevecentral { ... public function marketstat($typeid = array()) { return new \phpevecentral\requests\marketstat($typeid); } } so, when call phpevecentral->marketstat() function, php error : class 'phpevecentral\requests\marketstat' not found in c:\wamp\www\eve-board\application\libraries\phpevecentral\phpevecentral.php on line 68 when include phpevecentral\requests\marketstat.php file, there not error anymore have other error other file, have include , on. do have manually include each file of library? hope there other way because it's bit boring. thanks help. edit i extended codeigniter loader class ad...

using magentos server-side validation -

i using magento version 1.7.0.2 , have created custom module, in there form allows user pass information in database. i need validate user input , looking around google can see front-end validation tutorials, assume magento has server side validation tools? based on assumption had in mage/core/customer/block/form/register.php , mage/core/customer/helper/data.php have been unable find of help, looking in wrong place? i aware zend has validation, , use if magento has not got it's own/extended zend validation. in short, magento have it's own validation apart javascript validation tools? magento uses zend validation, can take inside mage/customer/model/customer.php @ method validate()

sql - Column aliases from a function in PostgreSQL -

i've started using postgresql (i've history mssql , mysql) , have question aliases. if have following sql declared in function: return query select "table"."col1" "column 1", "table"."col2" "column 2" "table"; highlighting , running alone gives me expect: column 1 | column 2 ------------------------ contents | contents of | of col1 | col2 however calling function outside seems ignore aliases set: select * "f_function"(); gets: col1 | col2 ------------------------ contents | contents of | of col2 | col2 i tried changing return type definition of function in case of higher naming priority parent process: ... returns table (col1 integer "column 1", col2 integer "column 2") ... but syntactically wrong. as said i've started using postgresql might missing obvious, ...

objective c - Are storyboards widely used on iOS apps? -

i developing ios framework other developers use. intend use "ecslidingviewcontroller" framework , add webview slide-up. have working on 2 projects use storyboards in it. my search sample projects test framework raised big question. 9 out of 10 of samples didn't use storyboard. so question is: should start developing framework non-storyboard apps or situation happening in sample projects. what mean sample projects. all applications prior ios 5.0 non-storyboard type. if intend support versions prior 5.0 only, have leave out option support storyboard. if supporting older 5.0 + versions have build storyboard non storyboard applications.