Posts

c++ - No MYSQL Connect with QT CREATOR libmysqlclient_16 -

i've started programming in c++ qt 5.4 i'm having problems when making connection mysql. iseem have problems driver. os: ubuntu 14.04 qt version > 5.1 this error: "can not load library /home/diana/qt5.1.1/5.1.1/gcc_64/plugins/sqldrivers/libqsqlmysql.so : ( /usr/lib/libmysqlclient_r.so.16 : version ` libmysqlclient_16 'not found (required /home/diana/qt5.1.1/5.1.1/gcc_64/plugins/sqldrivers/libqsqlmysql.so ) ) " ( " qsqlite " " qpsql " " qpsql7 " ) driver not found .pro file: qt + = core gui qt + = sql qtplugin + = qsqlmysql main.cpp #include "mainwindow.h" #include <qapplication> #include <qtwidgets> #include <qtsql> #include <qsqldatabase> #include <qsqldriver> #include <qsqlerror> #include <qsqlquery> #include <qsqldrivercreator> #include <qsqldriverplugin> #include <qtplugininstancefunction> #include <qpluginloader> #include ...

Exceed evaluation depth when forward function in Emacs Lisp -

here simplified code snipped have not managed work. not understand wrong. (defun enumerate-indicies (func) (let ((index 0)) (while (< index 5) (funcall func index) (setq index (1+ index))))) (defun enumerate-multiplied-indicies (func) (enumerate-indicies #'(lambda (index) (funcall func (* 10 index))))) the following testing code returns 10 expected: (defun test/enumerate-indicies () (let ((sum 0)) (enumerate-indicies #'(lambda (index) (setq sum (+ sum index)))) sum)) (test/enumerate-indicies) but below causes error lisp nesting exceeds max-lisp-eval-depth in emacs: (defun test/enumerate-multiplied-indicies () (let ((sum 0)) (enumerate-multiplied-indicies #'(lambda (index) (setq sum (+ sum index)))) sum)) (test/enumerate-multiplied-indicies) could please give clue? not s...

html - Grunt w3c validation plugin usage -

i trying validate simple html file using w3c validator plugin in grunt. giving me unexpected identifier error on line 33 . not understand wrong. figured out how use grunt-html-validation plugin, can not grunt-w3c-validation plugin work. html trying validate: <!doctype html> <html> <head> <title> see </title> </head> <body> <p>ok</p> <div>whatever</div> <span>why</span> <p>why </p> </body> </html> gruntfile.js module.exports = function (grunt) { grunt.initconfig({ jade: { compile: { files: { "html/calculator.html" : "jade/calculator.jade" } } }, sass: { compile: { files: { "css/calculator.css": "sass/calculator.sass" } } ...

angularjs - Problems with making a grid behave similar to itunes/google drive -

this first post - thank in advance advice. please refer mockup picture: http://i.imgur.com/9wumgdd.jpg this page similar itunes behavior-wise. have left hand side bar library, playlists organized in folders, , grid. i have having trouble actual grid. using angular grid , running many obstacles standard behaviors , limitations. there better grid (plug-in?) start if need itunes/google drive features - drag+drop, infinite scrolling itunes/google drive, , click controls similar itunes (single click select, double click activate)? or have go custom? thank much. daniel kurganov daniel.kurganov@gmail.com you can check out treegrid directive . native angularjs directive many features including drag-drop. as drag-drop between treeview , treegrid, there sample available here: drag drop between treegrid , treeview

Send files with Connect:Direct from HP NonStop (OSS) to UNIX -

have have worked connect:direct hp nonstop? wish make transmission of file located in 'oss' hp nonstop unix. connect:direct run through ndmcom in guardian90 can not interpret route home oss, have idea of missing script reconnoitre route of oss? below add script , messages received execution of process. my process: send process snode=test.hptest snodeid=(user,passwd) step01 copy (file=/home/sat/origen.txt - sysopts=":datatype=binary:" – pnode) - (file='/home/user/destino.txt' - sysopts=":datatype=binary:" - disp = rpl snode) messages: **xsmg622i: (rc=8, fdbk="0") exception response received during process exec. exception response received remote node during process execution. system action: copy step aborted. response: check condition of copy step , resubmit copy step. **sflh055i: (rc=8, fdbk=...

How to downgrade Bootstrap 3 to 2 -

i using bootstrap 3.3.2 can not run on ie7,8 need downgrade version 2. how can that? thanks ton. well, go download necessary files version 2 (using http://getbootstrap.com/2.3.2/ going quite helpful) , set site use in place of 3.x assets. major-version change, there's going breaking functionality on place. things changed lot 2.x 3.x, you're going have make lot of syntactic changes in code match 2.x docs. there isn't "downgrading" guide published, log @ https://github.com/twbs/bootstrap/releases may you.

How to parse through JSON object in Python -

i know there tons of exact question on here can't find answer. i'm trying use google maps api geocoding go through list of sloppy addresses, , formatted addresses. i have exact code google documentation: import urllib2 address="1600+amphitheatre+parkway,+mountain+view,+ca" url="https://maps.googleapis.com/maps/api/geocode/json?address=%s" % address response = urllib2.urlopen(url) jsongeocode = response.read() it says jsongeocode json object. however, i've gathered looking online not json object yet. if i'm wrong here , json object, how parse it? if call print(jsongeocode) prints appears json object proper attributes in terminal. so try convert jsongeocode object json object: jdata = json.load(jsongeocode) this gives me error: attributeerror: 'bytes' object has no attribute 'read' edit i've switched json function call jdata = json.loads(jsongeocode) , error this: typeerror: json object must str, no...