Posts

vb.net - How do I download a TXT and then read it? -

okay have program supposed download txt file contains url dropbox, save on desktop, , open webbrowser process.start(downloadedfile) . my code looks this: dim path string = "c:\users\" & systeminformation.username & "\desktop" my.computer.network.downloadfile("https://www.dropbox.com/s/uy9jpt1em3o6khp/download_location.txt?dl=1", path + "\" + "download_location" + ".txt") dim filereader string filereader = my.computer.filesystem.readalltext(path + "\download_location.txt") process.start(filereader) now problem that, program download txt file , name correctly. if know there text in text file, when program downloads , saves on desktop named "download_location.txt", empty. downloaded file doesn't conatin text if im 100% sure there should url text. and when program reached code process.start(filereader) gives me error: you can not start process because no file name specified. th...

html - Div being stretched on any mobile safari -

Image
i have slideshow divs selectors images. are, divs border. looks on every single browser apart mobile safari and mobile safari here css them: .slick-dots { padding-left: 0px; text-align: center; } .slick-dots li { display: inline-block; list-style-type: none; margin: 0 3px; } .slick-dots li button { background: #fff; border: 1px solid #000; border-radius: 0; height: 18px; width: 18px; opacity: 1; color: transparent; } .slick-dots li.slick-active button { background: #000; } .inspiration .slick-dots, .destinations .slick-dots { padding-left: 0px; } .inspiration .slick-dots li button, .destinations .slick-dots li button { background: none; border: 1px solid #fff; } .inspiration .slick-dots li.slick-active button, .destinations .slick-dots li.slick-active button { background: #fff; } .slick-slide img { display: inline !important; } its set height , width in pixels of 18px. looks if change width below 18px doesn't go less wide... has...

c++ - View class into a container -

i'm trying write class view serve view container, (a sparse matrix class, should unimportant question). view should contain references (e.g. std::reference_wrapper ) selection of elements in container, , have methods returning references elements, assignment operator making 1 block equal another. my problem want view able take values in addition references: both constructed values non-reference instance used in assignments, , assign values single elements in reference instance. an mve of code far is: #include <array> template<typename t, size_t size> class view { private: std::array<t, size> _values; public: view(const std::array<t, size> & values) : _values{ values } { } // ---------- view<t, size> & operator=(const view<t, size> & other) { ( size_t = 0; < size; ++i ) { this->get(i) = other.get(i); } ...

c# - Reading w3wp .Net Performance Counter Instances programmatically -

Image
when viewing .net performance counters using performance tool can see web process performance counters listed (w3wp, w3wp#1): however when run following code administrator: var instancenames = new performancecountercategory(".net clr memory") .getinstancenames() .orderby(x => x); foreach (var name in instancenames) { console.writeline(name); } this output see: notice w3wp counters not listed. know why case , how can fix it? the solution have run application in same bitness website. website 64 bit needed run console application in 64 bit mode. right click on console application project, click properties in build tab untick box says "prefer 32-bit". also when collect process id w3wp process using process id counter inside .net clr memory category 0 begin with. process id have initialize web site , make sure @ least 1 garbage collection happens. in test code call gc.collect in applicatio...

vb.net - VB - displaying chart from datagridview -

i willing show line chart based datagridview, able show not x values, showing each 5 or 10 values, example had record of temperature in room every hour in 10 days, got 24x10 = 240 data, able show value in each every 3 hour showed on chart. ex. have data 1-100 want show chart each data 5,10,15,20,... how possibly done ? chart1.series(0).charttype = datavisualization.charting.seriescharttype.line chart1.series(0).points.clear() count integer = 0 datagridview1.rows.count - 1 chart1.series(0).points.addxy(datagridview1.item(0, count).value, datagridview1.item(2, count).value) next the code above has showed normal line chart. skip points don't want plot in loop using mod in vb.net dim divisor = 3 chart1.series(0).charttype = datavisualization.charting.seriescharttype.line chart1.series(0).points.clear() count integer = 0 datagridview1.rows.count - 1 if (datagridview1.item(0, count).value mod divisor = 0) chart1.series(0).points.addx...

Unity With C# script : Class Data Type Passing Value From Class With Data Twice Weird -

i got simple question , weird passing value data type class variable. the code below : void additem(int id) { (int = 0; < database.items.count; i++) { if(database.items[i].itemid == id) { itemxs = new item (database.items [i].itemname, database.items [i].itemid, database.items [i].itemdesc, database.items [i].harvest, database.items [i].itemtime, database.items [i].stdprice, database.items [i].hightprice, database.items [i].itemstock, database.items [i].lvlunlock, database.items [i].rawtree, database.items [i].itemtype, database.items [i].itemprod, database.items [i].itemicon); debug.l...

javascript - DatePicker/Timepicker is Visible all the time -

i have fields datepicker & timepicker . whenever move page last used datepicker or timepicker visible time. example if had used timepicker on page, whenever going page timepicker open. my requirement when click on textbox datepicker or timepicker should visible. javascript function: $(document).ready(function () { $("[id$=textbox1]").pickadate({format: 'dd/mm/yyyy'}); $("[id$=textbox3]").pickatime({ interval: 10 }); $("[id$=textbox4]").pickatime({ interval: 10 }); }); where should change code? please me so. thanks update code: for textbox1 <tr> <td class="style10"> <strong> today </strong> </td> <td class="style13"> <strong> <asp:textbox id="textbox1" runat="se...