Posts

php - get a image for yii array -

i new 1 yii framework.i created menu way array('class' => 'bootstrap.widgets.tbmenu', 'items' => array( array('label' => 'home', 'url' => array('/site')), array('label' => 'display menu', 'url' => array('/admin/displaymenu')), array('label' => 'reports', 'url' => array('/admin/reports')), ), ), this working.but need replace home, display menu, reports images.i using chtml::image also.but not working.please can me solving problem.thank prompt support. along using chtml::image try setting encodelabel false, ... 'encodelabel'=>false, or try doing array('class' => 'bootstrap.widgets.tbmenu', 'encodelabel'=>false, 'items...

java - how to access main/resources of a maven dependency lib? -

got maven submodule project including set of dlls in main\resoursces. how can access other module project ? the maven profile detects guest os , download dlls submodule project similar resolving maven dependency differently if jvm in use x86 or x64? you can introduce resource in pom.xml file <project> <build> <resources> <resource> <directory>${submodule_path}</directory> <includes> <include>*.dll</include> </includes> <targetpath/> </resource> </resources> </build> </project> other option use " build-helper-maven-plugin " , introduce there source want.

Nulls While Loading Data into Hive Table -

i have text file consists of 6 fields. here sample: 1,8,07-jun-14,12:31:38,14:54:04,0.5 1,7,07-jun-14,10:18:34,13:30:56,0.5 1,6,05-jun-14,13:37:43,15:18:57,0.5 1,8,03-jun-14,08:15:10,11:28:17,0.5 1,7,05-jun-14,07:15:40,11:15:24,0.5 1,2,05-jun-14,10:09:04,11:42:54,0.5 1,9,05-jun-14,11:46:22,13:54:30,0.5 1,3,03-jun-14,07:14:10,10:47:10,0.5 while loading data hive table getting nulls last column. here create , load statements: create external table kantar_data(home_id int,channel int, date_id string, start_time string, end_time string,weight float) row format delimited fields terminated ',' lines terminated '\n'; load data local inpath '/media/test/kantar/output26.txt' table kantar_data; following sample output getting: 1 6 02-jun-14 07:12:42 10:25:53 null 1 6 05-jun-14 07:24:39 12:15:57 null 1 9 07-jun-14 12:07:43 14:40:59 null 1 5 04-jun-14...

Jenkins Jobs are not to be seen after network issue -

today morning, noticed putty jobs running jenkins closed due network issue. once network up, re-started jenkins , observed jenkins dashboard not showing jobs. had around 80 jobs on dash board. using vm servers master/slave setup. config.xml fine. do? how on track? all jenkins jobs xml config files kept in jenkins home. if jenkins not showing these jobs not using same home directory. kindly check jenkins process see directory pointing to.

c# - Fetching date in SQL Server 2008 -

how split date in select query of sql server 2008 ? if feed feed current date in database , type of column in database date time store date time.if 1 want fetch date part column can do. i can use query should not work. select donorname, date(dateofdonation) dateofdonation createdonordetail; it give error- 'date' not recognized built-in function name. sql server 2008 has date datatype - it's disabled if database upgraded sql server 2005, , didn't change database compatibility level . check compatibility level this: select name, compatibility_level sys.databases name = '-your-database-name-here-' if compatibility level 90 , it's set sql server 2005 , won't able use date . update compatibility level 100: alter database adventureworks2012 set compatibility_level = 100 now should able use date : select donorname, cast(dateofdonation date) dateofdonation createdonordetail;

java - Multiple attribute queries in Apache Lucene -

the below program satisfies query title has both lucene , action. if want search tupple isbn (considering isbn not unique) 1234 , title contains both lucene , dummies. lucene provide facility that. standardanalyzer analyzer = new standardanalyzer(version.lucene_40); directory index = new ramdirectory(); indexwriterconfig config = new indexwriterconfig(version.lucene_40, analyzer); indexwriter w = new indexwriter(index, config); adddoc(w, "lucene in action", "193398817"); adddoc(w, "lucene dummies", "55320055z"); adddoc(w, "managing gigabytes", "55063554a"); adddoc(w, "the art of computer science", "9900333x"); w.close(); private static void adddoc(indexwriter w, string title, string isbn) throws ioexception { document doc = new document(); doc.add(new textfield("title", title, field.store.yes)); doc.add(new stringfield("isbn", isbn, field.store.yes)); w.adddoc...

php - nginx load wordpress from a subdirectory -

Image
i followed guide here install wordpress on ubuntu server. upon entering url http://mydomain.com loads me front page. server { listen 80 default_server; root /var/www/wordpress; index index.php index.html index.htm; location / { try_files $uri $uri/ /index.php?q=$uri&$args; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } } i want load wordpress subdomain i.e., http://mydomain.com/wordpress . went on modify location can't load (it still looks files under http://mydomain.com ). root /var/www; index index.php index.html index.htm; location /wordpress { try_files...