-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
382 lines (226 loc) · 14.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE HTML>
<html lang="en">
<head><meta name="generator" content="Hexo 3.9.0">
<meta charset="utf-8">
<title>Complexity of David | Data Science, Machine Learning, Artificial Intelligence, Visualization, and Complex Systems.</title>
<link rel="preconnect" href="https://www.google-analytics.com">
<link rel="preconnect" href="https://adservice.google.pt">
<link rel="preconnect" href="https://googleads.g.doubleclick.net">
<meta name="author" content="David Sousa-Rodrigues">
<meta name="description" content="Data Science, Machine Learning, Artificial Intelligence, Visualization, and Complex Systems.">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta property="og:site_name" content="Complexity of David">
<meta property="og:image" content="/favicon.ico">
<link href="/favicon.ico" rel="icon">
<link rel="alternate" href="/atom.xml" title="Complexity of David" type="application/atom+xml">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div class="container">
<header>
<div class="site-branding">
<h1 class="site-title">
<a href="/">Complexity of David</a>
</h1>
<p class="site-description">Data Science, Machine Learning, Artificial Intelligence, Visualization, and Complex Systems.</p>
</div>
</header>
<main class="site-main posts-loop">
<article>
<h2 class="article-title"><a href="/article/uncategorized/2019/Wasm-to-stay.html"><span>Wasm to Stay</span></a></h2>
<div class="article-content">
<div class="entry">
<p>It is fast && it is creepy because it will be even more difficult to know if certain websites are doing something wrong (IF YOU DON’T KNOW, TH3Y ARE), and is it THIS THING the way of the future. Why? … Because. Wasm, the <strong>WebAssembly language</strong> is here to stay. That does not mean that we have to like it. But we’ll live with it if we want the browser window to be something more than a browser window. The <a href="https://www.w3.org/blog/news/archives/8123" target="_blank" rel="noopener">W3C just published the official WASM recommendations</a> and that means basically NOTHING. Except it does. IT IS OFFICIAL. We are now in the era of the cryptic web. Let’s all hug and keep on coding strange digital currency miners and exhaust our poor users cpus with crappy code.</p>
</div>
</div>
<div class="article-footer">
<div class="article-meta pull-left">
</div>
</div>
</article>
<article>
<h2 class="article-title"><a href="/article/uncategorized/2019/A-sound-of-time.html"><span>A Sound of Time</span></a></h2>
<div class="article-content">
<div class="entry">
<p>The guardian has a piece on Podcast, the past, the present and the future or <a href="https://www.theguardian.com/commentisfree/2019/nov/30/podcasting-fifteenth-years-old-corporate-greed-threat" target="_blank" rel="noopener">How podcasting is falling prey to the broadcast companies</a>.</p>
<p>But the internet is a marvelous place, because if you choose your pills right, you’ll be able to jump from quality page to another quality page. Only if the authors you start with put some effort into it. And John Naughton did. You should go and read his readings.</p>
<p>And if you follow my lead you’ll read <a href="https://www.cjr.org/special_report/building-honest-internet-public-interest.php" target="_blank" rel="noopener">Building a More Honest Internet</a> and maybe think a little about this. The future of the Internet is in danger of becoming a vast rubbish landscape. Or, we can think of new ways to reinvent it. Read it and think.</p>
<p>Also worth reading is <a href="https://lpeblog.org/2019/11/25/the-second-wave-of-algorithmic-accountability/" target="_blank" rel="noopener">The Second Wave of Algorithmic Accountability</a>. It connects with the previous links and touches some interesting points on the ethics of modern technologies. The XXI century will not be about the <strong>CAN Tech do this</strong>, but instead about the <strong>SHOULD tech do it</strong>. The discussion has started.</p>
</div>
</div>
<div class="article-footer">
<div class="article-meta pull-left">
</div>
</div>
</article>
<article>
<h2 class="article-title"><a href="/article/physicalcomputing/2019/send-data-asksensors-python.html"><span>Sending Data to AskSensors With Python</span></a></h2>
<div class="article-content">
<div class="entry">
<p><a href="https://asksensors.com/" target="_blank" rel="noopener">AskSensors</a> is an online IoT dashboard service that allows you to track data coming from your sensors. They have tutorials on the website to get you started, but for <code>raspberry pi</code> they went with an example using <code>node.js</code>. Can’t understand that <sic>. </sic></p>
<p>In any case it isn’t difficult to write a python script that reads from your sensor and sends data to the AskSensors api. Here are my tips:</p>
<ol>
<li>In python use the easy to understand <code>requests</code> library.</li>
<li>The URL endpoint to send data to is something like <a href="https://api.asksensors.com/write/API_KEY?module1=VALUE_1&module2=VALUE_2" target="_blank" rel="noopener">https://api.asksensors.com/write/API_KEY?module1=VALUE_1&module2=VALUE_2</a> <ol>
<li>Make sure to replace the <strong>API_KEY</strong> and <strong>VALUE_1,2,xxx</strong> to the number and values of your application.</li>
<li>The <strong>API_KEY</strong> is unique for each sensor you have. </li>
<li>Each sensor can have several modules. For example the <code>DHT11</code> sensor reads both Temperature and Humidity. This means you have one device (sensor) sending two values to <code>module1</code> and <code>module2</code>, hence the previous url structure.</li>
</ol>
</li>
<li>send data with <code>requests.get(URL of POINT 2)</code>.</li>
<li>profit.</li>
</ol>
</div>
</div>
<div class="article-footer">
<div class="article-meta pull-left">
<span class="post-categories">
<i class="icon-categories"></i>
<a href="/categories/physicalcomputing/">physicalcomputing</a>
</span>
<span class="post-tags">
<i class="icon-tags"></i>
<a href="/tags/raspberrypi/">raspberrypi</a> <a href="/tags/iot/">iot</a> <a href="/tags/asksensors/">asksensors</a> <a href="/tags/requests/">requests</a> <a href="/tags/python/">python</a> <a href="/tags/dht11/">dht11</a>
</span>
</div>
</div>
</article>
<article>
<h2 class="article-title"><a href="/article/uncategorized/2019/Back-to-school.html"><span>Back to School</span></a></h2>
<div class="article-content">
<div class="entry">
<p>And it’s that time of year again. </p>
<p>Everything that needs to work is broken, every cog in the systems is stuck, and students demanding urgent action that we cannot provide. </p>
<p>That’s the first week of classes. Keep calm and carry on.</p>
</div>
</div>
<div class="article-footer">
<div class="article-meta pull-left">
<span class="post-tags">
<i class="icon-tags"></i>
<a href="/tags/teaching/">teaching</a> <a href="/tags/classes/">classes</a> <a href="/tags/esad/">esad</a> <a href="/tags/work/">work</a>
</span>
</div>
</div>
</article>
<article>
<h2 class="article-title"><a href="/article/uncategorized/2019/Mirroring-websites-is-a-pain.html"><span>Mirroring Websites Is a Pain</span></a></h2>
<div class="article-content">
<div class="entry">
<p>Modern web is a pain to mirror, or to make a copy for future reference.<br>You have to go through every single page in a website and probably print it to keep a copy of what was there. </p>
<p>I end up with mountains of Pdfs. And that sucks, namely when websites have the same title for every page. You manually have to come up with filenames for each of the pages you need to preserve and the all process is slow.</p>
<p><a href="https://www.sixhat.net/wget-uma-versao-estatica-para-o-wordpress.html">Wget might be a solution</a>, and I’ve used in the past, but it isn’t ideal.</p>
<p>The <code>--mirror</code> switch is not enough and you end up needing to go through the manual anyway to find out what each switch means.<br>This is because Wget is not a mirroring tool, but a general purpose one.</p>
<p>Yes, I can hammer a screw in, but it isn’t the right tool for the job.</p>
</div>
</div>
<div class="article-footer">
<div class="article-meta pull-left">
</div>
</div>
</article>
<article>
<h2 class="article-title"><a href="/article/uncategorized/2019/como-a-estatistica-pode-enganar.html"><span>Como a Estatística Pode Enganar</span></a></h2>
<div class="article-content">
<div class="entry">
<iframe width="100%" height="450" src="https://www.youtube.com/embed/B0y0Jc2t92M?controls=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<div class="article-footer">
<div class="article-meta pull-left">
</div>
</div>
</article>
<article>
<h2 class="article-title"><a href="/article/uncategorized/2019/Constants-constants-and-time-is-ticking-on.html"><span>Constants, Constants, and Time Is Ticking On</span></a></h2>
<div class="article-content">
<div class="entry">
<p><img src="/images/pasted-1.png" alt="dentist emoji"></p>
<p>A <a href="https://www.theverge.com/2018/9/5/17822562/google-dataset-search-service-scholar-scientific-journal-open-data-access" target="_blank" rel="noopener">search engine for datasets</a>… _hm_ it would be interesting if not for the fact that most datasets are not that public anyway. But a good idea, although it crossed my readings one year too late. </p>
<p>And if all cities are equal, at least under some magnifying (or should I say unifying) constant? <a href="https://www.citylab.com/transportation/2019/08/commute-time-city-size-transportation-urban-planning-history/597055/" target="_blank" rel="noopener">The Commuting Principle that Shaped Urban History</a> explains how <em>from ancient Rome to modern Atlanta, the shape of cities has been defined by the technologies that allow commuters to get to work in about 30 minutes</em>.</p>
<p>And yes, it has been a long time. And I know it has been. But time is something that I don’t have. 1440 minutes of production per day. And you better make good use of those minutes. Something that I tend to forget constantly. </p>
<p>And a side-note: I went to my dentist today and he asked about Brexit since I’ve lived in the UK for a couple of years. This crazy brexit mania is contagious but a train reck is better than the thought of the dentist tools in my mouth, so I talked, and talked and… couldn’t escape his tools, like the no-deal brexit is certain.</p>
</div>
</div>
<div class="article-footer">
<div class="article-meta pull-left">
<span class="post-tags">
<i class="icon-tags"></i>
<a href="/tags/hustle/">hustle</a> <a href="/tags/data-science/">data science</a> <a href="/tags/search/">search</a> <a href="/tags/urbanism/">urbanism</a> <a href="/tags/brexit/">brexit</a>
</span>
</div>
</div>
</article>
<article>
<h2 class="article-title"><a href="/article/internet/2019/Moving-To-Github.html"><span>Moving to Github or Not</span></a></h2>
<div class="article-content">
<div class="entry">
<p>I’ve been wanting to move my web assets to Github for a long time. Partially because I’m downsizing my web presence (as many have noticed), and partially because of backup/versioning. </p>
<p>This moving is going to be multi-step process and somethings might break. But everything should be completed soon (I hope).</p>
<p>update: I’m back to my own server.</p>
</div>
</div>
<div class="article-footer">
<div class="article-meta pull-left">
<span class="post-categories">
<i class="icon-categories"></i>
<a href="/categories/internet/">internet</a>
</span>
<span class="post-tags">
<i class="icon-tags"></i>
<a href="/tags/github/">github</a> <a href="/tags/versioning/">versioning</a> <a href="/tags/hosting/">hosting</a>
</span>
</div>
</div>
</article>
<nav class="pagination">
<a href="/page/2/" class="pagination-next">Next</a>
</nav>
</main>
<footer class="site-footer">
<header>
<nav class="site-navigation">
<ul>
<li><a href="/">
Home</a></li>
<li><a href="/archives">
Archives</a></li>
</ul>
</nav>
</header>
<p class="site-info">
© 2020 David Sousa-Rodrigues
</p>
</footer>
<script>
(function(a,b,c){var d=a.history,e=document,f=navigator||{},g=localStorage,
h=encodeURIComponent,i=d.pushState,k=function(){return Math.random().toString(36)},
l=function(){return g.cid||(g.cid=k()),g.cid},m=function(r){var s=[];for(var t in r)
r.hasOwnProperty(t)&&void 0!==r[t]&&s.push(h(t)+"="+h(r[t]));return s.join("&")},
n=function(r,s,t,u,v,w,x){var z="https://www.google-analytics.com/collect",
A=m({v:"1",ds:"web",aip:c.anonymizeIp?1:void 0,tid:b,cid:l(),t:r||"pageview",
sd:c.colorDepth&&screen.colorDepth?screen.colorDepth+"-bits":void 0,dr:e.referrer||
void 0,dt:e.title,dl:e.location.origin+e.location.pathname+e.location.search,ul:c.language?
(f.language||"").toLowerCase():void 0,de:c.characterSet?e.characterSet:void 0,
sr:c.screenSize?(a.screen||{}).width+"x"+(a.screen||{}).height:void 0,vp:c.screenSize&&
a.visualViewport?(a.visualViewport||{}).width+"x"+(a.visualViewport||{}).height:void 0,
ec:s||void 0,ea:t||void 0,el:u||void 0,ev:v||void 0,exd:w||void 0,exf:"undefined"!=typeof x&&
!1==!!x?0:void 0});if(f.sendBeacon)f.sendBeacon(z,A);else{var y=new XMLHttpRequest;
y.open("POST",z,!0),y.send(A)}};d.pushState=function(r){return"function"==typeof d.onpushstate&&
d.onpushstate({state:r}),setTimeout(n,c.delay||10),i.apply(d,arguments)},n(),
a.ma={trackEvent:function o(r,s,t,u){return n("event",r,s,t,u)},
trackException:function q(r,s){return n("exception",null,null,null,null,r,s)}}})
(window,"UA-1764730-11",{anonymizeIp:true,colorDepth:true,characterSet:true,screenSize:true,language:true});
</script>
</div>
<script type="application/javascript" async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-5261155233248836",
enable_page_level_ads: true
});
</script>
</body>
</html>