Posts

html - how to know about the font information in a psd file? -

i have psd , trying convert html css. thing can't determine font used in psd? how can find out font information? click on font tool (the t) , click word or phrase want, click on right side of photoshop screen , read in little font window says. this not question site, should have been posted on superuser.com @ least.

hibernate - spring 3 + jpa 2 - fully qualified class name in queries -

i've configured spring 3 + jpa 2.0. when do: em.createquery("from systemuser",systemuser.class).getresultlist(); i receive following exception : java.lang.illegalargumentexception: org.hibernate.hql.ast.querysyntaxexception: systemuser not mapped [from systemuser] @ org.hibernate.ejb.abstractentitymanagerimpl.convert(abstractentitymanagerimpl.java:1201) @ org.hibernate.ejb.abstractentitymanagerimpl.convert(abstractentitymanagerimpl.java:1147) but when type qualified class name: em.createquery("from com.aims.domain.systemuser",systemuser.class).getresultlist(); it works. configurations missed out. my persistence.xml: <?xml version="1.0" encoding="utf-8"?> <persistence-unit name="aims" transaction-type="resource_local"> <provider>org.hibernate.ejb.hibernatepersistence</provider> <properties> <property name="hibernate.dialect" value="org.hibe...

java - How to populate a dropdown on page load in jsf? -

this question has answer here: how populate options of h:selectonemenu database? 3 answers i'm new jsf, read jsf life cycle couldn't understand how achieve this? i've controller "cities" , other controller "countries". i'm going create new page, provide search functionality. showed 2 dropdowns on page (one countries , other cities), want first drop down populated on page load. please tell me controller use? cities/countries? or create new one? , how load data on page load? thanks! everyone correct, need use <f:selectitems/> example: .xhtml <h:selectonemenu> <f:selectitems value="#{mycontroller.listitems}"/> </h:selectonemenu> bean public class mycontroller{ //the list items private list<selectitem> listitems = null; public mycontroller { loadcom...

objective c - How do I add multiple columns in my table in iPhone SDK? -

how add multiple columns in table in iphone sdk? any highly appreciated. currently uitableview doesn't have support have multiple columns in table view cell. so, can not add multiple columns in uitableview. there alternates, drawing custom grids on table view cells. have @ post.. iphone multiple columns in uitableview .. link http://usxue.is-programmer.com/posts/14176.html has code..

webservice client - How to share twitter user credentials between web and mobile applications? -

our web allows user publish tweets in timeline automatically when particular actions. however, mobile app connected web, actions user in mobile app must sent web app publish correspondly tweet in user timeline. the problem user can signin or login in mobile app using twitter , user credentials must sent webapp able publish in user timeline. which best approach share user credentials between mobile app , web app? i think best way share mobile app's access token server, legal , works unless the utilization of access tokens based on same agreement user gave you that's official answer thread https://dev.twitter.com/discussions/4314 . great citation there: access tokens represent relationship between user account , application -- ip address or host of machine involved isn't relevant.

java - How to call power off,reboot dialog from application? -

i call power off,reboot, etc.. dialog same default android dialog when push power button long application. no need call directly reboot,power off, etc... application. call dialog. how call ? or how send power button key on application ? in advance. if @ source code, you'll see it's handled internally (phonewindowmanager.java , globalactions.java). there no interface whatsoever through api. in short: can't done. if have reboot permission, can reboot phone directly powermanager.reboot() , unlikely public app need functionality. wouldn't trust app reboot permission.

Drupal 6 views_embed_view ignores content filtering? -

may encountered similar issue. output view on front page of d6 site using code: <?php print views_embed_view("frontpage_news_list", "default" ); ?> yet seems way of outputting view bypasses content filtering teaser field (not view filter, filters applied teaser of node). see because don't output img's in teasers, , not shown when check preview in views ui, yet on front page images shown in view. i have view, outputs nodes of same type in "page" output, , img's hidden in teasers there, required. has encountered similar issue before? appreciate this. <?php // can use block_1, ... blocn_n or page_1,...,page_n display id print views_embed_view("frontpage_news_list", "block_1" ); // or way show view $view = views_get_viev(you_view_machine_name); $view->set_display($display_id); // $view->set_exposed_input(array('var' => $myvar)); // set exposed filters // $view->s...