[WayBack] Eerste stapjes in LocalFocus: [WayBack] Zwemwaterkwaliteit Nederland 20180724
Via: [Archive.is] Hitte in de stad: code oranje uitgeroepen – Amsterdam – PAROOL
–jeroen
Posted by jpluimers on 2018/11/30
[WayBack] Eerste stapjes in LocalFocus: [WayBack] Zwemwaterkwaliteit Nederland 20180724
Via: [Archive.is] Hitte in de stad: code oranje uitgeroepen – Amsterdam – PAROOL
–jeroen
Posted in Power User, Usability, User Experience (ux) | Leave a Comment »
Posted by jpluimers on 2018/11/29
I might give a few of these a shot:
–jeroen
Posted in Development, DVCS - Distributed Version Control, GitLab, Software Development, Source Code Management | Leave a Comment »
Posted by jpluimers on 2018/11/29
Was working to get fritzcap to emit a list of interfaces so I could specify which one to capture.
For that I needed to parse the output of http://fritz.box/capture.lua which consists of HTML fragments like below.
What I needed was for each consecutive entries of [WayBack] th and first [WayBack] button tags:
th tagvalue attribute of the button tag having a type="submit" attribute and name=start attributeSo before starting to work on it, I created [WayBack] In order to fix #5, print a list of available interfaces to potentially capture from · Issue #6 · jpluimers/fritzcap
The goal was to get a series of key/value pairs:
4-138 = AP2 (2.4 + 5 GHz, ath1) - Interface 1
4-137 = AP2 (2.4 + 5 GHz, ath1) - Interface 0
4-132 = AP (2.4 GHz, ath0) - Interface 1
4-131 = AP (2.4 GHz, ath0) - Interface 0
4-129 = HW (2.4 GHz, wifi0) - Interface 0
4-128 = WLAN Management Traffic - Interface 0a
So I built a class descending from [WayBack] HTMLParser — Simple HTML and XHTML parser that ships with the [WayBack] Python standard libraries.
If in the future I need more complex HTML parsing, then these links will help me choosing more feature rich parsers:
Back to the HTMLParser descendant in interfaces_dumper.py which can basically be condensed down to the code below.
handle_data is called for both start tags and end tags. The th value in data is only present in the start tag (at the time of end tag the data is empty), so you need to keep track of both last_start_tag and last_end_tag.handle_endtag maintains last_end_tag to help handle_data.handle_starttag maintains last_start_tag to help handle_data and also handles the button behaviour.
buttonis only relevant if it has type="submit" and name="start" and a value attribute in that order.data which is an array of key/value pairs.Posted in Development, Fritz!, Fritz!Box, fritzcap, Internet, Power User, Python, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2018/11/28
In [WayBack] Jeroen Pluimers @jpluimers: Every now and then editing @uptimerobot entries failed. Just “HTTP Error 503.4 – Service Unavailable The FastCGI pool queue is full” 1/2 I found out that UptimeRobot:
There is also a maintenance page at uptimerobot.com/maintenance.php#tvMode [Archive.is] and uptimerobot.com/maintenance.php?c-e [Archive.is]. If you get to those, then retry in ~10 minutes as sometimes it takes that long for an update to be processed.
Sometimes setting up multiple Android devices for the same uptimerobot account can be a bit of a hassle: [WayBack] Uptime Robot on Twitter: “Once logged in to the account from another Andriod device, that device will be added as an alert contact too.… “.
All in all it is still a nice tool (:
–jeroen
Posted in *nix, Development, IIS, Monitoring, PHP, Power User, Scripting, Software Development, Uptimerobot, Web Development | Leave a Comment »
Posted by jpluimers on 2018/11/28
A while back, I made my first steps into Python.
Coming from a mixed language back-ground (including Pascal, Delphi, C#, SQL, batch files, PowerShell, bash, C, Java) it was an interesting experience.
A few observations:
pass statement is your [WayBack] no-op friend (via [WayBack] What’s a standard way to do a no-op in python? – Stack Overflow).bool is lower-case, the False and True built-in constants start with a capital [WayBack] 4. Built-in Constants — Python 2.7.13 documentationMore observations likely to follow.
–jeroen
Posted in Development, Python, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2018/11/27
Since I am going to be involved with building some REST API servers and clients in .NET, here are some links to get me up to speed.
.NET Core is great. It is one of the best products of Microsoft’s shift to a more open source, cross platform company and whilst still…
At Stackify we have been doing a lot of work with .NET Core. Find our top suggestions on converting an application from ASP.NET to NET Core.
I’m having some issues which I’m guessing are related to self-referencing using .NET Core Web API and Entity Framework Core. My Web API starting choking when I added .Includes for some navigation
Posted in .NET, .NET ORM, ASP.NET, C#, Development, EF Entity Framework, NHibernate, Software Development | Leave a Comment »
Posted by jpluimers on 2018/11/27
I’m not sure around which firmware versions Fritz!Box started to implement LUA links, but they are now on my research list.
Below a reference and where I found them.
A few notes first:
Logging in programmatically needs a challenge response mechanism. It used to be at [Wayback] http://www.avm.de/de/Extern/Technical_Note_Session_ID.pdf but now has moved to [Wayback/Archive.is] https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AVM_Technical_Note_-_Session_ID.pdf
Here is the list:
Posted in Development, Fritz!, Fritz!Box, Hardware Development, Hardware Interfacing, Internet, Power User | Leave a Comment »
Posted by jpluimers on 2018/11/26
[WayBack] Protected Branches | GitLab usually are a cool feature, but sometimes they get in the way, for instance when someone having enough rights has pushed credentials or API keys to a repository.
Unlike the picture in the documentation that indicates the default looks like Masters, this is now assigned to the role Maintainers.
Wrong:
Right:
More reading:
–jeroen
Posted in Development, DVCS - Distributed Version Control, git, GitLab, Source Code Management | Leave a Comment »
Posted by jpluimers on 2018/11/26
Another piece of history: FireWire also known as IEEE-1394 [WayBack].
[WayBack] The tragedy of FireWire: Collaborative tech torpedoed by corporations | Ars Technica
I still have that iPod, cables and IEEE-1394 adapters to communicate with it (:
It didn’t help that by now various types of connections – including FireWire, USB and others – are also used for DMA hacking. One less connection type, one less risk of entry:
via: [WayBack] Firewire and what could have been.. – Roderick Gadellaa – Google+ and [WayBack] Fred Dresken (Maverick) – Google+
–jeroen
Posted in Development, FireWire, FireWire, Hardware, Hardware Interfacing, History, Power User, USB, USB-C | Leave a Comment »
Posted by jpluimers on 2018/11/23
I needed a “get only the first result” of WHERE (which is present after Windows 2000, so XP, Server 2003 and up), so based on [WayBack] A 90-byte “whereis” program – The Old New Thing I came up with this:
@echo off
:: based on https://blogs.msdn.microsoft.com/oldnewthing/20050120-00/?p=36653
::for %%f in (%1) do @echo.%%~$PATH:f
for %%e in (%PATHEXT%) do @for %%i in (%1 %~n1%%e) do (
@if NOT "%%~$PATH:i"=="" (
echo %%~$PATH:i
goto :eof
)
)
:: note: WHERE lists all occurrences of a file on the PATH in PATH order
goto :eof
Two changes:
References:
–jeroen
Posted in Batch-Files, Development, Power User, Scripting, Software Development, The Old New Thing, Windows, Windows Development | Leave a Comment »