#totalrowing
Explore tagged Tumblr posts
rowingpost · 5 years ago
Photo
Tumblr media
È stato difficile metabolizzare la notizia dello slittamento dell’olimpiade di Tokyo ma ricordiamoci che l’Olimpiade è sempre un gioco, anche se noi lo prendiamo molto seriamente. La vita però è un’altra cosa, è un bene che Tokyo 2020 sia stata posticipata. #tokyo2020 #olympicgames #tokyo2021 #roadtotokyo2020 #rowtotokyo #rowing #worldrowing #totalrowing #rowingrelated #olympicgames #rowingpost Via @peppe.vicino https://www.instagram.com/p/B-glW55la9-/?igshid=1bdqk4y8jlt99
0 notes
eliehirschfeldrealestate · 5 years ago
Link
0 notes
ehirschfeld · 5 years ago
Link
0 notes
Link
0 notes
eliehirhfeldandthearts · 5 years ago
Link
0 notes
Link
0 notes
datamattsson · 6 years ago
Text
How about some HTTPie with your JSON?
Some days I interact with REST APIs more than others. Ansible, python and curl, but what is most helpful is adhoc queries with HTTPie and using the Node.js json command.
NimbleOS has a public REST API for customers and partners to interact with. It has a token based authentication scheme where the token expire after a while.
I have arrays all over the place and many times in need of simply switch from one array to another to re-run the same statement or cross-reference a certain behavior between arrays and/or manipulate storage resources.
This blog post demonstrates how this can be accomplished in a simply manner. If you want to play along, install http and json as instructed.
First I have a "oneliner" shell script that needs to be sourced:
$ wget -q https://gist.githubusercontent.com/drajen/8be92279bdcb83a51d5c89bb3c0c90d0/raw/34d75b0a9dcf312716176bb5002ff80c8093ffd4/array_token.sh $ source array_token.sh Usage: source array_token.sh <array hostname or IP address> $ source array_token.sh sjc-array869.lab.nimblestorage.com Username: admin Password: http $API_URL/arrays $HEADER
The script spits out a shortened HTTPie command with the variables populated. It can simply be copied and pasted to interact with the array.
$ http $API_URL/arrays $HEADER HTTP/1.1 200 OK Connection: Keep-Alive Content-Type: application/json;charset=utf-8 Date: Fri, 18 Jan 2019 02:38:56 GMT Transfer-Encoding: chunked { "data": [ { "id": "0908e61269accae6a9000000000000000000000001", "name": "sjc-array869" } ], "endRow": 1, "startRow": 0, "totalRows": 1 }
Pretty neat. Now with the power of the Node.js JSON command, it’s quite trivial to get a single value from an object:
$ http $API_URL/arrays/0908e61269accae6a9000000000000000000000001 $HEADER | json data.version 5.0.5.0-583273-opt
A more elaborate example on how to find all offline volumes:
$ http $API_URL/volumes/detail $HEADER | json data | json -a name -c 'this.online == false' general-62959f81-de15-11e8-b8f9-525400910875.docker general-5b9bfbfb-dd22-11e8-b8f9-525400910875.docker general-43678a38-f988-11e8-b8f9-525400910875.docker general-9f9c0f8b-f989-11e8-b8f9-525400910875.docker general-69b5f072-f988-11e8-b8f9-525400910875.docker general-919c61ad-ddf7-11e8-b8f9-525400910875.docker general-cf283742-f987-11e8-b8f9-525400910875.docker general-04cd89a2-de15-11e8-b8f9-525400910875.docker general-d91fe30e-f97c-11e8-b8f9-525400910875.docker
HTTPie is also capable of using other HTTP verbs, such as PUT, POST, DELETE etc. In a completely overloaded example, I’ll fetch a volume ID, parse with json and xargs into a PUT operation that limits the IOPS of the volume.
$ http "$API_URL/volumes/detail?name=myvol1&fields=id" $HEADER \ | json data.0.id \ | xargs -n1 -I% http --verify=no --ignore-stdin PUT $API_URL/volumes/% $HEADER data:='{"limit_iops": 25000}' \ | json data.limit_iops 25000
Note: See the NimbleOS REST API Reference for valid fields that is PUT'able.
This all might seem a bit tedious but works really well for adhoc peeking and poking. I’d love to hear about other tool combos that achieve similar things via an interactive shell.
0 notes
andrescarazo · 7 years ago
Video
#Repost @totalrowing ・・・ What a sky!!🚣👌🌄 @uclamensrowing #River #rowing #jlracing #boathouse #rowinglife
0 notes
programmingbiters-blog · 7 years ago
Photo
Tumblr media
New Post has been published on https://programmingbiters.com/convert-multidimensional-array-to-xml-and-xml-to-array-in-php/
Convert Multidimensional Array to XML and XML to Array in PHP
In this tutorial, we will show you how to convert PHP associative or multidimensional array to XML and stored in the XML file. Also, the example code shows how to parse the XML file and convert XML data to array in PHP.
Convert PHP Multidimensional Array to XML File
createXML() Function: For better usability, all the Array to XML conversion code will be grouped together in a PHP function. The createXML()function converts PHP multidimensional array to XML file. The data array needs to be passed as a parameter in createXML() function. The createXML() function create an XML document using DOMDocument class and insert the PHP array content in this XML document. At the end, the XML document is saved as an XML file in the specified file path.
function createXML($data)      $title = $data['title'];     $rowCount = count($data['users']);          //create the xml document     $xmlDoc = new DOMDocument();          $root = $xmlDoc->appendChild($xmlDoc->createElement("user_info"));     $root->appendChild($xmlDoc->createElement("title",$title));     $root->appendChild($xmlDoc->createElement("totalRows",$rowCount));     $tabUsers = $root->appendChild($xmlDoc->createElement('rows'));          foreach($data['users'] as $user)         if(!empty($user))             $tabUser = $tabUsers->appendChild($xmlDoc->createElement('user'));             foreach($user as $key=>$val)                 $tabUser->appendChild($xmlDoc->createElement($key, $val));                                     header("Content-Type: text/plain");          //make the output pretty     $xmlDoc->formatOutput = true;          //save xml file     $file_name = str_replace(' ', '_',$title).'_'.time().'.xml';     $xmlDoc->save("files/" . $file_name);          //return xml file name     return $file_name;
PHP Multidimensional Array The following multidimensional array will save as XML file using PHP
$data = array(     'title' => 'Users Information',     'users' => array(         array('name' => 'John Doe', 'email' => '[email protected]'),         array('name' => 'Merry Moe', 'email' => '[email protected]'),         array('name' => 'Hellary Riss', 'email' => '[email protected]')     ) );
PHP Array to XML File Conversion You only need to use createXML() function and pass data array in it to convert array to XML in PHP.
echo createXML($data);
The example code will create the following XML document.
<?xml version="1.0"?> <user_info> <title>Users Information</title> <totalRows>3</totalRows> <rows> <user> <name>John Doe</name> <email>[email protected]</email> </user> <user> <name>Merry Moe</name> <email>[email protected]</email> </user> <user> <name>Hellary Riss</name> <email>[email protected]</email> </user> </rows> </user_info>
Convert XML to PHP Associative Array
Now we will read the XML data from file and convert the XML to array using PHP.
Read entire file into string using file_get_contents() function in PHP.
Convert XML string into an object using simplexml_load_string() function in PHP.
Convert object into JSON using json_encode() function.
Convert JSON data into associative array using json_decode() function.
//xml file path $path = "files/path-to-document.xml"; //read entire file into string $xmlfile = file_get_contents($path); //convert xml string into an object $xml = simplexml_load_string($xmlfile); //convert into json $json  = json_encode($xml); //convert into associative array $xmlArr = json_decode($json, true); print_r($xmlArr);
The example code will convert the XML file to the following associative array.
Array ( [title] => Users Information [totalRows] => 3 [rows] => Array ( [user] => Array ( [0] => Array ( [name] => John Doe [email] => [email protected] ) [1] => Array ( [name] => Merry Moe [email] => [email protected] ) [2] => Array ( [name] => Hellary Riss [email] => [email protected] ) ) ) )
0 notes
realjessajansen · 7 years ago
Photo
Tumblr media
Who needs a membership to a place with an attitude (F45 / KnuckleUp for examples) -- I took skills I did learn at some FAVS (CycleBar / TotalRow) AND I've got a non-snore workout **that works for ME** (at Buckhead Atlanta)
0 notes
rowingpost · 6 years ago
Photo
Tumblr media
#lucerneregatta 13.-15. july 2018 // #wrclucerne #luzern #rotsee #worldcup #worldrowing #swissrowing #rowing #rudern #aviron #canottaggio #rowingrelated #rowingcelebration #just_rowing #rowingispassion #totalrowing #sportfotografie // © Bernhard Marbach Via @fotomarbach.ch__schweiz #rowingpost #rowingchannel
0 notes
Link
0 notes
ehirschfeld · 5 years ago
Link
0 notes
eliehirschfeldrealestate · 5 years ago
Link
0 notes
Link
0 notes
ehirschfeld · 5 years ago
Link
0 notes