Posts

Showing posts from April, 2011

convert textbox text in to hyperlink C# windowForm application -

i want convert textbox string in hyperlink when user click on direct path. string filepath = @"d:\folder\myfolder" ; i have tired system.diagnostics.process.start convert entire textbox think... want particular string only. { string filepath = @"d:\folder\myfolder"; textbox3.text += filepath + "\r\n"; textbox3.text += "warnings :" + werr + "\r\n\r\n\r"; textfound = true; } i think using richtextbox great idea. 1) set detecturls property true , write event handler going {yourformname}.designer.cs below other richtextbox handler write this.richtextbox1.linkclicked += and press tab 2 times. create event handler you. private void mrichtextbox_linkclicked (object sender, linkclickedeventargs) { // add line inside event handler. system.diagnostics.process.start(e.linktext); //this open click link in default browser. links automatically underlined hyperlinks. } 2)(opti

ios - Couldn't install dependancy using carthage -

i've been installing dependencies using pods, i've tried carthage first time. i've opened issue on git also, looking quick help. here's github link of issue: https://github.com/alamofire/alamofire/issues/1765 short desc issue: the following build commands failed: compileswift normal x86_64 compileswiftsources normal x86_64 com.apple.xcode.tools.swift.compiler (2 failures) my xcode version 8.0, git version 2.8.4 (apple git-73), , carthage version 0.18.1: redundant redundancy any highly appricaited i had 3 versions of xcode installed 7, 8.0 , 8.1, trying on xcode 8 ended using xcode 8.1 , changing command line tool of xcode preferences xcode 8.1 hope helps else :)

java - Android Studio pictures size change -

i building application in android studio, take picture device's camera , post . problem noticed ,that different devices size of picture change. on 6 inch phone ,a photo smaller screen size device smaller or distorted. know possible solution?

angularjs - Ng-Maps change route color of direction renderer -

i trying change blue route other color, unable change it. plunker url: http://plnkr.co/edit/3dduoux7r91ljqqkp43e?p=preview angular.module('ngmap').run(function($rootscope, ngmap) { $rootscope.loglatlng = function(e) { console.log('loc', e.latlng); } ngmap.getmap({id: 'locomotivemap'}).then(function(map) { var directionsdisplay = new google.maps.directionsrenderer; var polyline = new google.maps.polyline({ strokecolor: '#ff0000', strokeopacity: 0.7, strokeweight: 1 }); directionsdisplay.setoptions({polylineoptions: polyline}); directionsdisplay.setmap(map); console.log(directionsdisplay); }); $rootscope.waypoints = [ { location: { lat: 51.546550, lng: 0.026345 }, stopover: true }, { location: { lat: 51.5429188223739, lng: 0.034160614013671875 }, st

sql server - Are there any alternative to insert explicit value for identity column than setting IDENTITY_INSERT ON -

i have 2 tables. both have same column name. expanding purpose need migrate data 1 table table. wrote following query: insert table1(primarykey,column1, column2) select * table2 (<condition>) which causing error: cannot insert explicit value identity column in table 'table1' when identity_insert set off when google it, people have mentioned use set identity_insert [spider3].[table1] on but there drawbacks mentioned that. though feature valid connection, unable have identity_insert thing on more 1 table. i'm looking alternatives. can suggest alternative solutions? can use 'as' keyword in query self resolve problem? if how? these insert statements calculating in possibility of identity insert. these can run in batch , perform identity_insert dynamically. use script generate statements. if (objectproperty(object_id('[production].[scrapreason]'), 'tablehasidentity') = 1) set identity_insert [production].[scrapr

graph - Python 3.5 serial string -

i building basic logger ardunini , having trouble getting python convert serial string numbers stored in array. can use matplotlib draw graph me. when @ serial output ardunini serial monitor get: 120,2134567,2011/3/31 6:37:13,23 which is: millis,unixtime,timestamp,logvale when serial read in python , print see get: b'120,2134567,2011/3/31 6:37:13,23\r\n how unpack these values float values can use matplotlib draw real time graphs? i have writing csv file have working draw graph extracting csv want real time graphs , can't past bit. i tried toptechguy's example on youtube 3.5 works differently 2.7. any ideas?

r - Created a dataframe within a function and used rbind to add rows, but its first row is NA's, by default not choise -

i @ beginning level. think question regarding rbind , initializing data frame named com, use below. -- u can skip this-- function takes in 2 parameters, directory , id, directory open appropriate folder in workspace, , id pulls out relevant csv file-- part --. below function, , under output, in output see first row has na na. learn going on, how make such first row in not na's thanks. complete <- function(directory, id = 1:332) { com <- data.frame(matrix(ncol=2)) names(com) <- c("id","nobs") #initialize com, data frame store entries into. for(i in id) { x <- paste("./", directory, "/",list.files(paste("./", directory, sep=""))[i], sep="") q <- read.table(x,sep=",", header=t) u <- complete.cases(q) n_r <- (nrow(q[u,])) entry <- c(i,n_r) com<-rbind(com,entry) } return(com) }

java - How to detect inside a method that another method in the same class has updated one of the classes variables? -

(newbie-warning) i have class, myclass, implelements listener interface (somelistener). myclass contains 2 counters, counta , countb. myclass added listener otherclass. when happens in otherclass, fires myclass-methods incrementa or incremenetb. myclass has method mymethod called thirdclass. sends list of requests server. server responds otherclass each of requests. otherclass fires incrementa or incrementb. my problem: preferrably need mymethod return after server has responded otherclass requests. can't seem work. sketch of code far: class myclass implements somelistener{ private int countera; private int counterb; private int numrequests; public boolean mymethod(){ // send numrequests number of requests serve long start = system.currenttimemillis(); long end = start + 1000*numobjects; //wait responses requests, or timeout while(countera+counterb < numrequests && currenttime<end){

iframe - In a frame because it set 'X-Frame-Options' to 'SAMEORIGIN, SAMEORIGIN' -

<a href="#popupvideo" data-rel="popup" data-position-to="window" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">launch video player</a> <div data-role="popup" id="popupvideo" data-overlay-theme="b" data-theme="a" data-tolerance="15,15" class="ui-content"> <iframe src="https://xxxx.net" width="497" height="298" seamless=""></iframe> </div> i trying add iframe in pop window showing me error in frame because set 'x-frame-options' 'sameorigin, sameorigin'. what ? looks https://xxxx.net 's owner doesn't want iframe resources on websites. if domain yours , want include content website, should whitelist using allow-from https://your-domain.com . https://developer.mozilla.org/en-us/docs/web/http/headers/x-frame-options

html - Zooming issue in css? -

Image
i have following code: <h1>some data</h1> h1{ margin: 50px; display:inline-block; position:relative; z-index:1; padding:10px 50px 10px; color:red; border: 1px solid #ccc; background: #fff; } h1:before{ content:''; width:100%; height:100%; position:absolute; top:-1px; left:0; background:red; z-index:-1; border: 1px solid #ccc; -webkit-transform: skewx(-20deg); -ms-transform: skewx(-20deg); transform: skewx(-20deg); -webkit-transform-origin:0 0; -ms-transform-origin:0 0; transform-origin:0 0; background: #fff; } https://jsfiddle.net/gyvprwex/25/ the problem when zoom out (on chrome , ie 11), in cases child ( :before ) seemed higher parent, , in cases child seemed shorter. how can fix zooming issue? demo codepen here, have modified code: * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; pa

How to use certbot-auto with IPv4? -

i' trying renew certificates on ubuntu 16.04 server. certbot-auto trying use ipv6. have no ipv6 address. below error occurred. do? ./certbot-auto renew --no-self-upgrade wicked happened resolving 'fe80::1%eth0:13128' (-9 - address family hostname not supported)

umbraco7 - Umbraco 7: Write.lock file -

we've migrated our umbraco site windows 2012 server (was on 2008 r2). fine first week or so, past few days we've started receive write.lock file errors every hour or so. can rebuild indexes, stop/restart app pool, error returns. using umbraco 7.4.2. ideas? thanks some further info umbraco log: system.exception: app shutting down index batch operation ignored,, indexset: abccorporatecyindexset 2016-11-09 16:15:07,513 [p2952/d88/t139] error umbracoexamine.dataservices.umbracologservice - provider=abccorporateenindexer, nodeid=-1 system.exception: app shutting down index batch operation ignored,, indexset: abccorporateenindexset 2016-11-09 16:15:07,560 [p2952/d88/t139] error umbracoexamine.dataservices.umbracologservice - provider=internalindexer, nodeid=-1 system.exception: app shutting down index batch operation ignored,, indexset: internalindexset 2016-11-09 16:15:07,560 [p2952/d87/t47] warn umbraco.web.publishedcache.xmlpublishedcache.xmlcachefilepersister - cannot w

Content cannot scroll - HTML - CSS -

Image
i've web view use datatable plugin in content. content cannot scrolling when data when data no longer fit displayed on screen. html <div class="landing"> <div class="wrap mainbar-new"> <div class="why-container"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover" id="table"> <thead> <tr> <th align="center">no</th> <th align="center">time</th> <th align="center">user</th> </tr> </thead> <tbody> <?php $no=1; foreach($data $row):?> <

javascript - Bootstrap Carousel-controls not clickable and not working in ASP.net MVC 5 -

can please. i've tried switching bootstrap.min.js bootstrap.js ; jquery.min.js jquery.js . animation works no control clickable or working. problem asp.net mvc5? <!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>index - asp.net application</title> <link rel="stylesheet" href="/content/font-awsome/css/font-awesome.min.css"> <!--<link rel="stylesheet" href="~/content/bootstrap.min.css">--> <link rel="stylesheet" href="/content/bootstrap.css"> <link href="/content/site.css" rel="stylesheet" type="text/css" /> <!--<script type="text/javascript" src="~/scripts/jquery-1.10.2.min.js"></script>--> <script type="text/javascript"

php - How to make Woocommerce layered nav widget works on products page -

i added woocommerce layered nav widget shop's sidebar. main page shows categories, when user clicks on category, page show subcategories , after choosing subcategory, user see products. my problem layered nav widget works on page showing categories. want make work on page shows products only. if knows in function woocommerce selects products show on page helpful. thank you. upd: found in widgets/class-wc-query.php in function get_layered_nav_chosen_attributes() $_get looks working incorrectly. when try filter products in subcategories or products lists, see in $_get following values: [q] => /product-category/category-name/subcategory_name/filter_brand=brand_name [query_type_brand] => or when filter products categories list see filter_brand correctly parsed , treated separate parameter. if knows problem please me. upd2: @ time have workaround. in class-wc-widge-layered-nav.php get_page_base_url() function after $link calculation added fake argument &#

android - Buttons value to EditText? -

i have edittext , buttons phone caller numbers putted on every button settext on edittext why not writing on next each other..? when press 1 2 whole edit text 2 if clicked 3 2 deleted , 3 wroten want keyboard text on next each other public class mainactivity extends activity implements view.onclicklistener { edittext phoneto; button btn,btn1,btn2,btn3,btn4,btn5,btn6,btn7,btn8,btn9,btn10,btn11,btn12,btn99; textview textview; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); phoneto = (edittext) findviewbyid(r.id.edittext2); btn = (button)findviewbyid(r.id.button); btn1 = (button)findviewbyid(r.id.btn1); btn2 = (button)findviewbyid(r.id.btn2); btn3 = (button)findviewbyid(r.id.btn3); btn4 = (button)findviewbyid(r.id.btn4); btn5 = (button)findviewbyid(r.id.btn5); btn6 = (button)findviewbyid(r

ember.js - How to store and load models from Ember data to and from local files? -

i'm giving go @ making ember electron app , wanting save model data json or json-api formatted file instead of pushing remote api, best way this? i see possible call .tojson() on model objects basic json representation of model, can save disk using electron-settings, i'm @ loss on how load data in. from can see, using "push" function in ember data allows import data, seems expects json-api format instead: https://guides.emberjs.com/v2.9.0/models/pushing-records-into-the-store/ i've found easiest store data in json api spec format. out of system call var data = model.serialize({includeid: true}) give json api specced version of data. or load of models: var jsonmodels = []; allmodels.foreach(function(model) { jsonmodels.pushobject(model.serialize({includeid: true}).data) }, this); return {data: json.stringify(jsonmodels)}; you can call this.get('store').pushpayload(data); load json store.

swift - Add array object not init -

i have method init class object json. method this: func getlist (dic : array<[string:anyobject]>) -> array<dog> { let dogs : nsmutablearray = nsmutablearray() mydic in dic { let dog = dog.init(dog: mydic) dogs.addobject(dog) } return nsarray(dogs) as! array<dog> } and can present on tableview without issue. right want make pagination list. if run method getlist again init new object , replacing old one. how can add new object exisiting. don't want create separate object same property. you need add member variable append to. so: var dogs: [dog] = [] and call getlist this: dogs += getlist(dic: mydic) by way, can make getlist method simpler, this: func getlist(dic: [[string: anyobject]]) -> [dog] { return dic.map(dog.init) }

java - Stream android screen -

i trying fallow truiton screencapture example, in order record device screen using mediaprojection when saving recording localy works mmediarecorder.setvideosource(mediarecorder.videosource.surface); mmediarecorder.setoutputformat(mediarecorder.outputformat.mpeg_4); string localfilepath = getlocalfilepath(); mmediarecorder.setoutputfile(localfilepath); mmediarecorder.setvideosize(display_width, display_height); mmediarecorder.setvideoencoder(mediarecorder.videoencoder.mpeg_4_sp); mmediarecorder.setvideoframerate(30); mmediarecorder.prepare(); how ever when changing work filedescriptor it's not mmediarecorder.setvideosource(mediarecorder.videosource.surface); mmediarecorder.setoutputformat(mediarecorder.outputformat.mpeg_4); string hostname = "10.26.100.18"; int port = 2007; socket socket = new socket(inetaddress.getbyname(hostname), port); parcelfiledescriptor filedescriptor = parcelfiledescriptor.fro

java - Convert PostgreSQL Query into corresponding Hibernate Query -

i need corresponding hibernate query postgresql query. here query select date(row_created) demotable where date inbuilt function in postgresql , row_created column in demotable having data type of timestamp without time zone . here pojo class import java.util.arraylist; import java.util.date; import java.util.list; import javax.persistence.cascadetype; import javax.persistence.column; import javax.persistence.entity; import javax.persistence.generatedvalue; import javax.persistence.generationtype; import javax.persistence.id; import javax.persistence.joincolumn; import javax.persistence.manytoone; import javax.persistence.onetomany; import javax.persistence.table; import javax.persistence.transient; import javax.validation.constraints.notnull; @entity @table(name = "candidate") public class candidates { @id @column(name = "id") @generatedvalue(strategy = generationtype.auto) private int candidateid; @notnull @column(name =

php - jquery post Showing loading message till success -

i have following script fetch data server based on form parameters. jquery('#request_search').submit(function(e){ e.preventdefault(); var s_date=jquery('#actualfrom').val(); var e_date=jquery('#actualto').val(); var type=jquery("#type").val(); var loc=jquery("#loc").val(); jquery.post("scripts/get_gamma_activity_type.php", {"loc":loc,"start_date":s_date, "end_date":e_date, "type":type}, function(data) { jquery('#report').html(data);}); }); }); this part working , times, based on search criteria , takes couple of seconds results. in mean time show gif saying data loading. have gif ready. how implement in above script? please try this. jquery('#request_search').submit(function(e){ $("#report").html("<div><img src='loading.gif' alt='loading.. \n please wait

html - TYPO3 tt_news. How to output field in attribute in template? -

i tried this: <div class="<!-- ###author### --><!-- ###author### -->"> and this: <div class="###author###"> but not work woops, second variant works, write wrong

PHP Curl not executing Error 524 Timeout -

curl working fine @ server when trying run php script having curl_exec , not able run script. processing , returns 524 timeout error. have tried simplest curl code still same problem. when checked on local machine working fine. plz me can do. tried <?php $ch = curl_init(); curl_setopt($ch, curlopt_url, "suhailakhtar.xyz"); curl_setopt($ch, curlopt_returntransfer, 1); $fp = fopen('curlerror.log','a'); curl_setopt($ch, curlopt_verbose, true); curl_setopt($ch, curlopt_stderr, $fp); $result = curl_exec($ch); if (curl_errno($ch)) { echo 'error:' . curl_error($ch); } else { echo($result); } curl_close ($ch); ?> on simple curl command , got error in file * rebuilt url to: suhailakhtar.xyz/ * hostname not found in dns cache * trying 31.170.164.150... * connect 31.170.164.150 port 80 failed: connection timed out * failed connect suhailakhtar.xyz port 80: connection timed out * closing connection 0 and other url on port 443

c# - Linq group by, order by values -

i need have table: id day group value ------------------------------------------------- 1 2016-10-11 1 10.5 2 2016-10-11 1 10.8 3 2016-10-11 1 10.7 4 2016-10-11 1 10.6 5 2016-10-11 1 10.5 6 2016-10-11 1 10.4 7 2016-10-11 1 10.8 8 2016-10-11 1 10.2 9 2016-10-11 1 10.0 10 2016-10-11 1 10.9 11 2016-10-11 2 10.1 12 2016-10-11 2 10.0 13 2016-10-11 2 10.1 14 2016-10-11 2 10.6 15 2016-10-11 2 10.7 16 2016-10-11 2 10.2 17 2016-10-11 2

javascript - How can I return an array and HTML data in an AJAX response? -

i have array in php page named new1.php: $arr = ['value 1', 'value 2', 'value 3']; $html = '<div>huge data tags page</div>'; $response = json_encode('array' => $arr, 'html' => $html); echo $response in calling page, when console.log(data.html) gives undefined . same happens console.log(data.array); . here ajax code: $.ajax({ url: "new1.php", type: "post", data: { somedata: somedata }, datatype: "text", success: function(data) { console.log(data); console.log(data.html); console.log(data.array); } }); most importantly, want know best way return page other data ajax response? from php code json_encode add top of page header("content-type: application/json"); encode should take in array parameter instead json_encode(array("array"=>$arr, "html"=>$html)); it should see record json ,

javascript - how to add a text to all sides of 3d cube using 3js -

//cube var materials = [ new three.meshlambertmaterial({ ambient: 0xffffff, map: three.imageutils.loadtexture( '1.png' ) }), new three.meshlambertmaterial({ ambient: 0xffffff, map: three.imageutils.loadtexture( '2.png' ) }), new three.meshlambertmaterial({ ambient: 0xffffff, map: three.imageutils.loadtexture( '3.png' ) }), new three.meshlambertmaterial({ ambient: 0xffffff, map: three.imageutils.loadtexture( '4.png' ) }), new three.meshlambertmaterial({ ambient: 0xffffff, map: three.imageutils.loadtexture( '5.png' ) }), new three.meshlambertmaterial( { ambient: 0xffffff, map: three.imageutils.loadtexture( '6.png' ) }) ];   var geometry = new three.boxgeometry(80, 80, 80, 3, 3, 3), cube = new three.mesh( geometry, new three.meshfacematerial(materials) );   cube.position.set( 0, 0, 0

java - how do I extract characters consecutive to the substring and the substring itself After checking if string array contains the required substring -

im trying deal following string array called "wifis":- [ssid: stephen joseph, bssid: ##:a6:##:c0:21:##, capabilities: [wpa2-psk-ccmp][wps][ess], level: -78, frequency: 2442, timestamp: 998653673499, hs2info: <none>, distance: ?(cm), distancesd: ?(cm), ssid: tp-link_g6d356, bssid: 30:b5:c2:f5:$$:56, capabilities: [wpa-psk-ccmp][wpa2-psk-ccmp][wps][ess], level: -86, frequency: 2452, timestamp: !!!653673417, hs2info: <none>, distance: ?(cm), distancesd: ?(cm), ssid: cbtap998852211c:cf:7f:0a:ac:33, bssid: 5e:cf:7f:0a:ac:91, capabilities: [ess], level: -46, frequency: 2412, timestamp: 238653673402, hs2info: <none>, distance: ?(cm), distancesd: ?(cm), ssid: tech_d0008214, bssid: 70:5a:9e:65:30:56, capabilities: [wpa-psk-ccmp+tkip][wpa2-psk-ccmp+tkip][ess], level: -88, frequency: 2462, timestamp: 238653673422, hs2info: <none>, distance: ?(cm), distancesd: ?(cm), ssid: tech_d0018138, bssid: 50:09:59:83:ee:05, capabilities: [wpa-psk-ccmp+tkip][wpa2-psk-cc

android - PublishSubject subscriber is not receiving events -

i have class viewmodel exposes publishsubject binder. viewmodel public class viewmodel { private publishsubject<actionsevent> binder = publishsubject.create(); private service service = createservice(); @override public observable<actionsevent> getbinder() { return binder.doonsubscribe(initialize()); } private action0 initialize() { return new action0() { @override public void call() { service.getactions().subscribe(new action1<action>() { @override public void call(action action) { log.d(tag, "so far, good"); binder.onnext(new actionfetchedevent(action)); } }); } }; } } and in activity, subscribe action executed when each event fetched. activity public class myactivity extends activity { @override public

php - How to arrange array with proper value in main array -

currently trying assign value in array , existing array looks like.. array ( [detals] => array ( [0] => array ( [make] => xyx [yeardeta] => 2001 ) [1] => array ( [model] => array ( [0] => test 1 [1] => test fix [2] => hamour [3] => imagica ) ) [2] => array ( [make] => xyx [yeardeta] => 2002 ) [3] => array ( [model] => array ( [0] => test 2 ) ) ) ) i want output .. array ( [detal

html - responsive view breaking on a single page -

so trying center align these both images on mobile platforms problem breaking viewport causing horizontal scroll on mobile devices . using wordpress avada theme. this managed do <ul style="list-style-type: none; margin-left: 0px; margin-top: 40px; float: left; position: absolute; display: inline-block;"> <li style="font-size: 15px; padding-bottom: 1px; padding-top: 17px;"><a href="http://www.google.com">traps</a></li> <li style="font-size: 15px; margin-top: 2px;"><a href="http://www.google.com">shoulder</a></li> <li style="font-size: 15px; "><a href="http://www.google.com">chest</a></li> <li style="font-size: 15px; "><a href="http://www.google.com">biceps</a></li> <li style="font-size: 15px; "><a href="http://www.google.com">abs</a>

bxSlider short PagerType and maxSlides counting issue -

i'm calling bxslider both pager , min/max slide options. the issue i'm having it's not counting slides correctly, seems counting current slide (correct) , "next" amount of slides instead of total. how total instead? https://jsfiddle.net/ulc6qrmn/ html: <ul class="carousel-slider"> <li><img src="assets/images/cms-images/gallery.jpg" alt=""/></li> <li><img src="assets/images/cms-images/gallery.jpg" alt=""/></li> <li><img src="assets/images/cms-images/gallery.jpg" alt=""/></li> <li><img src="assets/images/cms-images/gallery.jpg" alt=""/></li> <li><img src="assets/images/cms-images/gallery.jpg" alt=""/></li> </ul> bxslider call: $('.carousel-slider').bxslider({ auto: false, pager: true, pagertype: 's

android - ExpandableListView; When I click on first group's switchCompat, other group's switchCompat click on and vise versa -

i created expandablelistview have had many errors. "flat list position of unknown type". don't error when click on group's switchcompact child, other group's switchcompact child clicked. adapter below: public class expandablelistadapter extends baseexpandablelistadapter { private string company_name_array[] = { "po" , "opet" , "shell" , "bp" }; private int company_icon_array[] = { r.drawable.po, r.drawable.opet, r.drawable.shell, r.drawable.bp }; static public list<string> stationlist; static public list<string> fuellist; static public boolean density; private imageview image1; private imageview image2; private textview text1; private textview text2; private context _context; private list<string> _listdataheader; // header titles // child data in format of header title, child title private hashmap<string, list<string

c# - Await HttpClient.PostAsync() timing out. Have I missed something? -

i have 2 web apis, 1 made in .net core , in python using flask. trying make .net core api post endpoint in python-flask api , response message in return. i using system.net.http when gets await httpclient.postasync() hangs indefinitely , timeout. what's more strange works fine, connects , gets response no problems. i attempted debug python-flask api try , find if/where gets stuck seems never reaches python-flask api, sends request , waits indefinitely. this code in .net core api: httpresponsemessage responsemessage = null; var pairs = new dictionary<string, string> { {"key", key} }; var keycontent = new formurlencodedcontent(pairs); var client = new httpclient {baseaddress = new uri("http://localhost:5000/")}; responsemessage = await client.postasync("token", keycontent); this sending key /token endpoint , awaits response. if necessary add python-flask api code w

PageSpeed Insights - How compress all js and css file in wordpress website? -

i test wordpress website via "pagespeed insights" , can't fix: "compressing resources gzip or deflate can reduce number of bytes sent on network." .htaccess ## expires caching ## <ifmodule mod_expires.c> expiresactive on expiresbytype image/jpg "access 1 year" expiresbytype image/jpeg "access 1 year" expiresbytype image/gif "access 1 year" expiresbytype image/png "access 1 year" expiresbytype text/css "access 1 month" expiresbytype application/pdf "access 1 month" expiresbytype application/javascript "access 1 month" expiresbytype application/x-javascript "access 1 month" expiresbytype application/x-shockwave-flash "access 1 month" expiresbytype image/x-icon "access 1 year" expiresdefault "access 2 days" </ifmodule> ## expires caching ## <ifmodule mod_gzip.c> mod_gzip_on yes mod_gzip_dechunk yes mod_gzip_item_include file .(htm