Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":12029,"date":"2015-04-27T12:37:00","date_gmt":"2015-04-27T17:37:00","guid":{"rendered":"http:\/\/kenscourses.com\/tc101winter2015\/?guid=047f39bfd3a37d7efaa66534eb448d5a"},"modified":"2015-04-27T12:37:44","modified_gmt":"2015-04-27T17:37:44","slug":"wsq16-cars-cars","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/wsq16-cars-cars\/","title":{"rendered":"#WSQ16 cars cars."},"content":{"rendered":"

I did this WSQ with help of this blogpost<\/a>.<\/p>\n

with this WSQ I learned how to open files in python. and do different things with them.<\/p>\n

open()<\/span><\/tt><\/a> <\/span>returns a file object, and is most commonly used with two arguments:<\/span> <\/span>open(filename,<\/span> mode)<\/span><\/tt>.<\/span><\/span><\/p>\n

\n
>>><\/span><\/span><\/p>\n
>>> <\/span>f<\/span> =<\/span> open<\/span>(<\/span>'workfile'<\/span>,<\/span> 'w'<\/span>)<\/span>
>>> <\/span>print<\/span> f<\/span>
<open file 'workfile', mode 'w' at 80a0960><\/span> <\/span><\/pre>\n<\/div>\n<\/div>\n

The first argument is a string containing the filename. The second argument is another string containing a few characters describing the way in which the file will be used.<\/span> <\/span>mode<\/em> <\/span>can be<\/span> <\/span>'r'<\/span><\/tt> <\/span>when the file will only be read,<\/span> <\/span>'w'<\/span><\/tt> <\/span>for only writing (an existing file with the same name will be erased), and<\/span> <\/span>'a'<\/span><\/tt>opens the file for appending; any data written to the file is automatically added to the end.<\/span> <\/span>'r+'<\/span><\/tt> <\/span>opens the file for both reading and writing. The<\/span> <\/span>mode<\/em>argument is optional;<\/span> <\/span>'r'<\/span><\/tt> <\/span>will be assumed if it\u2019s omitted.” – Python.org<\/a><\/span> <\/a><\/span><\/p>\n

I reversed engeneered Efrain’s code to see what he tried to do in order to learn.<\/p>\n

LINK TO CODE.<\/a><\/p>\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

I did this WSQ with help of this blogpost<\/a>.<\/p>\n

with this WSQ I learned how to open files in python. and do different things with them.<\/p>\n

open()<\/span><\/tt><\/a> <\/span>returns a file object, and is most commonly used with two arguments:<\/span> <\/span>open(filename,<\/span> mode)<\/span><\/tt>.<\/span><\/span><\/p>\n

\n
>>><\/span><\/span><\/p>\n
>>> <\/span>f<\/span> =<\/span> open<\/span>(<\/span>'workfile'<\/span>,<\/span> 'w'<\/span>)<\/span>
>>> <\/span>print<\/span> f<\/span>
<open file 'workfile', mode 'w' at 80a0960><\/span> <\/span><\/pre>\n<\/div>\n<\/div>\n

The first argument is a string containing the filename. The second argument is another string containing a few characters describing the way in which the file will be used.<\/span> <\/span>mode<\/em> <\/span>can be<\/span> <\/span>'r'<\/span><\/tt> <\/span>when the file will only be read,<\/span> <\/span>'w'<\/span><\/tt> <\/span>for only writing (an existing file with the same name will be erased), and<\/span> <\/span>'a'<\/span><\/tt>opens the file for appending; any data written to the file is automatically added to the end.<\/span> <\/span>'r+'<\/span><\/tt> <\/span>opens the file for both reading and writing. The<\/span> <\/span>mode<\/em>argument is optional;<\/span> <\/span>'r'<\/span><\/tt> <\/span>will be assumed if it’s omitted.” – Python.org<\/a><\/span> <\/a><\/span><\/p>\n

I reversed engeneered Efrain’s code to see what he tried to do in order to learn.<\/p>\n

LINK TO CODE.<\/a><\/p>\n

Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":49,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,25],"tags":[45,437,61,77],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12029"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=12029"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12029\/revisions"}],"predecessor-version":[{"id":12030,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12029\/revisions\/12030"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=12029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=12029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=12029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}