Posts

Showing posts from February, 2013

json - unexpected token : from angular $http.jsonp request to Instagram API -

Image
i'm making request authorized instagram account display images on site. originally, running no 'access-control-allow-origin' when using angular's $http.get(... . from matt's answer in question , seems can use getjson , or angular $http.jsonp , bypass issue. that guy's answer says "jsonp trick overcome xmlhttprequest same domain policy". so, i'm no longer getting problem, , getting json payload: {"pagination":{"next_url":"https:\/\/api.instagram.com... etc but getting ambiguous error: uncaught syntaxerror: unexpected token : this response instagram api, i'm not sure why there'd syntax error on inbound json. also, it's hard locate error since jsonp response on single line... error reported. the preview shows i'm getting full payload: i found issue. unfortunately there no javascript libraries this, in instagram api docs , jsonp can wrap response callback json payload wrappe

Android Build for socket.io using intel xdk -

i use intelxdk 2015 update build apps. i build app using "cordova hybrid mobile app platforms" "android build" option socket.io didn't worked. however when used "legacy hybrid mobile app platforms" "android build" option, socket.io works i haven't idea why happens thanks have same issue. emulate , test through intel app preview works charm when build in android cordova app have same problem. tried use "legacy hybrid mobile app platforms" , works.

php - Symfony2 didn't display my translation -

i have problem when use symfony translator. followed doc of symfony2 translator , created repertory => mybundle/platformbundle/ressources/translations , in translations have created file => messages.fr.yml: hello: bonjour have twig that: <html> <body> {{ 'hello'|trans }} {{ name }}! <p> sonate cest cool mais la trad sa lest deja moins </p> </body> </html> and have conf config.yml doc say. unfortunately, it's doesn't work , don't understand why ? if have followed french official doc translation maybe have set translator in config.yml : framework: translator: { fallback: en } try this: framework: translator: { fallback: fr } or better : framework: translator: { fallback: "%locale%" } and in last case, edit app/config/parameters.yml , specify default locale : parameters: locale: fr if not sufficient, verify directory mybundle/platformbundle/ressources/tr

android - Most concise way to run a simple background task? -

i've seen @ least 5 patterns through can have code run in worker thread. simple: new thread(new runnable() { public void run() { // } }).start(); we can extend asynctask ; have asynctaskloader , other loader s data, service s , on. i assume each 1 of has advantages i'm not discussing here. i'm wondering is: appropriate, concise way run simple action? defining simple : quite short action, <1s; no need deal ui elements; one line command or such, looks inappropriate extend asynctask new class; no need notified success of task in activity or fragment ; no need display progress; just need have kind of return . what thought @ first was: boolean myreturn; new thread(new runnable() { public void run() { myreturn = myextensivetask(); } }).start(); public boolean myextensivetask() { ... } would correct (or possible)? how should done? using bolts utility framework (used facebook , parse.com), simple that: task

split - Splitting String in scala ignores void fields at the end -

i'm scala beginer, , i'm facing issue : from : "abcd ; efgh ; ijkl ; ; ; ; " i have : array["abcd ","efgh "," ijkl " , "", "" , "" ,""] while split function returns : ["abcd ","efgh "," ijkl " ] could please ? thanks in advance! this behaviour comes java method split(regex) . if want keep trailing empty strings in returned array must use overloaded method split(regex, limit) : scala> "a,b,c,,".split(",") res0: array[string] = array(a, b, c) scala> "a,b,c,,".split(",", -1) res1: array[string] = array(a, b, c, "", "") note string given in example works because added spaces between separators: scala> "a , b , c , , ".split(",") res2: array[string] = array("a ", " b ", " c ", " ", " ")

JavaScript RegEx expresssion -

i need compose expression allow number or decimal point, 1 decimal. allowed formats 100.00, 100 but not '100d.00, a100, -100, 100.000.000.00' for goal, far have this: /[^0-9$.]/g any community appreciated. i think /^\d+(\.\d{2})?$/ should work. if need more 2 digits after decimal point /^\d+(\.\d+)?$/ .

vbscript - Best practice to restrict permissions on newly created folders? -

i've got script user runs creates group of sub-folders in chosen directory. newly created folders inherit permissions of parent directory. need 1 folder in newly created group have single different acl restrict 1 specific user access. is there way automate @ creation of folder? or there better way deal this? so, clarify: imagine folder path following: e:\datastore\marcstone bids\7501-8000\7501 high school project\management documents see how second last directory project name? there literally hundreds of these, inside of same 10 folders. want users have access folders, except need restrict access 1 folder 1 user. unless i'm missing something, no matter how set parent directory permissions (which inherited) still need either remove or add permission from/to 1 folder after it's created. feels clumsy , complicated. missing something? there way this? the best practice make 1 user member of different group, , grant group traverse permission on parent fold

java - Elements in layout cropped -

Image
i have problem layout file, when test on devices android 4.1, why happens don't know, here's get: and here's part of layout happens: <linearlayout android:id="@+id/choosetype" android:layout_width="match_parent" android:layout_height="wrap_content" android:visibility="visible" android:layout_marginleft="16dp" android:layout_marginstart="16dp" android:layout_marginright="16dp" android:layout_marginend="16dp" android:layout_margintop="12dp" android:orientation="horizontal"> <checkbox android:id="@+id/checkbox1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" a

linux - Bring terminal to the front in Python -

is there way bring linux terminal front of screen python script? possibly using kind of os. command i.e - python script opens gui fills screen, if event happens want see printed in terminal viewed, don't want / can't show information on gui (so please don't suggest that) and if possible, hide behind other windows again, if needed. (python 2, way) any suggestions appreciated. that "bring linux terminal front of screen" talking terminal emulators running in x window environment. accomplished making request window manager. there more 1 way this. xterm (and other terminal emulators) implement sun control sequences window manipulation (from 1980s) reimplemented in dtterm during 1990s. xterm has done since 1996 ( patch #18 ). python: xlib — how can raise(bring top) windows? mentions wmctl , command-line tool allows make various requests window manager. xdotool command-line tool performs similar requests. finally, can wm raise or lower w

php - Laravel 5 Not Finding Eloquent Models -

i'm brand new laravel , having trouble loading models in order seed database. have tried both laravel 4 method of composer.json , laravel 5 psr-4. databaseseeder.php use illuminate\database\seeder; use illuminate\database\eloquent\model; class databaseseeder extends seeder { /** * run database seeds. * * @return void */ public function run() { \app\models\client::truncate(); \app\models\module::truncate(); \app\models\moduleconnection::truncate(); model::unguard(); $this->call('clientstableseeder'); $this->call('modulestableseeder'); $this->call('conncetionstableseeder'); } } client.php these in app\models @ moment, have tried them in app next users.php namespace app\models; use illuminate\database\eloquent\model eloquent; class client extends \eloquent { proteced $fillable = ['id', 'name', 'email', 'created

multithreading - Can I read 1 big CSV file in parallel in R? -

this question has answer here: r: possible parallelize / speed-up reading in of 20 million plus row csv r? 3 answers i have big csv file , takes ages read. can read in parallel in r using package "parallel" or related? i've tried using mclapply, not working. based upon comment op, fread data.table package worked. here's code: library(data.table) dt <- fread("myfile.csv") in op's case, read in time 1.2gb file read.csv took 4-5 minutes , 14 seconds fread .

javascript - AngularJS Controller not populating -

this code runs on sharepoint web part page in script editor web part. makes ajax call list items sharepoint, , should populating form items. however, nothing happening. <link data-require="bootstrap-css@*" data-semver="3.0.0" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" /> <h2>questionnaire:</h2> <br /> <div ng-app="app"> <div ng-controller="splistctrl"> <table width="100%" cellpadding="10" cellspacing="2" class="employee-table"> <tr ng-repeat="control in controls"> <td>{{control.title}}</td> <td> <input type="radio" name="{{control.id}}" value="yes">yes <input type="radio" name="{{control.id}}" value="

javascript - firefox crash with angular ( Garbage Collector troll? ) -

----edit question long , hard understand------ here working exemple : http://codepen.io/anon/pen/mwapgb warning : make firefox crash ! , if dare, click around 500 time on div (i suggest use tool simulate it. rip mouse) but http://codepen.io/anon/pen/ennqde wont make firefox crash what difference : function getdatefromdatetimepython(stringdate){ // crash var partiedate = stringdate.split(' '); var ymd = partiedate[0].split('-'); var hms = partiedate[1].split(':'); return new date(date.utc(ymd[0],ymd[1]-1,ymd[2],hms[0],hms[1],hms[2],0)); } function getdatefromdatetimepython(stringdate){ // don't var partiedate = stringdate.split(' '); var tmp = partiedate[0]; // add var tmp2 = partiedate[1]; // add var ymd = tmp.split('-'); // change var hms = tmp2.split(':'); // change return new date(date.utc(ymd[0],ymd[1]-1,ymd[2],hms[0],hms[1],hms[2],0)); } i'm

ios - How can I make a custom UITableView refresh control? -

i know how add refresh control uitableview how can make custom 1 using own image , animation? a simple google search lead many tutorials on how this: such as: link the main in involves making object listen scrollview delegate events, adjusting scrollview insets when in refresh mode pull scrollview down, , animating view until it's told reset , insets appropriately.

ios - Failed to verify code signature WatchKit -

i'm trying run watchkit app on apple watch every time message tells me cannot verify code signature : companionappd[153] <warning>: failed install watchkit application, error: (error domain=launchserviceserror code=0 "the operation couldn’t completed. (launchserviceserror error 0.)" userinfo=0x15ddfba0 {error=applicationverificationfailed, errordetail=-402620391, errordescription=failed verify code signature of <miexecutablebundle : path = /private/var/mobile/library/caches/com.apple.mobile.installd.staging/temp.kd3tcx/extracted/com.**.**.watchkitapp.app identifier = com.**.**.watchkitapp type = 4> : 0xe8008019 (application signature not valid)}) but i've tried revoke current developer certificate, created new provisioning profile app, watchkit extension, , watchkit app. put apple watch device id on provisioning profile. i've deleted provisioning profiles on mac, reloaded it. i've clean project, removed derived data. i've re

ios - How to scan all bar codes of type AVMetadataObjectTypeEAN13Code -

Image
my scanner can scan barcode. but not barcode. this code i'm using. #pragma mark - ibaction method implementation - (void)startstopreading { if (!_isreading) { // case app should read qr code when start button tapped. if ([self startreading]) { // if startreading methods returns yes , capture session // running, change start button title , status message. [_decodedlabel settext:@"scanning qr code..."]; } } else{ // in case app reading qr code , should stop doing so. [self stopreading]; // bar button item's title should change again. } // set flag exact opposite value of 1 has. _isreading = !_isreading; } #pragma mark - private method implementation - (bool)startreading { nserror *error; // instance of avcapturedevice class initialize device object , provide video // media type parameter. avcapturedevice *capturedevice = [avcaptur

erlang - Calling NIF in Erlide IDE -

is possible call nif functions erlang program using erlide if there tutorial,article me run first example i'm not sure mean. erlang program running under erlide no different erlang program, calling nifs works usual. if mean have c project develop nif , want test it, there no direct support. believe might missing configuration nif .so found, haven't been writing nifs i'm not sure. if mean else, please give little more details. did try , didn't work?

concurrency - Java Fork Join Pool Timing Issue -

i'm trying implement fork join pool take children of 1 node , explore them concurrently. think fork join pool executes threads , shuts down quickly, causing threads stop executing? so far have code: main method: while (!(pqopen.isempty())) { tempvertex = pqopen.getnextitem(); if (tempvertex.city == endlocation.city) { resetvertex(); return tempvertex; } else { forkjoinpool forkjoinpool = new forkjoinpool(tempvertex.neighbors.getnoofitems()); (int = 0; < tempvertex.neighbors.getnoofitems(); i++) //for each neighbor of tempvertex { forkjoinpool.execute(new neighbourthread(tempvertex, allvertices, routetype, pqopen, i, endlocation)); } forkjoinpool.shutdown(); } } return null; } this class runs: public class neighbourthread exten

ruby on rails - Simple Form - filtering updated attributes in the log -

simple question simple form: i've attribute in user model token i'd marked [filtered] when passed on network (as password field default). e.g. i have: parameters: { "token"=>"wyxe3z24jmuq", "email"=>"test@testing.com", "password"=>"[filtered]"}} i want: parameters: { "token"=>"[filtered]", "email"=>"test@testing.com", "password"=>"[filtered]"}} and example form: <%= simple_form_for @user |f| %> <%= f.input :token %> <%= f.input :email %> <%= f.input :password %> <%= f.input :password_confirmation %> <%= f.button :submit %> <% end %> what option need add field achieve this? i'm there's option, can't seem find anywhere. thanks in advance! steve. in application.rb following: config.filter_parameters += [:password, :token] check answer: how fi

