Posts

Showing posts from July, 2012

Binary sms provider -

Binary sms provider - possible duplicate: recommendations sms gateways api-support i need recommendation of sms gateway supports binary sms , provides api implementation. thanks.. infobip (we utilize them), 24/7 free, live , helpful back upwards (various channels) http://www.infobip.com/ :p sms

objective c - Anything like layout manager in Java for iOS? -

objective c - Anything like layout manager in Java for iOS? - guys, newbee ios. need create dynamic layout since gui generated according data. checked uiview references, seems standard way add together subview like: cgrect rect = cgrectmake(0, 0, width, height); uilabel *label = [[uilabel alloc] initwithframe: rect]; [someview addsubview: label]; but, maybe can't sure width , height. in java, container utilize layout manager automatically deal width , height based on rules. in ios, can utilize layout manager in java? thanks. clue ok. you can in ios, although not one-to-one java layouts. thought of possible, utilize size inspector in interface builder. done there, such allowing item grow horizontally or remain same distance top, can done programmatically. if farther customization needed, can override event hooks in view or controller, such uiview's -layoutsubviews method. objective-c cocoa ios

Enabling flyspell mode on emacs/w32? -

Enabling flyspell mode on emacs/w32? - i need install/run flyspell mode on emacs/w32. i installed ispell windows this site, , followed procedure written in here. i downloaded flyspell-1.7a.el rename flyspell.el, , copied load-path directory. i modified .emacs ;;; http://www-sop.inria.fr/members/manuel.serrano/flyspell/flyspell.html ;;; flyspell mode (require 'flyspell) (autoload 'flyspell-mode "flyspell" "on-the-fly spelling checker." t) (autoload 'flyspell-delay-command "flyspell" "delay on command." t) (autoload 'tex-mode-flyspell-verify "flyspell" "" t) ) but, when run emacs flymode, got next error. (error "autoloading failed define function turn-on-flyspell") what might wrong? solution ispell it ispell win32's problem, 1 should utilize 1 works emacs/win32 explained in the book of emacs. download ispell.zip 1 of site. copy ispell.exe path directory, , re-...

c# - Specified cast is not valid. enum -

c# - Specified cast is not valid. enum - whats wrong code, seek enum.parse didnt work. public enum rolenames { administrator, [description("personnel security")] prsonalsecurity, } foreach (rolenames rolename in arroles) //<<<error { if (iscurrentuserinrole(rolename)) { homecoming true; } } arroles arraylist of rolenames, passing parameters. can post rest of code next illustration work fine: public enum rolenames { administrator, [description("personnel security")] personalsecurity } rolenames[] testenumarray = { rolenames.administrator, rolenames.personalsecurity }; foreach (rolenames en in testenumarray) { // } based on error message, arroles must not array of rolenames since cast failing. if want iterate on enum definition can utilize next code: foreach (rolenames type in enum.getvalues(typeof(rolenames)) { // } post exact code. c# asp.net

c++ - Undefined Symbol ___gxx_personality_v0 on link -

c++ - Undefined Symbol ___gxx_personality_v0 on link - i've been getting undefined symbol building command line: $ gcc test.cpp undefined symbols: "___gxx_personality_v0", referenced from: etc... test.cpp simple , should build fine. deal? use g++ test.cpp instead, since c++ code. or, if really want utilize gcc , add together -lstdc++ command line, so: gcc test.cpp -lstdc++ running md5 against a.out produced under each scenario shows it's same output. but, yeah, g++ makes world simpler place. c++ c gcc g++

java - Calling a private super class constructor implicitly from the subclass results in random behavior -

