Posts

javascript - for loop to print out multiple arrays with similar names -

i've got multiple arrays, so: bugnames0 = ["wasp", "roach", "stinkbug", "mantis"]; bugnames1 = ["hornet", "beetle", "ant", "termite"]; bugnames2 = ["gnat", "fly", "grub", "chigger"]; bugnames3 = ["flea", "bed-bug","maggots", "cricket"]; next have loop: function bugloop() { (var i=0; < 4 ; i++){ console.log(bugnames0[i]); } } that print first array console, or each individually if manually update number in array's name. but there way more this? following code bit doesn't work, hope explains trying do: for (var i=0, j=0; < 4; i++) { console.log(bugnames(i)[j]); } } here represents bugname#, update through 0 - 3 loop runs, printing out first option of each array represented j. goal outcome printed console be: "wasp", "hornet", "gnat", "flea...

MatLab - Importing CSV text file that contains commas not meant to separate -

uh! have received delivery of large text files comma separated value format. need build struct each file data analysis. piece of cake! have done before. wrote code build structs. eventually, discovered there can case data has comma the real data, not meant separate data. caught before leaving work. working home now, hoping derive solution or have recommended solution posting here. (below code , data file example). appreciate help, comments, solutions, and/or feedback. thanks data file example(line 5 problem begins, 'bubba1, ttr1' should not separated): chan, date, time, signalname, mode#, lat, long, 01, 12/12/12, 01:01:20.234, off, 0, 39.185, -106.85, 01, 12/12/12, 01:01:20.345, off, 0, 39.185, -106.85, 01, 12/12/12, 01:01:20.445, off, 0, 39.185, -106.85, 01, 12/12/12, 01:01:20.545, bubba1, ttr1, 1, 39.185, -106.85, 01, 12/12/12, 01:01:20.645, bubba1, ttr1, 1, 39.185, -106.85, 01, 12/12/12, 01:01:20.745, bubba1, ttr1, 1, 39.185, -106.85, 01, 12/12/12, 01...

How do I access a microSD card connected to my RFduino, via Bluetooth on my Android App? -

i creating device connect mobile app via ble. device using rfduino microcontroller microsd shield. mobile app can connect rfduino via ble. can tx, rssi, , send value phone app rfduino. having trouble accessing microsd card root path through mobile app. able display file explorer. have basics file explorer, displaying dot on screen. this have far. know need point path, i'm not sure how. import android.app.alertdialog; import android.app.listactivity; import android.content.dialoginterface; import android.os.bundle; import android.view.view; import android.widget.arrayadapter; import android.widget.listview; import android.widget.textview; import java.io.file; import java.util.arraylist; import java.util.arrays; import java.util.list; public class androidexplorer extends listactivity { private list<string> item = null; private list<string> path = null; private string root="/"; private textview mypath; /** called when activity fi...

c - Dynamic Character Array - Stack -

general background i had need character array contained dynamic number of character arrays based on number of files located in specific folder. able accomplish initializing char (*fullpathnames)[max_filename_and_pathname_length] , using fullpathnames = malloc( sizeof(*fullpathnames) * numoffiles * max_filename_and_pathname_length ) ) after know how many files function discovered( not provided). process works flawlessly. technical limitations i can use ansi c; using labwindows cvi 8.1, compile code. cannot use other compiler. general supporting code char (*fullpathnames)[max_filename_and_pathname_length]; size_t size; numoffiles = numberofuserfiles(“*.txt”, “c:\\programdata” ); fullpathnames = malloc( sizeof(*fullpathnames) * numoffiles * max_filename_and_pathname_length ) ); size = sizeof(*fullpathnames) * numoffiles; memset(fullpathnames,0,size); quick explaination the above code doing want. can fill array enough following code: strcpy(fullpathnames[0],”test...

wordpress - Removing script and styles version query string with .htaccess -

how change this: example.com/css/style.css?ver=3.5.3 examle.com/css/settings.css?ver=4.6.9 in this: example.com/css/style.css example.com/css/settings.css i have code on .htaccess file: <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.+)\.(.+)\.(js|css)$ $1.$3 [l] </ifmodule> this code not functioning. suggestions appreciated. you can try in .htaccess in document root if want way. let me know how works you. <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{query_string} ^ver=(.+) rewriterule ^css/(style|settings)(\.css)$ /css/$1$2? [l] </ifmodule>

css3 - W3C CSS validation error using calc() and vendor extensions -

after finishing new html5/css3 template proceeded w3c validation. the result html: "this document checked html5!" the result css: "sorry! found following errors (1)" and problem around height: calc(100vh - 80px); it told me: 36 property -ms-transform unknown vendor extension 37 property -webkit-transform unknown vendor extension 112 property -webkit-transition unknown vendor extension 113 property -moz-transition unknown vendor extension 249 property -webkit-background-size unknown vendor extension 292 property -webkit-background-size unknown vendor extension so in case shall 100% css3 valid? don't worry vendor extensions. don't recall why flagged way not errors on part. don't recall reasoning it. iirc, there checkbox ignore these warnings. the explanation may lie in this article states: vendor-specific extensions (mostly) adhere css 2.1 grammar, since not defined in css 2.1 specification, in...

.net - pdb file ( visual studio ) -

i want send debug executable client replicate crash loading pdb file. purpose, created debug build. should send both executable , pdb client . please advise if client going re-compile/compile @ end , run code no, that's not needed. since generated debug build; once @ client side run application in debug mode; same pdb file generated. else, yes; have send pdb file along exe . but pdb file have .net application related debug info. so, if crash due other environmental issue has captured separately.