Java Streams | groupingBy same elements -

i have stream of words , sort them according occurrence of same elements (=words). e.g.: {hello, world, hello} to map<string, list<string>> hello, {hello, hello} world, {world} what have far: map<object, list<string>> list = streamofwords.collect(collectors.groupingby(???)); problem 1: stream seems lose information processing strings, therefore compiler forces me change type object, list problem 2: don't know put inside parentesis group same occurrence. know able process single elements within th lambda-expression have no idea how reach "outside" each element check equality. thank you the keyextractor searching identity function: map<string, list<string>> list = streamofwords.collect(collectors.groupingby(function.identity())); edit added explanation: function.identity() retuns 'function' 1 method nothing more returning argument gets. collectors.groupingby(function<s, k> keyextract

codenameone - How can I rebuild Form Component in Codename One -

Image
i'm trying create custom form configuration scrollable titlearea. form ( black ) has boxlayout.y_axis layout in borderlayout.center ( blue ). statusbar ( green ) stays in borderlayout.north ( green ), when rest of titlearea ( cyan ) in first position in boxlayout. removecomponentfromform function unavailable using in extended class. how can remove components form removing titlearea borderlayout.north? why use title area @ all? why not add component top of box layout y , style title way can scroll out? you can use new toolbar api includes many abilities fade out title scroll etc. see: http://www.codenameone.com/blog/toolbar.html http://www.codenameone.com/blog/cats-in-toolbars.html

