Posts

c++ - Lots of: 'Apple Mach-O Linker Errors' -

i have made iphone app in xcode uses dropbox api. have got 23 errors named apple mach-o linker errors. have linked binary dropbox library as: systemconfiguration, quartzcore, security, cfnetwork, coregraphics, uikit , foundation. not using of frameworks dropbox told me must import of them, , using rest. what should do? here 1 of errors: ld /users/zach/library/developer/xcode/deriveddata/snapdrop-fwhwffwawcnkfwbxvokogcjaaahb/build/products/debug-iphoneos/snapdrop.app/snapdrop normal armv7 cd /users/zach/desktop/snapdrop setenv iphoneos_deployment_target 7.0 setenv path "/applications/xcode5-dp3.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin:/applications/xcode5-dp3.app/contents/developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /applications/xcode5-dp3.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /applications/xcode5-dp3.app/contents/developer/platforms/iphoneos.platform/developer/s...

Drupal themes don't work -

i installed drupal on localhost. can login , post things on website, whenever try new template nothing changes. whole page color white , links blue. themes show no effect. doing wrong? thanks. clear caches . on /admin/config/development/performance click "clear caches" button. if have installed admin_menu module can easier link under top left icon title "flush caches".

sml - SMLNJ if statement error -

i'm trying learn sml , wrote small game resembling 1 in zed shaw's book 'learn ruby hard way'. code below works fine in repl , compiles mlton. however, results in else statement ("error!"). if try debug print(valof(response)) in place of if statements, returns whatever string type (an empty string if don't type anything). don't think inputline function, not let statement not return stdin, , should not comparison op. fun first_room () = (print "you're in dark, mottled room.\n"; print "which 1 choose? left or right?\n"; print "> "; let val response = (textio.inputline textio.stdin) in if response = none print "you stay.\n" else if valof(response) = "left" print "you go left.\n" else if valof(response) = "right" print "you go right.\n" else print "error!\n" end) fun main () = first_room (...

c# - Parsing Error while using Regex -

let me explain actual problem facing. when searchstring c+, setup of regular expression below works fine. when searchstring c++, throws me error stating -- parsing "c++" - nested quantifier +. can let me know how past error? regexp = new regex(search_str.replace(" ", "|").trim(), regexoptions.ignorecase); first of all, believe you'll learn more looking @ regex tutorials instead of asking here @ current stage. to answer question, point out + quantifier in regexp, , means 1 or more times previous character (or group), c+ match @ least 1 c , meaning c match, cc match, ccc match , on. search c+ matching c ! c++ in regex give error, @ least in c#. won't other regex flavours, including jgsoft, java , pcre ( ++ possessive quantifier in flavours). so, do? need escape + character search literal + character. 1 easy way add backslash before + : \+ . way put + in square brackets. this said, can use: c\+\+ or... ...

tcl - missing entries in tclIndex for snit types -

i'm using tcl 8.6 included snit (active state tcl). snit types held in different files. when generating index auto_mkindex relevant stuff snit types missing in tclindex . that means: when try create object of snit type (for example ' mytype create objectsname ... ), interpreter writes message invalid command name .... if complete tclindex manually set auto_index(rpcskeleton) [list source [file join $dir rpc2.tcl]] everything runs fine! do wrong? bug in snit package (or in add on module auto_mkindex )? i wouldn't advise using auto_mkindex @ all; whole thing setting automatically-loaded code rather ill-advised in first place in real application. it's far better either: assemble code package can package require . package definition file require package provide call in it, , you'll want (at least first time) use pkg_mkindex create package index file. package index files simple enough you'll able maintain them hand; don...

leap motion - Getting Yaw of hand unstable -

i making puppet app leap motion. whenever try , yaw of hand seems wrong (ie: hand flat says @ 45 degrees or hand flat , says @ -30 degrees, unreliable , jumpy). use hand hand = frame.hands().get(0); palm1position = hand.palmposition(); normal = hand1.palmnormal(); direction = hand1.direction(); palmroll = math.todegrees(normal1.roll()); palmyaw = math.todegrees(direction1.yaw()); to roll , yaw of hand. roll works yaw horrible. problem because marionettes rely heavily on yaw. idea why happening , how can fix it? i'm in javascript , don't think have yet, java docs should have this float pitch = hand.direction().pitch(); float yaw = hand.direction().yaw(); float roll = hand.palmnormal().roll(); see https://developer.leapmotion.com/documentation/languages/java/guides/leap_tracking.html

c++ - why this code can't open the file for read data -

i have problem in code. why can not code open file? thanks ofstream out("a.text"); while (i != 6) { out << b[i] << ' ' ; i++ ; } out.close(); = 0 ; ( ; < 6 ; i++) { b[i] = 0 ; } ifstream in("a.txt"); // problem in line if(!in) { cout << "error" ; cin.get(); exit(0); } export code : error you doing output file named a.text , try open a.txt