tag:blogger.com,1999:blog-6811336968619276420.comments2024-01-15T23:42:40.807+10:00H. Mijail's BlogHoracio Mijailhttp://www.blogger.com/profile/10941261506308268725noreply@blogger.comBlogger162125tag:blogger.com,1999:blog-6811336968619276420.post-22476091813464372902024-01-15T23:42:40.807+10:002024-01-15T23:42:40.807+10:00make you repos clean - stash the changes and then ...make you repos clean - stash the changes and then sync with --repo-sync, then pop stashed changes.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-9807215308212031412023-01-05T13:54:15.392+10:002023-01-05T13:54:15.392+10:00One thing I have stumbled on a couple of times is ...One thing I have stumbled on a couple of times is "how to force target B to run after target A".<br />This kind of problem appears when trying to implement something like "force_build" in terms of "clean" and "build":<br />force_build: clean build<br /><br />This won't work because there is no way to impose order on prerequisites; the targets might evenHoracio Mijailhttps://www.blogger.com/profile/10941261506308268725noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-21450233984194181262022-12-25T12:17:05.450+10:002022-12-25T12:17:05.450+10:00Creo que no. Lo más cercano supongo que sería &quo...Creo que no. Lo más cercano supongo que sería "salsa para mojar", que a mí me suena aparatoso.Horacio Mijailhttps://www.blogger.com/profile/10941261506308268725noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-83225630364717758192022-12-21T08:05:00.021+10:002022-12-21T08:05:00.021+10:00Qué es un dip?. No hay ninguna palabra en español?...Qué es un dip?. No hay ninguna palabra en español?Miguelhttps://www.blogger.com/profile/16950149063639935245noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-51720352481289580742021-11-16T14:44:07.084+10:002021-11-16T14:44:07.084+10:00Went at it again:
#include
#define DEFINED 20
...Went at it again:<br /><br />#include <br /><br />#define DEFINED 20<br /><br />#define STRINGIFY(x) #x<br />#define IS_MACRO(x) (STRINGIFY (x) != #x)<br /><br />int main()<br />{<br /> printf ("Defined: %i\n", IS_MACRO (DEFINED));<br /> return 0;<br />}<br /><br />Apparently you can compare string immediates with == and !=...?Ethan Kimnoreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-8194480863549756772021-11-16T13:46:15.611+10:002021-11-16T13:46:15.611+10:00Regarding your non-empty defined macros issue, I c...Regarding your non-empty defined macros issue, I came up with a solution (kind of) :D<br /><br />#include <br /><br />#define DEFINED 20<br /><br />#define STRINGIFY(x) #x<br />#define IS_DEFINED(MACRO) \<br /> (sizeof (STRINGIFY (MACRO)) != sizeof (#MACRO))<br /><br />int main()<br />{<br /> printf("Defined: %i\n", IS_DEFINED (DEFINED));<br /> return 0;<br />}<br /><br />EssentiallyEthan Kimhttps://replit.com/@EthanKim8683noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-69862062539339609292021-03-06T06:52:19.552+10:002021-03-06T06:52:19.552+10:00Hola Mijail, soy Vicente, no sé si te acordarás ya...Hola Mijail, soy Vicente, no sé si te acordarás ya de mí. ¿Sigues por ahí? te he enviado al correo de gmail. Saludos<br /><br />La flecha Valonahttps://www.blogger.com/profile/00061009340619329098noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-32198573128996217492020-11-22T02:41:04.204+10:002020-11-22T02:41:04.204+10:00Hi! Do you still have the original in creole? The ...Hi! Do you still have the original in creole? The link is not working and i can't find it anywhere. Thanks!carlitoshttps://www.blogger.com/profile/03835705021698610505noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-3494859363458624122020-04-27T19:53:47.901+10:002020-04-27T19:53:47.901+10:00Actually I didn't even remember I wrote this p...Actually I didn't even remember I wrote this post, which is funny because lately I was thinking about trying to do this kind of thing again. So... maybe soon-ish :).Horacio Mijailhttps://www.blogger.com/profile/10941261506308268725noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-35680139954134685412020-04-27T17:59:35.099+10:002020-04-27T17:59:35.099+10:00Ooh, this post is old. I wish you had pictures. :D...Ooh, this post is old. I wish you had pictures. :DUnknownhttps://www.blogger.com/profile/07242375807129164164noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-5068602499267076682020-02-16T22:24:21.343+10:002020-02-16T22:24:21.343+10:00At some point I found an acceptable-ish workaround...At some point I found an acceptable-ish workaround to the CPU-usage-on-battery issue: send to the daemon a SIGSTOP signal, and when ready to restart the backups, send it a SIGCONT. Much easier and much less risky than deauthorizing and having later to retype the archive's private key.Horacio Mijailhttps://www.blogger.com/profile/10941261506308268725noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-27301017553507235402019-08-09T07:05:19.683+10:002019-08-09T07:05:19.683+10:00How did you fix your problem can you help me out s...How did you fix your problem can you help me out step by step please?Anonymoushttps://www.blogger.com/profile/06435122862623941332noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-30063345867572099572019-07-29T20:04:52.819+10:002019-07-29T20:04:52.819+10:00Interesting, thank you. Thankfully not all "U...Interesting, thank you. Thankfully not all "Unix guys" are so blind, after all FreeBSD has its port, right? ;)<br /><br />You say it can't be ported to Linux... but why? In other cases, Linux seemed to end up getting some late but arguably competitive alternative to the new developments in the other Unixes (ZFS -> BTRFS, DTrace -> eBPF). Of course BTRFS is still not fully Horacio Mijailhttps://www.blogger.com/profile/10941261506308268725noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-28373021445685181932019-07-27T08:47:16.160+10:002019-07-27T08:47:16.160+10:00I comment because even in 2019 this comes up as a ...I comment because even in 2019 this comes up as a top result for "Grand Central Dispatch Android" searches. The main problem is that the Unix guys don't understand the genius of GCD and that it is much more then pthreads. <br /><br />Its giving the kernel scheduler the power to create and destroy threads inside a program based on overall process/thread usuage patterns. Thats a hugellotharhttps://www.blogger.com/profile/11488711602449329222noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-64683153213648161772019-06-21T23:33:05.127+10:002019-06-21T23:33:05.127+10:00Oh my god, my computer was only getting reception ...Oh my god, my computer was only getting reception when I was sat next to the modem. It never occurred to me that the problem could be with my own computer until I saw that my friend was able to connect no problem. Thank you so much for your post, you singlehandedly upped my life quality by 10x!Naznoreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-36383122789065069622018-09-21T15:35:46.308+10:002018-09-21T15:35:46.308+10:00Wow. So, are you saying that the speed improves ju...Wow. So, are you saying that the speed improves just by switching users, without rebooting? Also, how exactly do you switch - fast switch or logout+login? And, does the speed stay high when you switch back to the original account from the test account?Horacio Mijailhttps://www.blogger.com/profile/10941261506308268725noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-5396315008162807712018-09-21T15:14:10.266+10:002018-09-21T15:14:10.266+10:00interesting post! I have been having a similar iss...interesting post! I have been having a similar issue on a pair of 13" 2018 MacBook Pros... brand new Apple installed High Sierra. On the Eero network 5G channel (current firmware), speed drops significantly. Switching to a clean test user account on the MacBook Pros fixes the problem... which is very strange since the original accounts were fresh and built from scratch. My best guess is a Anonymoushttps://www.blogger.com/profile/02574961981229645614noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-45786133942113071652018-08-26T01:04:11.660+10:002018-08-26T01:04:11.660+10:00A commenter in Hacker News (Marcel Weiher) mention...A commenter in Hacker News (Marcel Weiher) mentioned in another subject [1] the concept of "architectural mismatch". Sounds like a better and more general description of what I called here a lack of "vocabulary" in Java. <br /><br />And it's really interesting; once you identify the concept it's true that you can see it popping up in lots of places while reading about Horacio Mijailhttps://www.blogger.com/profile/10941261506308268725noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-11165317866518362562018-08-25T11:30:35.385+10:002018-08-25T11:30:35.385+10:00Interesting addition: Torvalds discussed a bit gar...Interesting addition: Torvalds discussed a bit garbage collectors in a kernel list post, and it's interesting both what he says and how he addresses the general subject ("I really think it's the mindset that is the biggest problem") . <br /><br />Also, interesting that he's rather measured; compare to how he raged against other things (*cough* C++ *cough*).<br /><br />Great Horacio Mijailhttps://www.blogger.com/profile/10941261506308268725noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-37800109267701450862018-08-24T12:30:33.817+10:002018-08-24T12:30:33.817+10:00"almost every OS (Windows, OS X, iOS, Android..."almost every OS (Windows, OS X, iOS, Android)" -> OS X is written in C, like Linux, like Android. The whole Unix-derived world is C.<br />So, unless you want to argue that using structs and function pointers is OOP, then you're wrong.<br /><br />... and if you DO want to argue that, then you're reducing OOP to using data structures, which 1) no one will tell you is bad in Horacio Mijailhttps://www.blogger.com/profile/10941261506308268725noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-62083607150638011832018-08-24T02:48:41.731+10:002018-08-24T02:48:41.731+10:00If you're only using objects as a module syste...If you're only using objects as a module system with mutable state, as opposed to using object-oriented principles to organize code and reduce repetition through inheritance, you're not writing an object-oriented program. You're writing procedural code with more pointless ceremony. And guess what: Most varieties of functional programming language support that without the need for the Chris Bartshttps://www.blogger.com/profile/13381221381435216868noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-49738365693165907942018-08-24T00:07:01.353+10:002018-08-24T00:07:01.353+10:00> …but he stops at OOP? Makes me think that he ...> …but he stops at OOP? Makes me think that he was not very informed about functional programming, given that OOP is (1) trivial to add to functional programming languages, (2) dissed by all the greats as uninteresting – or worse.<br /><br />The OOP bashing is mostly complaints about the complexity of C++ as a language and the enterprise-imposed ceremony in Java, but nothing really interestingAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-91215164600018050002018-03-01T08:30:01.248+10:002018-03-01T08:30:01.248+10:00I recently took a codelity test. I gave up because...I recently took a codelity test. I gave up because each of the tests were based on someone that knows the theory from a CS standpoint. I was never a CS graduate. Needless to say. I am tired of the trolling. I am going to learn the algorithms just so I can tell them after I take the test and ace it, to fuck off. Anonymoushttps://www.blogger.com/profile/07451060002443635689noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-46882268681278478482018-02-02T18:22:44.925+10:002018-02-02T18:22:44.925+10:00I got a bug report in GitHub that made me realize ...I got a bug report in GitHub that made me realize how out of date my code is - so I added a deprecation notice and linked to the modernized version by the Anonymous commenter above. <br /><br />If anyone is still interested in this, looks like that is the way to go.Horacio Mijailhttps://www.blogger.com/profile/10941261506308268725noreply@blogger.comtag:blogger.com,1999:blog-6811336968619276420.post-76989798885644387422018-01-21T03:28:18.348+10:002018-01-21T03:28:18.348+10:00Yep, and that's why it probably pays to quickl...Yep, and that's why it probably pays to quickly whip up any naïve-but-working solution, instead of going for a "better" solution that might not be finished on time.<br /><br />Which for example favors devs who don't know of anything better than a bubble sort vs those who know that the bubble sort is not a good solution for a big problem but can't implement any other sort Horacio Mijailhttps://www.blogger.com/profile/10941261506308268725noreply@blogger.com