amazon web services - Estimate average monthly usage cost on EC2 -

Image
i'm running small app on ec2. i'm approaching end of free tier year. i'm interested in estimating monthly costs continue on service under current workload. what's best approach this? first, analyse existing data on number of seconds of ec2 time used , other billable items next, use tool http://calculator.s3.amazonaws.com/index.html estimate

c# - Saving Data from a user control WPF MVVM -

i have 2 user controls each contain numericinput added listbox in mainwindow using itemscontrol itemtemplate. these both bound ilist property so, in clientratesviewmodel (the 1 mainwindow) need save each value in numeric input in savedata method, how can achieve this? mainwindow.xaml(some code removed) <listbox x:name="lbpostawr" itemssource="{binding clientratespostawrdescription}" keyboardnavigation.tabnavigation="continue" margin="548,23,10,69" av:grid.row="1"> <itemscontrol.itemcontainerstyle> <style targettype="listboxitem"> </style> </itemscontrol.itemcontainer

python - How to find the number of edges bewteen any two nodes using networkx? -

Image
exist form count number of edges separe 2 nodes, example if have nodes "a", "b", "c" , "d" form "a"-"b"-"c"-"d" (where "-" edge) need count edges between "a" , "d". the real example follow. have big graph, in link can see image https://drive.google.com/file/d/0b7gayk8mggtccvhrmncym0vmc2c/view?usp=sharing graph have 2806 nodes in case, , need know example how many edges separe node 608 of 616. thought number_of_edges function can me, think returns if 2 nodes connected or not (because returns 1 or 0 in code this) k in id1: #id1 list of nodes l in id2: #id2 list of nodes print graph.number_of_edges(k,l) without knowing have attempted , without example graph give simple example. might clear things you. i make 4 node, 4 edge graph adjacency matrix using newtworkx , numpy. import matplotlib.pyplot plt import networkx nx import numpy np

