Posts

Showing posts from July, 2013

javascript - Reload a single resource when it has changed in Angular? -

i have bit of predicament. make use of notification feature on our angular site, , obvious reasons notification changes occasionally. i reload element/div that displays notification, when notification changes. to accomplish this, know 1 have clear cache of item, or force refresh or reload of item, bit stuck in regard. don't want clear entire cache accomplish this, , not sure route follow. insight on this. below <div> displays notification (this part of larger page): <div id="notificationbox" class="{{current.type}}" ng-controller="currentnotificationcontroller" ng-hide="hidenotification"> <img src="images/close.svg" height="15" width="15" title="close notification" class="closeicon" ng-click="closenotification()" /> <img src="images/info-icon.svg" height="20" title="ornico notification" /> <span class=&qu

java - Is it possible to send Hornetq jms using websocket in Nodejs while receiver end is in pure JMS? -

i have application receives jms messages in /queue/xxx_queue. , have project in nodejs. have need make jms communication between 2 application. using hornetq jms communication. checked, there way send jms message using websocket , got package called stompjs. using that, trying below code. not getting connected in sender side , not getting error also. receiver jms , hornetq running. stompjs test code : var stompjs = require('stompjs'); var stompclient = stompjs.overws('ws://localhost:1099/stomp'); stompclient.connect('', '', function() { console.log('connected'); stompclient.send('queue/xxx_queue', {}, 'test message'); }, function(error) { console.log('console : ', error); }); i don't know wrong doing here. , there changes needed in receiver end, if using websocket stomp plugin in client end.

Python download table and save to Excel -

i trying download table html not in usual td/ tr format , includes images , save result excel. the html code looks this: <div class="dynamicbottom"> <div class="dynamicleft"> <div class="content_block details_block scroll_tabs" data-tab="tabs_details"> <div class="header_with_improve wrap"> <a href="/updatelisting.html" onclick="ta.setevtcookie('updatelisting', 'entry-detail-moreinfo', null, 0, '/updatelistingredesign')"><div class="improve_listing_btn ui_button primary small">improve entry</div></a> <h3 class="tabs_header">details</h3> </div> <div class="details_tab"> <div class="table_section"> <div class="row"> <div class="ratingsummary wrap"> <div class="histogramcommon bubblehistogram wrap"> <div class="coltit

Application not listed in Android Auto -

