Posts

Showing posts from August, 2013

osx - "python myscript" ignores "#!/usr/bin/env pythonX" where pythonX doesn't exist -

why doesn't test.py throw error env: python3: no such file or directory when python 3 not installed? my system (mac os x) has python 2.7 installed, not python 3: $ /usr/bin/env python -v python 2.7.12 $ /usr/bin/env python3 -v env: python3: no such file or directory file test.py: #!/usr/bin/env python3 import sys print sys.executable executing test.py: $ python test.py /usr/local/opt/python/bin/python2.7 i thought since python 3 not exist on system, having shebang line #!/usr/bin/env python3 throw error , terminate script. env selected python 2.7 interpreter. the shebang interpreted os when tries execute script. whey type python test.py , os executes python , python executes script (and python found based on current path ) opposed being processed os. if make script executable ( chmod +x test.py ) , try execute directly (e.g. ./test.py ), os responsible running script @ shebang figure out program responsible run script. in case, /usr/bin/env py

Matlab: is it possible to import data from ascii file and put them in a struct? -

i have file (param.txt): jss 2 adev 1 vers 770 jsd 1 and want put data file struct variable in workplace. let call "p", p struct of: field value _____ |_______ jss |2 adev |1 vers |770 jsd |1 then: >>> p.jss ans = 2 is possible? thanks! yes, can use textscan grab of parts , create cell using struct constructor. fid = fopen('filename.txt', 'r'); % parse out fieldnames , numbers data = textscan(fid, '%s %d'); % put strings in first row , numbers in second alldata = [data{1}, num2cell(data{2})].'; % pass fieldnames , values struct() p = struct(alldata{:}); fclose(fid);

mysql - How can i convert my PHP Table into XL sheet format -

i created table , performed arithmetic operations on using php. after calculations, values stored in table. how can convert php page table xl sheet format? the easiest way solve exporting table in .csv format. documentation function.fputcsv $dataset = array( array('name', 'phone', 'country'), array('maria', '+555199999999', 'brazil'), array('joão', '+555188888888', 'brazil') ); $fp = fopen ('catalog.csv', 'w'); foreach ($dataset $data) { fputcsv ($fp, $data); } fclose ($fp); but ... if xls necessary. tool can give little help. documentation of tool a little time reading recommended.

ios - performSegueWithIdentifier not working when being called from new instance of viewController in Swift -

