Posts

Showing posts from June, 2012

python - Problems Installing Tensor Flow Windows 10 -

i'm trying tensorflow work on windows 10 machine. have cude 8 , cudnn 5.1 installed , added %path% . installed python 3.5.4 proceeded install tensorflow executing pip3 install --upgrade tensorflow-gpu . computer running geforce 1060. here when try import tensorflow: import tensorflow tf traceback (most recent call last): file "c:\users\morit\appdata\local\programs\python\python35\lib\site->packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in >swig_import_helper return importlib.import_module(mname) file >"c:\users\morit\appdata\local\programs\python\python35\lib\importlib__init__.p>y", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) file "", line 985, in _gcd_import file "", line 968, in _find_and_load file "", line 957, in _find_and_load_unlocked file "", line 666, in _load_unlocked file "", line 57...

tensorflow, from source, compilation error, about 'class google::protobuf::Any' class Any; -

i have cloned latest version of latest tensorflow github , trying compile it. unfortunately getting errors. have written custom code (as opposed using stock example script provided in tensorflow) : no os platform , distribution (e.g., linux ubuntu 16.04) : linux ubuntu 16.04 tensorflow installed (source or binary) : trying install source python version : 3.5 bazel version (if compiling source) : 0.5.3 cuda/cudnn version : cuda 8.0 cudnn 5 gpu model , memory : gtx 1080 ti exact command reproduce : bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package i getting following compilation error: error: tensorflow/tensorflow/contrib/gdr/build:52:1: c++ compilation of rule '//tensorflow/contrib/gdr:gdr_memory_manager' failed (exit 1) in file included tensorflow/contrib/gdr/gdr_memory_manager.cc:33:0: ./tensorflow/core/common_runtime/bfc_allocator.h: in member function 'std::__cxx11::string tensorflow::bfcallocator::chunk::debugstri...

beagleboneblack - For a custom Am335 board, how to write minimum device tree ? what should be included? -

i have custom board, has am335. want boot network or sd card. component should there in device tree? minimum. if inherit/include am33xx.dtsi , am335x-bone-common.dtsi should able boot network (tftp/nfs) on am335 board. /dts-v1/; #include "am33xx.dtsi" #include "am335x-bone-common.dtsi" / { model = "ti am335x beaglebone black"; compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx"; }; &ldo3_reg { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; }; &mmc1 { vmmc-supply = <&vmmcsd_fixed>; }; &mmc2 { vmmc-supply = <&vmmcsd_fixed>; pinctrl-names = "default"; pinctrl-0 = <&emmc_pins>; bus-width = <8>; status = "okay"; }; &lcdc { status = "okay"; };

django - Error Running node server , webpack for React configuration -