i'm trying develop media application android auto. me, i've downloaded androidmediabrowserservice sample ( https://github.com/googlesamples/android-mediabrowserservice ). i've succeded in installing application, when launch android auto on phone , click media icon in bottom right corner, application not listed other ones , can't find out why. can me please ?

sql - What is the difference between TRUNC and TO_DATE in Hive -

hi trying find out difference between using trunc , to_date in hive. currently within oracle wrote following case statement against data shown below: order_no | name | date_ | task_no abc123 | humpty | 07-oct-16 12:30:54 | 1 abc123 | humpty | 07-oct-16 12:30:54 | 2 abc123 | humpty | 07-oct-16 12:32:20 | 6 select order_no, name, date_, task_no (case when date_ - lag(date_) on (partition order_no, name, trunc(date_) order date_) <= 1/48 0 else 1 end) count1 and gives me result: order_no | name | date_ | task_no | count1 abc123 | humpty | 07-oct-16 12:30:54 | 1 | 1 abc123 | humpty | 07-oct-16 12:30:54 | 2 | 0 abc123 | humpty | 07-oct-16 12:32:20 | 6 | 1 which correct. if use same query in hive against full data set error message: error while compiling statement: failed: semanticexception failed breakup windowing invocations groups. @ least 1 group must depend on input columns. so changed trunc to_date , works , gives me following results: sele

c# - Generalize a function -

i trying figure out if there way generalize function takes hashset of 2 unrelated objects similar attributes. have sample code below: private ilist<idictionary<string, string>> builddictionary(hashset<classa> classa) { ilist<idictionary<string, string>> data = new list<idictionary<string, string>>(); foreach (var in classa) { dictionary<string, string> adictionary = new dictionary<string, string>(); adictionary.add(a.code, a.code + "," + a.name); data.add(adictionary); } return data; } private ilist<idictionary<string, string>> builddictionary(hashset<classb> classb) { ilist<idictionary<string, string>> data = new list<idictionary<string, string>>(); foreach (var b in classb) { dictionary<string, string> bdictionary = new dictionary<string, string>(); bdictionary.add(b.code, b.code + ",

ruby on rails - bower install just says cached validate, but doesn't install -

i trying install progressbar.js rails app. i run bower install progressbar.js and terminal puts out: bower progressbar.js#* cached https://github.com/kimmobrunfeldt/progressbar.js.git#1.0.1 bower progressbar.js#* validate 1.0.1 against https://github.com/kimmobrunfeldt/progressbar.js.git#* the files not put app. when run bower list, has: progressbar.js#1.0.1 extraneous how install this? other times run bower install, has worked no problem.

c++ - Duplicate symbol in static library -

i'm trying compile ios project simulator in xcode 3rd-party static library added , linker error message complaining duplicate symbols: duplicate symbol _objc_class_$_utility in: libuiextensions.a(utility.o) /users/joe/library/developer/xcode/deriveddata/pdfsampleprogram-cdoogvkqqrafetcvscffsrlgkvrr/build/intermediates/pdfsampleprogram.build/debug-iphonesimulator/pdfsampleprogram.build/objects-normal/i386/utility.o duplicate symbol _objc_metaclass_$_utility in: libuiextensions.a(utility.o) /users/joe/library/developer/xcode/deriveddata/pdfsampleprogram-cdoogvkqqrafetcvscffsrlgkvrr/build/intermediates/pdfsampleprogram.build/debug-iphonesimulator/pdfsampleprogram.build/objects-normal/i386/utility.o ld: 2 duplicate symbols architecture i386 clang: error: linker command failed exit code 1 (use -v see invocation) any idea project? i've added static library once project, header files static libs seem ok. missing in project settings?

numpy - Python - Sphinx: vague Import error -

i trying generate api documentation comments (in numpydoc style) in project , stuck @ vague import errors sphinx: /home/carbolymer/workspace/si-app/doc/source/scripts.rst:10: warning: autodoc: failed import module 'scripts.backtest'; following exception raised: traceback (most recent call last): file "/usr/lib/python3.5/site-packages/sphinx/ext/autodoc.py", line 547, in import_object __import__(self.modname) file "/home/carbolymer/workspace/si-app/application/scripts/backtest.py", line 6, in <module> scipy import stats file "/usr/lib/python3.5/site-packages/scipy/__init__.py", line 64, in <module> numpy import __version__ __numpy_version__ importerror: cannot import name '__version__' /home/carbolymer/workspace/si-app/doc/source/scripts.rst:18: warning: autodoc: failed import module 'scripts.importdb'; following exception raised: traceback (most recent call last): file "/usr/lib/python3.5/s

javascript - Creating nested folder with CordovFile dependency -

i have create, nested folder on android mobile, ionic framework. problem asynchronous request, before finishing first folder goes below code create second folder inside first folder, folder not created yet, gives error. i searched can worked out angular $q service, tried not working, don't know how work, below code. controller if( $scope.projectdetails.clientid == null && $scope.projectdetails.locationid == null ){ // insert row in client table var parameters=[$scope.projectdetails.clientname]; newproject.insertclient(parameters).then(function(result){ $scope.projectdetails.clientid = result.insertid; // create folder name in renewate folder projectcreated.createfolder("renewate",$scope.projectdetails.clientname).then(function(resolve){ // create new location var parameters=[$scope.projectdetails.clientid, $scope.projectdetails.locationname];

mysql - trying to connect database with php -

i'm making registration page , have phpmyadmin set on xampp, apache's port 8080 , table's name registration , database's name loginregister , whenever submit values arent getting transmitted table , don't see errors, help? this code: <!doctype html> <html> <head> <title>register</title> </head> <body> <form action="" method="post" name="form1"> <table> <tr> <td>enter first name*</td> <td><input type="text" name="fname" required="yes" pattern="^[a-z1-9]+"></td> <td><p>username takes small letters or numbers, no capital letters</p></td> </tr> <tr> <td>enter last name*</td> <td><input type="text" name="lname" required="yes&quo

windows - The specified path does not exist. ON EVERY FILE -

my computer has been reinstalled, fresh. downloaded mozilla, izarc, avast , when tried install daemon tools lite requred framework. started install , when finished installing computer restarted. when desktop loaded had access nothing. tried open, needed admin permission had error - specified fath not exist. check path , try again. i cant enter device manager! please help! had problem awhile back. it's registry , ntfs permission problem. i suggest entering safe mode , trying restore computer previous state, before problem occurred.

Ctrl+P and Ctrl+N for navigation in jupyter notebooks -

i'm used emacs navigation, in particular ctrl + p , n , f , , b , i'm used jupyter notebooks now. general question is: how enable shortcuts in notebook? what tickles me fact on mac keybindings in place in standard anaconda ipython. it's understandable since system , browser shortcuts bound cmd instead of ctrl . since spend lot of time in ubuntu, wanted reproduce same behaviour here. became apparent browsers hold of keybindings dearly, such ctrl + p print or ctrl + n new window. turning these off huge matter in itself, decided use browser solely jupyter notebook, , vivaldi seems nice choice since shortcuts customizable there. i believed browser shortcuts being turned off, ipython syntax kick in, none such thing has happened. next tried 1 of many manuals on jupyter notebook shortcuts customization (such 1 http://jupyter-notebook.readthedocs.io/en/latest/examples/notebook/custom%20keyboard%20shortcuts.html ) bind 4 shortcuts need. works extent , in jupyter inline

facebook - Android - No Activity found to handle Intent when opening FB native app -

i'm trying open fb app on specific post url received in notification. it work on devices crashes on samsung s7. simple code: string url = "fb://post/<post_id>"; uri target = uri.parse(url); notifintent = new intent(intent.action_view, target); startactivity(notifintent); i checked before fb exists on device: packagemanager packagemanager = context.getpackagemanager(); try { int versioncode = packagemanager.getpackageinfo("com.facebook.katana", 0).versioncode; return "fb://post/" + fb_url; } catch (packagemanager.namenotfoundexception e) { return "https://www.facebook.com/" + fb_url; //normal web murl } the error log: fatal exception: java.lang.runtimeexception: unable start activity componentinfo{snip.snipnotifier/snip.snipnotifier.loadingactivity}: android.content.activitynotfoundexception: no activity found handle intent { act=android.intent.action.view dat=fb://post/<post_id> } @ android.ap

javascript - What does a constructor function's __proto__ attribute point to? -

Image
i'm trying go , better understanding of prototypal inheritance. understand instance's __proto__ attribute points constructor function's prototype object, constructor function's __proto__ attribute point to? i had assumed constructor function instance of function, point function constructor's prototype object, following shows empty function. var example = function(){ this.attribute = 'example'; } var exampleinstance = new example(); exampleinstance.__proto__ === example.prototype // true example.__proto__ // function() {} [edit] ovidiu dolha has confirmed understanding maybe helpful somebody. example.__proto__ same function.prototype , exampleinstance.__proto__ same example.prototype this because example instance of function. everything object.prototype root in terms of prototypical inheritance. note should avoid using __proto__ if possible considered deprecated. instead use object.getprototypeof()

hadoop - hbase scan with spark : scan.setCaching() method do not found -

import org.apache.hadoop.hbase.io.immutablebyteswritable import org.apache.hadoop.hbase.mapreduce.tableinputformat import org.apache.hadoop.hbase.protobuf.protobufutil import org.apache.hadoop.hbase.util.{base64, bytes} import org.apache.hadoop.hbase.hbaseconfiguration import org.apache.hadoop.hbase.client._ import org.apache.hadoop.hbase.client.scan import org.apache.spark.sparkcontext import org.apache.spark.sparkconf def main(args: array[string]) { val sparkconf = new sparkconf().setappname("simple spark app") val sc = new sparkcontext(sparkconf) var input_hbase_table = args(0) var output = args(1) val conf = hbaseconfiguration.create() conf.set(tableinputformat.input_table, input_hbase_table) var scan = new scan() scan.setcaching(1000) scan.setcacheblocks(false) conf.set(tableinputformat.scan, convertscantostring(scan)) val hbase_rdd = sc.newapihadooprdd(conf, classof[tableinputformat], classof[immutablebytesw

c++ - error: 'unordered_set' is not a member of 'std' -

in c++, trying declare unordered_set this: std::unordered_set<int> k; but showing error: error: 'unordered_set' not member of 'std' i using g++ (gcc) 5.3.0 on windows using mingw. here things have considered: adding header file #include <unordered_set> upgrading mingw using flag -std=gnu++11 . (this not generating executable or error, not sure if doing or not) how fix , compile code successfully? use -std=c++11 switch , specify output file. g++ -std=c++11 your_file.cpp -o your_program

javascript - How to restrict to web application to specific Browser -

this question has answer here: how detect safari, chrome, ie, firefox , opera browser? 12 answers i using asp.net in backend , javascript (extjs) in frontend. want web app open in particular browser. ex: ie11 . thought try noscript tag not getting idea how this. suppose able detect browser how restrict ie 11 only. can suggest need do. maybe can try following: var useragent = window.naviagtor.useragent; if (useragent === 'mozilla/5.0 (windows nt 6.3; trident/7.0; rv:11.0) gecko';) { //is ie11 }

c++ - OpenCV - Not getting desired output while applying Laplacian filter -

Image
i'm working in opencv c++. have taken classical lena image , applied gaussian noise of mean , variance noised_lena . applied average filter on noised image , obtained averaged image blurred image. now when apply laplacian filter has correctly detect edges not correct output . i'm not getting desired output expected image should where, 1 can detect edges cleanly . code given below. thanks in advance. int main(int argc, char *argv[]) { int i, dim, k, l, j; float res=0.0; mat m = imread(argv[1],0); //input image in m mat n(m.rows, m.cols, cv_8u);//image obtained after applying average filter mat lap_n(m.rows, m.cols, cv_8u);//padding n zeros based on filter size given user mat lap(m.rows,m.cols,cv_8u);// image obtained after applying laplacian filter cout << "enter size of filter u want odd number only"<<endl; cin >> dim; mat pad_m((m.rows+((dim-1))), (m.cols+((dim-1))), cv_8u); mat lap_m((m.rows+((di

matlab - Dot product with huge vectors -

i facing following problem: have system of 160000 linear equations 160000 variables. going write 2 programs on conjugate gradient method , steepest descent method solve it. matrix block tridiagonal 5 non 0 diagonals, it's not necessary create , store matrix. having following problem: when go iterarion stepe, there must dot product of vectors involved. have tried following commands: dot(u,v), u'*v, commonly used. when run program, matlab told me data size large memory. to resolve problem, tried decompose huge vector sparse vectors small support, calculate dot products of small vectors , glue them together. seems method more complicated , not efficient, , easy (especially beginners me) make mistakes. wonder if there're more efficient ways deal problem. in advance.

How to improve Increasing Subsequences algorithm to incorporate un-sorted array? -

i have been working on solving increasing subsequence problem. algorithm came solves sorted arrays. writing code in python 3.5. problem hosted on leetcode. in increasing subsequence problem, given integer array, task find different possible increasing subsequences of given array, , length of increasing subsequence should @ least 2. example: input- [4,6,7,7] output - [[4,6],[4,7],[4,6,7],[4,6,7,7],[6,7],[6,7,7],[7,7],[4,7,7]] here working code solving question: array = [4,6,7,7] def incrsubseq(array): #only works sorted arrays. res = [[]] ans = [] num in array: res += [item + [num] item in res if (item+[num] not in res)] values in res: if len(values)>1: ans = ans + [values] print(ans) incrsubseq(array) how code work? it starts initializing result variable res (a list of lists) initialized empty list. then iterate through given integer array array in sorted order, adding each element list, finding subsets of can

javascript - Trim or cut audio recorded with mediarecorder JS -

requested knowledge how shorten (from front) array of audio blobs , still have playable audio. goal i trying record continuous 45 second loop of audio using js mediarecorder api. user able push button , last 45s of audio saved. can record, playback, , download single recording fine. issue when have array called chunks of 1000 blobs mediarecorder , use chunks.slice(500, 1000) resulting blob array can't used playback or download audio. oddly enough chunks.slice(0,500) still works fine. code let chunks = []; navigator.mediadevices.getusermedia({ audio: true }) .then((stream) => { const mediarecorder = new mediarecorder(stream); mediarecorder.ondataavailable = (e) => chunks.push(e.data); } // @ later time, attempt trim const trimmedaudio = chunks.slice(500, 1000) const blob = new blob(chunks, { 'type' : 'audio/ogg; codecs=opus' }); const audiourl = url.createobjecturl(blob); // audio audio dom element audio.src = audiourl; /

c# - How Change name file after Creation in startup folder? -

i code application added startup how can after creation file (filename + ".url") change (filename + ".exe") static string filename = "troj"; public static string tempure = environment.getfolderpath(environment.specialfolder.applicationdata) + "\\" + filename + ".exe"; public static string tempurepath = environment.getfolderpath(environment.specialfolder.applicationdata) + "\\"; public static void addtostart() { try { string deskdir = environment.getfolderpath(environment.specialfolder.startup); if (system.io.file.exists(deskdir + "\\" + filename + ".url")) return; using (system.io.streamwriter writer = new system.io.streamwriter(deskdir + "\\" + filename + ".url")) { string app = tempure; writer.writeline("[internetshortcut]"); writer.writeline(&

How to Explicitly implement 2 interface method that having same signature in java? -

this question has answer here: two interfaces same method signature implemented in java class 7 answers i have 2 interface this: interface ia{ void show(); } interface ib{ void show(); } now want implement both interface method explicitly class. in c# can using "explicit interface implementation method" this: interface ia { void show(); } interface ib { void show(); } class derived : ia, ib { void ia.show() { console.writeline("hello c#!"); } void ib.show() { console.writeline("hello world !"); } } is there way or keyword java solve problem? as long both methods have same return type, can implemented single method within class. otherwise, cannot implemented , compile error viewed. there no way in java explicitly implement each method per interface.

jquery - VB.NET: Autocomplete multiple names in textbox inside gridview -

Image
i have added textbox in gridview , need add auto complete in it. have implemented single name cant figure out how add other names within same search on selection autocomplete should append previous selected name serch class <%@ webhandler language="vb" class="search_vb" %> imports system imports system.web imports system.data.sqlclient imports system.configuration imports system.text public class search_vb : implements ihttphandler public sub processrequest(byval context httpcontext) implements ihttphandler.processrequest try dim prefixtext string = context.request.querystring("q") dim prefixarray string() = prefixtext.split(";") dim conn sqlconnection = new sqlconnection conn.connectionstring = configurationmanager _ .connectionstrings("constr").connectionstring dim cmd sqlcommand = new sqlcommand cmd.commandtext = ("select

java - How to get the PSE of the card to read the RID or AIP or card number -

Image
i have smart card in image below. card in card reader sticked @ server. used user authenticated before can download data. i trying card number or seriel number or rid of smart card. able atr beside other information below. atr: 3b 9f 96 c0 0a 31 fe 45 43 54 31 69 0b 01 00 01 00 00 00 00 00 00 00 0d in question smartcardio emv reader, find card type atr number someone has mentioned aid (application id) = rid(registered application id) || pix (property application extension) this page explains information has atr. https://flomio.com/forums/topic/list-of-apdu-codes/ answer-to-reset (atr) init| t0| td1| td2| t1| tk| len | rid | std | card | rfu | tck hdr | | | | | | | | | name | | 3b | 8f| 80 | 01 | 80| 4f| 0c | a0 00 00 03 06| 03 | 00 03| 00 00 00 00| 68 when try pse getting 6a86 incorrect p1/p2. when try ppse getting 6700 --> wrong length. command

android - REQUEST_IGNORE_BATTERY_OPTIMIZATIONS how to do it right -

i have intentservice task in foreground mode, in android m+ task stops in doze mode. read google banned if app uses intent set themself in whitelist. if use permission , check grant or denied, granted result, nothing happen. don't see app in whitelist. how can add app in whitelist without banned? (i added permission in manifest) if(build.version.sdk_int>=23){ int permissioncheck= contextcompat .checkselfpermission(this, manifest.permission.request_ignore_battery_optimizations); if(permissioncheck == packagemanager.permission_denied){ //should show explanation if(activitycompat.shouldshowrequestpermissionrationale (this, manifest.permission.request_ignore_battery_optimizations)){ //show explanation final string message = ""; snackbar.make(coordinatorlayoutview,message,snackbar.length_long)

C++ openCV - createFisherFaceRecognizer was not declared in this scope -

i trying make facerecognizer in c++ using opencv. keep getting following errors: 1) cv::face::createfisherfacerecognizer(int, double), gives: main.cpp:(.text+0x6a8): undefined reference to`cv::face::createfisherfacerecognizer(int, double)' 2)face::fisherfacerecognizer::create(), gives: error: ‘cv::face::fisherfacerecognizer’ has not been declared none of work, correct way can run my code (none of commented lines worked...)? i reinstalled everything, because no 1 me out. current situation: general configuration opencv 3.2.0 ===================================== version control: unknown modules: location (extra): /home/yalishanda/downloads/opencv_contrib-3.2.0/modules version control (extra): unknown platform: timestamp: 2017-07-04t08:29:50z host: linux 4.8.0-36-generic x86_64 cmake: 3.5.1 cmake generator: unix makefiles cmake

Why does Emacs sometimes overwrite characters when I insert or delete? -

this happens me time. upon insertion/deletion, positions of other characters in buffer not shifted. for example, buffer contents this important content , inserting very before important results in 2 words very , important appearing overlapped, this: this veryrtant content instead of this important content how can fix this? killing buffer , reopening of course works. it sounds have accidentally turned on overwrite-mode . that command toggle. bound default keys <insertchar> , <insert> . typically 1 of keys in keyboard key labeled insert . but perhaps keyboard sending key when else. does overwriting ever turn off? if so, suggest accidentally hit toggle key second time. if not, perhaps keyboard or terminal somehow locked in overwriting mode. see same behavior outside of emacs?

java - How to Create Automatic text response api for Whatsapp? -

i front end developer , have experience in node js, want create api whats app can respond automatically skype bot example if type "india" , hit enter information india should received .. if possible can start , possible ways ?

c# - Winforms Error 'InvalidOperationException' while starting the app -

i have c# vs2012 windows application made on windows 7. when sent exe files client, getting error when running exe. getting following error: problem signature: problem event name: clr20r3 problem signature 01: ab.exe problem signature 02: 1.0.0.0 problem signature 03: 5954cd46 problem signature 04: system.core problem signature 05: 4.6.1087.0 problem signature 06: 583e5c3a problem signature 07: 73e problem signature 08: 65 problem signature 09: system.invalidoperationexception os version: 6.3.9600.2.0.0.272.7 locale id: 1033 additional information 1: 2f1f additional information 2: 2f1f756aa68c8e23d7adf9827d731b5b additional information 3: 80cb additional information 4: 80cb6630dd7c18e04a18b500b9c39bb0 read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=280262 if online privacy statement not available, please read our privacy statement offline: c:\windows\system32\en-us\erofflps.txt what mean?

css - Webpage doesn't load the new version, only after clearing cache -

my webpage doesn't load renewed version itself, after cleaning cache , hapening computers have seen older version, ones didn't fine, has faced this? has idea problem might be? code or browser? hapening chrome , firefox, fine safari. kind of thoughts helpfull. website: http://bodygym.lt @media (min-width: 780px) { #kainosmobile {display: none !important;} } @media screen , (max-width: 1180px) { .woocommerce ul.products li.product .price {margin-right: 110px !important; float: left !important; margin-top: 15px !important;} .woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3 {display: block !important; margin-bottom: 0 !important; padding: 0 !important;} .woocommerce ul.products li.product .button {display: block !important; right: unset !important; left: 80px !important} } @media screen , (max-width: 780px) { #kainos {display: none !important;} #kainosmobile {display: initial !important;} .woocommerce ul.products li.produ

php - What is correct Route -

i created language switcher have problem when subpage. route: route::post('/language', array( 'middleware' => 'languageswitcher', 'uses' => 'languagecontroller@index' )); works fine example: http://localhost:8000/ http://localhost:8000/gallery but not for; http://localhost:8000/gallery/bodnar then recaive methodnotallowedhttpexception in routecollection.php line 218: if set: route::post('/gallery/language', array( 'middleware' => 'languageswitcher', 'uses' => 'languagecontroller@index' )); works http://localhost:8000/gallery/bodnar but not http://localhost:8000/ http://localhost:8000/gallery what correct route::post universal? my languageswitcher.php namespace app\http\middleware; use closure; use app; use lang; use illuminate\support\facades\session; use illuminate\support\facades\config; class languageswitcher { /** * handle inco

eclipse - SSL host could not be verified -

i getting ssl host not verified in eclipse while trying pull bitbucket git project. i read , has no help: "ssl host not verified" error i changed ssl verification false downloaded egit. no difference. still says same thing. i started pissed off bitbucket couldn't development because of dealing various issues. 1 of them pull forward also... can help? didn't want open new discussion comment on thread deleted. while entering uri repository, need enter port number https or ssh? in fact tried adding 443 both again no success. i don't want go github , pay private repository. i grateful if can help. i dont have enough reputation. writing answer (stupid thing!) i not behind proxy. repository private can not access think. https://cosai@bitbucket.org/cosai/uaon.git

ios - NSURL to NSData nil value -

i'm trying convert nsurl nsdata . url string local file url i'm getting device. let url = nsurl(string: url) let imagedata = nsdata(contentsofurl: url) let image = uiimage(data: imagedata) i'm getting nsurl value properly. while converting nsdata gives nil value. know there similar questions in stackoverflow none of them solves problem. i'm using swift 2.2 if string points local file url using wrong api. correct 1 is let url = nsurl(fileurlwithpath: urlstring) nsurl(string: url strings start valid file scheme (e.g. http or ftp )

media player - Android MediaPlayer : How do i show a progress dialog while buffering audio -

im trying play mp3 audio url. when having slow network, player seems not responding while buffering. need add progress dialog while buffering . possible.? if yes can me do.? public class player extends appcompatactivity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_player); bundle b = new bundle(); b = getintent().getextras(); final string url = b.getstring("audio"); log.e("url: ", url); final mediaplayer mmediaplayer = new mediaplayer(); mmediaplayer.setaudiostreamtype(audiomanager.stream_music); try { log.e("preparing: ", url); mmediaplayer.setdatasource(url); mmediaplayer.prepareasync(); // might take long! (for buffering, etc) } catch (ioexception e) { toast.maketext(this, "mp3 not found", toast.length_short).show();

compilation - Compiling sequence -

i'm curious know how java compiler compiles code, ie., sequence in compiles. go through code top bottom 1 reads story or begin main method. say, goes main, creates whatever object main method following fields declared before object creation. then, goes class object name refers; , in class (if .java file), sequence compilation follow? pl let me know. how work two-three or more classes including main class separate java files?

visual studio - CodeLens Timeline view only shows up to 5 users -

Image
codelens tool visual studio 2015 has timeline view shows changes made each user on file. my problem there appear 5 users, , rest put "others" shown in image: is there way expand show users?

html - Making new row of bootstrap float left while breaks onto new line -

Image
<style> .xx{ min-height: 40px; margin-top:15px; background: white; } .yy{ min-height: 100px; margin-top: 15px; background: white; } .zz{ min-height: 95px; margin-top: 15px; background: white; } .pp{ min-height: 120px; margin-top: 15px; background: white; } </style> <div style="background:grey; min-height:600px;"> <div class="row"> <div class="col-md-4"> <div class="text1 xx">this text 1</div> <div class="text3 xx">this text 3</div> </div> <div class="col-md-4"> <div class="text2 xx">this text 2</div> <div class="text4 xx">this text 4</div> </div> <div class="col-md-4"> <div class="text6 zz">this text 6</div> <div class="text7 pp">this text 7</div> </div> <div class="col-md-