Posts

embedded linux - touchscreen ft5x06 not responding? -

i using kontron smarc-samx6i board run nxp imx6q processor. working yocto in need interface touch screen of ft5316 through i2c . edited device tree follows: polytouch: edt_ft5x06@39 { compatible = "edt","edt_ft5x06","edt-ft5x06"; reg = <0x39>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_smx6_i2c_gpio_1>; irq_pin=<&gpio3 1 0>; interrupt-parent = <&gpio3>; interrupts = <0 70 0x04>; }; when using i2cdump command touchscreen responds successfully, when working module won't respond. when using below command getting following output root@smarc-samx6i:~# cat /proc/bus/input/devices i: bus=0019 vendor=0001 product=0001 version=0100 n: name="gpio-keys.27" p: phys=gpio-keys/input0 s: sysfs=/devices/soc0/gpio-keys.27/input/input0 u: uniq= h: handlers=kbd event0 evbug b: prop=0 b: ev=23 b: key=4000 100000 0 0 0 b: ...

Adobe analytics web beacon response 204? -

for adobe analytics tracking http response header (sorry can't paste request here privacy), can see following content-length:43 content-type:image/gif i not sure why adobe analytics returns 43 size tracking pixel rather smaller one. adobe analytics client-side javascript need read content-length header verification? what if return http 204 no content, work?

javascript - Add additional file to global path in nodeJS -

i new nodejs/ javascript , want add additional file global variable declaration. idear: i want add language file global path var getlanguage = require('./language.js'); module.exports = { retryassertiontimeout: 2000, url:'https://10.99.8.81', language: getlanguage.de_de, in language file have 2 definitions, 1 german , 1 english. so if change language: getlanguage.de_de, to language: getlanguage.en_en, i want change used langugage. the declaration in language file looks like: module.exports = { de_de: { verzeichnisse: "verzeichnisse", benachrichtigungen: "benachrichtigungen", berichte: "berichte", ftp_server: "ftp server", } }; in functions call var data = client.globals; var language = data.language; .goto(language.benutzer) //benutzer declared in full file. but not work. any idears? [laguage.js] var chinese = { game : "游戏" } var english = { game : ...

objective c - Fail to decode Int with NSCoder in Swift -

Image
i using xcode8 beta swift 3.0. tried encode simple object base on nsobject, cannot decode int or nsinteger type. (the encoding process ok) codes class model : nsobject, nscoding { var seq: nsnumber? var seq2: int? // problem seq2, nsinteger not ok, either var id: string? var value: string? override init() { super.init() } required init?(coder adecoder: nscoder){ self.seq = adecoder.decodeobject(forkey: "seq") as? nsnumber self.seq2 = adecoder.decodeinteger(forkey: "seq2") self.id = adecoder.decodeobject(forkey: "id") as? string self.value = adecoder.decodeobject(forkey: "value") as? string } func encode(with acoder: nscoder){ acoder.encode(seq, forkey: "seq") acoder.encode(seq2, forkey: "seq2") acoder.encode(id, forkey: "id") acoder.encode(value, forkey: "value") } } the prob...

java - Adding extra unvisible information to each cell in the JTable -

i have jtable in gui . in our system, there various registrar . if registrar adds data, data added cell in jtable. if add data table, lost registrar information, important further operations. what try need add information (who registered data) each cell in jtable information should not seen in table. briefly. if cell selected, should access registrar information. i not know whether possible implement , suggestions appreciated. one appproach display details in tooltip. article how use tables: specifying tool tips cells includes complete example shows how change tooltip text each cell. keep registrar information in tablemodel , in tablecellrenderer via table parameter seen gettablecellrenderercomponent() . alternatively, display in tablepopupeditor , seen here .

javascript - table row become fade after some time not working -

this table row requirement first time displaying row in yellow color after 4 seconds color become fade.how possible . $('#invoice').prepend('<tr><td>invoice</td><td>analysing</td><td>analysing</td></tr>'); i have 3 solutions you: pure javascript , jquery , css pure javascript solution: this creating new tr , appending table innerhtml set td tags. same jquery appending table little different. have done can target specific tr has been create settimeout run. function demo(){ var table = document.getelementbyid('invoice'); var tr = document.createelement('tr'); table.appendchild(tr); tr.innerhtml='<td>invoice</td><td>analysing</td><td>analysing</td>'; // opacity change settimeout(function(){ tr.style.opacity="0.5"}, 4000); //background //settimeout(function(){ tr.style.background=...

javascript - Check $_POST data with jquery before submitting the form -

i have form sends store first name of user in database. checking information send user using regex in php. make project more interactive, decided validate information jquery before sending php. my project looks this: <script type="text/javascript" src="jquery-2.2.3.min.js"></script> <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js" type="text/javascript"></script> <body> <form > <div> <label>first name</label> <input name="firstname" type="text"> </div> <div> <input type="submit"> </div> </form> </body> </html> <script> $(document).ready(function() { $("form").submit(function (e) { var firstname = $(this).find('input[name="fir...