ive been digging last long few hours , cant catch bug. im following "guide on how create , set django project webpack, npm , reactjs :)" this error when try: node server.js (bonchans) ➜ bonchans git:(master) ✗ node server.js /users/juanperez/desktop/sandbox/dev/django+reactjs/django-react-boilerplate/bonchans/bonchans/node_modules/webpack/lib/webpack.js:19 throw new webpackoptionsvalidationerror(webpackoptionsvalidationerrors); ^ webpackoptionsvalidationerror: invalid configuration object. webpack has been initialised using configuration object not match api schema. - configuration.resolve has unknown property 'modulesdirectories'. these properties valid: object { alias?, aliasfields?, cachepredicate?, cachewithcontext?, descriptionfiles?, enforceextension?, enforcemoduleextension?, extensions?, filesystem?, mainfields?, mainfiles?, moduleextensions?, modules?, ...

html - Inline SVG making parent div bigger -

i'm trying create small dashboard app. since it's going on dashboard, want avoid having scroll @ costs. therefore set height/width of html/body tags 100%, , using percentages everywhere else not know screen sizes. however when add inline svg, when set width 100% on svg element forces parent div bigger fit svg, instead of stopping when gets smaller size. it's hard explain, did js fiddle: https://jsfiddle.net/5khkzgk8/4/ it's basics layout of app. svg black rectangle fills svg. svg { width: 10%; height: 100%; } currently svg width 10%, , works fine. if increase percentage 10% 10% , see how behaves see. (and have though happen) once fills height of div (in light blue), svg stop scaling up. happens continues scaling until width=100%, div big need scroll. i'd grateful assistance. i'm weekend worrior in frontend/css i'm lost @ moment. thanks!

javascript - Implement fuse.js.io function -

all. trying implement fuse.js.io search function from, well, fuse.js.io. have linked fuse.js html search.js variables: var list = [ { title: "the adventures of huckleberry finn", author: { firstname: "mark twain", } },]; the script, fuse, in html followed: <script type="text/javascript" var options = { shouldsort: true, threshold: 0.6, location: 0, distance: 100, maxpatternlength: 32, minmatchcharlength: 1, keys: [ "title", "author.firstname" ] }; var fuse = new fuse(list, options); // "list" item array var result = fuse.search(""); </script> question: how link search.js contains: var list = [ { title: "the adventures of huckleberry finn", author: { firstname: "mark twain", } },]; to html actual search feature returns keys. also, there no console errors don't know how turn scripts real featu...

How to generate random values from a normal distribution with specific mean in R -

Image
i have book equation, not sure how translate code in r. wondering if provide example. i want generate random values distribution. you can use rnorm generate random values: set.seed(100) mu <- 5 # or whatever mean n <- 10 # number of random values wish generate. x <- rnorm(n, mean = mu) #the function's default standard deviation 1 x [1] 4.497808 5.131531 4.921083 5.886785 5.116971 5.318630 4.418209 5.714533 [9] 4.174741 4.640138

javascript - Controling RatedFill in RateYo using CSS -

i using great little jquery plugin called rateyo in application. it uses svgs method creating stars great improvement on traditional method of using images, appears prevent using css control color of rated stars. so can like: $("#rateyo").rateyo({ normalfill: "#a0a0a0", ratedfill: "#f39c12" }); however obvious reasons control these parameters through css rather javascript. i have tried simple .rating svg { fill: $blue3; } which change color of stars prevents control functioning correctly because fixes color of stars fill color provided in css. so, please provide suggestions on how might able control ratedfill parameter through css rather javascript? by inspecting markup rateyo creates, can find relevant classes , target them. here's live example: $(function() { $(".rating").rateyo({ rating: 2.5 }); }); .rating .jq-ry-normal-group svg { fill: silver; } .rating .jq-ry-rated...

javascript - Cannot pass object to redux route -

i want pass object route, appears cannot with: const cognitouser = new cognitouser({ username: data.username, pool: userpool }) cognitouser.authenticateuser(authdetails, { newpasswordrequired(userattribs) { ... dispatch(push({ pathname: '/auth/set-new-password', state: { cognitouser, userattribs } })) } }) i think not able pass cognitouser because cannot serialized? how pass then? uncaught error: failed execute 'pushstate' on 'history': storage object not cloned.

javascript - Draw horizontal target line using EChart.JS -

i draw horizontal target line showing threshold limits on line, bar , pie chart using echart.js ( https://ecomfe.github.io/echarts-doc/public/en/index.html ). there other threads - "chart.js - draw horizontal line" detail how chart.js. has out there got particular experience on echart? thanks in advance.

python 3.x - unexpected text file output <_io.TextIOWrapper.... encoding='cp1252'> -

when run following code following output instead of file's text: list of children's names in whatever group in alphabetical order: <_io.textiowrapper name='whatever.txt' mode='a' encoding='cp1252'> easygui import* i run script , using buttonboxes register children , create groups. add children groups using choiceboxes. problem arises when use 'list of children in each group' option , don't know what's causing nor how fix it. appreciated. from easygui import* def register_child(): enter1 = enterbox(msg="enter child's first name.", title=' ', default='', strip=true, image=none, root=none) if enter1 none: main() return else: while enter1 == "" or enter1.isalpha() == false: enter1 = enterbox(msg="invalid entry. please enter child's first name using letters only.", ...

android get all contacts -

how can names of contacts in android , put them array of strings? try too, private void getcontactlist() { contentresolver cr = getcontentresolver(); cursor cur = cr.query(contactscontract.contacts.content_uri, null, null, null, null); if ((cur != null ? cur.getcount() : 0) > 0) { while (cur != null && cur.movetonext()) { string id = cur.getstring( cur.getcolumnindex(contactscontract.contacts._id)); string name = cur.getstring(cur.getcolumnindex( contactscontract.contacts.display_name)); if (cur.getint(cur.getcolumnindex( contactscontract.contacts.has_phone_number)) > 0) { cursor pcur = cr.query( contactscontract.commondatakinds.phone.content_uri, null, contactscontract.commondatakinds.phone.contact_id + " = ?", ...

javascript - JS difference between filename.js and ./filename.js -

this question has answer here: absolute vs relative urls 12 answers can me understand, difference between filename.js , ./filename.js (note: while include in html or js file) as far know, there no differences: both point file named filename.js in current directory.

css - html background-image doesnt show up on mobile -

Image
i have working hosted website...on theory. did responsiveness , testing on computer mobile browser emulators. working minor mistakes (which aware, , fix). here biggest challenge. if run website in emulator on computer nicely. phone, doesnt load background-image. so excluded problem being responsive, problem must lay somewhere in mobile phones (both times ran chrome). doesnt work on other mobiles too. idea or suggestion towards mystery? thanks, koppany

wordpress - How to get a dynamic dropdown with an ACF Relationship field -

my website lists courses , course providers. i'm using acf relationship assign providers each course. both courses , course providers custom post types have contact form each single course page , need send enquiry selected course provider dropdown. i'm trying have dynamic field where, once provider has been selected, fetch email (assigned acf field) form field , submit form specific email. i'm getting both list of assigned providers , emails in following code. <select name="supplier" id="supplier" class="form-control"> <option value="">---</option> <?php $posts = get_field('course_providers'); if( $posts ): ?> <?php foreach( $posts $post): ?> <?php setup_postdata($post); ?> <option value="<?php the_tit...

apache kafka - How to implement Processor API with Exactly-once mode -

i'm studying kafka stream , using processor api implement use case. code below shows process method forwards message downstream , aborts before calling commit . causes stream reprocessed , duplicates message on sink. public void process(string key, string value) { context.forward(key, value); .. .. //killed context.commit(); } processing.guarantee parameter: streamsconfiguration.put(streamsconfig.processing_guarantee_config, streamsconfig.exactly_once); is there way apply forwarding when invoking commit statement. if not, correct approach implement exactly-once mode. thank you make sure sink in read_committed consumer mode see committed messages. if messages written output topic before transaction aborted, upon abort, messages still there, not marked @ committed. second time through transaction completes messages , commit marker added output topic. if read without being in read_committed mode see messages (including uncommitted ones...

initialization - Initializing multiple dependent services in Javascript -

i have large project comprises of multiple, dependent services. services start asynchronously, take while finish startup. currently, start each process , tie them manually (every service receives dependencies via arguments). i'm looking better way of doing that. ideally want, way declaratively specify list of services, giving each dependency list , have "supervisor" sorting out correct initialization order , starting each service dependencies up. i know concept of di, dislike it, because prefer explicit dependency specification. you consider using promises , in case promise.all(iterable) useful in case. basically promise.all can useful aggregating results of multiple asynchronous requests.

php - Java: AlertDialog not printing new line -

my app using alert dialog box display message obtained php file. the message couple of strings, , box should display like: string 1 string 2 string 3 however displaying like: string 1string 2string 3 i've tried various ways add in new line, both php end , on java end. here have far: protected void onpostexecute(list<string> result) { string message=""; for(int =0; i<result.size(); i++) { message+=result.get(i)+"\n"; } alertdialog.setmessage(message); alertdialog.show(); } i obtaining correct strings php file, newline not printing. there other way can that? tried resize box didn't @ all. use system.lineseparator(); newline message += result.get(i) +system.lineseparator();

java - WebSocket server get client certificate onOpen -

i have simple serverendpoint running on wildfly 10, configured wss mutual tls, client certificate required. have no problems in connecting endpoint, mutual authentication correctly done, can't access client certificate in onopen method. trying using getuserprincipal() , i'm getting null . i need client certificate authorization purposes. import java.io.ioexception; import java.security.principal; import javax.servlet.http.httpsession; import javax.websocket.endpointconfig; import javax.websocket.onclose; import javax.websocket.onmessage; import javax.websocket.onopen; import javax.websocket.session; import javax.websocket.server.serverendpoint; @serverendpoint(value = "/test", configurator = gethttpsessionconfigurator.class) public class testwebsocketendpoint { private session wssession; private httpsession httpsession; @onopen public void onopen(session session, endpointconfig config){ this.wssession = session; this.http...

php - Texarea field partially displays text copied/pasted from webpages -

i have textarea field in php form linked mysql longtext field use paste in text escaped mysqli_real_escape_string. working on experiencing issue since if: copy , paste text word editor characters included in textarea; copy , paste text website text view limited. in both cases pasted text entirely stored in db field. seems limitation of text area only. any similar experience ?

iis - Hosting an asp.net website in my computer -

i have app modifying client. app in asp.net . have read can deploy app in 3 ways: xcopy deployment precompiled deployment web setup project i go xcopy method. have not installed visual studio have sql server installed. coming php background, iis apache can copy files inside directory in iis , launch app in web browser or there step required able run asp.net web app? here complete guide to: install iis in windows install sql server express publish iis in visual studio finally, test in test environment note: there no need install iis, enable settings. , have install sql server , visual studio. edit: install iis open control panel , programs , features , turn windows features on or off . make sure asp.net 4.5 selected under internet information services -> world wide web services -> application development features . set asp.net framework v2.0 v4.0: press windows + r , type "inetmgr" hit enter. in application pools...

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/maps/GeoPoint -

i'm trying latitude , longitude address through method:- public geopoint getlocationfromaddress(string straddress){ geocoder coder = new geocoder(this); list<address> address; geopoint p1 = null; try { address = coder.getfromlocationname(straddress,5); if (address==null) { return null; } address location=address.get(0); location.getlatitude(); location.getlongitude(); p1 = new geopoint((int) (location.getlatitude() * 1e6), (int) (location.getlongitude() * 1e6)); return p1; } catch (ioexception e) { e.printstacktrace(); } return null; } but got error :- java.lang.noclassdeffounderror: failed resolution of: lcom/google/android/maps/geopoint what missing here? my full error :- process: breamex.happy_week_end, pid: 22803 java.lang.noclassdeffounderror: faile...

yii2 advanced app - japan yahoo auction my won list -

Image
i want fetch auction won list yahoo auction website url api given below. on yahoo development website. not able understand need access token. please check below ref site code ref site : https://developer.yahoo.co.jp/webapi/auctions/auction/v2/mywonlist.html https://auctions.yahooapis.jp/auctionwebservice/v2/mywonlist?start=> sample request /auctionwebservice/v2/mywonlist?start= host: auctions.yahooapis.jp authorization: bearer <token> i using yii2. have used other apis listing categories listing auctions , searching , , working fine how can access or use these api. auction display (watch list · auction underway) auction display (watch list · ended auction) auction display (during bidding) auction display (successful bid portion) auction display (under exhibition) auction display (exhibition end minute) auction display (successful bidder list) auction deletion (successful bid part) auction deletion (exhibition end minute) auction display (price cut negotiation) a...

How to get access of Dialing Activity in Android -

i trying access current foreground task (particularly dialing activity ) in android through running background service. i want check if user on call or not. have tried 2 ways under: public void get_running_tasks(){ activitymanager activitymanager= (activitymanager) getapplicationcontext().getsystemservice(context.activity_service); list<activitymanager.runningtaskinfo> all_tasks= activitymanager.getrunningtasks(5); (activitymanager.runningtaskinfo task : all_tasks){ log.i(tag,"running apps: "+task.topactivity.getclassname().tostring()); if(task.topactivity.getclassname().equals("com.android.phone.incallscreen")){ system.out.println("===calling screen"); } else { system.out.println("===else"); } } } second option: public void get_app_processes(){ activitymanager activitymanager= (activitymanager) getapplicationcontext().getsystemservice(context.a...

python 3.x - How to handle all UNICODE characters with pylaTex? -

i have web site running flask app (python 3) , when try generate pdf got error: traceback (most recent call last): file "./web/frontend/printr.py", line 204, in generate_files file "/env/flask3/lib/python3.5/site-packages/pylatex/document.py", line 228, in generate_pdf stderr=subprocess.stdout) file "/usr/lib/python3.5/subprocess.py", line 626, in check_output **kwargs).stdout file "/usr/lib/python3.5/subprocess.py", line 708, in run output=stdout, stderr=stderr) subprocess.calledprocesserror: command '['latexmk', '--pdf', '--interaction=nonstopmode', 'a05f271c-1a7b-4996-9533-1c8ff17a90bf.tex']' returned non-zero exit status 12 during handling of above exception, exception occurred: traceback (most recent call last): file "/env/flask3/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() file "/env/flask3/...

android - How to create a contact listing app similar to the way whatsapp lists user's contacts -

i want list users contacts in app. want similar contact listing features used in whatsapp. what want know is how whatsapp load contacts first time how able load contacts faster in second time. using own local database store contacts?

Suppress Messages from zip in R -

i want suppress messages outputted zip command in r fail find right command so. background, use zip-function within function, don't want user see information files (roughly 5.000, clutters console). here have tried far, functions foo show either adding: hw.txt (stored 0%) or updating: hw.txt (stored 0%) # create small file writelines("hello world", "hw.txt") # use original command zip("zip.zip", "hw.txt") # try different options of capturing/suppressing output! # assignment foo1 <- function() <- zip("zip.zip", "hw.txt") foo1() # capture.output foo2 <- function() <- capture.output(zip("zip.zip", "hw.txt")) foo2() # suppressmessages foo3 <- function() suppressmessages(zip("zip.zip", "hw.txt")) foo3() # invisible foo4 <- function() invisible(zip("zip.zip", "hw.txt")) foo4() # sink foo5 <- function() { sink(tempfile()) zip(...

ios - How to disable font smoothing in Xcode 9? -

Image
i've got great programming font deccy looks font smoothing (anti aliasing) disabled in xcode. xcode 8 following trick: defaults write com.apple.dt.xcode nsfontdefaultscreenfontsubstitutionenabled -bool yes defaults write com.apple.dt.xcode appleantialiasingthreshold 24 but no longer works xcode 9. would possible disable font smoothing in xcode 9? if 'live' in xcode , need crisp rendering of truetype font, editing xcode application defaults prefedit.app , or defaults write com.apple.dt.xcode.* has no effect. thinking outside box might interested in following achieve crispyness all-over mac. since deccy font best viewed @ 12pt, makes sense raise appleantialiasingthreshold in global domain 13, default setting 4. can suggest no applefontsmoothing . defaults write -g applefontsmoothing -int 0 defaults write -g appleantialiasingthreshold -int 13 in addition these tweaks bit more can achieved in accessibility preference pane in system prefe...

java - Debug stream to Twitch ingest server -

i'm implementing rtmp client in java streams twitch server via rtmp api. i've double checked server keeps on closing connection reason. there way can debug this? i'm able stream facebook live same code fine. if helps, twitch server closes connection after connect('app') request, seen in wireshark logs.

hibernate - JPA Mapping in Master/Detail Table Structure -

i have 2 tables : uploading : uid - primary key,autogenerated public class uploading { @id @generatedvalue(strategy=generationtype.auto) private long uid; private string user; @temporal(temporaltype.timestamp) private date utime; private string ustatus; @onetomany(cascade = cascadetype.all,fetch = fetchtype.lazy) @joincolumn(name="uid", referencedcolumnname="uid") private list<snow> snow; } and, snow: uid + incident- composite key @embeddable public class snowkey implements serializable { private static final long serialversionuid = 1l; private long uid; private string incident; } public class snow { @embeddedid private snowkey key; .......... } and, there many "snow" entries single "uploading" so, have used fetchtype.lazy. definition ok, if how can insert both tables now. also can use bidirectional mapping ?

web scraping - What is the easiest way to strip HTML from scrapped web data so that I am only left with strings of words? -

i interested in collecing large corpus of text various websites. result have lots of html. there easy way of getting rid of html left strings of words can analyse? i don't mind paying, prefer free , fast tools. i have had , looks can manually using packages beautiful soup in python or using paid services import.io automatically clean data scrapping occurs. but there better tools avaliable stripping html raw text? i have used jsoup in project extract text websites, simple use, , have used htmlunit clicking buttons in website load more data.

Is there a way to do git rebase with keeping the existing commit hashes? -

imagine scenario project has existing git tree you're 100% satisfied with. discover ancient source code predating migration git , make part of git history. there many ways how achieve knowledge ends new git tree, i.e. existing commits have different ids. in specific case doesn't seem necessary, i'm not changing first commit's parent. there way this? no, fundamentally impossible. commit’s id hash of combined content. includes not whole tree , file content, commit message, author information, and reference parent. so changing parent of commit, changing content , such invalidate previous id. git have recalculate hash in order integrate commit history. otherwise reject commit being broken , leave repository in broken state. the fact commit id matches hash of content, , true direct or indirect parent core part of git’s integrity. cannot avoid this. so no, cannot want without affecting commit hashes. maybe add unrelated branch has no connection current...

c# - SpreadSheetGear IWorksheet cells reading from multiple cells throwing exception -

i trying read cells spreadsheetgear iworkbook it's getting exception . expected ? (int = wr; j <= er; i++) { (int j = sc; j <= ec; j++) { var rng = worksheet.range[i, j]; var celldata = getcell(rng, worksheet); row.c.add(celldata.index, celldata); } } void getcell (spreadsheetgear.irange rng,spreadsheetgear.iworksheet worksheet) { // cpu bound task if (rng.locked) { var locked = 1; } } =================== parllelism code parallel.for (sr ,er+1 ,i => { (int j = sc; j <= ec; j++) { var rng = worksheet.range[i, j]; var celldata = getcell(rng, worksheet); row.c.add(celldata.index...

express - attached comments loop to many times javascript -

i've been having error cant attach comments message id. below have tried, / hints great. routes file: router.get('/home', function(req, res){ if(req.cookies.user_id){ knex.raw(`select * users id = ${req.cookies.user_id}`) .then(function(user){ knex.raw(`select * messages join users on users.id = messages.user_id`) .then((joininfo)=>{ knex.raw(`select comments.id, users.username, messages.id mess_id, messages.body, comments.message_id, users.id us_id, comments.commentsbody, comments.created_at, comments.updated_at comments join messages on comments.message_id = messages.id join users on comments.user_id = users.id`) .then((commentinfo)=>{ res.render('loggedinhome', {user: user.rows[0], messagedata: joininfo.rows...

angular2 directives - Can't get ngPlural to work Angular -

i'm trying ngplural work using angular version 4.0.3 stated in api: https://angular.io/api/common/ngplural <some-element [ngplural]="value"> <ng-template ngpluralcase="=0">there nothing</ng-template> <ng-template ngpluralcase="=1">there one</ng-template> <ng-template ngpluralcase="few">there few</ng-template> </some-element> when use [ngplural] error no provider templateref! template ref. if remove , use *ngplural error no provider ngplural! i don't think need add provider it's angular common library *ngif , *ngfor , work after connecting commons library. are docs date v4.0.3? how can work in template? update: i have added plunker showcase problem: https://plnkr.co/edit/sqwrwjvejjpqmvkwo1g4?p=preview you can use expanded form like: <div [ngplural]="value" class="testparent"> <ng-template ngpluralcase="=0">...

python - How do I run grunt in a virtual environment from Pycharm so I can debug my code? -

Image
i running grunt cmd line in virtual environment executing following start virtual environment , start grunt server respectively. source ./env/bin/activate grunt serve how run server pycharm can step though project's code? this error message i'm getting if try run it. exact same message if try run grunt serve command line , i'm not in virtual environment (i.e. seems pycharm not activating virtualenv before trying start grunt serve): /usr/local/bin/node --debug-brk=51383 --expose_debug_as=v8debug /usr/local/lib/node_modules/grunt-cli/bin/grunt --gruntfile /users/tcl/_myproject/workspace/myproject_web/gruntfile.js serve debugger listening on [::]:51383 running "bgshell:rundjango" (bgshell) task running "watch" task waiting...>> traceback (most recent call last): >> file "myproject_web/manage.py", line 13, in <module> >> configurations.management import execute_from_command_line >...

How to know if a page is blank or parked domain in ruby? -

this question has answer here: efficient way check parked domains? 1 answer method detect parked page? 4 answers i trying find out httpstatus of bunch of urls via ruby net::http , problem blank pages parked domains return status of 200 ok . there anyway can weed out these type of urls? to clarify few points: http status not identify if domain or not parked. exist tell if went ok or not. to track down parked domains, need develop own approach park domain page html page... few things can try: look css, js or text in page "park domain" mention. keywords may want for: domain available / parked / renewable / etc. test couple of different prefixes given domain (domain.com, asds.domain.com, fgffg.domain.com). if redirect same page, it's parked domain...

ios - How to use segmented control as an add minus feature -

Image
i trying create app want user able increase , decrease number using segmented controller. have 2 problems. one side selected, how can make selected when user touching it? how register if same side tapped? have seen many examples shows how register tap on other segment. you using wrong control this. there uistepper want. https://developer.apple.com/documentation/uikit/uistepper?changes=latest_minor

entity framework - SQLite provider in VS2017 -

i want connect sqlite using ef6 in vs2017. installed "system.data.sqlite" nuget package. installed "sqlite-netfx46-setup-bundle-x86-2015-1.0.104.0.exe" http://system.data.sqlite.org , cannot see sqlite provider when adding ado.net data entity. am missing something? or above package not supporting vs2017 (it said vs2015) there no ddex provider package vs 2017 (yet). https://system.data.sqlite.org/index.html/tktview?name=8292431f51 basically need wait for: sqlite-netfx46-setup-bundle-x86-2017-1.0.1xx.0.exe "official" update: the current estimate support visual studio 2017 included in 1.0.106.0 release, should released @ point in mid-june timeframe. mistachkin added on 2017-05-28 20:41:40: @ point, seems unlikely i'll able add vs 2017 support design-time components (e.g. table designer, entity wizard, etc). update: have created ddex provider enables sqlite support (for ef6 only) in visual studio 2017, see how-to guid...

android - ProgressBar gets cut off -

so, trying wrap around circular progressbar around textview . whenever this, gets cut-off (how depends on device), , there ridiculous padding between left side of screen , progressbar . how want like: http://imgur.com/jffxpip the image android studio preview (dont know why works there) however reasons looks (samsung s8): http://imgur.com/kaztl4u on oneplus 1 more on right , more cut off. android:layout_marginleft="-xxdp" can move cut off part progress bar, left want to, since margin depends quite hard on device, prefer use alternative way (and doesnt restore full progressbar). and here complete xml code: <relativelayout android:id="@+id/top_bar_relative_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="6" android:background="@color/blue_top_bar"> <relativelayout android:layout_width=...

sql server - How to get file create date in SQL? -

using openrowset, loading xml file temp table. how file created date? create table #t ( intcol int, xmlcol xml ); insert #t (xmlcol) select * openrowset(bulk 'c:\test.xml', single_blob) x; select * #t t-sql not language can access file systems. can write stored procedure in c# accomplish task. read metadata appropriate classes in .net framework. can write custom function clr integration every information need filesystem. here little working sample file created date clr integration in c#: public class userdefinedfunctions { [sqlfunction] public static sqldatetime getcreateddate(sqlstring filepath) { return filepath.isnull ? sqldatetime.null : file.getcreationtime(filepath.value); } } then you've got deploy assembly , register sql server, create proper function create function commands. see more in codeproject sample

c# - MvvmCross Xamarin-Forms Viewmodel return values and back navigation -

it's standard mvvm problem of getting results view-model. mvvmcross v5's navigation service has brought in nice looking solutions this, i'm having trouble in practice. using xamarin-forms , testing android. the setup main view button command bound calls second view gets value list. https://www.mvvmcross.com/documentation/fundamentals/navigation this page suggests new system using call new view , specify return type/value: var result = await _navigationservice.navigate<newviewmodeltype, paramtype, resulttype>(param); which works nicely, in newviewmodeltype return (currently) says: await _navigationservice.close(this, new resulttype()); // overload isn't there in 5.1 that overload doesn't exist, can use close method of mvxviewmodel base (if anyone's hit issue): await close(new resulttype()); testing in android emulator works nicely when close using command. if navigate away new view model button original button greyed out , never re...