Posts

vue.js - ie Edge svg text fill render error -

i'm new in svg. when use vue.js change svg's fill attribute. it's position render error! render correctly in other browser! try google , search in stackoverflow,but there not solution solve issue. thx. <svg width="8.4em" height="2.2em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 315 70"> <g> <text x="50%" y="50%" :fill="data.fill"> </g> </svg> in ie edge the issue link(ps: reputation under 10,so paste link :) https://i.stack.imgur.com/9i7tf.png but it's ok on ie10,ie11 and demo url : http://codepen.io/wangxizhu/pen/ppxbww

android - Opening a screenshot image in another activity -

i created application take screen shot of current screen , open image in new activity. reason application crashes when want open new activity view picture. here's code: public static bitmap getscreenshot(view view) { view screenview = view.getrootview(); screenview.setdrawingcacheenabled(true); bitmap bitmap = bitmap.createbitmap(screenview.getdrawingcache()); screenview.setdrawingcacheenabled(false); return bitmap; } this onsave method gets image , meant set , display image in activity: public void onsave(view view){ bitmap bm = getscreenshot(view); imageview view= (imageview) findviewbyid(r.id.newview); view.setimagebitmap(bm); intent saveintent = new intent(this, savepicture.class); startactivity(saveintent); } this saveintent activity xml code: <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical...

c# - How to get the files from the hierarchy of Zip Folder -

i have directory structure this: a.zip - - - 1.dat 2.dat i want read files 1.dat , 2.dat inside directory hierarchy. able read file contentby c#, if file directly inside zip folder due inner directory structure become inaccessible. any appreciated. in advance. not sure how reading zip file contents without example, reading zip file contents using system.io.compression , system.io.compression.filesystem assemblies pretty simplistic. see following example of how read files regardless of subdirectory within zip file: using system; using system.io.compression; namespace zipreader { class program { const string zippath = @"d:\test\test.zip"; static void main(string[] args) { using (var archive = zipfile.openread(zippath)) { foreach (var entry in archive.entries) { console.writeline(entry.fullname); } } ...

amazon web services - AWS EC2 is running but website is showing connection time out -

i running bitnami wordpress on aws server website working since 2 days stop showing , connection timeout showing. instance ec2 running fine, , have seen ip logs, , nothing suspicious has come up. based on above comments guess issue internal web server make sure web server running fine. , not mean checking ec2 instance state, because possible ec2 instance running web server down, causing issue

regex - Regular expression character class with parenthesis with grep command -

regular expression grep command. example let have file called regular.txt contain date below: $ cat regular.txt july jul fourth 4th 4 so trying match these text input file,using below process method: method 1: match fourth|4th|4 $egrep '(fourth|4th|4)` regular.txt output method 1: fourth 4th 4 method 2: match fourth|4th|4 using optional parenthesis $ egrep '(fourth|4(th)?)` regular.txt output method 2: fourth 4th 4 method 3: match entire file july, jul, fourth, 4th, 4. using command below: $ egrep 'july? (fourth|4(th)?)` regular.txt output method 3: nothing match here. how ? could please me on ? thanks, your july? (fourth|4(th)?) regex matches sequence of patterns, jul followed optional y , space, , 2 alternatives: fourth or 4 optionally followed th substring. if plan match jul or july 3rd alternative, add grouping construct: 'fourth|4(th)?|july?' ...

mysql - #1286 - Unknown storage engine 'InnoDB' -

please me error #1286 - unknown storage engine 'innodb' running query: create table if not exists `tbl_prize` ( `prize_id` int(11) not null, `prize` int(11) not null, `chance` int(11) not null default '1' ) engine=innodb auto_increment=3 default charset=utf8 collate=utf8_bin; alter table `tbl_prize` add primary key (`prize_id`); alter table `tbl_prize` modify `prize_id` int(11) not null auto_increment,auto_increment=3; insert `tbl_prize` (`prize_id`, `prize`, `chance`) values(1, 100, 1),(2, 200, 1); create table if not exists `tbl_user` ( `user_id` int(11) not null, `reffer_id` int(11) default null, `wallet` varchar(500) not null, `ref_pending` int(11) unsigned not null default '0', `earn` int(11) unsigned not null default '0', `playnum` int(11) unsigned not null, `ip` int(10) unsigned default null, `reset` int(4) unsigned not null ) engine=innodb default charset=latin1; alter table `tbl_user` add primary key...

less - How to dynamically define dependencies for a marko template being rendered in express JS route using lasso? -

for example: consider route /theme route should render in theme (read: less color variables) specified route/query param. based on theme parameter, custom js script may need injected. the scripts , styles may or may not included depending on provided parameter (which rules out preconfiguring lasso or using bower.json). means dependencies must specified right before route renders template. i using marko v4 + expressjs + lasso + less + lasso-marko + lasso-less i not posting code it's little on place after trying many things out. please let me know if description not clear enough. try putting sandbox demonstration purposes. update: adding in core files , directory structure sandbox |- components | |- app-main.marko |- dependencies | |- theme1 | |- main.js | |- variables.less | |- theme2 | |- main.js | |- variables.less |- node_modules |- public |- templates | |- base | |- index.marko | |- style.less | |- browser.json |- index.js |- packa...