Android App turn off without error when using camera -

there personal profile picture can choose photos , take pictures. works before, suddenly, today, tried upload photo , take pictures, app turn off without error shows: d/i'm here 1﹕ after click camera button1 d/i'm here 2﹕ after click camera button d/i'm here take photo﹕ after click camera button w/iinputconnectionwrapper﹕ showstatusicon on inactive inputconnection i didn't change change picture code. add other features of whole app. i use code choose picture function http://www.theappguruz.com/blog/android-take-photo-camera-gallery-code-sample/. here code: // json response node names private static string create_success = "create_success"; int request_camera = 0, select_file = 1; button btnselect; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_register); /********* change profile picture event begin **********/ btnchangeprofilepic = (button)

c# - Is it possible to get information which drives encrypted by TrueCrypt? -

is there chance c# application information drives encrypted truecrypt application. other options helpful. thank in advance. yes. when using code (based on code found @ https://social.msdn.microsoft.com/forums/en-us/e43cc927-4bcc-42d7-9630-f5fdfdb4a1fa/get-absolute-path-of-drive-mapped-to-local-folder?forum=netfxnetcom ): [dllimport("kernel32.dll")] private static extern uint querydosdevice(string lpdevicename, stringbuilder lptargetpath, int ucchmax); public static bool istruecryptvolume(string path, out stringbuilder lptargetpath) { bool istruecryptvolume = false; if (string.isnullorwhitespace(path)) { throw new argumentexception("path"); } string pathroot = path.getpathroot(path); if (string.isnullorwhitespace(pathroot)) { throw new argumentexception("path"); } string lpdevicename = pathroot.replace("\\", string.empty); lptargetpath = new stringbuilder(260); if (0

