Posts

Showing posts from March, 2013

haskell - How do I convert a Text to a bytestring Builder? -

the blaze-builder package provides .char.utf8 module includes fromtext , fromlazytext efficiently converting value text package blaze-builder builder value. new builder api in bytestring , however, no such function exists (since bytestring not depend on text ). unpack text values , use stringutf8 , that's slower. another option use blaze-builder , wrapper around bytestring 's builder type, i'm wondering if there's more idiomatic way of approaching this. you can use encodeutf8builder function , corresponding function lazy text .

android - UnsatisfiedLinkError when init skmap on some devices -

i develop application use skmaps , run fine on nexus 5, nexus 6, note 8 , asus fonepad 7 but when call new skpreparemaptexturethread(this, mapresdirpath, "skmaps.zip", this).start(); on lg g4 , huawei ascend mate 7 application force close , in logcat show java.lang.unsatisfiedlinkerror: dalvik.system.pathclassloader[dexpathlist[[zip file "/data/app/com.moveplus.jeenja-1/base.apk"],nativelibrarydirectories=[/data/app/com.moveplus.jeenja-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libngnative.so" @ java.lang.runtime.loadlibrary(runtime.java:378) @ java.lang.system.loadlibrary(system.java:998) @ com.skobbler.ngx.skmaps.(sourcefile:59) @ com.skobbler.ngx.skpreparemaptexturethread.a(sourcefile:130) @ com.skobbler.ngx.skpreparemaptexturethread.run(sourcefile:86) i have put skmaps.jar libs folder , skmaps.zip in assets folder , .so file in jnilibs http://i.stack.imgur.com/p...

java - Star Rating in javascript value comming from backend -

i need star rating. in page value comming java/backend.(i need javascript or prototypejs solution.) eg: if value come 1 must show 1 star. if value come 2 must show 2 star , on...till 5 this whole thing happening in dynamic . using below code, not create id. javascript function display() { var x = "yr"; show_image(x ,2) ; } function show_image (id,number) { var x = number; var y = id; (var =0; i<x; i++){ var img = document.createelement("img"); img.src = "stars.png"; document.getelementbyid(y).appendchild(img); } } thanks help. check fiddle1 fiddle2 //just demo purpose function getrating() { var number = prompt("enter rating?"); if(number *= 1 > 0 && number <=5) { show_image('yr', number); } else { alert("enter valid rating, greater 0"); } } function show_image (id,number) { document.getelementbyid(id...

asp.net - How to download image/pdf file from database using Gridview's linkbutton? -

here problem. have user control download binary file (image, pdf etc.) using link button in gridview. <asp:gridview visible="true" id="gridview1" runat="server" headerstyle-backcolor="#3ac0f2" headerstyle-forecolor="white" rowstyle-backcolor="#a1dcf2" alternatingrowstyle-backcolor="white" alternatingrowstyle-forecolor="#000" autogeneratecolumns="false"> <columns> <asp:boundfield datafield="id" headertext="id"/> <asp:boundfield datafield="filename" headertext="file name"/> <asp:templatefield headertext="action" itemstyle-horizontalalign = "center"> <itemtemplate> <asp:linkbutton id="lnkdownload" runat="server" text="download" onclick="downloadfile" commandargument='<%# eval("id") %>'></asp:...

javascript - onclick event jquery+angular trigger click event 3 times -

i using jquery + onsen ui uses angular. can't de element event click using $(element).click(function(){}); then using way $(".list").on("click",".item-from-list",function(){ ok, works. problem is: list inside ons-carousel has 3 slides 3 different lists, same class want click. when click in list item, triggers click event 3 times. should do? thanks. have tried looking @ event.stoppropagation()? description : prevents event bubbling dom tree, preventing parent handlers being notified of event. https://api.jquery.com/event.stoppropagation/

sorting - UI-Grid Angularjs, get the sorted fields? -

i have found option ng-grid ==> getsortmodel(), not http://ui-grid.info/ . anyone has idea on how these values grid , nog using jquery or custom javascript values in column header? the way know is: iterate on columns, getting filters: $scope.gridoptions.columndefs.foreach(function (c) { var term = c.filter.term }

How to get the SHA1 fingerprint certificate in android studio -

Image
sha1 debug keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android sha1 release keytool -list -v -keystore "/home/compe18/keystore folder/keystore.jks" -alias keystore alias name -storepass password -keypass password note: storepass , keypass applicaiton keystore password, keystore = keystore path,alias = key alias name (name used @ time of creating keystore)..... go java bin directory via cmd: c:\program files\java\jdk1.7.0_71\bin> now type in below command in cmd: keytool -list -v -keystore c:\users\your_user_name\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android example: keytool -list -v -keystore c:\users\james\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android and sha1

javascript - Open bootstrap popup from angular controller -

in angular template have 2 anchors,first display text inside popoup , second 1 display images inside popup,like this: <a ng-click="openpopup('text')">text popup</a><a ng-click="openpopup('image')">image popup</a> i have 2 different popup's text , images.i want open text popup if user click "text popup". same image. here sample text , image popup code. <div class="modal fade" id="mytextmodal" tabindex="-1" role="dialog" aria-labelledby="mymodallabel"> <div class="modal-dialog" style="width:800px" role="document"> //content goes here </div> </div> <div class="modal fade" id="myimagemodal" tabindex="-1" role="dialog" aria-labelledby="mymodallabel"> <div class="modal-dialog...

sql server 2008 - How to ArrayJoin multiple strings into single SQL query? -

i have many (over few thousands) sql strings ie this: update tw__tow set tw_seau = '0' tw_symbol = '0110'; update tw__tow set tw_seau = '5' tw_symbol = '0125'; update tw__tow set tw_seau = '1' tw_symbol = '253'; instead of sending each statement sql database separately need join of them 1 single query using arrayjoin don't how this. my friend advised me arrayjoin strings, i'd glad solution. thank in advance martin try case update tw__tow set tw_seau = case when tw_symbol = '0110' 0 when tw_symbol ='0125' 5 when tw_symbol ='253' 1 end tw_symbol in ('0110','0110','253')

javascript - Can you update a controller that updates it's child scopes? -

lets have controller & directive so: app.controller('maincontroller', function($scope) { $scope.loading = true; $scope.updatetest = function(){ $scope.loading = false; } }).directive('loading', function() { return { restrict : 'e', transclude: true, // use parent scope link : function(scope, element, attrs) { scope.$watch('loading', function(ctx) { console.log('updating?', ctx) }); } } }); and html markup: <section ng-controller="maincontroller"> <loading ng-show="loading"> loading? </loading> <button ng-click="updatetest()">force update</button> </section> i want know how watch parent scope within directive, can't seem working! i'm using angular 1.3.16 i recommend use isolate scope , pass variables throw it: .directive('lo...

Adding total values from multiple table in MySQL with php -

i have 2 tables, need sum total value each tables price column. did research on stack solutions saw long , did not seems efficient enough code. mysql trying total value storecoins plus total value storememorabilia , total value supplies want sum of total of both table's column. first code not working... if($results = $this->dbconn->query("select sum(column) inventoryvalue ( select sum(column) value storecoins union select sum(column) value storememorabilia ) allposts")){ while($data = $results->fetch_assoc()){ $totalval = $data['inventoryvalue']; $totalval .= ".00"; i need know doing wrong in code above. on note (this php related): have following script once correct value returned decides put commas dollar values. recommendation more efficient way create function , resul...

android - what am I doing to reduce the apk size in eclipse? -

i have lot of picture in project , don't delete picture because need them, application size large (over 100mb) me doing reduce apk size in eclipse? if apk size 100 mb big. one thing please enable proguard in application. using eclipse then please uncomment proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt line from project.properties file. second can use apk expansion technique that. here 1 more tutorial that http://ankitthakkar90.blogspot.in/2013/01/apk-expansion-files-in-android-with.html

java - How to check if any button in JPanel is clicked by a user -

i've been making bus booking project , i've made booking page. the jpanel named panelseat , contains buttons (about 36 buttons) inside. i want check if button inside jpanel clicked, disable button , if user clicks util 3 buttons, stopped or user can't click anymore. this code i've written far: private void countticket() { try { int count = 3; component[] components = panelseat.getcomponents(); (int = 0; < components.length; i++) { if (components[i] instanceof jbutton) { if (((jbutton) components[i]).isselected()) { // wanna check if button clicked user if (joptionpane.showconfirmdialog(this, "seat confirmation") == joptionpane.yes_option) { // confirm message ((jbutton) components[i]).setenabled(false); // disable button count--; system.out.println("your ramaining seat : " + count); ...

javascript - How to apply web worker to rendering of a PDF using makepdf -

Image
i created pdf using javascript plug-in ( pdfmake ) , great. when try render ~8,000-row inventory/ledger printout, freeze on minute. this how declare docdefinition var docdefinition = { pageorientation: orientation, footer: function(currentpage, pagecount) { return {text: currentpage.tostring() + ' / ' + pagecount, fontsize:8, alignment:'center'}; }, content:[ printheader, { fontsize: 8, alignment: 'right', style: 'tableexample', table: { widths: width, headerrows: 1, body: arr }, layout: 'lighthorizontallines' }] } where var printheader = [ { text: 'company name',alignment:'center' }, { text: 'address 1',alignment:'center' }, { text: 'address 2',alignment:'center' }, { text: 'additional details,alignment:'center' }, { text: 'document title',alignment:'center' }]; and var arr = [[{"text":"","ali...

javascript - How to select an item by attribute without jquery? -

i need select element this: $('[data-key=' + objectid + ']') , need select without jquery, using document.queryselector or else on pure js. you can document.queryselectorall('[data-key=' + objectid + ']') , loop through results var allkeys = document.queryselectorall('[data-key=' + objectid + ']'); [].foreach.call(allkeys, function(elem){ console.log(elem); //do stuff each element });

java - How to return a WebElement in this scenario -

i wanted utilize page objects , following looking at: i have created package 'pageobjects' , created class 'homepage' element below: public class homepage { private static webelement element=null; public static webelement txt_username(webdriver driver) { element=driver.findelement(by.name("username")); return element; } } here in test case, when use homepage.txt_username(driver).sendkeys("uday") lets enter username "uday". works perfect. but need implement above in method entervalue("homepage.txt_username","uday") public void entervalue(string strobjid,string strvalue) { //how should use above parameter here?? below should work strobjid(driver).sendkeys(strvalue); } based on comment think should not write generic cucumber step definition handle types of input fields. makes hard read , understand feature files. writing html id or css selector html not fulfil ...

java - Jackson JsonMappingException START_ARRAY error - when json having nested same node -

i trying deserialize below json. json contains same node nested 2 times. can see same image node repeated twice. { "error": null, "feed": [ { "id": "4", "message": "hello world!", "image": { "url": "http://localhost:8888/hello/media/55ebe591ee42d.jpg", "width": "970", "height": "485" } "created_at": "2015-09-06 12:34:50", "updated_at": "0000-00-00 00:00:00", "profile": { "id": "10", "name": "mr x", "image": { "url": "http://localhost:8888/instagram-rest/uploads/profile/55ffa473a1853.jpg", "width...

c - unresolved external symbol _LoadLibraryExA when compiling Lua -

i'm trying compile lua 5.3.1 msvc14. error: lnk2019 unresolved external symbol _loadlibraryexa referenced in function _lsys_load the function in question being: static void *lsys_load (lua_state *l, const char *path, int seeglb) { hmodule lib = loadlibraryexa(path, null, lua_lle_flags); (void)(seeglb); /* not used: symbols 'global' default */ if (lib == null) pusherror(l); return lib; } i'm not quite sure what's causing error i've compiled mingw before. fix it? make sure linking kernel32.lib program. loadlibraryexa defined in kernel32.lib . check project or build settings , make sure kernel32.lib should present.

c++ - Chi-square test from gsl while integrating gives 0 -

i'm trying calculate multiple integrant using gsl library seems endless because chisq value equals 0. here integrating method: double integr::fgg(double x_val, double k_val){ double result, error; double bound_up[] = {2*m_pi, 2*m_pi, k_max, k_max}; double bound_down[] = {0,0,k_min, k_min}; const gsl_rng_type *t; gsl_rng *r; struct f_params params = {x_val, k_val}; gsl_monte_function fgg = {&integr::integrant_prot, 4, &params}; size_t calls = 5000; gsl_rng_env_setup(); t = gsl_rng_default; r = gsl_rng_alloc(t); //warm gsl_monte_vegas_state *s = gsl_monte_vegas_alloc(4); gsl_monte_vegas_integrate(&fgg, bound_down, bound_up, 4, 1000, r, s, &result, &error); //integration do{ gsl_monte_vegas_integrate(&fgg, bound_down, bound_up, 4, calls/5, r, s, &result, &error); }while(fabs(s->chisq - 1.0)>0.5); gsl_monte_vegas_free(s); return result; } can tell why v...

AEM CQ5.6 Add config page in other page -

i have homepage(template) , homepage(page) create config(template) , config(page) i want when homepage create config page inserted homepage through identifier(id) config . (later config page used config other components, start body must show message 'config page'. inherit foundation/components/page .) how implement functionality? well can using <cq:include path="configpage" resourcetype="myapp/components/configpage" /> but don't understand why id needed. when can directly add page. using cq:include add above tag inside homepage.jsp include config.jsp inside it

android - Can I open my email thread in Gmail App If I have id or threadId? -

i using gmail apis in android app , able id , threadid.so there way can populate gmail using these ids. once have messageid representing message want, can use users.messages: get -operation email. either request manually get https://www.googleapis.com/gmail/v1/users/me/messages/<message_id> or of library: message message = service.users().messages().get('me', messageid).execute(); if want mails in thread, it easy also . look @ code examples , explore api in links provided.

asp.net - RadContextMenu inside RadGrid does not show up when placing RadGrid inside Panel/div with visible false -

below code using show radcontextmenu when right click on radgrid rows: html: <telerik:radcodeblock runat="server" id="radcodeblock3"> <script type="text/javascript" src="~/javascript/clienteventscript.js"></script> <script type="text/javascript"> ; (function ($, undefined) { var menu; var grid; var demo = window.demo = {}; window.onload = function () { grid = $telerik.findcontrol(document, "rginvoice"); menu = $telerik.findcontrol(document, "radmenu1"); } demo.showcolumnheadermenu = function (event, columnname) { var columns = grid.get_mastertableview().get_columns(); (var = 0; < columns.length; i++) { ...

ios - Application's run loop slows down when receive/initiate a cellular call -

i have timer fires method in every 60ms of interval when application in foreground , fires in same interval if in background. when initiate/receive cellular call, timer fires method in every 120ms of interval.i thought problem timer, tried following approaches. approaches have tried: nstimer in background thread. nstimer in main thread. dispatch_source_timer while loop 60ms of sleep. (no timer here) so if use simple while loop, still there delay in firing method. maintain interval changed timer interval 30ms(for approaches) when receive/initiate call result same(120 ms). i glad if can suggest approach. from apple doc : if timer’s firing time occurs during long callout or while run loop in mode not monitoring timer, timer not fire until next time run loop checks timer. therefore, actual time @ timer fires potentially can significant period of time after scheduled firing time what should remember timer when set time t , have assurance elapsed time be...

c# - Force reload of entity in Entity Framework after insert/add -

i have project entity, defined as: public class project { [key] public guid projectid { get; set; } //... [required, foreignkey("user")] public guid userid { get; set; } public virtual user user { get; set; } } in controller, have: // insert public ihttpactionresult post([frombody] projectdto projectdto) { return save(projectdto); } // update public ihttpactionresult post(guid id, [frombody] projectdto projectdto) { return save(projectdto); } private ihttpactionresult save(projectdto projectdto) { if (!modelstate.isvalid) return badrequest(modelstate); var isnew = projectdto.projectid == guid.empty; project project; if (isnew) { project = new project(); var user = usermanager.findbyname(user.identity.name); projectdto.userid = new guid(user.userid.tostring()); dbcontext.entry(project).state = entitystate.added; } else { project= dbcontext.project...

php - Multiple Taxonomy Dynamic Search -

i've on wordpress site search include multiple (three) taxonomy. searching working i'm looking issue hide empty categories taxonomy 1: brand taxonomy 2: model taxonomy 3: version i'm looking possible after choose "brand" in model dropdown list category posts include choosen "brand". and similat. in "version" dropdown list categories witch include "brand" , "model" . brand vw audi model golf a4 version 1.9tdi 2.0 tsfi now dropdowns list including full list of taxonomy, want filter similar/post same taxonomy. like first dropdown lilt - choose audi search posts taxonomy "audi" , return categories taxonomy "model" second dropdown sedond dropdown list - choose a3 search posts taxonomy "a3" , return categories taxonomy "model" third dropdown run search <?php global $theme_search_fields; if( !empty($theme_search_fields) ): ...

xml - Extract substrings with XSLT -

i doing xml-> tsv converion using xslt 2.0. data my xml file looks this: <?xml version="1.0" encoding="utf-8"?> <!doctype tei.2 system "lemmatizzazione.dtd"> <?xml-stylesheet type="text/xsl" href="dh.xsl"?> <root> <l> <lm lemma="me" catg="ss">i</lm> <lm lemma="would" catg="vv">would</lm> <lm lemma="like" catg="vv">like</lm> <lm lemma="to" catg="vv">to</lm> <lm lemma="to have" catg="vv">have,</lm> </l> <l> <lm lemma="this" catg="ad">this</lm> <lm lemma="bad" catg="e">in to</lm> <lm lemma="a" catg="e">a</lm> <lm lemma="ts" catg="ad">tsv</lm> <lm lemma="for...

ios - How to Enable user registration - eJabberd for mac? -

i working xmpp enable chat. as refer link: link 1 so sucesfully able register user console. want register username application. i found links, find solution that" enable user registration in control panel". solution of new user register here trial code nsmutablearray *elements = [nsmutablearray array]; [elements addobject:[nsxmlelement elementwithname:@"username" stringvalue:@"venkat"]]; [elements addobject:[nsxmlelement elementwithname:@"password" stringvalue:@"dfds"]]; [elements addobject:[nsxmlelement elementwithname:@"name" stringvalue:@"eref defg"]]; [elements addobject:[nsxmlelement elementwithname:@"accounttype" stringvalue:@"3"]]; [elements addobject:[nsxmlelement elementwithname:@"devicetoken" stringvalue:@"adfg3455bhjdfsdfhhaqjdsjd635n"]]; [elements addobject:[nsxmlelement elementwithname:@"email" stringvalue:@"abc@bbc.com"]]; [[[...

embedded - Atmel 32 bit gcc (avr32-gcc) inline assembler documentations? -

i need implement small fragment of code in assembly 32 bit avr (memory test testing ram under running c program, no other way solve it), can't find documentation on avr-32 specifics of inline assembler, , trial , error neither led me success. first thing: know docs describing avr-32 specifics of inline asm? (particularly input / output register specifications) i managed point able write inline fragment automatic input / output register allocation, strange behavior prevents me complete it. take following fragment of code: int ret; int ad0; int ad1; /* ... */ __asm__ volatile( "mov r2, %0 \n\t" "mov r3, %1 \n\t" "mov %2, 0 \n\t" : "=r"(ret) : "r"(ad0), "r"(ad1) : "r2", "r3" ); compiled optimizations off using avr32-gcc produces following assembly output ( -s ): #app # 95 "svramt.c" 1 mov r2, r8 mov r3, r8 mov r9, 0 # 0 "" ...

jquery - Javascript - load spinner infront of the particular button -

i have button , spinner div <button type = "button" value= "make current" class = "current_button"> </button> <div class="place-left margin_l20 margin_t5 loading_spin_current" style="display: none"> <small>updating... <i class="fa fa-refresh fa-spin"></i></small> </div> i using ruby on rails loop , show multiple buttons , want show spinner infront of button being clicked user. have done $('.current_button').on('click', function() { $('.loading_spin_current').show(); }); but shows spinner in front of button . please tell me how can , thankx in advance! $('.loading_spin_current') selects elements class loading_spin_current , want select element after button use next() method $('.current_button').on('click', function() { $(this).next('.loading_spin_current').show(); }); next() : f...

svn - Team City build fails on dependency -

we have vs2013 hooked svn our repository. have team city hooked svn. trying create build in team city, build here keeps failing. vs2013 project has reference project , referenced via nuget. on our local machine within vs2013 solution builds no errors. when check source in svn, team city picks has changed , fails stating cannot find reference file other project. other project's source stored in same svn repository , thought might have set artefact project. seem having issues building artefact command correctly. can point me example of building artefact command line, suspect needs build first able make reference.

excel - Extract set of numbers from a string, subtract and then add them with certain exclusions -

i'm not great excel formulas, have excel column 'logical diskspace', each cell of has similar value below. | disk c: (ntfs)20.9731 gb (3.7077 gb free space) | disk e: (ntfs)107.3767 gb (22.7083 gb free space) | disk f: (ntfs)107.3767 gb (38.0516 gb free space) | disk g: (ntfs)53.6781 gb (21.7887 gb free space) | disk p: (ntfs)4.7252 gb (0.5997 gb free space) what need find total used capacity excluding c: drive. taking above example, should calculate follows: exclude c: + (107.3767-22.7083)+(107.3767-38.0516)+(53.6781-21.7887)+(4.7252-0.5997) note number of drives may vary delimited '|' sign. could me programmatic approach achieve this? vba not necessary tedious more 1 time without record macro activated. series of find , replace: find, in turn: free space) |disk free space) : (ntfs) gb and replace each nothing (the first , last above start space). find ( replace - find, in turn f , g , p , replace each + find |...

canvas - Drawing a responsive diagonal line -

this want: page split in 2 vertical parts: red 1 contents (200px in fiddle) + right part diagonal goes top-left (200, 0) bottom-right of browser window. i'd line responsive page changing: every time page resized, line'd neat diagonal between these points. (200, 0 - bottom-right of browser window) i've been trying manage canvas function, may wrong way. can me? [http://jsfiddle.net/ropvw3jm/3/][1] this trick, check comments info: // canvas , context draw in var canvas = document.getelementbyid('canvas'); var context = canvas.getcontext('2d'); function diagonallinetobottomright(){ // reset canvas size of window - clears canvas canvas.width = window.innerwidth; canvas.height = window.innerheight; // set line color context.strokestyle = 'red'; // set point line starts context.moveto(200, 0); // draw line bottom corner context.lineto(window.innerwidth, window.innerheight); // draw pixels canvas ...

php - Products from a particular category does not affect the free shipping -

i need filter products particular product category , these products (amount) not affect free shipping min amount. so thought increase min amount special product amount. example: free shipping 40 euro. customer buys products 35 euro , 6 euro product spacial category. total = 41 euro normaly gets free shipping. not special product in card. is posible? add_filter( 'woocommerce_package_rates', 'cardno_freeshipping', 10, 2 ); function cardno_freeshipping($rates, $package){ global $woocommerce; $items = $woocommerce->cart->get_cart(); // cart items foreach($items $item => $values) { $terms = get_the_terms( $values['product_id'], 'product_cat' ); foreach ($terms $term) { if($term->slug == "the-special-category"){ //if special category if($values['variation_id']) $price = get_post_meta($values['variation_id'] , '_price', true); //if variation exi...

C# - Passing an Object Parameter into a list.Find function -

i writing find function list requires me pass in object parameter. reason find function uses variables in focused object (cfo) find next object (the x , y co-ordinates). the find function looks first object can find within box region, using x,y of focused object create box region. problem having can not figure out how pass object in parameter find function. does have solution? can't seem find on stackoverflow or google. your question has quite deal of ambiguity (what suppose be) use of list<t>.find method , custom find method searches within list. i think code may you: public customobject find(list<customobject> list, customobject cfo) { return list.find(item => iswithinboxof(cfo, item)); } private bool iswithinboxof(customobject cfo, customobject item) { // return whether item within box of cfo. return item.x <= cfo.x + 1 && item.y <= cfo.y + 1; }

javascript - WebSocket connection on wss failed -

i have purchased certificate , installed in node.js website.but https @ browser shows green , ok.now, trying establish socket connection using wss, failed. error @ javascript client side this. websocket connection 'wss://securedsitedotcom:3003/call' failed: websocket opening handshake canceled please help! code @ client side (javascript) var ws = new websocket('wss://securedsitedotcom:3003/call'); code @ server side (node.js) https = require('https'); var server = https.createserver({ key: fs.readfilesync(config.certkeypath), cert: fs.readfilesync(config.certcrt), requestcert: true, rejectunauthorized: false },app); server.listen(port); var wss = new ws.server({ server: server, path: '/call' }); error @ browser console : websocket connection 'wss://securedsitedotcom:3003/call' failed: websocket opening handshake canceled recent work chrome has revealed if page serve...

json ld - Where to find my HTML pages in Virtualmin? -

i add schema.org’s localbussines json-ld website, can´t find <head> on root file on server. i’m using virtualmin. i did wordpress websites, i’m struggling one. what missing here? knows? html, , apps, in default virtualmin configuration, located in /home/domainname/public_html this pretty standard across many types of shared hosting , not unique virtualmin. can access files via ssh, ftp (if enabled web server owner), file manager in virtualmin, upload , download module in virtualmin, or edit web pages module in virtualmin (which simple wysiwyg html editor; note edit web pages exists in virtualmin professional @ time). we have new file manager in development includes nice html5 text editor syntax highlighting , such. should out in next major version of virtualmin in few days. included in both virtualmin gpl , virtualmin professional. disclaimer: work on virtualmin.

makefile - C++ File Requires Library Support -

i'm trying compile simple program terminal utilizes condition_variable class. upon building, following error: this file requires compiler , library support iso c++ 2011 standard. support experimental, , must enabled -std=c++11 or -std=gnu++11 compiler options. in researching error here , added necessary flag make file, i'm still getting same error. here makefile: cxx= g++ $(ccflags) main= main.o dataclass= dataclass.o objs = $(main) $(dataclass) libs= -pthread ccflags= -g -std=c++11 all: main main: $(main) $(dataclass) $(cxx) -o main $(main) $(dataclass) $(libs) dataclass: $(dataclass) $(cxx) -o dataclass $(dataclass) $(libs) clean: rm -f $(objs) $(objs:.o=.d) realclean: rm -f $(objs) $(objs:.o=.d) main %.d: %.cc $(shell) -ec '$(cc) -m $(cppflags) $< \ | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ [ -s $@ ] || rm -f $@' include $(objs:.o...

My Android photo app will not display images from the camera because the images are too large -

ok, want app enable users take photo , photo viewable them later on, within app. the problem photos taken camera large displayed in app. this kind of error written logcat when attempt made display new photo in app: bitmap large uploaded texture (5312x2988, max=4096x4096) so need scale/resize image before stored mynewapp folder on device. see code below, try load mynewfile.jpg after has been stored on device, if edit file source reference image file 500x500, image will displayed. will not display mynewfile.jpg large. can tell me how resize image before save on device? many thanks here code: obviously have added appropriate permission androidmanifest.xml file <uses-permission android:name="android.permission.read_external_storage" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-feature android:name="android.hardware.camera2" /> the following code in takephotodocactivity....