Posts

javascript - Scrolling to a specific div using window.onload without adding to the web address -

javascript - Scrolling to a specific div using window.onload without adding to the web address - i creating page 5 divs. using next javascript code smoothly move between them horizontaly : $(function () { $('ul.nav a').bind('click', function (event) { var $anchor = $(this); $('html, body').stop().animate({ scrollleft: $($anchor.attr('href')).offset().left }, 1500,'easeinoutexpo'); event.preventdefault(); }); }); the divs this: <div class="section white" id="section5"> <h2>technologies</h2> <p> text </p> <ul class="nav"> <li><a href="#section1">1</a></li> <li><a href="#section2">2</a></li> <li><a href="#section3">3...

javascript - Is there any node.js tutorials for implementing restapi and auth using ONLY core modules? -

javascript - Is there any node.js tutorials for implementing restapi and auth using ONLY core modules? - i have task implement simple web server rest interface , user authorization without using third-party frameworks 99% tutorials can find start using restify/express/something else. , it's hard available in core modules , functionality utilize implement what's been reqested (never used node.js before). upd: heres did if helps someone: https://github.com/danilaml/simplerestserver this pretty good. simple walk through. i'm doing same thing assignment. https://gist.github.com/shimondoodkin/6213581. have post , 404 'use strict'; var http = require('http'); var server = http.createserver(function(req, res) { if (req.url === '/hello') { res.writehead(200, { 'content-type': 'application/json' }); if (req.method === "post") { console.log('post'); var body = ''; ...

ruby on rails - rhc setup - command not found -

ruby on rails - rhc setup - command not found - i working on macbook air, os x 10.10 (yosemite) after installing ruby 4.1.6 , git 1.9.3 (apple git-50) openshift client tools rhc-1.30.2.gem i got message: if first time installing rhc tools, please run 'rhc setup' but, when run rhc setup (according the openshift documentation) back: class="lang-none prettyprint-override"> olivers-macbook-air-4:~ oliverhowells$ rhc setup -bash: $: command not found i want set ssh key, long error, not sure how launch openshift wizard , move forward. here link documentation looking @ openshift: https://developers.openshift.com/en/managing-remote-connection.html do have ideas how proceed? i had issue after installing using rbenv. fixed running rbenv rehash command line. ruby-on-rails ruby git command-line openshift

TCPDF integration Codeigniter constructor only use default parameters -

TCPDF integration Codeigniter constructor only use default parameters - i integrate library. created class pdf: require_once dirname(__file__) . '/tcpdf/tcpdf.php'; class pdf extends tcpdf { public function __construct($params) { parent::__construct(); } } but when phone call constructor other parameters, constructor utilize default params. $this->load->library('pdf'); $pdf = new pdf('l', 'mm', array(216, 330), true, 'utf-8', false); but if alter class pdf tcpdf works fine. $this->load->library('pdf'); $pdf = new tcpdf('l', 'mm', array(216, 330), true, 'utf-8', false); the problem want alter header , create new class extends tcpdf new header information. , cant phone call constructor of class (pdf class) custom params. you must of course of study pass parameters parent class. , note tcpdf expects long list of separate parameters, not array. 1 way ...

solve equation in Matlab -

solve equation in Matlab - i trying solve equation: 1000^x = 0.5* 512^x + 0.5* 1728^x wonder why next code not work. syms x eqn = (power(1000,x) == 0.5* power(512,x) + 0.5* power(1728,x)); solve(eqn, x) matlab gives me x=0 solution, however, expecting 1/3 one. there way can constrain answer. matlab equation

javascript - Is there a way to implement drag & drop in a phonegap angular js project? -

javascript - Is there a way to implement drag & drop in a phonegap angular js project? - i have tried one: https://github.com/codef0rmer/angular-dragdrop touchpunch (http://touchpunch.furf.com/). on browser working fine when deploy app android device receive next error: $ui.mouse not defined are there other alternatives implement drag & drop combination ? touchpunch requires jquery ui plugin. verify if included jquery ui in page. javascript android jquery angularjs cordova

SQL Oracle 10g List all database tables and the columns -

SQL Oracle 10g List all database tables and the columns - i've got oracle 10g database few hundred tables , want create list of table name, columns has , comments columns. normal table this: http://i.imgur.com/khwffov.jpg i want list of column_name , comments each table. tried getting metadata using: select table_name, column_name, comments user_tab_columns ; but errors out since i'm mixing metadata , not. i'm confused on how want. thanks i want list of column_name , comments each table. query user_col_comments , user_tab_columns , select table_name , column_name , comments . make join on owner , table_name , column_name . sql oracle