html - Drop down list box -

do know how make dropdown list box searchable typing in it? have checked plugins select2 , few others, of them multiple options selectors. want work same dropdown list boxes except searchable typing in it you use semantic-ui purpose. install stylesheet(s) , javascript scripts it's instructions , place them html document. taken semantic-ui documentation : searching dropdowns using search selection dropdown allow users search more through large lists. can converted directly form select element. html code: <select class="ui search selection dropdown" id="search-select"> <option value="">state</option> <option value="al">alabama</option> <option value="al">alabama</option> <option value="ak">alaska</option> <option value="az">arizona</option> <option value="ar">arkansas</option>

Android - ActionBarDrawerToggle cannot be resolved -

hi getting error in actionbardrawertoggle cannot resolved when import in activity android.support.v7.app.actionbardrawertoggle; have imported appcompact_v7 , android-support-v7-appcompact libaries. it gives no error when import import android.support.v4.widget.drawerlayout; import android.support.v7.app.actionbaractivity; i need actionbardrawertoggle implementing action bar. have tried everything. p.s: using eclipse make sure compile v7 support library project. here's example build.gradle androidstudio: dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.1.1' }

java - Will FileChannel#write always write the whole buffer? -

(this related (or rather "opposite" of) would filechannel.read read less bytes specified if there's enough data? ) tl;dr : will write whole buffer... bytebuffer bytes = ...; fileoutputstream.getchannel().write(bytes); ...or necessary use loop this: bytebuffer bytes = ...; while (bytes.remaining() > 0) { fileoutputstream.getchannel().write(bytes); } ? due comment in answer , i'd ask whether there guarantees regarding behavior of writing buffer filechannel calling filechannel#write(bytebuffer) . just reference: documentation says writes sequence of bytes channel given buffer. bytes written starting @ channel's current file position unless channel in append mode, in case position first advanced end of file. file grown, if necessary, accommodate written bytes, , file position updated number of bytes written. otherwise method behaves specified writablebytechannel interface. and documentation of overridden method, writabl

dependency injection - Getting the host name from a scoped service factory -

one of services i'm creating needs current host name parameter (different requests use different host names, affects external resources used service): public class foo { public foo(string host) {...} } i'm registering scoped: public void configureservices(iservicecollection services) { services.addscoped(s => new foo(/* host name current request */)); } what cleanest way host name @ point? update: came this: private static foo getfoo(iserviceprovider services) { var contextaccessor = services.getrequiredservice<ihttpcontextaccessor>(); var host = contextaccessor.httpcontext.request.host.value; return new foo(host); } is good/supported solution, or hack? since you're correctly defining scoped already, can use ihttpcontextaccessor directly in constructor of foo: public class foo { public foo(ihttpcontextaccessor contextaccessor) { var host = contextaccessor.httpcontext.request.host.value; /

Ruby Rspec cucumber array each do -

i have scenario when upon login page, presented numerous profile(can 1 5). looking specific profile based tn number. locate element represent tn , put in array search available elements same locate correct profile in order click on it. here code: and(/^i "([^"]*)"$/) |number| elements = @driver.find_elements(:css => "h3.phone-number") elements.each |element| renewals_page.select_profile.click if element.text == @config[number] return element end fail end i passing desired number yaml file depends on account. renewals_page.select_profile.click defined in file method def select_profile @driver.find_element(:css => "h3.phone-number") end so when try locate element , click on it, following error unexpected return (localjumperror) ./features/step_definitions/renewals_login_step.rb:28:in `block (2 levels) in <top (required)>' ./features/step_definitions/r

