Peter Taylor
A quiet enigma. We don't know anything about Peter Taylor yet.
Posts
To whether the tag is useful: no. It's useful for tagging people ("this person does frontend and backend") but not questions. I don't see the point of adding "do not use": just delete the tag, whi...
posted 2y ago by Peter Taylor
If you remove the align="left" then it works fine. My best guess is that you put those in because you didn't want the image in the text flow, affecting the vertical positioning on the text. The ea...
posted 1y ago by Peter Taylor
This can't be done with the standard library. It's quite common for people who want to do this to define their own extension method public static void Foreach<T>(this IEnumerable<T> it...
posted 2y ago by Peter Taylor
Interpreters are easier to write than compilers. For this reason esoteric and toy languages are often implemented by interpretation. But the dichotomy between interpreted and compiled languages is...
posted 2y ago by Peter Taylor
This is a class from my personal code library, and from a package which deals with integer sequences. It implements an interface package org.cheddarmonk.math.sequence; public interface IntegerSequ...
0 answers · posted 2y ago by Peter Taylor
<Window x:Class="Login_App.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns...
posted 2y ago by Peter Taylor
Is there any disadvantage of doing it this way that I should be aware of? In general whitelisting is the best way to sanitise, but it does create important error classes, especially missing it...
posted 2y ago by Peter Taylor
This should perhaps be a comment rather than an answer, but I want to allow people to vote to indicate agreement or disagreement. "Complete code" doesn't necessarily mean an entire project. It mea...
posted 1y ago by Peter Taylor
Wrong operator. To test for NULL, use the IS NULL and IS NOT NULL operators ... You cannot use arithmetic comparison operators such as =, <, or <> to test for NULL.
posted 1y ago by Peter Taylor
A cancellation token doesn't inherently do anything. It's up to the code which does the work to call ThrowIfCancellationRequested. If the token isn't passed on and isn't explicitly checked then the...
posted 2y ago by Peter Taylor
echo "Enter Latitude\n"; $handle = fopen("php://stdin", "r"); $lat = deg2rad(trim(fgets($handle))); fclose($handle); echo "Enter Longitude\n"; $handle = fopen("php://stdin", "r"); $long = deg2rad(...
posted 2y ago by Peter Taylor
The short answer is that it can't be done. C# doesn't support type functions. https://github.com/dotnet/csharplang/issues/339 is probably the issue to follow if you want to track their progress. W...
posted 2y ago by Peter Taylor
My assumption is that, internally, log4net loads its XML file into some data structure (maybe not a dict, but some equivalent of cfg_dict above) and then passes that structure to whatever code ma...
posted 2y ago by Peter Taylor · edited 2y ago by Peter Taylor
Overall the structure seems sensible. Style It's Python style to have two blank lines after a function or method, not just one. You seem to be trying to line wrap before 80 characters. Maybe you...
posted 1y ago by Peter Taylor
I have a project Anonymised.Theme which contains XAML resource dictionaries for a theme. This is used by about a dozen applications which simply include it by merging <ResourceDictionary Source...
2 answers · posted 1y ago by Peter Taylor · last activity 1y ago by aresavatar
Reputation | 1167 | |
Number of top-level posts | 6 | |
Number of answers | 31 | |
Sum of received votes (up minus down) | 126 | |
Number of edits made | 6 |
Earned Abilities
Statistics
Posts | ||
---|---|---|
Count | 37 | |
Questions | 6 | |
Answers | 31 | |
Articles | 0 |
Votes cast | ||
---|---|---|
Count | 59 |
Flags raised | ||
---|---|---|
Count | 2 |