Posts

Showing posts from February, 2013

odbc - ADODB.Connection in VB6 - Open Method fails with Runtime Error '2147221164 (80040154)' -

this start happen on project on working, , far not able figure out root cause. this stopped working without change side, thing know has changed since last time worked on project disk failed (used e: drive on applications installed). operative system windows server 2003. below error: runtime error the libraries adding project following: visual basic applications visual basic runtime objects , procedures visual basic objects , procedures ole automation microsoft cdo windows 2000 library microsoft scripting runtime windows scripting host object model microsoft data binding collection vb6 (sp4) microsoft activex data objecrs 2.8 library the object oconn declared , instantiated following way: dim oconn adodb.connection set oconn = new adodb.connection no reference marked missing in vb project. i tried late binding, without success. tried use regsrv32.exe reregister msado15.dll, no joy. i out of idea here, think dependencies no longer satisfied due failur...

ember.js - Upgrading coupled Ember & Laravel projects (same folder) -

i working on project using old software front-end , back-end frameworks. front-end: ember 1.8 , back-end: laravel 4.2. ember needs 2.5 , laravel needs 5.2. i have seen laravelshift website upgrading end prefer use due saving time. now web application setup laravel , ember within same directory.. ember folders reside in directory called 'client' , laravel files residing under 'app'. i have tried upgrade ember without de-coupling projects , failed numerous times, getting errors in terminal complaining parsing json files - (referring package.json / bower.json). what proper way done? have search each dependency individually on github , see if compatible newer ember version , install manually? up till have used: http://emberigniter.com/update-latest-ember-data-cli/ , couple of other guides , haven't made progress. i using gulp task runner, when run compile project spits out error: /users/jcharnock/desktop/newatp/pt2/build/js-common.js:27 var emberb...

php - changing the menu toggle name for the title of the post in wordpress -

i making first steps learning code. made courses in codeacademy , decided continue learning while build wordpress child theme. the thing have menu toggle. it's button called menu: <button id="menu-toggle" class="menu-toggle"><?php _e( 'menu', 'twentysixteen' ); ?></button> what i'm trying replace name "menu" , give name of actual page or post title. i tried make doesn't work: <button id="menu-toggle" class="menu-toggle"><?php _e( '<?php the_title(); ?>', 'twentysixteen' ); ?></button> do have suggestion? maybe solution more complex try imagine? welcome awesome world of php , wordpress development 🙂 the opening php tag ( <?php ) used in button, using again inside __() function result in error... also, the_title() echo title, not return not pass value __ translation function... best thing remove __() translation fun...

synchronization - Desynchronized traces in COMPSs -