javascript - Sign in program not navigating properly, I think the issue is in the .js code and the placement of where it is -

sign in program not navigating properly, think issue in .js code , placement of is. have title, 2 text input boxes followed 2 buttons not work (the issue) navigation looks ok not working unfortunately. post .js in comments unfamiliar layout of posting issue. <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title>calorific calorie counter</title> <link href="lib/ionic/css/ionic.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet"> <!--<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>? <!-- if using sass (run gulp sass first), uncomment below , remove css includes above <link

ios - Include Pods from Swift Sources in iOS7 Swift Project -

i have ios7 swift project , want use pod this based on swift code. in pod file can include pod this: platform :ios, "7.0" pod "timepiece" assume project runs on ios.how can include pods swift sources? your choice manually insert source code project, because: it not possible build static libraries swift code. thus pods written in swift can integrated dynamic frameworks you cannot have dynamic frameworks before ios 8.

php - Image-cropper causing weird border -

i have gotten stuck trying solve weird issue simple imagecropper webpage. when php processing cropped image , new canvas larger the original image there appears small border around edges of original image inside new canvas. $x = $_post["left"]; $y = $_post["top"]; $name= pop_extension ($exportname); if($size == 's'){ $h = 200; //small max height $w = 200; //small max width $img_dir = 'small'; $imgname = $name.'.jpg'; } elseif ($size == 'm'){ $h = 400; //medium max height $w = 400; //medium max width $img_dir = 'medium'; $imgname = $name.'.jpg'; } elseif ($size == 'l'){ $h = 1000; //thumbnail max height $w = 1000; //thumbnail max width $img_dir = 'large'; $imgname = $name.'.jpg'; } $image_size_info = getimagesize('tmp/'.$exportname); //get image size $image_width = ($_post["width"] != 0) ? $_post["width"] :

java - How to fetch Data using JPA for dynamic Where Clause -

i new jpa. using jpa2.0 in 8.5.5 i have search screen have lot of search criteria's. now, have create query in jpa such way criteria user has selected, automatically check particular column in db. i not able find solution on that. seems me every search criteria, have write new named query. any suggestion or pointers appreciated. you in named query, have check every single possible criteria if null in order avoid null values affect results. beware of unnecessary inner joins, each nullable relation should included left join select e employee e left join e.department d (:name null or e.name = :name) , (:email null or e.email = :email) , (:deptid null or d.id = :deptid) ... however, depending on complexity of possible combinations, better option not use named queries, dynamically construct jpql depending on selected criteria.

java - TAM integration with custome web site -

i want integrate tam web site security , privacy. how can integrate web site. site in java(jsp). i used below command server task <server-name> create -t tcp -h localhost -p 9085 -c /customewebsealjunc but still unable integrate tam server task <websealed-instance> create -t tcp -h localhost -p 9080 -c /<junction_name> u can java api tam integration first of need used below command java com.tivoli.pd.jcfg.svrsslcfg -action config -admin_id sec_master -admin_pwd <password> -appsvr_id mts_java1 -port <port_no> -mode remote -port <port> -policysvr <host>:<port>:1 -authzsvr <host>:<port>:2 -cfg_file /opt/tamfiles/tamapi.conf -key_file /opt/tamfiles/tamapi.ks this create trust relationship java , authorized server.

c# - How do i edit existing info with winforms -

i developing calendar/appointment application , when double click on appointment while application running want open form information typed before , edit all.(with streamwriter , streamreader)! private void edittoolstripmenuitem_click(object sender, eventargs e) { // raised selecting edit on content menu // todo - need complete method. // _selectedappointment set instance of appointment edited } i have main form month calendar private void monthcalendar_datechanged(object sender, daterangeeventargs e) { labeldisplayeddate.text=monthcalendar.selectionrange.start.tolongdatestring(); getappointmentsonselecteddate(monthcalendar.selectionrange.start); // force repaint of daily view panel paneldailyview.invalidate(); } a panel private void paneldailyview_paint(object sender, painteventargs e) { int paintwidth = paneldailyview.clientrectangle.size.width - vscrollbar.width;

c# - Creating a graph in GraphEdit to capture RTP video stream to a file -

i have rtp video stream encoded in h.264 , capture file. i'm trying create graph in graphedit listen specific port (rtp stream) , save file. if know filters can use or guides love try them. mainconcept not cheap.

jsrender - In jsViews there is a `setProperty()` method. How do I do `removeProperty()`? -

in jsrender documentation there method $.observable(object).setproperty() how remove property object observably? there removeproperty() method. recent addition api, not yet in documentation (to added soon). $.observable(myobject).removeproperty("propertyname")

asp.net - Trouble passing results from DataReader to textbox -

i making admin section allow access several small sql tables in project. i have repeaters set show lists button bring modal adding new entry or editing existing one. code behind stores value selected row, , query sql class return value fill text boxes. code works sql class , can display message box , proper results. can't pass value if query vb page fill text boxes. here repeater <%--employee repeater--%> <asp:repeater id="repeater1" runat="server" datasourceid="sqldatasource1"> <headertemplate> <table class="display" id ="employeelist"> <thead> <tr> <th> name </th> <th> email </th> <th> update </th>

ios8 - how can I present a UIAlertController above UIViewController.view.window -

now, created uiviewcontroller called viewcontroller, , add subview called maskview on viewcontroller via: uiview *maskview = [[uiview alloc] initwithframe:cgrectmake(0, 0, screen_size.width, screen_size.height)]; [self.view.window addsubview:maskview]; and on maskview there button called "deletebtn", when click on deletebtn, want present uialertcontroller via: uialertcontroller *alertcontroller = [uialertcontroller alertcontrollerwithtitle:nslocalizedstring(@"mybulb.confirmremove", @"") message:@"" preferredstyle:uialertcontrollerstylealert]; uialertaction *cancelaction = [uialertaction actionwithtitle:nslocalizedstring(@"cancel", @"取消") style:uialertactionstyledefault handler:nil]; uialertaction *confirmaction = [uialertaction actionwithtitle:nslocalizedstring(@"confirm", @"确定") style:uialertactionstyledefault handler:^(uialertaction *action) { }]; [alertcontroller addaction:cancelaction]; [alert

android - VKRequest after VKSdk.authorize() throws error "invalid user id". One after another? -

i make request user profile info clicking button . debugged , when opened app , clicked on button onerror callback worked , said "invalid user id". if press button second time works fine. experiments understood app didn't complete authorization, that's why request denied. pressing button calls method code: vksdk.authorize(vkscopes.email); vkrequest request = vkapi.users().get(vkparameters.from(vkapiconst.fields, "user_id,first_name,last_name,sex,bdate,city,photo_200_orig")); request.secure = false; request.usesystemlanguage = true; request.executewithlistener(new vkrequest.vkrequestlistener() { @override public void oncomplete(vkresponse response) { super.oncomplete(response); //do stuff } @override public void attemptfailed(vkrequest request, int attemptnumber, int totalattempts) { super.attemptfailed(request, attemptnumber, totalattempts); log.d("vkdemoapp", "attempt