Posts

OPENCART search by model in featured module -

in opencart when edit featured module, , add new product, search name, , not model... it possible search product model?? , not name this happens in modules need add product you don't need more edit below file only: \opt\lampp\htdocs\opencart\admin\view\template\module\featured.tpl on line no.121 url: 'index.php?route=catalog/product/autocomplete&token=<?php echo $token; ?>&filter_name=' + encodeuricomponent(request.term), you need url: 'index.php?route=catalog/product/autocomplete&token=<?php echo $token; ?>&filter_model=' + encodeuricomponent(request.term), you need filter_model parameter type

java - Is there any differences between send and dsend in SimGrid? -

is there differences between send , dsend in simgrid, except except blocking/ non-blocking function? dsend non-blocking detached send. if non-blocking send, that's isend . difference absolutely have msg_comm_wait() or msg_comm_test() finish communication started isend (the data transfer not occur unless so), cannot interact communication started dsend . the concept of detached communications inspired detached threads, may read on internet.

mysql - SQL update a calculated column -

i have column in table need update. column computed this: select case when timestampdiff(year, geburtstag, now()) <= 27 ((w_staerke/100*70) + (w_technik/100*30)) when timestampdiff(year, geburtstag, now()) <= 31 ((w_staerke/100*70) + (w_technik/100*30)) end marktwert _spieler; i want update column on records table. can use like update _spieler set marktwert = case when timestampdiff(year, geburtstag, now()) <= 27 ((w_staerke/100*70) + (w_technik/100*30)) when timestampdiff(year, geburtstag, now()) <= 31 ((w_staerke/100*70) + (w_technik/100*30)) end; the query seems correct, sets value in "marktwert" 0 every row. create table `_spieler` ( `id` int(10) not null, `vorname` varchar(30) default null, `nachname` varchar(30) default null, `geburtstag` date not null, `w_staerke` tinyint(3) not null, `w_technik` tinyint(3) not null, `marktwert` int(10) not null default '0', `age` tinyint(...

Recieving Illegal start of expression error in Java -

just hoping bit of guidance on code. first bit (see below), trying make instance method pretty add given values. issue keep getting illegal start of expression error. wondering if able explain why, since looks fine me? keep in mind posted portion of code receiving error message. edit wanted open question second since whatever reason recieving odd error. able code completed receiving error message when test stating illegalargumentexception: letter chosen invalid. must t, d, or e. given data 84 ignored. i'm wondering why error message appearing since choosing on of letters , i'm not using 84 number @ all. public int addnewvalue ( char amttype, int amount) { scanner keyboard= new scanner (system.in); system.out.println("please enter amount in dollars"); amount=keyboard.nextint(); system.out.println("please select amount type: t-ticket sales," + " d-donations, e-expenses"); amttype=keyboard.next().charat(0)...

Android keyboard for bank account entry [0-9-xX] -

i need edittext input type allows me increase experience of user when he/she entering bank account or bank branch. numbers should follow rules: account: \d{1,5}-\d{1,2}|x --> 1 5 numeric digits, dash, 1 or 2 numeric digits or 1 x character branch: \d{1,5}(-\d{1,2}|-x)? --> 1 5 numeric digits, dash, zero, 1 or 2 numeric digits or 1 x character as entry have more numeric digits want keyboard offer numbers primarily, , if user have x digit he/she can swap input type. want keyboard symbolic layout displayed first. update: i tried changing input type in edit text xml: <edittext style="@style/subhead.form" android:inputtype="text" android:maxlength="7" app:hint="@{@string/profile_hint_bankbranch}" app:bindto="@{viewmodel.branch.input}" tools:text="1234-5"/> but presents text layout first, expected, tried several other options think none want. in ios i'm using "numbers ...

php - DOMXPath var_dump: "(object value omitted)" -

this question has answer here: how parse , process html/xml in php? 27 answers $store = curl_exec($ch); // returns page of html $doc = new domdocument(); $doc->loadhtml($store); $xpath = new domxpath($doc); vardump $xpath : object(domxpath)#2 (1) { ["document"] => string(22) "(object value omitted)" } what wrong here? i'm trying use xpath on html code extract info. object(domdocument)#1 (34) { ["doctype"] => string(22) "(object value omitted)" ["implementation"] => string(22) "(object value omitted)" ["documentelement"] => string(22) "(object value omitted)" ["actualencoding"] => string(6) "gb2312" ["encoding"] => string(6) "gb2312" ["xmlencoding"] =...

mongodb - How to create sessions in node.js -

in node.js / mongodb want create easy session , give page can know if user logged in or not. want know if can access page or not, how this? how set session , how value check if have redirect user. thanks lot! use express session . it's worth taking @ passport makes implementing authentication in node.js easy. express session example: var express = require('express'); var session = require('express-session'); var app = express(); // make sure defined before of routes // make use of session. app.use(session({ secret: 'keyboard cat', cookie: { maxage: 60000 }, resave: false, saveuninitialized: false })); // access session req.session app.get('/login', function(req, res) { req.session.user = 1; res.end('user 1 logged in, please go /discussion page.'); }); app.get('/discussion', function(req, res) { var sess = req.session; if (typeof sess.user === 'undefined') { res.redirect('/logi...