Posts

Rails & Neo4j - background processing and or queue - DelayedJob, SideKiq, RabbitMQ, Resque - which will fill these requirements? -

Rails & Neo4j - background processing and or queue - DelayedJob, SideKiq, RabbitMQ, Resque - which will fill these requirements? - i have neo4j cypher queries take quite bit of time process (they aggregate data).. i've optimized them death, still take longer want.. (using rails 3.2, rest (neography gem), ruby 1.93, neo4j 1.98, mac osx 10.7 ) for example, when user comments on object, fan out updates of friends. right fan out process attached comment process, , need separate out, otherwise user comments waits longer necessary.. , need guarantee job run , not lost or never executed, if whole scheme has rebooted. so first question is, want require message queue , background processing tool, or can both of these found in 1 system. i.e., might case of needing message queue guarantee job executed, using background process execute job? secondly, system(s) meet requirements? here requirements, in order of priority: run in background. deed of commenting kick off...

Import random Excel into Rails 4 app to create database schema on the fly -

Import random Excel into Rails 4 app to create database schema on the fly - one of recent rails app requires import info excel, i've been next along ryan's railscasts #396 importing csv , excel, worked out pretty okay, 1 limitation, have create database schema first, wondering how can create more adaptable, pick excel header or number of columns, base of operations on imported data, create database schema on fly. possible? :) relational database works when know construction of data, there not suitable making migrations triggered user data, if don't know construction can schema like: mytable col1: string col2: string col3: string coln: string other approach may seek utilize non-relational database mongodb, it's compatible ruby on rails. ruby-on-rails

python - Getstatusoutput function returns a value doesn't work -

python - Getstatusoutput function returns a value doesn't work - i utilize django application, view.py file phone call changes_to_test2 function, within of config.py file located in different folder view.py. the code is: view.py file: def test1(request): import commands command = "config.py --action=changes_to_test2" (status, output) = commands.getstatusoutput(command) print 'output %s' %output the print displays: output sh: config.py: command not found so never enters other function, suggestions? python django

ios - Compound predicate not returning the results -

ios - Compound predicate not returning the results - i'm stuck problem while can't seem think of way right. i'll seek explain clear can. there 3 entities in core info model. workplace, patient , handover. a workplace can have multiple patients. patient can belong multiple workplaces. a patient can have 1 handover , vice versa. in app, list of workplaces shown user. when user selects workplace, need set patients belong selected workplace , have handovers today. since patient can have multiple handovers, there can duplicate records patients , that's okay. this i'm doing now. first retrieve workplace object user selected. iterate through it's patients , extract ids of patient objects , collect them in array. pass array of patient ids , date filter out patients have handovers given date. let workplace = db.loadworkplace(155) // 155 id of workplace var patientids: [int] = [] p in workplace.patients { allow patient = p patient patienti...

SharePoint::SOAPHandler perl script works for display not copy -

SharePoint::SOAPHandler perl script works for display not copy - i'm trying re-create files linux server sharepoint. i've got connection working on display of sharepoint. there 1 file out there view. 401 unauthorized on copy. why successful on display not copy? #!/usr/bin/perl utilize authen::ntlm qw(ntlmv2); utilize data::dumper; utilize sharepoint::soaphandler; utilize copytree::vendorproof; utilize copytree::vendorproof::localfileop; delete $env{'https_proxy'}; $sharepointobj = sharepoint::soaphandler ->new; $localfileobj = copytree::vendorproof::localfileop ->new; $sharepointobj->sp_creds_domain('operations.web.myworksite.com:443'); $sharepointobj->sp_creds_user('mydomain\myuserid'); $sharepointobj->sp_creds_password('mypassword'); $sharepointobj->sp_authorizedroot('https://operations.web.myworksite.com:443/sites/ca...'); $cpobj = copytree::vendorproof ->new; print dumper $sharepointobj->fd...

c# - Cannot get response in ajax success -

c# - Cannot get response in ajax success - my ajax code below. in cannot response server side c# code. there no issues server side code ( have checked debugging ). server side returning string ajax. $.ajax({ type: "post", url: '@system.web.configuration.webconfigurationmanager.appsettings["baseurl"]' +"provider/getstate", contenttype: 'application/json', data: {countryid: country_id }, success: function (data) { alert(data); } }); server side code below public string getstate(string countryid) { int i= convert.toint32(countryid); var details = objuseraccount.sp_getstate(i).tolist(); if(details.count>0) { homecoming "success"; } else { homecoming "false"; } } add datatype in ajax request this , if datatype not matched received ...

verilog - Assign localparam with concatenation satement? -

verilog - Assign localparam with concatenation satement? - here's i'm trying . . . localparam nine1 = {3{4'b0000}, 4'b1001}; localparam nine2 = {2{4'b0000}, 2{nine1}}; is possible assign localparam concat satement , utilize localparam in localparam assignment? seems work, might have fuddled up. not scheme verilog way. well, error wasn't wrapping replication statements in {} within concatenation . localparam nine1 = {{3{4'b0000}}, 4'b1001}; localparam nine2 = {{2{4'b0000}}, {2{nine1}}}; subtle, important. verilog