Posts

php - How to loop forms in one page based on the number of entries -

php - How to loop forms in one page based on the number of entries - i doing offense management web application using php. the page when run it,it gives chance come in details case,then click on submit button brings form on same page. that form inquire come in number of accused involved,if lets instance have 2 accused,it bring form on same page allow come in personal info bout accused number 1 ...then click on submit button bring form asks come in number of crimes accused number 1 has committed...if lets 1 time again committed 3 crimes brings select form allows select offense , submit 3 times. after 3rd entry go 1 time again , give form come in personal details accused number two....same process accused 1 when done takes initial point ready come in new case i pray clear....please help this before code ...ready run <?php session_start(); if(isset($_session["start"])) { switch($_session["now"]) { ...

php - Blocking Windows Phone WebBrowser control from viewing my site? -

php - Blocking Windows Phone WebBrowser control from viewing my site? - i have found out selling app straight using webbrowser/webview access site wrote. not want person making money off of app, , website getting bad reputation because people think trying charge site. are there windows phone webview specific request headers can block? running php , planning on blocking access via request headers. thank you! best contact microsoft straight , study app. php windows-phone-8

tsql - Why does CHECKSUM_AGG() return same values for totally different input values? -

tsql - Why does CHECKSUM_AGG() return same values for totally different input values? - i don't how checksum_agg() works, although understood somehow built using xors. explains why returns 0 when pass equal integers. why same aggregated checksum in next sql, input values unique? declare @test1 table (chksum int) insert @test1 values (2147473855), (2147473343) select checksum_agg(chksum) @test1 -- declare @test2 table (chksum int) insert @test2 values (2147474831), (2147472271) select checksum_agg(chksum) @test2 an explanation much appreciated. thanks! there known issues sql server checksum , checksum_agg implementations: checksum weakness explained use hashbytes instead: using hashbytes compare columns from microsoft: if 1 of values in look list changes, checksum of list changes. however, there little chance checksum not change. reason, not recommend using checksum observe whether values have changed, unless application can tolerate missing change. consi...

operators - == and .equals() in java -

operators - == and .equals() in java - this question has reply here: how compare strings in java? 23 answers java string.equals versus == [duplicate] 20 answers on reading many articles figure out == compares if 2 operands referring same object. how work primitive info types. does compare values of operand? does == work differently primitive info types , classes ? kindly clarify the “==” operator checking see if string objects (obj1 , obj2) refer exact same memory location. in other words, if both obj1 , obj2 different names same object “==” operator homecoming true when comparing 2 objects. the equals() method behaves same “==” operator – meaning checks see if both objects reference same place in memory. but, equals method meant compare contents of 2 objects,...

java - GAE ClassCastException Long cannot be cast to double -

java - GAE ClassCastException Long cannot be cast to double - getting exception when trying fetch info datastore entity. here code: persistencemanager pmf = pmf.get().getpersistencemanager(); seek { query query = pmf.newquery(docheader.class); @suppresswarnings("unchecked") list<docheader> docheaders = (list<docheader>) query.execute(); anyone can help in issue. here object @persistencecapable(identitytype = identitytype.application) public class docheader { @primarykey @persistent(valuestrategy = idgeneratorstrategy.sequence) private long docheaderid; @persistent private double previouspayment; @persistent private double currentbalance; @persistent private double totalaccountbalance; @persistent private string accountrepresentative; @persistent private double minpayment; } the exception classcastexception long cannot cast double means have @ to the lowest de...

UNWANTED PAGE BREAK WHEN THE REPORT_COUNT IS ONLY 1 JASPER REPORT -

UNWANTED PAGE BREAK WHEN THE REPORT_COUNT IS ONLY 1 JASPER REPORT - hi have subreport page break, how limit printing of page break when report_count > 1? <break> <reportelement x="0" y="8" width="100" height="1"> <printwhenexpression><![cdata[$v{report_count}>1]]></printwhenexpression> </reportelement> </break> jasper-reports

java - PDF page to Image, Apportable BridgeKit -

java - PDF page to Image, Apportable BridgeKit - i modified code post: need help convert pdf page bitmap in android java to seek , page pdf, convert byte[] , pass xcode project displayed. i'm doing using apportables bridgekit framework , compiles without errors. the problem app crashes 1 time loaded on device. imageextractor.java package com.pdflib; import android.graphics.bitmap; import android.os.environment; import android.util.log; import com.sun.pdfview.pdffile; import com.sun.pdfview.pdfpage; import net.sf.andpdf.nio.bytebuffer; import java.io.bytearrayoutputstream; import java.io.file; import java.io.randomaccessfile; public class imageextractor { //globals: private int viewsize = 0; //load images: private byte[] pdfloadimages() { seek { file file = new file(environment.getexternalstoragedirectory().getpath() + "/backs.pdf"); randomaccessfile f = new randomaccessfile(file, "r...