java - Calling a private super class constructor implicitly from the subclass results in random behavior - package pack1; public class outer{ private outer(){} } bundle pack2; import pack1.*; public class extendedouter extends outer{ //compiler adds default no-args constructor, /* public extendedouter(){ super(){} } */ } 3rd class import pack1.outer; import pack2.extendedouter; class innerclasses{ public static void main(string[] args){ extendedouter o=new extendedouter(); } } but hey, outer 's constructor private , expect code not compile, compile fine. @ runtime know goofed when throws illegalaccesserror happens ! error outer() private , don't error how 1 explain such random behavior ? but private method invocation warned @ compile time. why not when comes implcitly added constructors? ps: compiler throw error outer() private in outer class if explicitly add together constructor ext...

cypher - How to find the node with outgoing relationship but no relationship on 2nd degree nodes -

cypher - How to find the node with outgoing relationship but no relationship on 2nd degree nodes - one question, have 15000 nodes, relationships. suppose few of them have same label number different properties. relationship type same. want see if there nodes inter relationship not exist. n | l--f--m / h-b-g / \c-d \e like there query help me find nodes n,m,l related f no relationship each other. start node a. can check cipher query? trying path giving me path exist between 2 nodes define not random n number of nodes connected 1 x node. thanks, cypher

floating point - How to turn off denormal number support in MATLAB? -

floating point - How to turn off denormal number support in MATLAB? - i trying turn off denormal number back upwards in matlab, 2 computations result in denormal number instead result in 0 (daz, ftz) i've researched several sites include 1 below, haven't found doing this. http://blogs.mathworks.com/cleve/2014/07/21/floating-point-denormals-insignificant-but-controversial-2/ i've never heard of such alternative in matlab. require deep manipulation of lot of floating-point math, requiring new datatype supported if toggle-able alternative in matlab. write own mex c code (more here , here) individual function. and of course of study can 1 line of matlab – here's example: a = [1e-300 1e-310 1e-310]; b = [1e-301 1e-311 1e-310]; x = a-b; x(abs(x(:)) < realmin(class(x))) = 0; where realmin smallest normalized floating-point number. however, floating point math still performed using extended denormal/subnormal values in a . it's output that...

javascript - Rotating a div/img with a button issue -

javascript - Rotating a div/img with a button issue - i trying rotate div using html , javascript can't rotate in place. of circles image around in wide circle on page , not in it's original spot. think has me using div hold image. it's making 0 axis center of page i'm not sure how prepare that. <html> <input type="url" name="imglink" id="imglink" placeholder="insert image url here" /><br> <input type="button" value="show image" id="btn1"/> </form> <div id="photo"></div> <script> document.getelementbyid('btn1').addeventlistener('click', function(){ document.getelementbyid('photo').innerhtml = '<img src="'+ document.getelementbyid('imglink').value +'" alt="image" />'; }); ...

javascript - Angularjs display given ISO formatted date -

javascript - Angularjs display given ISO formatted date - i'm looking way display/format date given in iso format (with timezone). api got encoded date: "2015-04-17t06:00:00.000-05:00" , want display in human readable format. when utilize {{"2015-04-17t06:00:00.000-05:00" date: 'hh:mm'}} got time converted local timezone. need format it. a searched internet, found huge libs moments.js or others. there did not found working reply here also... if there no angularjs solution can utilize pure javascript, not found 1 either. thanks you can set timezone yourself date filter: (it accepts format strings "+0000" , simple integer strings "0" ) {{"2015-04-17t06:00:00.000-05:00" | date:'hh:mm':'0' }} javascript angularjs date datetime

ruby on rails - Unable to step in forked gem with Pry -

ruby on rails - Unable to step in forked gem with Pry - i forked gem called mongoid-scroll. i'm trying open gem pry command gem-open i'm not able since throwing error. i execute pry bundle exec pry in order pry "see" forked gem (set in gemfile gem 'mongoid-scroll', git: 'https://github.com/bgvo/mongoid-scroll.git' . then run gem-open mongoid-scroll pry console , throws error: [1] pry(main)> gem-open mongoid-scroll nomethoderror: undefined method `invoke_editor' pry::editor:class /users/borjagvo/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/ruby/2.1.0/gems/pry-0.10.1/lib/pry/commands/gem_open.rb:19:in `block in process' googling error takes me this issue in pry repo. prepare merged master while ago, should locally (i tried bundle update ), right? i there case in specifying gem in gemfile wouldn't take master branch? thanks. found cause of error. gemfile has source rubygems.org. looking site, release uplo...

c# - Adding collection to listbox -

c# - Adding collection to listbox - i'm trying create user able add together name , ingredient listbox. here brief description of relevant classes: recipeform form. recipemanager collection manager class recipe recipe "content" class fields name , ingredients are listmanager is generic base of operations class in manager class recipemanager inherits from. i want user input name , ingredients of recipe object. and save object in object of recipemanager in recipeform class. the list of recipe objects saved in collection ( m_foodmanager in code below) supposed displayed in listbox in recipeform here how tried it: the form foodregister : public partial class foodregister : form { private recipe m_food = new recipe(); private recipemanager m_foodmanager = new recipemanager(); public foodregister() { initializecomponent(); } private void readvalues() { ...

c - What is the correct way to listen to both UDS and TCP sockets in a `fork()` based server? -

c - What is the correct way to listen to both UDS and TCP sockets in a `fork()` based server? - i'm writing fork() based server, tcp sockets communication channel of clients server , uds socket (datagram, if makes difference) communication channel of management console server. what right way hear both socket types? server looks pretty much fork() server in beej's example: while(1) { // main accept() loop sin_size = sizeof their_addr; new_fd = accept(sockfd, (struct sockaddr *)&their_addr, &sin_size); if (new_fd == -1) { perror("accept"); continue; } inet_ntop(their_addr.ss_family, get_in_addr((struct sockaddr *)&their_addr), s, sizeof s); printf("server: got connection %s\n", s); if (!fork()) { // kid process close(sockfd); // kid doesn't need listener if (send(new_fd, "hello, world!", 13, 0) == -1) perror("send"); ...

nhibernate - Unable to create strongly typed view in VS2010 with Fluent Nhibinate and MVC2 -

nhibernate - Unable to create strongly typed view in VS2010 with Fluent Nhibinate and MVC2 - hi, wondering if 1 else had had problem vs2010 mvc 2 projects not beingness able automaticly create typed view after doing fluent mapping? when trying mapping vs2010 doesnt show entities in drop downwards , if manually set class in doent auto build view . cheers dan it looks vs2010 doent nhibinate 3. linking v2 seems work required when relinking v3. very odd nhibernate visual-studio-2010 asp.net-mvc-2 fluent-nhibernate

configuration - How Do You Manage Your Eclipse Installation -

configuration - How Do You Manage Your Eclipse Installation - how manage eclipse installation, i.e. basic installation, plug-ins , workspace settings regard consistent updates (including major ones, 3.5 => 3.6) , usage on 2 or more computers (desktop + notebook). my current setup managing installation on several installations in parallel, i.e. manually add together new plug-ins installed on 1 other, , when haven't used 1 in long time re-create whole directory 1 location other. updates run 1 time month latest versions, major updates manually downloading basic distribution , re-installing plug-ins in matching version new major eclipse version. however, approach has drawbacks: time intensive update inconsistencies (update sites alter location, update doesn't work because of version inconsistency between plug-ins requires lot of manual fixing, etc) (this has gotten improve 3.5 still bugs me) no "global" update site, manually have manage several locatio...

c# - Microsoft ReportViewer does not refresh -

c# - Microsoft ReportViewer does not refresh - dear sir's i'm developing c# application renders study hosted microsoft ssrs. using express 2012 version , designing study using microsoft visual studio 2010 installed ssrs. the c# application renders using reportviewer command v 10.0.0.0 my first study quite simple filtering dataset drop downwards selection , between 2 dates. selecting same parameters in designer renders diffrently if select same parameters in deployed form through c# study viewer. loks there caching issue or something. quick tips? duncan c# reportviewer ssrs-2012

javascript - ReactJs - Loading cross domain assets -

javascript - ReactJs - Loading cross domain assets - i created react component load svg url. it's pretty straightforward , uses svg utilize syntax sprite sheet. below code, i'm using es6 syntax well: export class icon extends react.component { render() { var classes = "icon", url = this.props.url, definedclass = this.props.classes; if (definedclass) { classes = classes + ' ' + definedclass } homecoming ( <svg classname={classes} viewbox="0 0 35 35" dangerouslysetinnerhtml={{__html: "<use xlink:href='" + url + "'></use></svg>"}}> </svg> ) } } this works fine when loading same domain, when seek load along other code widget on different domain run error. unsafe effort load url http://localhost:3123/assets/svg/star.svg frame url http://localhost:8000/. domains, protocols , ports must match. is...

angularjs - using a decimal in my element's name -

angularjs - using a decimal in my element's name - i'm trying utilize two-way info binding value of input i'm having problem using "." in input name: <form name="signinform"> <label class="item item-input item-stacked-label"> <input name="user.email" data-ng-model="user.email" type="email" placeholder="user@email.net"> </label> </form> {{ signinform.user.email }} how value out? as commented: need use: {{user.email}} instead of {{ signinform.user.email }} angularjs

c++ - How do I add in decimals to my current working code without butchering it? -

c++ - How do I add in decimals to my current working code without butchering it? - i have been cracking @ code day , when think making ground seem take 1 step forwards , 2 steps back. i using visual studios 2013 update 4 , wondering if help me incorporate beingness able utilize decimals output calculations in working code have completed far. i have tried using double variable, throw 1120 errors or nil @ all. any help appreciated. // chapter 7 problem #3 // rainfall statistics // 4-7-15 #include <iostream> #include <iomanip> #include <string> using namespace std; // functions prototypes void getrain(string[], int[], int); int gettotal(int[], int); int getave(int[], int); int largestelement(int[], int); int smallestelement(int[], int); int main() { // costant number of month entries const int rain_per_month = 12; //array of months string names[rain_per_month] = { "january", "february", "march", "ap...

java - IP Program, setting an object to default value -

java - IP Program, setting an object to default value - i working on assignment , running issue. trying figure out how pc3 object display default values if info passed object invalid (an invalid ip address). is, display showing ip: null , need instead phone call setdefault() method , display that. i'm sorry long bit of code here want see going on. give thanks much help! import java.util.random; public class ipaddress { private string ipaddress; private string subnetmask; private int intparts[]; private string retstring; ipaddress(){ //sets default ip address in 169.254.x.y, x , y values between 0 , 255 setdefault(); } ipaddress(string ip, string sm){ setipaddress(ip); setsubnetmask(sm); } public void setdefault(){ string temp="169.254."; int octet3=randval(); int octet4=randval(); while((octet3==0 && octet4==0) || (octet3==255 && octet4==255)){ //cann...

facebook - Real-time updates and Graph API 2.3 -

facebook - Real-time updates and Graph API 2.3 - according https://developers.facebook.com/docs/graph-api/real-time-updates/v2.3, way subscribe real-time updates via /{app-id}/subscriptions endpoint. https://developers.facebook.com/docs/graph-api/reference/v2.3/app/subscriptions/ says endpoint no longer available in v2.3. meanwhile, https://developers.facebook.com/docs/graph-api/reference/v2.3/page/subscribed_apps/ talks subscribing page's feed, doesn't offer post or delete operations managing such subscriptions. nevertheless, changelog v2.2 describe get/post/delete /{page-id}/subscribed_apps. so, what's current, accurate story handling real-time updates? rtus pages? @ least, documentation confusing...and believe wrong , conflicting itself. can clear how subscribe , handle rtus in v2.3 world? facebook facebook-graph-api

printing - Restrict Printer over a network with PHP -

printing - Restrict Printer over a network with PHP - i developed web app using php friend has printing shop. how working currently. jobs coming in printing registered on web app the problem want feature in way uncertainty possible. doesn't want user (operator) able print file except beingness registered on app. note: printing on network. maybe set network print via lpr , pass printing jobs via app php printing crm

haskell - Where is the Constraint kind defined? -

haskell - Where is the Constraint kind defined? - i'm not familiar ghc internals have couple questions constraintkinds. it says ghc.exts that data constraint :: box which misleading because constraint kind of sort box . brings first question: can import , export kinds? how work? please right me on next part if i'm totally off. trying out different imports , glancing around @ source on hackage, guess ghc.exts imports constraint ghc.base , in turn, imports ghc.prim . not see defined in ghc.prim ? to knowledge, there no definition of constraint in haskell source file. it's built-in, wired-in name defined belong within ghc.prim in ghc sources itself. in particular constraint not promoted datatype, there's no corresponding datatype of kind * called constraint . there other kinds in ghc treated similarly, such anyk , openkind or box itself. ghc doesn't create big difference internally between datatypes , kinds , above. that's w...

r - Managing files after creating an RStudio EC2 instance -

r - Managing files after creating an RStudio EC2 instance - after next simple tutorial http://www.louisaslett.com/rstudio_ami/ have setup rstudio environment on ec2, , i'm able run r code :) the files create through rstudio - i'm not sure these files reside - can view them on web somewhere / can access them via aws console? thanks! r amazon-ec2

parse.com - How to remove duplicate data in the UIPickerView in Swift -

parse.com - How to remove duplicate data in the UIPickerView in Swift - may know how remove duplicate info data passing parse database. select 1 column , pass column info picker view. i've seek find query.wherekey didn't have distinct function similar sql statement, should avoid info duplication? as add together items 1 1 self.pickerstring array, verify if array contains or not new value before addobject new value array. example: if !self.pickerstring.contains(object["intake"] as! string) { self.pickerstring.append(object["intake"] as! string) } there no built-in function remove duplicate items in array in swift (correct me if i'm wrong). however, can add together new features array 'extension' keyword: extension array { func distinct<t: equatable>() -> [t] { var newarray = [t]() item in self { if !contains(newarray, item as! t) { newarray.append(item a...

Scala multiline regex / regular expression (?m) not working -

Scala multiline regex / regular expression (?m) not working - (all of illustration can run through scala repl or sbt console) i have multiline string: val a= "a0da000043\n"+ "a020000008933f57845f706921\n"+ "a0a0000000 (9000)\n"+ "a0a40000027fde (9fxx,9000) \n"+ "84e400000bd2012f261c86bc6c3c679f (6101,9000)\n"+ "00a4040008a000000151000000 (61xx,9000)" then have regular expression: (?m)^ *(?:[0-9a-f]{2})+(?: +\([0-9a-fx,]+\))? *$ i utilize this: scala> """(?m)^ *(?:[0-9a-f]{2})+(?: +\([0-9a-fx,]+\))? *$""".r.pattern.matcher(a).matches() res10: boolean = false but if this: scala> ("""(?m)^ *(?:[0-9a-f]{2})+(?: +\([0-9a-fx,]+\))? *$""".r findallin a).tolist res8: list[string] = list(a0da000043, a020000008933f57845f706921, a0a0000000 (9000), "a0a40000027fde (9fxx,9000) ", 84e400000bd2012f261c86bc6c3c679f (6101,9000), 00a4040008...

deployment - Setting the iis:WebDirProperties of a single file in WiX -

deployment - Setting the iis:WebDirProperties of a single file in WiX - i using wix deploy web application under iis. i have no problems setting different properties of web application using iis:webdirproperties element. however, need set *.asmx file security attribute "integrated windows authentication". wix have ability set property of single file? *note: file scattered throughout different directories. have been trivial services in separate directory. thanks! no. wix toolset not have ability set permissions on individual files today. however, open feature request on it... maybe implement prepare , submit community? iis deployment wix

How to import Python modules with Maven in a Jython project? -

How to import Python modules with Maven in a Jython project? - i'm writing jython project create text editor. info model written exclusively in python , uses external libraries nose, jinja , ply. gui text editor uses java swing libraries. i'm trying build project maven, , found out this useful plugin, i've included in pom file so: <plugin> <groupid>net.sf.mavenjython</groupid> <artifactid>jython-compile-maven-plugin</artifactid> <version>1.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>jython</goal> </goals> </execution> </executions> <configuration> <libraries>...

c++ - Overloading a base class function in the derived class -

c++ - Overloading a base class function in the derived class - why if base of operations class function overloaded in derived class, base of operations class version of function (even if public) not accessible through object of derived class? eg: #include <iostream> #include <string> using namespace std; class base of operations { public: void f(int i) { cout << "\ninteger: " << << endl; } }; class derived : public base of operations { public: void f(string s) { cout << "\nstring: " << s << endl; } }; int main() { base of operations b; derived d; //d.f(5); doesn't work d.f("hello"); //d.base::f(5); works though homecoming 0; } name lookup performed before overload resolution. name lookup starts in 1 scope, if doesn't find declaration of name, searches enclosing scope, , on until finds name. in case d.f finds declara...

javascript - why CRLF transformed to LF when they are assigned to using php -

javascript - why CRLF transformed to LF when they are assigned to <input> using php - (1)a form include textarea,type text line break it.like : a b then submit form , store text database.the length of contents 4.i can output ascii codes,using ord() function.they 97(a), 13(cr), 10(lf), 98(b). (2)get contents , assign them template using smarty.like: //$string database. $smarty->assign('str', $string); using input element store contents in html template. <input id="test" type="hidden" value="{$str}"> (3)get length of input value document.getelementbyid("test").value.length; //the result 3 while using {$str|@strlen} //the result 4 if submit form , ascii code of cotents,they 97(a), 10(lf), 98(b). character 13(cr) lost. i googled lot didn't find reason. explanation? lot in advance. i found : https://bugzilla.mozilla.org/show_bug.cgi?id=188015 someone replied in comment 28 ,...

Give me some recommendation about JBoss and MySQL using Openshift Tech -

Give me some recommendation about JBoss and MySQL using Openshift Tech - i've created first application using openshift tech. it's java web application running on jboss @ openshift , uses mysql 5.5 database. , have deploy using war file (i don't know how normal way). so can tell me: should create local database or utilize online database? , there way deploy java app not using war file? i suggest check out openshift developer center (https://developers.openshift.com), link (https://developers.openshift.com/en/jbossas-overview.html) using jboss. create sure read of sections, deployment options, , datasources links. if interested in beingness able "git push" deploy code, should create new jboss application on openshift, , "git clone" of code , check out how it's setup, using maven project structure, pretty common. mysql jboss openshift

python - SQLAlchemy set default nullable=False -

python - SQLAlchemy set default nullable=False - i'm using sqlalchemy flask create models. problem is, columns need nullable=false , i'm looking way set alternative default when creating column. certainly add together them manually (as vim exercise), don't sense today. reference, how setup ( models.py ) looks like: from flask.ext.sqlalchemy import sqlalchemy db = sqlalchemy() class user(db.model): id = db.column(db.integer, primary_key=true) username = db.column(db.string(80), nullable=false) and many more. there simple way of doing this? thanks in advance. just create wrapper sets it def nullcolumn(*args,**kwargs): kwargs["nullable"] = kwargs.get("nullable",true) homecoming db.column(*args,**kwargs) ... username = nullcolumn(db.string(80)) using functools.partial recommended in comments from functools import partial nullcolumn = partial(column,nullable=true) python sqlalchemy flask-sqlalchem...

javascript - How to prevent XSS vulnerability from being introduced when using .val()? -

javascript - How to prevent XSS vulnerability from being introduced when using .val()? - i store unsanitized user input in database, escape on output. if come in "><svg/onload=alert(3)> input , save in database, load page escapes data, putting input, page source shows: ... value="&quot;&gt;&lt;svg/onload=alert(3)&gt;" ... as can see, it's escaped. however, if run code: $(".somediv").html($("#myinput").val()); then next set element: ""><svg/onload=alert(3)>" and alert box pops up. jsfiddle what doing wrong here? thought escaping info on output needed do, apparently when manipulating dom jquery that's not true. if want set text, utilize .text() . entities in attribute’s value interpreted, , ""><svg/onload=alert(3)>" is value of attribute. $(".somediv").text($("#myinput").val()); class="snippe...

python - django admin error - Unknown column 'django_content_type.name' in 'field list' -

python - django admin error - Unknown column 'django_content_type.name' in 'field list' - my django project had working admin page, of sudden started receiving: "unknown column 'django_content_type.name' in 'field list'" whenever seek access admin page. can still access portions of admin, not main page. i'm pretty new django , python, have no thought look. here's total error: internalerror @ /admin/ (1054, u"unknown column 'django_content_type.name' in 'field list'") request method: request url: http://127.0.0.1:8000/admin/ django version: 1.7.7 exception type: internalerror exception value: (1054, u"unknown column 'django_content_type.name' in 'field list'") exception location: c:\python27\lib\site-packages\pymysql\err.py in _check_mysql_exception, line 115 python executable: c:\python27\python.exe python version: 2.7.9 python path: ['c:\\users\\dhyso...

javascript - Find element height, including margin -

javascript - Find element height, including margin - i'm making simple , fun drawing app, , in construction follows: header canvas footer i'm trying canvas total height of window, minus header height , footer height. i've tried multiple things like: canvas.height = window.height - (document.getelementbyid("header").offsetheight + document.getelementbyid("footer").offsetheight); and i've tried: function getheight(id) { id = document.getelementbyid(id); homecoming id.offsetheight + id.style.margintop + id.style.marginbottom; } canvas.height = window.height - (getheight("header") + getheight("footer")) but no avail. in console id.style.margintop returned empty string, although margintop set in css... not set margintop, it's set margin: 8px 0 8px 0; is there way, without using jquery, obtain rendered height of element, including margin? i'm assuming we'd have separate margin: 8px 0 ...

jquery - Bootstrap Menu DropDown not working on a page with embedded header.html file -

jquery - Bootstrap Menu DropDown not working on a page with embedded header.html file - i have created project jquery embedded mutual header.html file on pages (including index.html , etc.) i added bootstrap in this. now, dropdown menu in header.html working fine; not on other pages (with included header.html) also, menu toggle doesn't work fine (it doesn't go back). have tried way resolve this, nil beneficiary. does dropdown in bootstrap menu not supported header files added jquery? header.html : <!doctype html> <html> <head> <title>the best, creative , affordable study , life skills training center - solupad</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, in...

qt3d library Cross compilation linking error -

qt3d library Cross compilation linking error - i want crosscompile qt3d library illustration hardware am3355 starter kit next error [linux-devkit]:~/documents/qt3d/examples/quick3d/monkeygod> qmake-qt4 [linux-devkit]:~/documents/qt3d/examples/quick3d/monkeygod> create arm-linux-gnueabihf-g++ --sysroot=/home/deep/ti-sdk-am335x-evm-06.00.00.00/linux-devkit/sysroots/armv7ahf-vfp-neon-3.2-oe-linux-gnueabi -wl,-rpath-link,/home/deep/ti-sdk-am335x-evm-06.00.00.00/linux-devkit/sysroots/armv7ahf-vfp-neon-3.2-oe-linux-gnueabi/usr/lib -o ../../../bin/monkeygod main.o -l/home/deep/ti-sdk-am335x-evm-06.00.00.00/linux-devkit/sysroots/armv7ahf-vfp-neon-3.2-oe-linux-gnueabi/usr/lib -lqt3de -lqt3dquicke -lqtdeclarativee -lqtscripte -lqtsvge -lqtsqle -lqtxmlpatternse -lqtopengle -lqtguie -lqtnetworke -lqtcoree -legl -lglesv2 -lgles_cm -limgegl -lsrv_um -lpthread /home/deep/ti-sdk-am335x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/../lib/gcc/arm...

javascript - How to use getElementsByTagName() to find all nested elements? -

javascript - How to use getElementsByTagName() to find all nested elements? - i have next html: <html> <head><title>title</title></head> <body> <div id='div2'> <a href='#'>1</a> <div id='div1'> <a href='#'>2</a> </div> </div> </body> </html> ... , next javascript code, i'm running through greasemonkey: var nodes = document.body.getelementsbytagname('a'); (var = 0; < nodes.length; i++) { var node = nodes[i]; node.parentnode.removechild(node); } i expect find , remove tags; instead finds first, not second. far can tell it's having difficulty way sec tag nested. could please allow me know how remove tags, using getelementsbytagname? there reasons i'd prefer not utilize xpath if @ possible. capture length , remove in reverse order. eliminate side effects. ...

c# - Returning Dictionary from Linq Query -

c# - Returning Dictionary<FileHash, string[]> from Linq Query - thanks in advance assistance. i'm not sure if possible, i'm trying list of duplicate files using hashes identify list of files associated hashes. i have below: dictionary<filehash, string[]> findduplicatefiles(string searchfolder) { directory.getfiles(searchfolder, "*.*") .select( f => new { filename = f, filehash = encoding.utf8.getstring(new sha1managed() .computehash(new filestream(f, filemode. openorcreate, fileaccess.read))) ...

javascript - What's the .apply jQuery function? -

javascript - What's the .apply jQuery function? - i see in different plugins , codes, don't understand function... in jquery api isn't referenced! apply calls function set of arguments. it's not part of jquery, it's part of core javascript. however, there mention of in jquery docs: http://docs.jquery.com/types#context.2c_call_and_apply syntax: somefunction.apply(thisobj, [argsarray]) the above calls function somefunction , setting this thisobj within function's scope, , passing in arguments argsarray arguments function. javascript jquery plugins apply

Problem in IE with jQuery JSON append() to select control -

Problem in IE with jQuery JSON append() to select control - the next code works fine in ff , chrome, not in ie8. have 5 related category select boxes. below code relates selecting category first select box. in ie8, blank subcategory select box, after selecting category. in chrome , ff, can browse through categories , subcategories normally code $(function() { $("#selcategory").live("change", function(e) { $("#divmessage").css('display','none'); $("#divselsubsubsubsubsubcategory").css('display','none'); $("#divselsubsubsubsubcategory").css('display','none'); $("#divselsubsubsubcategory").css('display','none'); $("#divselsubsubcategory").css('display','none'); $("#divselsubcategory").css('display','none'); va...

wpf - Textbox Binding to a double property returns Error Message when entering not a number value in MVVM -

wpf - Textbox Binding to a double property returns Error Message when entering not a number value in MVVM - i have textbox binding double property. here xaml <textbox grid.column="1" horizontalalignment="stretch" margin="0,0,0,15" name="textbox_algorthwheight" verticalalignment="center"> <textbox.text> <binding path="algorithmweight" stringformat="n1"> <binding.validationrules> <exceptionvalidationrule/> </binding.validationrules> </binding> </textbox.text> </textbox> the property code shown below public double algorithmweight { { homecoming _algorithmweight; } set { if (value < 1.0) { value = 1.0; } _algorithmweight = va...

db:migrate command not working while installing CommunityEngine, a ruby on rails plugin -

db:migrate command not working while installing CommunityEngine, a ruby on rails plugin - i started creating app : rails new appfog -d mysql have newest version of rails install have edit gemfile open gemfile, add together gem 'community_engine', '~> 3.0.0' , set rails , sass-rails gem 'rails', '~> 4.0.0' , gem 'sass-rails', '~> 4.0.0' . then created new application_config.rb , add together configatron.community_name = "appfog" i delete gemfile.lock , run bundle install --binstubs . says next run bin/rake community_engine:install:migrations . and when run bin/rake db:migrate , gave me bunch of errors rake aborted! nomethoderror: undefined method `configure' #<appfog::application:0x007f9daa9a7f00> /users/sarthak/desktop/appfog/config/environments/development.rb:1:in `<top (required)>' /library/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `requ...

javascript - Selecting each records from drop-down & clicking on Search button in selenium Webdriver -

javascript - Selecting each records from drop-down & clicking on Search button in selenium Webdriver - select each record in drop-down lists , click on submit button , results displayed 1 time again select next value in drop-down list & click submit in selenium int i=1; java.util.list<webelement> portddl=(java.util.list<webelement>) driver.findelements(by.id("selectoption")); for(webelement selectoption : portddl){ if(selectoption.gettext() != null ) { selectoption.click(); //select se=new select((webelement) portddl); //se.selectbyindex(2); webelement click1 = driver.findelement(by.xpath("//*[@id='buttonssl']")); click1.click(); thread.sleep(5000); break; } else { se.selectbyindex(i); selectoption.click(); webelement click1 = driver.findelement(by.xpath("//*[@id='buttonssl']")); click1.click(); ...

c - GDB print all values in char array -

c - GDB print all values in char array - i storing various filenames in array partitioned null bytes. when debugging, able see first filename. so, instance if array this: hello.txt00000hello2.txt , able see hello.txt . how can print entire array? have problem finding such command elsewhere. you can utilize x/999bc , 999 size of array, instance: paul@thoth:~/src/sandbox$ gdb ./str gnu gdb (gdb) 7.4.1-debian copyright (c) 2012 free software foundation, inc. license gplv3+: gnu gpl version 3 or later <http://gnu.org/licenses/gpl.html> free software: free alter , redistribute it. there no warranty, extent permitted law. type "show copying" , "show warranty" details. gdb configured "x86_64-linux-gnu". bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... reading symbols /home/paul/src/sandbox/str...done. (gdb) list 1 int main(void) { 2 char * p = "hello\0world\0hahaha"; 3 home...