Posts

eclipse - JST do not rendering -

good evening everybody. this first approach java ee , jsf. created today project 1 xhtml page , should show string of value contained in table of database. <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"> <h:body> <h1>#{allperson.name}</h1> </h:body> </html> what broswer shows me "#{allperson.name}". here code of managedbean package view; import javax.ejb.ejb; import javax.faces.bean.managedbean; import javax.faces.bean.requestscoped; import session.manager1local; @managedbean @requestscoped public class allperson { @ejb private manager1local m; public string ...

Can a primitive value be considered an object in java? -

when started out using java, implied me have 2 different types: objects (strings, classes, println, etc) primitive values (int, double, char) i got exam professor difference mean difference between 2 choices answers. when asked professor clarify, told me primitive values can objects. who right here , can give me proof? proof official sounding , choose answer awarding proverbial internets. can primitive value considered object? the answer no. the jls states there two kinds of types in java programming language: primitive types (§4.2) , reference types (§4.3). there are, correspondingly, two kinds of data values can stored in variables, passed arguments, returned methods, , operated on: primitive values (§4.2) , reference values (§4.3). those primitive types , values are predefined java programming language , named reserved keyword and reference types , values can 1 of class types (§8), interface types (§9), type variables (§4.4), , a...

c# - Building FFmpeg.NET .dll -

i need use ffmpeg functions in c# (to precise, in gtk#). downloaded wrapper ffmpeg.net . after try build ffmpeg.net.2008.sln(reference: build dll in visual studio 2008, use in gtk#), following errors: error 1 error prj0019: tool returned error code "performing makefile project actions" ffmpeg.net error 2 referenced assembly "c:\users\zhenya\documents\ffmpegdotnet-94877\bin (debug shared)\ffmpeg.net.dll" not found. if assembly produced 1 of projects, please make sure build project before building one. how fix these issues? or how correctly build wrapper .dll? ffmpeg .net includes old version ffmpeg. use ffmpeg.exe directly. example void runffmpeg() { ffmpegprocess = new process { enableraisingevents = true, startinfo = { filename = getffmpegpath(), arguments = ffmpegparams.tostring(), ...

css - Do large HTML elements take up more processing power or memory? -

i have large html element inside fixed width div overflow set hidden, so: #container{ width:100px; height:100px; overflow:hidden; } #largebox{ width:100000px; height:100px; } <div id="container"> <div id="largebox"> </div> </div> the inner div large because content within dynamically generated , scrolls using javascript buttons. large div size potentially take more memory or processing power render? better off adding size need javascript? i came here because can't think of way test solely html render speeds. might overlooking chrome developers tools though. used test this? jsfiddle proof conclusion: no, large html elements not appear affect render size or memory in large amount, can cause quirkiness. in fiddle, tested adding different numbers of elements dom, tested time took manipulate dom element, , tested time takes basic math(to test memory). example output (in chrome 32): the first 3 tests use sm...

gcc - Open / lunch mutiple pdf file at ones with C? -

i trying lean c. i has make lille program / daemon. the meaning .pdf in 'taskfolder'-->(rootfolder). will open / lunch on start-up via 'evince'. do need lead abort threading or there better way this? i has try system("envice 1.pdf && envice 2.pdf ..."); but still open pdf files 1 @ time. the code this. #include <stdio.h> #include <stdlib.h> #include <dirent.h> #include <string.h> #define rootfolder ((const unsigned char *)"/home/myusername/taskfolder/") #define luncherapp ((const unsigned char *)"evince ") int main() { dir *d; struct dirent *dir; char *ext; d = opendir(rootfolder); if(d) { int i=0; char *tmp; while((dir = readdir(d)) != null) { ext = strchr(dir->d_name, '.'); if((ext != null) && (ext != 0) && (strcmp(strchr(ext ,'.'), ".pdf") == 0)) ...

c# - wp - convert image to grayscale according to slider value -

i'm trying convert image colored grayscale grayscale level depended on slider level. of tutorial found in internet making absolute grayscale. answers, appreciate it you should use interpolation between full-color image , grayscale version coefficient determined slider's value. example, if convert grayscale using colormatrix , described here , then, partially grayed image, should apply interpolated matrix. say, "slider=0" full-color , "slider=1" grayscale, matrix apply defined: <color_matrix_to_apply> = slider * <grayscale_matrix> + (1 - slider) * <identity_matrix> as colormatrix not provide ariphmetic operations, should implement formula "manually", each item of matrices. matrixtoapply.matrix00 = slider * grayscalematrix.matrix00 + (1 - slider) * identitymatrix.matrix00; ... matrixtoapply.matrix44 = slider * grayscalematrix.matrix44 + (1 - slider) * identitymatrix.matrix44;

asp.net mvc 4 - Generic Search Functionality -

i have requirement in search functionality need implemented following features. search functionality should applicable view generic. the view on implemented in has view entities should populated on search dropdownlist (for example product controller product attributes should populated , theuser view userid, username dropdownlist) it have logical operators greater than, less than, equal etc text box match text entered user. please let me know link or article can refer to. if you're looking implementation in asp.net mvc nice blog it: http://www.palmmedia.de/blog/2012/2/18/aspnet-mvc-generic-filtering-based-on-expressions