my mission when app receive notification , user taps on notification want redirect user correct view. in case, singleapplicationviewcontroller . current code pushnotification.swift - class static functions handle behaviors when receiving push notifications the __getnavigationcontroller returns specific navigationcontroller based on tab -and viewindex tabbarcontroller. internal static func __getnavigationcontroller(tabindex: int, viewindex: int) -> uinavigationcontroller { let appdelegate = uiapplication.sharedapplication().delegate as! appdelegate let window:uiwindow? = (uiapplication.sharedapplication().delegate?.window)! let storyboard = uistoryboard(name: "main", bundle: nil) let viewcontroller = storyboard.instantiateviewcontrollerwithidentifier("mainentry") window?.rootviewcontroller = viewcontroller let rootviewcontroller = appdelegate.window!.rootviewcontroller as! uitabbarcontroller

php - Stripe payment issue with "application fee" -

i facing following problem while doing stripe payment. uncaught exception 'stripe\error\authentication' message 'only stripe connect platforms can work other accounts. if specified client_id parameter, make sure it's correct i using php code below: $charge = \stripe\charge::create( array( "amount" => $amount*100, // amount in cents "currency" => $currency, // usd "source" => $token, "description" => $description, "application_fee" => 123 // amount in cents ), array("stripe_account" => 'cus_7gt1caxxxxxx') // connected_stripe_account_id ); and question can connected_stripe_account_id acct_12qkqygsod4xxxxxx . if possible please send code or screenshot or location these account id. can please solve problem? you have create 'connect stripe' button in app redirect user fill form authorize app. after clicking on authorize but

Delete unused kafka consumer group -

i'm using confluent / apache kafka 0.10 compacted topic distributed cache synch mechanism. when application starts generates instance specific consumer group id. instances added , removed horizontal scalability, large number of group ids should never used again. i'm sure perfect usecase kstreams , ktables, trying myself intellectual reasons kstreams , ktables defined alpha quality in 0.10. is there kafka api call can use delete existing consumer group, knowing should never used again? since zookeeper not maintaining consumer offsets in version 0.10, think kafka need able this. since kafka 0.9, internal topic used store committed offsets. can configure how long offsets should kept via offsets.retention.minutes . (see offsets.retention.check.interval.ms ).

c++ - Issues compiling Qt project with Google Protocol Buffer -

i building network application qt , protocol buffer. have server, can compiled successfully, , qt client, cannot compiled protocol buffer. the server built running make on following makefile pwd := $(shell pwd) cxx := g++ linker := g++ incdirs := -i. -i$(pwd)/lib -i$(pwd)/lib/protobuf-2.6.1/src libdirs := $(pwd)/lib/protobuf-2.6.1/src/.libs libs := -l protobuf cxxflags := -std=c++11 -pthread -g #-wall -wextra build_dir=build bin := $(build_dir)/bin proto := $(shell bash -c "pwd")/lib/protobuf-2.6.1/src/protoc model_dir := model model_build_dir := build bin := $(build_dir)/bin models := $(shell bash -c "cd $(model_dir) && ls *.proto") models_srcfiles := $(patsubst %.proto, %.pb.cc, $(models)) models_objfiles := $(addprefix $(model_dir)/$(model_build_dir)/, $(patsubst %.cc,%.o,$(models_srcfiles))) incdirs += -i$(model_dir)/$(model_build_dir) server_dir := server server_srcfiles := $(wildcard $(server_dir)/*.cpp) server_objfiles := $(addprefix

android - Json array is not corretly showing in listview -

Image
output: i want show json array in fragment listview. have created class getuser : package com.gmakerorganisation.glocator.fragments; import android.app.progressdialog; import android.os.asynctask; import android.os.bundle; import android.support.v4.app.fragment; import android.util.log; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup; import android.widget.listadapter; import android.widget.listview; import android.widget.simpleadapter; import com.android.volley.requestqueue; import com.gmakerorganisation.glocator.config; import com.gmakerorganisation.glocator.getallusers; import com.gmakerorganisation.glocator.r; import org.json.jsonarray; import org.json.jsonexception; import org.json.jsonobject; import java.util.arraylist; import java.util.hashmap; public class sendrequest extends fragment { private requestqueue requestqueue; arraylist<hashmap<string, string>> userlist; private static final string ta

html - CSS 3D transform appears flat ( orthographic? ) -

on hover button flips fails show perspective. it's flat orthographic view of animation. using perspective property wrong? @import 'https://necolas.github.io/normalize.css/latest/normalize.css'; /* //////////////////////////////// initial //////////////////////////////// */ html, body{ height:100% } body{ background:#eee } #btn { display:block; width:100px; height:100px; margin:0 auto; position:relative; transform:translatey(-50%); top:50%; background:#333; color:#eee; border:0; outline:0; text-transform:uppercase } /* //////////////////////////////// _persp_ //////////////////////////////// */ #btn{ perspective:1000px } #btn:hover { transform:rotatex(180deg); transform-style:preserve-3d } /* //////////////////////////////// _trans_ //////////////////////////////// */ #btn{ transition-property: transform; transition-duration:1s } <!doctype html> <html lang="en"> <head> <meta name="viewport" conte

c# - what does this mean? (about class and instance) -

using system; class program { static void main() { haha haha1; } } class haha { int a; int b; public haha(int a, int b) { this.a = a; this.b = b; } } i know if want make instance, should write code such as: haha haha1 = new haha(1,2); but when write just haha haha1; there's no compile error. what haha haha1; mean? isn't wrong code? it not wrong code. variable declaration. haha haha1; simply declares variable named haha1 has type haha. variable not assigned value. when instantiate object new keyword: haha1 = new haha(); the variable refers object created

javascript - Rails app: require bootstrap vs require bootstrap-sprockets -

what consequential difference between adding //= require bootstrap-sprockets and //= require bootstrap to application.js? the documentation says: bootstrap-sprockets provides individual bootstrap javascript files (alert.js or dropdown.js, example), while bootstrap provides concatenated file containing bootstrap javascripts does 1 offer better performance on other, or something? sometimes ago, asked this question sprockets means in rails . drew in 2 answers throw more light topic me. i'm sure time go through answers, more understanding.

Best practice for android layout -

layout made hi quite new android(about 2 week) , read layouts , attributes but implementing in best way known skilled programmer confusing , can't on own. i made layout don't think it's implementation of view. on image attached, used multiple linearlayout in depth it looks this. used linearlayout layout_weight layout made is better use <relativelayout> or <tableview> ? i want efficiently implement these things. is safe use "xx dp" ensure same among different screens? extra question 1) issues faced when implementing. when multiple "match_parent", example if have <linearlayout orientation="horizontal"> <textview width="match_parent"> <textview width="match_parent"> </linearlayout> it behaves framelayout 1 textview displayed. what want have static table view has 3 fixed container in ratio 1:3:1 1 3 1 |_ _ |_ _ _ _ |_ _ | how c

Google Developer Console Internal Error with Datastore -

i still use legacy dev console of time because whenever i've tried newer console has given "internal error" when trying view datastore entities or view queries section. i hoping new, more colorful dev console fix problem gives same internal error. the thing don't errors looking @ datastore indexes. seems work fine. dashboard, query, , settings fail load same "internal error". please let me know if there's can fix this. i'm worried you're going decommission legacy console , i'll unable support users. thanks, stephen for coming across issue, there few ways resolve this: in apis section of dev console, disable re-enable cloud datastore api. file bug on gae public issue tracker (you can send me email directly cloud project id.) for interested in going on: the developers console uses cloud datastore api access project's datastore. current version of cloud datastore api (v1beta2) uses special version on app engi

Error while run app in Android Studio. app:incrementalDebugJavaCompilationSafeguard -

error:execution failed task ':app:incrementaldebugjavacompilationsafeguard'. java.io.ioexception: not delete folder c:\users\xxxx\androidstudioprojects\xxxx\app\build\intermediates\classes\debug\com\bluejamesbond its fresh instaltion of android studio en windows 8 , app running after in windows 7. my gradles // top-level build file can add configuration options common sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' classpath 'com.google.gms:google-services:3.0.0' // note: not place application dependencies here; belong // in individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean(type: delete) { delete rootproject.builddir } apply plugin: 'com.android.application&

javascript - Rails 4/AJAX GET data from controller -

i posted poor question earlier, reposting , making mvce. i'm building messaging service rails , ajax. far can submit message through form, update in html dom, ajax post method send controller, , controller save in database. now need add ajax method message submitted -- other users (in other browsers) able view it. currently, , hack job way of doing it, in js code set timeout calls ajax function every half second. there better way -- in, once controller saves message can call ajax function? ajax code looks this: function retrievemessages(){ var message; <%debugger%> $.ajax({ type:"get", url:"<%= messages_get_path %>", datatype:"json", data: { what_goes_here: "blah" }, //this part not understand -- see below success:function(data){ message = data; console.log(data) } }); settimeout(retrievemessages, 500); } $(document).ready(function(){ //get messages settimeout(retriev

How to store time data type in neo4j? -

i created user nodes value-time: create (u1:user {name:'user 1', pickuptime:'10:10', dropofftime:'10:35'}) i wonder way (format) store time, because when kind of queries match (u:user) return u.name name, u.pickuptime picktime order picktime desc i got result name picktime user 3 9:30 user 2 10:20 user 1 10:10 and need ordered result: name picktime user 3 9:30 user 1 10:10 user 2 10:20 any suggestions? in advance two notes: you should use format hh:mm means need specify 9:30 09:30. also in previous case need specify "order picktime asc" , not desc if obtain order desire

vbscript - Password notification script raising "type mismatch" error for remaining number of days -

i can each 1 work can not them work together, logon script uses strarg = call on hta file, hta file generates password window. when logon script runs hta file errors out on lines 31 , 106. i know issue lies within strarg , can not figure out. should notifying endusers @ 13 days before expiring mark. great. currently, script now, error hta file part: line: 31 , 106 error: type mismatch 'strarg' code: 0 i did open question in link below suggestions did not solve problem. vbscript statement mismatch sring failing dim odomain dim ouser dim maxpwdage dim numdays dim warningdays warningdays = 13 set logininfo = createobject("adsysteminfo") set objuser = getobject("ldap://" & logininfo.username & "") strdomaindn = ucase(logininfo.domaindnsname) struserdn = logininfo.username const ads_uf_dont_expire_passwd = &h10000 intuseraccountcontrol = objuser.get("useraccountcontrol") if intuseraccountcontrol , a

java - Passing dynamic query params and path params in http request connector -

i looking pass list of query params , path params http request mule connector. input coming connector list of pojo contains value of query , path params. the http request connector looks below: <http:request config-ref="http_request_configuration" path="/rates/api/v1/rates/{in}.csv" method="get" doc:name="end_http request"> <http:request-builder> <http:query-param paramname="api_key" value="abcde" /> <http:query-param paramname="quote" value={target_currency} /> <http:query-param paramname="date" value={date} /> <http:query-param paramname="fields" value="averages" /> <http:uri-param paramname="in" value={source_currency} /> </http:request-builder> the pojo class looks this: public class data { private string sourcecurrency; private string targetcurrency; private string date =

winforms - Vb.net .net Framework 1.0 how to access data from database and show in text box -

i using .net framework 1.0 in vb.net win form, question how can access data database , show particular column , row in textbox. show data in gridview want show data in lable , text box. public dim connectionstring new sqlconnection( "data source=.;initial catalog=wtfimaga;integrated security=true" ) public sqldataadapter new sqldataadapter( "select * wu.dbo.students",connectionstring ) public sqldataset new dataset public sqlcommandbuil new sqlcommandbuilder(sqldataadapter) and onclick can show data load on gridview want show student name on label private sub button1_click(sender object, e eventargs) handles button1.click sqldataset.clear() datagridview1.datasource = sqldataset datagridview1.datasource = nothing sqldataadapter.fill(sqldataset ,"students") datagridview1.datasource = sqldataset.tables("students") textbox1.text = sqldataadapter.fill(sqldataset,"students.studentid") end

javascript - SetupController for Component Ember -

i have component adds class animation after 5 seconds export default ember.component.extend({ tagname: 'div', classnames: ['gears'], isvisible: false, _starttimer: ember.on('didinsertelement', function () { var _this = this; this._visibletimer = ember.run.later(this, function () { _this._visibletimer = null; _this.set('isvisible', true); }, 5000); }), _endtimer: ember.on('willdestroyelement', function () { if (this._visibletimer) { ember.run.cancel(this, this._visibletimer); } }) }); <i class="fa fa-cog fa-fw big {{if isvisible 'fa-counter'}}"></i> my problem in specific route need set isvisible: true i know in ember can access route controller setupcontroller if want set isvisible: true component? if not possible , there other ways achieve it? maybe inside component itself? this sounds

Multiple MYSQL Queries against one PHP variable -

i've broken down individual sql queries information want sql table i'm confused on how can combine statements agianst 1 variable. variable being used in php display data. here sql queries i'm wanting run. select * weather order stamp desc limit 1 select sum(rainfall) weather stamp >= curdate()) total_rainfall select max(maxwind) weather stamp >= curdate()) max_windspeed select max(temperature) weather stamp >= curdate()) max_temperature select min(temperature) weather stamp >= curdate()) min_temperature here current query gives me want except max windspeed, max temperature, , minimum temperature last 24 hours. select *, (select sum(rainfall) weather stamp >= curdate()) total_rainfall weather order stamp desc limit 1 basically, i'm wanting add maximum temperature, minimum temperature , maximum windspeed occured within current date. mysql data table example here way i'm trying display data using php. <?php $url1=$_server[&#

simple html code to show one large png (3060 x 2222px) center aligned - scroll vertically only -

this question has answer here: display image in center of page 3 answers i place 1 large png in center of web page show client. if have tried many codes, never aligns center. the image bigger browser. left , right need fall off. client allowed scroll down, not left or right. can me code, please? thx seb try this: <img src="your_image.jpg" style="display:block;margin:auto;width:100%;"/>

tf idf - Elasticsearch function_score query -

i'm using elasticsearch v 1.7.3 here fields in document: field1, field2, field3, field4 i need give weightage each field field1: 40, field2: 40, field3: 10, field4: 10 during indexing, field1 , field2 expanded phonetic tokens. have field1 ==> field1, field1.1, field1.2 , field2 => field2, field2.1, field2.2 my query can based on combination of of above 4 fields. now scoring, don't want use tf/idf or bm25 scoring models. rather want compute weighted average per field , sum them together. for example input query: field1: abc field2: pqr field3: xyz field4: rst assume there following documents in corpus: document 1 ----------- field1: abc field2: pqr field3: xyz field4: rst document 2 ----------- field1: abx field2: pqr field3: xyz field4: rst score document 1: 100 ==> weightedaverage(field1) + weightedaverage(field2) + weightedaverage(field3) + weightedaverage(field4) ===> 40 + 40 + 10 + 10 score document 2: 90 ==> wei

In spotfire - html page tab view -

i want implement html page tab view (attached sample image:page tab view.jpg) in spotfire text area. on click of menu in tab view, visualization has shown. pasted html, css , js code below. if save html file desktop , open it, understand requirement. i know styles can added part of html tags not sure whether level of css styles mentioned in html code shown below can included part of html tag in spotfire. not sure how pass control text area when clicked on menu option , show visualisation. could please share video link or sample code or documentation how achieved in spotfire? page tab view sample picture. want achieve in spotfire <script> function opencity(evt, cityname) { var i, tabcontent, tablinks; tabcontent = document.getelementsbyclassname("tabcontent"); (i = 0; < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } tablinks = document.getelementsbyclassname("tablinks"); (

php - AJAX and $_POST field is not passed -

hello can guys give quick tip on i'm doing wrong here. i want pass $_post['url'] php file via ajax. ajax: <script> $('#checkurl').click(function() { $('#loader').css("display","block"); $('#form').submit(function (e) { e.preventdefault(); $.ajax({ url: 'example.php', data: {url:'<?php echo $_post['url']; ?>'}, type: 'post', success: function(data) { $('#loader').css("display","none"); $('#reponse').replacewith(data); } }); }); }); </script> form <form id="form" method="post"> <input type="search" size="35" id="url" name="url" placeholder="www.myblogurl.com" class="btn btn-mod btn-gray btn-medium btn-round" />

networking - 'ip route get' in Java -

how can know whether ip address theoretically accessible? want java code behave following linux invocation: # ip route 192.168.36.5 rtnetlink answers: network unreachable where no timeout parameter accepted because doesn't try connect ip address. determines if address reachable according system's routing table. in java can execute shell comands using exec() method. see if code below helps: runtime.getruntime().exec("ip route 192.168.36.5");

php - not receiving all data from database, yii2 -

controller action render index page public function actionindex() { $posts = posts::find()->all(); $user = user::find()->all; return $this->render('index', [ 'posts' => $posts, 'user' => $user ]); } view: <? foreach ($posts $post){?> <div class="well"> <h5><?=$user[$post->user_id-1]->login ?></h5> <?=$post->text ?> </div> <?} ?> posts texts displayed users logins not. why? var_dump($users) shows nothing. checked table. there records in users table. public function actionindex() { $posts = posts::find()->all(); $user = user::find()->all(); return $this->render('index', [ 'posts' => $posts, 'user' => $user ]); } use user::find()->all(); not user::find()->all;

android - Toolbar does not respond to scroll flags -

i trying hide toolbar when listview scrolling tabs remain visible reason cannot. code: private void setuppages() { toolbar = (toolbar) findviewbyid(r.id.toolbar); if (build.version.sdk_int >= build.version_codes.lollipop) { if (toolbar != null) { toolbar.setelevation(0); } } viewpager = (viewpager) findviewbyid(r.id.pager); intent = getintent(); servitoros_id = intent.getstringextra(appconstant.waiter_intent_id); magazi_id = intent.getstringextra(appconstant.company_intent_id); title = intent.getstringextra(appconstant.table_intent_id); if (toolbar != null) { toolbar.settitle(getstring(r.string.table_id) + title); } madapter = new productstabpageradapter(getsupportfragmentmanager(), productsvieworder.this, productsvieworder.this); viewpager.setadapter(madapter); tabs = (tablayout) findviewbyid(r.id.tabs); tabs.set

javascript - jQuery replace/remove attribute without id or tag -

i new jquery, , i'm having trouble doing thought should simple find , replace operation. i want remove disabled attribute. searching jquery remove sample, using id or tag. <td><a href="xx.html" disabled onclick="preparexform(this,'xx')" class="btn">ok</a> </td> i try code not working. $("body *").replacetext( /disabled|disable/gi, "enable" ); use selector on attribute , remove when found. way never idea try use regex/replace on html tags $("a[disabled]").each(function() { $(this).removeattr("disabled"); });

javascript - Insert directive template after another element when this one is clicked -

i'm working on custom directive. have: <button mydirective>click me</button> my directive looks this: return { restrict: 'ea', controller: 'controller', replace: false, template: '<h3>test</h3>', // more complex link: function( $scope, $element, $attrs ) { $element.on( 'click', function() { // code, shows template }); } }; result is: <button mydirective>click me <h3>test</h3> </button> but want have this: <button mydirective>click me</button> <h3>test</h3> <!-- shown after button clicked --> after button clicked template should shown after button. thank you. i suggest rendering button in directive template. here's example snippet: angular.module('myapp', []) .directive('expander', function() { return { restrict: 'ea', replace: true, template: '<d

python - Why does my code return 1 when the given number has more zeroes? -

if have method can me appreciate help, tried best write code calculates number of zeroes in given number. here's code tried: def zrc(n): count=0 while n%10==0 , n!=0: n=n%10 count=count+1 return count print(zrc(2500)) it gives 1 output of code, while must print 2, numbers 36, gives 0 output, problem? know there must problem while... if n%10 zero, n 0 in next step, condition fulfilled after first loop. want use // instead of % : def zrc(n): count = 0 while n%10 == 0 , n != 0: n //= 10 count += 1 return count

java - scanner class more modular -

i trying make code more modular. question is, once input calling getfile method, how can save array, etc.? to more clear, want able call getfilescanner method , return whatever on file user enters. within main method, want able set input (whatever on .txt file) array(to written). how can go saving input in main method? on post separate one, user suggested make code more modular , suggested of below code. trying understand user had intended , split of code up. import java.io.file ; import java.io.filenotfoundexception ; import java.util.scanner ; public class scantest { public static void main(string[] args) throws filenotfoundexception { system.out.println("please enter file"); system.out.println(getfilescanner()); } public static scanner getfilescanner() throws filenotfoundexception { scanner user_input = new scanner(system.in); string filepath = user_input.next(); system.out.println("filepath read: &quo

sockets - Add a pause before further execution in mIRC -

so i've been thinking on hour did not arrive conclusion script. trying add "status check" 3 irc servers via mirc sockets. problem i'm facing execution jumps on next step without socket connection being completed hence returns false value i.e offline. i tried using timer before goto commands returns ' not found' code: on *:text:!stats:#: { sockopen ircaurora aurora.irchound.tk 6667 sockopen irckepler kepler.irchound.tk 6667 sockopen ircjupiter jupiter.irchound.tk 6667 sockpause ircaurora sockpause irckepler sockpause ircjupiter :true msg $chan ----status---- goto check1 halt :check1 if ($sock(ircaurora,pause) == 1) { msg $chan 1aurora - 9online } else { msg $chan 1aurora - 4offline } goto check2 halt :check2 if ($sock(ircjupiter,pause) == 1) { msg $chan 1jupiter - 9online } else { msg $chan 1jupiter - 4offline } goto check3 halt :check3 if ($sock(irckepler,pause) == 1) {

StaggeredView android endless scroll issue -

i' m trying implement infinite scrolling staggered view. when started used linearlayoutmanager , https://gist.github.com/ssinss/e06f12ef66c51252563e infinite scrolling. changed staggeredgridlayoutmanager , haven t found way implement endless scrolling. i've tried far: mrecyclerview = (recyclerview) rootview.findviewbyid(r.id.recycler_view); //mrecyclerview.additemdecoration(new horizontaldivideritemdecoration.builder(getactivity()).color(color.black).build()); final staggeredgridlayoutmanager staggeredgridlayoutmanager = new staggeredgridlayoutmanager(2,staggeredgridlayoutmanager.vertical); mrecyclerview.setlayoutmanager(staggeredgridlayoutmanager); updatelist("aww"); mrecyclerview.addonscrolllistener(new recyclerview.onscrolllistener() { @override public void onscrolled(recyclerview recyclerview, int dx, int dy) { visibleitemcount = staggeredgridlayoutmanager.getchildcount(); totalitemcount

jquery - jqGrid getRegional error -

i new jqgrid , have been searching on answer error. what getting is: grid.formedit.js:1623 uncaught typeerror: $.jgrid.getregional not function i have tried deleting file , re-downloading grid.formedit.js file deleting entire jqgrid package , re-installing it. have no idea how fix it. hope can help. thanks!

c# - Importing excel data to SQL -

i using asp.net make application, have holdup, problem user should import excel file (pattern of file same), in excel file there cell bunch of names, looks this id names 1 mick jagger elton john 2 james hetfield axl rose and on, have 2 or more names per cell ... far, imported excel file dataset sqlcmd.connection.open(); using (oledbconnection excelconnection = new oledbconnection(excelconnstring)) { using (oledbcommand cmd = new oledbcommand("select " + companyid + ", * [sheet1$]" , excelconnection)) { oledbdataadapter dasheet = new oledbdataadapter(cmd.commandtext, excelconnection); datatable table; table = new datatable(); dasheet.fill(table); prepareddata.ta