i generating traces of executions using compss 1.4. have noticed tasks data dependencies among them overlap in tracefile. shouldn't not possible. checked dependencies graph , seem correct. i installed compss following instructions: https://stackoverflow.com/a/38568213/2221409 is there can synchronize traces?, should try manually sync clocks of different machines? compss' tracing system used try sync traces of different nodes. however, feature not produce results on of machines (that feature removed on next release). usually, better off disabling synchronization . edit file (assuming it's installed on default paths) /opt/compss/runtime/scripts/system/trace.sh , edit following line: $extraedir/bin/mpi2prv -f trace.mpits -o ./trace/${appname}_compss_trace_${sec}.prv adding -no-syn param: $extraedir/bin/mpi2prv -no-syn -f trace.mpits -o ./trace/${appname}_compss_trace_${sec}.prv having said that, more synchronized resources produce better tracefi...

chart.js - Charts.js polar area scales -

when charts.js (version: 2.1.3) renders polar area charts low data values scale drawn fractional values: example polar area chart the fractions not make sense in context of data (student numbers). rather display scale of whole numbers, or no scale. have tried change chart options, looked @ , tested various examples, searched answers on site , elsewhere, no success yet. advice please? example of code: var ml_chart_obj = new chart(ctx, { type: "polararea", data: { datasets: [{ data: [0,1,0], backgroundcolor: [ "rgba(060,186,084,0.6)" ,"rgba(244,194,013,0.6)" ,"rgba(219,050,054,0.6)" ], label: "" }], labels: [ "active, on target" ,"unspecified start or end date" ,"active, @ risk" ] }, options: { scales: { xaxes: [{ display:...

java - BasicPathUsageException: Cannot join to attribute of basic type -

i using java 8 jpa (hibernate 5.2.1). have clause works perfectly, until introduce clause make use foreign key table values too. i getting following error: basicpathusageexception: cannot join attribute of basic type i think problem related fact have join table, , not sure how create join using join table. employee - employee_category - category model (employee.java): @manytomany(cascade = cascadetype.all, fetch=fetchtype.eager) @jointable ( name="employee_category", joincolumns={ @joincolumn(name="emp_id", referencedcolumnname="id") }, inversejoincolumns={ @joincolumn(name="cat_id", referencedcolumnname="id") } ) private set<category> categories; model (category.java): @id private string id; jpa when introduce following code, fails error above (i think problem new piece of code): join<t, category> category = from.join("id"); predicates.add(criteriabuilder.like(category....

Android Studio bitmap allocation out-of-memory error -

i'm using function rotate bitmap camera or gallery: public static bitmap fixorientation(bitmap mbitmap) { if (mbitmap.getwidth() > mbitmap.getheight()) { matrix matrix = new matrix(); matrix.postrotate(90); return bitmap.createbitmap(mbitmap , 0, 0, mbitmap.getwidth(), mbitmap.getheight(), matrix, true); // error here! } return mbitmap; } its workes fine in first 2 times i'm using it, in third time crashes app , giving me error: java.lang.outofmemoryerror: failed allocate 36578316 byte allocation 16771872 free bytes , 29mb until oom this function called: @override protected void onactivityresult(int requestcode, int resultcode, intent data) { super.onactivityresult(requestcode, resultcode, data); if (resultcode == result_ok && data != null) { uri uri = data.getdata(); try { bitmap sourcebitmap = mediastore.images.media.getbitmap(this.getcontentresolver(), uri); ...

plot - R: Suppress ticks and labels at endpoints of axis -

Image
i have code producing below pasted plot x <- c(2, 3, 4) y <- c(2.5, 4.1, 5.5) plot(x, y, type = "o", xlim = c(1, 5), ylim = c(2, 6), axes = false, bty = "n") axis(side = 1, @ = seq(1, 5, 1)) axis(side = 2, @ = seq(2, 6, 1), las = 2) i have neither ticks nor labels @ position 1 , 5, axis should still drawn . looking for: when using labels = c("", 2, 3, 4, "") ticks drawn. when using tick = false , no axis. have solution this? you need draw line manually. using line2user function in this answer : x <- c(2, 3, 4) y <- c(2.5, 4.1, 5.5) plot(x, y, type = "o", xlim = c(1, 5), ylim = c(2, 6), axes = false, bty = "n") axis(side = 1, @ = 2:4) lines(x = c(1, 5), y = rep(line2user(0, side = 1), 2), xpd = true) axis(side = 2, @ = seq(2, 6, 1), las = 2) note, line2user function gives position of lines in user coordinate system. need xpd = true draw outside plotting region.

sql server 2005 - SQL script to rename all the table names with new name if it containes required string in mySQL and MsSQL -

i have 1 database 100 tables in it. out of 100 tables have name house, house1, house2 , housexyz , on. now want write script in mysql , mssql replace house home . database should having table name home, home1, home2, homexyz , on. as mentioned here would table names: select 'exec sp_rename @objname=' + name + ', @newname=' + replace(name ,'house', 'home') sysobjects type = 'u'

linux - processing programming language: imports sound and video files -

i not professional in linux programming, have problem processing programming language: there 2 media files (audio , video), , import theese in program. attempts that: imports processing.sound.*; imports processing.video.*; void setup(){ soundfile soundfile = new soundfile(this, "soundfile.mp3"); movie videofile = new movie(this, "videofile.mp4"); } when add soundfile objects, problem occuring under runtime: terminate called after throwing instance of 'std::runtime_error' what(): rtapialsa::probedeviceopen: pcm device (hw:0,3) won't open input. not run sketch (target vm failed initialize). more information, read revisions.txt , → troubleshooting. when add movie objects, problem occuring under runtime: unsatisfiedlinkerror: error looking function 'gst_date_get_type': /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.800.0: undefined symbol: gst_date_get_type library relies on native code that's not availabl...

Does jenkins CI support PHP App Engine applications? -

does jenkins ci support java , python? or support php? in jenkins website see documents related java/python only. jenkins ci written in java need java installation run it. other that, it's general purpose tool runs arbitrary software on system. if want run php tests, you'll have make sure php installed on jenkins build machines. if want deploy app engine jenkins, you'll have make sure app engine deploy tools installed on jenkins build machine. both of these things can done.

How do I set up apache virtualhosts proxies to subdomains on different docker containers -

i have project setup multiple docker containers , trying access subdomain trying proxy container. can achieve similar when not sub domain, example following allows me hit localdev.com/api : <virtualhost localdev.com:80> servername localdev.com setenv project_home /project/server setenv project_server_id local setenv project_environment docker documentroot /project/server/www <directory /project/server/www> require granted </directory> <proxy *> allow localhost </proxy> proxypass /api http://api.localdev.com/ proxypassreverse /api http://api.localdev.com/ </virtualhost> but when add virtual host api.localdev.com forwarded localdev (the url doesn't change in browser content it) this subdomain virtualhost: <virtualhost api.localdev.com:80> servername api.localdev.com <proxy *> allow localhost </proxy> proxypass / http://api.localdev....

Android Map not scrolling properly in CollapsingToolbarLayout -

i have google map in collapsingtoolbarlayout. map displays perfectly, although map camera doesn't work well. when try swipe map move other locations, animation not smooth, , doesn't register swiping map because coordinatorlayout overrides map. this means map doesn't scroll when try to, example, swipe on map. coordinatorlayout scrolls instead (nestedscrollview moves instead of map changing location). does know how around problem? <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.coordinatorlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/background_light" android:fitssystemwindows="true" android:id="@+id/coordlayout" > <andro...

android - Using one adapter for multiple arrays -

i have situation need advice on. have app has expandable list view. each child click sends user next activity, tab layout list view. tab layout has 3 tabs. i'm trying figure out how send data 3 tabs listviews when child clicked on expandable listview. originally going set in setonchildclicklistener so: expandablelistview.setonchildclicklistener(new expandablelistview.onchildclicklistener() { @override public boolean onchildclick(expandablelistview parent, view v, int groupposition, int childposition, long id) { if (groupposition == 0) { if (childposition == 0) { mcustomlistviewadapter.addadapteritem(new customobject("squats", "60%", "6", "150", false)); listviewfri.setadapter(mcustomlistviewadapter); edit: tablayout activity sets 3 tabs. i'm not sure access bundled extras. public class workoutdaysactivity extends baseactivity { listview listvi...

pymc - Re-running a model with new data in pymc3 -

i wondering if there mechanism in pymc3 re-run model new data. after setting model , before sampling, assume pymc3 optimization (and compilation?) of model takes quite time. setup model once, , run long sequence different (independent) data sets through it. i tried setting model outside loop (defining priors, etc.) , updating likelihood new measurements inside loop (and run sampling inside). estimates, however, not change changing data. hence think model using data provided first. many , best regards jan

C++ How to have a class relying on a namespace and that namespace relying on the class? -

so have class member variables instances of structure defined within namespace, , function within same namespace has parameter pointer instance of above mentioned class. this looks like: someclass.h #ifndef some_class_h #define some_class_h include "somenamespace.h" class someclass { private: somenamespace::somestructure instance1, instance2; ... somenamespace.h #ifndef some_namespace_h #define some_namespace_h #include "someclass.h" namespace somenamespace { namespace anothernamespace { void somefunction( someclass *psomeclass ); } struct somestructure { ... } ... the errors receiving: error c2065 'someclass': undeclared identifier error c2653 'somenamespace' : not class or namespace name the first error related to: void somefunction( someclass *psomeclass ); the second error relates to: somenamespace::somestructure instance1, instance2; i fixed first error addin...

CardView bottom border is cut off inside ScrollView android -

Image
i putting cardview inside scrollview, expect see @ bottom, border should shown(see pic below). not. problem cannot scroll bottom see border of cardview. all solutions on change layout_margins paddings, not case cardview if want show border. tried everything. still doesnt work. picture 1. scroll bottom cannot see border picture 2. can see top border following xml code <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <scrollview android:layout_width="match_parent" android:layout_height="wrap_content" android:fillviewport="true"> <android.support.v7.widget.cardview android:layout_width="match_parent" android:layout_h...

javascript - How to use res.render data as a $scope object in angular controller ? -

i have route defined in node/express has res.render router.get('/', function (req, res) { res.render('index', {user: req.user}); }); on rendering index page, want capture req.user $scope object in angular controller on front end. how can done? please provide code snippets answer. to accomplish this, first need add line in jade create global javascript object hold user value, i.e. script(text/javascript). var theuser = !{json.stringify(user)}; // inserted jade now in controller this app.controller('anycontroller',function() { var vm = this; vm.user = theuser; }); i have done few projects. aaron

sql - Create a flat file using SSIS -

hi trying create flat file (text file) sql server database view, have date time column in dd/mm/yyyy format want column converted 'ddmmccyy' format in flat file. e.g. (25/07/2016 25072016). secondly in text file has leave character blank space after each column i.e. starting byte:1 ending byte:19 e.g id column having value '5' in text file have add 18 blank space after value , next column should begin on starting byte 20. have around 50 plus columns different specification. if 1 can me how achieve new ssis don't know how achieve using data conversion or derived columns. thanks in advance to format date, perhaps can try format function declare @date date=getdate() select format(@date,'ddmmyyyy') returns 25072016 unfortunately, don't understand second requirement

asp.net - A connection attempt failed because the connected party did not properly -- Using HttpClient -

Image
i receiving connection attempt failed web api service when called service asp.net mvc application. if call service browser or mvc application hosted on server, works. it works if host application in test server or development server. it doesn't work when host application on server , call service mvc app. any suggestion. on hosted server blocking connection. using (var client = new httpclient()) { string baseurlfromconfig = configurationmanager.appsettings["webserviceurl"]; client.baseaddress = new uri(baseurlfromconfig); client.defaultrequestheaders.accept.clear(); client.defaultrequestheaders.accept.add(new mediatypewithqualityheadervalue("application/json")); uri myuri = new uri(baseurlfromconfig + "api/account/confirmemail?e=" + e + "&code=" + code, urikind.absolute); var response = client.getasync(myuri).result; if (response...

c# - Insert into 120 columns from 120-indexed array -

i have column names this id ,test ,[h01_1] ,[h01_2] ,[h01_3] ,[h01_4] ,[h01] ,[h02_1] ,[h02_2] ,[h02_3] ,[h02_4] ,[h02] ,[h03_1] ,[h03_2] ,[h03_3] ,[h03_4] ,[h03] ,[h04_1] ,[h04_2] ,[h04_3] ,[h04_4] ,[h04] ,[h05_1] ,[h05_2] ,[h05_3] ,[h05_4] ,[h05] ,[h06_1] ,[h06_2] ,[h06_3] ,[h06_4] ,[h06] ,[h07_1] ,[h07_2] ,[h07_3] ,[h07_4] ,[h07] ,[h08_1] ,[h08_2] ,[h08_3] ,[h08_4] ,[h08] ,[h09_1] ,[h09_2] ,[h09_3] ,[h09_4] ,[h09] ,[h10_1] ,[h10_2] ,[h10_3] ,[h10_4] ,[h10] ,[h11_1] ,[h11_2] ,[h11_3] ,[h11_4] ,[h11] ,[h12_1] ,[h12_2] ,[h12_3] ,[h12_4] ,[h12] ,[h13_1] ,[h13_2] ,[h13_3] ,[h13_4] ,[h13] ,[h14_1] ,[h14_2] ,[h14_3] ,[h14_4] ,[h14] ,[h15_1] ,[h15_2] ,[h15_3] ,[h15_4] ,[h15] ,[h16_1] ,[h16_2] ,[h16_3] ,[h16_4] ,[h16] ,[h17_1] ,[h17_2] ,[h17_3] ,[h17_4] ,[h17] ,[h18_1] ,[h18_2] ,[h18_3] ,[h18_4] ,[h18] ,[h19_1] ,[h19_2] ,[h19_3] ,[h19_4] ,[h19] ,[h20_1] ,[h20_2] ,[h20_3] ,[h20_4] ,[h20] ,[h21_1] ,[h21_2] ,[h21_3] ,[h21_4] ,[h21] ,[h22_1] ,[h22_2] ,[h22_3] ,[h22_4] ,[h22] ,[h23_1] ,[h23...

ruby on rails - What is the best design practise to create tables from same controller using same actions -

i have project involved genealogy. starts asking questions (current user), same questions father, same questions mother , goes on until grandparents of both sides. unfortunately, have tried 3 different approaches , implementations, each time correcting past mistakes pretty new rails. i recommendation/guidance community regarding best design approach should follow having design problems. so think best way come different tables benefit later when need put info in single family tree. so, 1 table current user, 1 father, mother, etc having model each table using single controller because have same html.erb form , each time changes headers adapt sibling question. i had created flow , actions such new, create, show etc problem following: the flow of questions consecutive, , @ end shows family tree. therefore when user clicks continue, data saved in equivalent table of database , flow continues next table. i stuck more 8 hours on how make create method change father mother h...

google bigquery - Updating Table Expiration via API -

is possible update retention time of existing table through api? prefer not recreating table if possible. yes. can use tables: patch set/update expirationtime table property

ckan - Datapusher memory error datastore -

ckan version if known (or site url) : latest please describe expected behavior : large files uploaded datastore datapusher . please describe actual behavior : works when uploading normal sized files. however, when trying upload large csv files (750 mb, not large still) datapusher datastore, error : _"job "push_to_datastore (trigger: runtriggernow, run = true, next run at: none)" raised exception traceback (most recent call last): file "/usr/local/lib/python2.7/dist-packages/apscheduler/scheduler.py", line 512, in _run_job retval = job.func(*job.args, **job.kwargs) file "/usr/lib/ckan/datapusher/src/datapusher/datapusher/jobs.py", line 364, in push_to_datastore f = cstringio.stringio(response.read()) file "/usr/lib/python2.7/socket.py", line 359, in read return buf.getvalue() memoryerror"_ i changed memory allowed size in datapusher_settings.py, on ckan conf file, in nginx_proxy_cache, don't see w...

c# - Change Foreground item of ListView -

i want change foreground of item on listview of uwp. using: int i_deleterow = listview1.selectedindex; var item = listview1.items[i_deleterow] listviewitem; if (item != null) { item.foreground = new solidcolorbrush(colors.red); } but code item null. appreciated. you need use itemcontainergenerator.containerfromindex . returns dependencyobject can cast listboxitem , use listboxitem 's properties foreground : listviewitem item = (listviewitem)(listview1.itemcontainergenerator.containerfromindex(listview1.selectedindex)); if (item != null) { item.foreground = new solidcolorbrush(colors.red); }

php - Using sessiondata in another website -

i'm trying session variables 1 website another. website has variables shop, other 1 regular website. i want know on regular website if user logged in (only if, don't need know on account) , how many items user has in cart. my plan achieve echoing json object on blank page , use jquery.get on other website in order variables. page in shop ( transferdata.php ) display correct object, is {"logged":1,"cart":9} . however, page retrieves data ( getdata.php ) gets {"logged":0,"cart":0} . code transferdata.php (the file in shopwebsite) # check login status if ($ca->isloggedin()) { $transferdata['logged'] = 1; } else { $transferdata['logged'] = 0; } # amount of items in cart $transferdata['cart'] = count ($_session['cart']['products']) + count ($_session['cart']['addons']) + count ($_session['cart']['domains']); # display transferdata echo json_e...

opengl - I can not start the program Linux Graphics Debugger -

Image
i want use linux graphics debugger on ubuntu mate 16.04 starting parameters localhost port **22** got error: "connection failed" however, did manual says this must mean cannot connect through ssh . following install it: sudo apt-get install ssh then follow instructions. then sure can test locally if ssh works properly: ssh me@localhost ju@ju-hp-compaq-dc7900-small-form-factor:~$ ssh ju@localhost authenticity of host 'localhost (127.0.0.1)' can't established. ecdsa key fingerprint 60:8e:2b:c2:6d:f8:b9:41:fa:ba:12:ae:a2:5b:30:a6. sure want continue connecting (yes/no)? yes warning: permanently added 'localhost' (ecdsa) list of known hosts. ju@localhost's password: welcome ubuntu 14.04.4 lts (gnu/linux 3.16.0-76-generic x86_64) * documentation: https://help.ubuntu.com/ programs included ubuntu system free software; exact distribution terms each program described in individual files in /usr/share/doc/*/copyri...

oracle - how to incorporate dynamic column name in sql query -

i have table, has columns, week1,week2, week3 , on. i have stored procedure, , based on number input, want select column. example, if input 4 want make query, select * table_name week4=<something> is there way other using dynamic query? because dynamic thing small part of huge query. the comments normalization right, if have no choice, can use "or" clauses: declare @inputvalue int; set @int = 1; select * <table> (week1 = <something> , @inputvalue = 1) or (week2 = <something> , @inputvalue = 2) or (week3 = <something> , @inputvalue = 3) or (week4 = <something> , @inputvalue = 4) this slow if tables of size, won't using indexes. wouldn't suggest doing unless you're absolutely unable change table structure.

php - Model files and DB interaction in Laravel/Spark -

i have been using laravel quite few months. switched spark new project , got few questions. where model files in spark? (i used have model files in app/model in laravel) i not find logic db connection , select or other mysql queries happens? please me find those. how disable subscription/billing related elements front-end. don't have charge users do have full documentation covers spark concepts. checked basic videos of spark searching detailed documentation. please note freshly installed spark did not have code tried clear doubts mentioned above.

.load a php script with an ajax callback inside of the page -

is possible send input via ajax php script , have success callback .load section of displayed page , have php script inside reloaded section display session variable inside label of input? edit: script feel implemented wrong errors have me fix? $(document).ready(function() { $('input1').on('keypress',function(e){ var p = e.which; if(p==13){ var input1set = $(this); var input1 = input1set.serialize(); $.ajax({ url:'inputs.php', type: 'post', data: input1, success: function(input1) { $('#input1lable').load("tables/table_1.php #input1lable"); } }); return false; }); // repeatable input field code. }); so did go wrong? p.s hope there enough context given know how working in app.

Informatica Powercenter One to Many SQ Query and Mapping Issues -

i have multiple views person_view phone_view has 1 many relationship. in following query, got toad correctly output result 1 row each person record. i having problem getting work informatica powercenter. copied/pasted query sq sql query section. since query takes phone_number , check against phone_type on whether of type home, business, or personal, output 3 phone number columns called home, business, , personal. i created 3 new columns in sq ports called home, business, , personal match query output columns. when validate query, says must match 28 ports sq. when add 1 column , map exp transformation , target, still give error. counted ports , 29. if removed phone columns, works , count 28. when add 1 phone column, gives error. i think missing step. any appreciated. person view 1 john m. doe phone view 1 111-111-1111 home 1 222-222-2222 business 1 333-333-3333 work toad result 1 john m. doe 111-111-1111 222-222-2222 333-333-3333 here query (this works in toad)...

Android Realm version upgrade error with gradle -

we developing android application sdk. sdk module app. using realm in sdk (for now). gradle file i've added realm sdk build.gradle file. i've added apply plugin: 'realm-android' on top of file , buildscript { repositories { jcenter() } dependencies { classpath "io.realm:realm-gradle-plugin:0.90.1" } } on bottom of file. compiling , working correctly until tried upgrade latest version (1.1.0). if change version 1.0.0 or later, doesn't compile. here error logs: gradle console: note: processing class transactionupdateapicall note: processing class address note: creating defaultrealmmodule persistentdatamanager.java:134: error: no suitable method found findallsorted(string,sort,string,sort,string,sort) objects = query.findallsorted(sorts.get(0).fieldname,sorts.get(0).dir,sorts.get(1).fieldname,sorts.get(1).dir,sorts.get(2).fieldname,sorts.get(2).dir); ^ method realmquery.fi...

ms access - ODBC DSN to SQL Server using Windows NT for another user -

i trying figure out how/if can create dsn on system connect sql server can use in ms access. everything on comp domain i log workstation comp\user1 the sql server given access user comp\user2 i not sure how sql server configured cannot change anything what i've tried: if go odbc administrator , try create connection (using either "with windows nt authentication..." or "with sql server authentication...") fails if open odbc administrator comp\user2 (shift right click -> open as) can successfully add connection using "with windows nt authentication..." but means have open ms access comp\user2 also i hoping how add dsn, user or system, use windows nt authentication comp\user2 . but not able figure out how this.

hadoop - Retrieve only file name into a table in hive -

i need retrieve filename.txt linux path , insert filename table column in hive. possible retrieve file name path , insert hive table using virtual columns? please advice! e.g. of path /home/usr/path/filename.txt , insert filename table. create table t( name string); thanks! if want run against hdfs - command - awk -f "/" '{print $nf}' file name. [cloudera@quickstart ~]$ hadoop fs -ls /user/cloudera/departments|awk -f "/" '{print $nf}'|egrep -v 'found|_success' part-m-00000 part-m-00001 [cloudera@quickstart ~]$ if want run against local file system - command - ls -1 give file name. can use awk -f "/" '{print $nf}' you can create shell script as: (uncomment hive statements) #!/bin/sh files=`hadoop fs -ls /user/cloudera/departments|awk -f "/" '{print $nf}'|egrep -v 'found|_success'` file in $files #hive -e "insert table t(name) values (\"$file\");...

R package with c++ code failed installation, No DLL was created -

i'm working on r package uses c++ code , includes external libraries (dlib, boost , optimization library developed in group). we're using rcpp integrate r , c++, problem package fails compile, , none of similar questions i've found out there have worked me. the report generated r cmd check is: * installing *source* package 'irtppexperimental' ... ** libs *** arch - i386 c:/rtools/mingw_32/bin/g++ -std=c++0x -i"c:/progra~1/r/r-33~1.1/include" -dndebug -i"c:/users/camilo/documents/r/win-library/3.3/rcpp/include" -i"d:/compiler/gcc-4.9.3/local330/include" -i../src/include -o2 -wall -mtune=core2 -c rcppexports.cpp -o rcppexports.o c:/rtools/mingw_32/bin/g++ -std=c++0x -i"c:/progra~1/r/r-33~1.1/include" -dndebug -i"c:/users/camilo/documents/r/win-library/3.3/rcpp/include" -i"d:/compiler/gcc-4.9.3/local330/include" -i../src/include -o2 -wall -mtune=core2 -c rcpp_hello_world.cpp -o rcpp_he...

ios - iPhone errors in console related to NSTimer? -

i writing app uses nstimer on non-repeating basis. sets timer 30 seconds , runs .invalidate() either before time or within method nstimer calls. i'm noticing following output, repeating 5 or times whenever use timer: jul 25 12:08:47 iphone timed[62] <notice>: (note ) coretime: want active time in 41.53min. need active time in 8333.20min. remaining retry interval: 0.000000min. jul 25 12:08:47 iphone usereventagent[26] <error>: validateandadddefaults(com.apple.timed): end time (inf) > (491166527.7) + background_task_agent_job_window_max_time_from_now_sec (3024000.0) + background_task_agent_job_time_error_margin (300.0) jul 25 12:08:47 iphone timed[62] <notice>: (error) coretime: error requesting proactive time check job am doing wrong? app seems working intended. here how i'm creating timer: let timeremaining = uiapplication.sharedapplication().backgroundtimeremaining let timeoutin = [timeremaining - 3, 30].minelement()! self.timeouttimer = nst...

Which string should I edit to set the fully qualified Qt/Android app name? -

with trivial qapplication in ~/hello compile , deploy through mkdir ~/hello_build cd ~/hello_build /qt/5.7/android_armv7/bin/qmake -r -spec android-g++ ~/hello/hello.pro make make install install_root=android /library/java/javavirtualmachines/jdk1.8.0_92.jdk/contents/home/bin/keytool -genkey -v -keystore ~/hello/hello.keystore -alias hello-alias -keyalg rsa -keysize 2048 -validity 10000 /qt/5.7/android_armv7/bin/androiddeployqt --output android --verbose --input android-libhello.so-deployment-settings.json --sign ~/hello/hello.keystore hello-alias --storepass mypassword at point see androidmanifest.xml has popped in ~/hello_build/android, , replace <manifest package="org.qtproject.example.hello" with <manifest package="com.mycorp.hello" and install /android/platform-tools/adb install ~/hello_build/android/bin/qtapp-release-signed.apk but when enter android shell /android/platform-tools/adb shell and check qualified package name, se...

c# - Alternate running a console Application as Exe and WinExe -

this question has answer here: show console in windows application? 9 answers i have c# console application running output type set "windows application" prevent console being seen during normal use. however, option alternatively run program console application @ will, in case user wanted troubleshoot , view console's output. is possible pass command-line argument executable either run application in "console" mode or "windows application" mode depending on user's desire? if not, there other way change on fly if application show console or not? no, can't. there's fundamental difference between console application , winforms application goes deep. once application compiled, cannot changed @ run time.

html - Parts of PHP syntax show up on page -

this question has answer here: php code not being executed, instead code shows on page 18 answers i have come across seemingly straightforward issue cannot find answer anywhere. for reason php tags i’m using don’t seem working. opening <?php , closing ?> , reason closing tag not being recognised code , showing when refresh browser: <?php echo <p>data processed</p>; ?> shows in browser data processed ;?> i must missing simple. you need quote strings. code outputting till end of command. end of file. <?php echo '<p>data processed</p>'; ?>

php - echo doesn't work correctly -

echo works fine @ other lines when try add tag table, see tags placed out of tag. <table> <th style="cursor:pointer;border-radius:5px 0px 0px 0px;">başlık</th> <th style="cursor:pointer;">başlatan</th> <th style="cursor:pointer;border-radius:0px 5px 0px 0px;">tarih</th> $sonuc = mysql_query("select a.subject, a.poster_name, a.poster_time, a.id_msg, a.id_topic, b.id_first_msg, b.id_member_started smf_messages a, smf_topics b a.id_msg = b.id_first_msg order id_topic desc limit 10"); if(mysql_num_rows($sonuc)!=0) { while($oku = mysql_fetch_object($sonuc)) { echo '<tr id="iceriktablo" style="cursor:pointer;margin-top:0;margin-bottom:0;">'; echo '<a href="forum/index.php?topic='. $oku->id_topic .'"><td style="font-size:13px;font-weight:bold;">'; echo $oku->subject; ech...

amazon ec2 - EC2- connecting to an independently installed SQL Server Express -

please note: not rds or prepackaged ec2 sql server solution. installed express copy independently after setting ec2 instance. i evaluating free tier instance of aws ec2. several months in, decided install sql server 2014 express on instance on own. cannot connect sql server instance via ssms server box local us. the following checklist of have done far: sql server configuration manager configured run sql browser enabled tcp on sql server instance windows firewall created inbound rule allow communication on tcp port 1433 , 1434 created inbound rule allow communication on udp port 1434 aws security group of ec2 instance sql instance resides mirrored rules above in windows firewall inbound traffic local server i'm trying access ec2 instance from successfully tested if rdp , icmp work on instance i believe issue lies in how referring sql instance: ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com\instance_name i've noticed when log in on ec2 instance...

c++ - What's the most basic way to format a 2D matrix of doubles in binary for reading into IDL? -

so have j matrix of doubles in c++ want read idl program. lets matrix called data, size rows cols, , name string saved filename. , write values out in stream binary file. ofstream myfile (filename, ios::binary); if(myfile.isopen()) { (int = 0; < rows; i++){ (int j=0; j < cols; j++){ myfile<<data.at(i,j); } myfile.close(); i want read idl i'm new working binary in idl , following documentation has gotten me here it's not working. function read_binmatrix, filename, rows, cols, thetype mat = read_binary(filename,data_type=thetype,data_dims=[rows-1,cols-1]) return, mat end ... ... matrix = read_binmatrix(file2,num_rows,num_cols,5) ...but error output. % read_binary: readu: end of file encountered. unit: 100, file: ... % execution halted at: read_binmatrix 21 ... myfile<<data.at(i,j); writes text file, not binary data. write numbers in binary format use std::ofstream::write() : myfile.write(reinterpr...

javascript - Ease Transition Effect For Dimming Screen When Video Is Played -

i have page set when user presses play on video dims background. when press pause turn off dimming effect. trying add ease transition effect it's little smoother when effect turned on , off. i'm not sure add transition css because i've don't far doesn't seem work. html <div id="overlay"></div> <div class="col-md-6"> <div id="introright"> <video poster="img/whoweare.jpg" preload="auto" controls> <source src="video/whoweare_hi.mp4" type='video/mp4; codecs="avc1.42e01e, mp4a.40.2"'> <source src="video/whoweare_hi.ogv" type='video/ogg; codecs="theora, vorbis"'> <source src="video/whoweare_hi.webm" type='video/webm; codecs="vp8, vorbis"'> </video> </div> <!-- end introright --> </div> javascript <script...

node.js - Webpack/Gulp/Express error: No such file or directory -

i have project consists of file upload form, uses express router , jade/pug template rendering 2 different views. i'm attempting use webpack compile javascript files 1 ( backend.js ), , gulp compile backend.js file, along 3 .pug files, directory. after webpack compiles js files contained in project, places them in build/backend.js: project-after-webpack and finally, gulp takes backend.js file, along pug templates located in folder in project, , places them in structure, compiling backend.js main.js , , turning pug files html files: project-after-gulp the rest of project in root directory. one of javascript files responsible rendering views upon http requests. i'm having trouble. without gulp , webpack, i'm able render .pug views no problem using res.render() . however, i'm getting "no such file or directory" error when use gulp , webpack. how i'm attempting render form.pug file, gulp turned form.html . router.get('/', function l...

parallel processing - Python multiprocessing: calling mpi executable and distributing over cores -

i trying use python's multiprocessing approach speed program working on. the python code runs in serial, has calls mpi executable. these calls in parallel independent of 1 another. for each step python script takes have set of calculations must done mpi program. for example, if running on 24 cores, python script call 3 instances of mpi executable each running on 8 of cores. each time 1 mpi executable run ends, instance started until members of queue finished. i getting started using multiprocessing, , possible, not sure on how go doing it. can set queue , have multiple processes start, it's adding of next set of calculations queue , starting them issue. if kind soul give me pointers, or example code, i'd obliged!

.net - C# Dll - export functions -

i trying create c# dll few exportable functions. want c++/unmanaged program load .dll , call particular exported function inside dll. i'am using robert giesecke's unmanaged exports . doesn't seem work. i ran unmanaged program in debugger , "loadlibrary()" , when tries "getprocaddress(test_start)" call fails , returns zero. this c# code: using system.runtime.interopservices; using rgiesecke.dllexport; using etc...; namespace test_dll { public class class1 { [dllimport("kernel32.dll")] public static extern intptr openprocess(int dwdesiredaccess, bool binherithandle, int dwprocessid); [dllexport("test_start", callingconvention = callingconvention.cdecl)] public static void test_start() { messagebox.show("it works","yes"); } } } the .dll builds ...

arrays - Continuously loop colors on div using javascript on mouseenter -

i have div on page , continuously cycle through set of colors using javascript . i've seen number of articles on stack overflow continuous loops show information using arrays , javascript yet have had trouble trying implement own project. my html: <div id="box" style="background:grey;" onmouseenter="change()"></div> and closest js solution can find: var change = function() { colors = ['#00b0e2', '#e3144e', '#15e39b']; count = -1; return function() { return colors[++count % colors.length]; } document.getelementbyid('box').style.background = colors; // or should **colors[]**? } i understand happening until return function having trouble understanding how inject color html? any or tips appreciated thanks. i think close, missing couple of key things. firstly , when onmouseover="change()" means run change() every time mouseover runs unlike us...

FFMPEG: Overlaying one video on another one, and making black pixels transparent -

i'm trying use ffmpeg create video 1 video overlayed on top another. i have 2 mp4s. need make black pixels in overlay video transparent can see main video underneath it. i found 2 ways overlay 1 video on another: first, following positions overlay in center, , therefore, hides portion of main video beneath it: ffmpeg -i 1.mp4 -vf "movie=2.mp4 [a]; [in][a] overlay=352:0 [b]" combined.mp4 -y and, one, places overlay video on left, it's opacity set 50% @ least other 1 beneath visible: ffmpeg -i 1.mp4 -i 2.mp4 -filter_complex "[0:v]setpts=pts-startpts[top]; [1:v]setpts=pts-startpts, format=yuva420p,colorchannelmixer=aa=0.5[bottom]; [top][bottom]overlay=shortest=0" -acodec libvo_aacenc -vcodec libx264 out.mp4 -y my goal make black pixels in overlay (2.mp4) transparent. how can done. the notional way chroma-key black out , overlay, @modj said, won't produce satisfactory results. neither method suggest below, it's worth ...