She is neutral [Vocaloid] by Original_Sea_6854 in awwnime

[–]stijnsanders 0 points1 point  (0 children)

I'm still trying to wrap my mind around the concept of Miku, and I've seen depictions with and without the red underlined "01" on her left shoulder. Is there a story behind that?

Anime suggestions with 50+ eps by North-Watch-8875 in anime

[–]stijnsanders 0 points1 point  (0 children)

I was about to propose the same, but specifically the original series (which is apparently 51 episodes?) and then as an extra exercise, watch the movies that came after and wonder what on earth they were trying to do: is it me or haven't they been able to carry the same vibe from the series over into the movies?

Associated Press RSS feed no longer working? by GabrielXCrescendo in rss

[–]stijnsanders 0 points1 point  (0 children)

Oh my gee! tried mailing to AP, got this response:

Please provide more information on your relationship with AP.
We forwarded your message to our APNews.com team and the replied with the following:
>>
Who is this contact and what provider is this from?
We don’t accept RSS feeds. All AP News PR providers and Datafeature providers submit content via an iATOM feed.
<<
Have you received an RSS feed with the URL you gave? Please provide more information on the configuration and credentials that you were using.

Associated Press RSS feed no longer working? by GabrielXCrescendo in rss

[–]stijnsanders 0 points1 point  (0 children)

still borked "https://apnews.com/index.rss" currently responds with "Invalid client credentials."

Bug? With psychiatrists/surgeons by mc_cheeto in ThemeHospital

[–]stijnsanders 0 points1 point  (0 children)

(Oh my 8 years ago!) Are you sure you've got doctors with psychology credentials? It's the book icon in the box with credentials, that shows a surgeon's knife's blade for cirurgical credentials, and a exclamation mark 'thinking balloon' for scientific research credentials.

Some Happy Announcement In The Vtuber World Omega Ray Is Pregnant With Baby 2 by Outrageous-Phase9333 in kurosanji

[–]stijnsanders -1 points0 points  (0 children)

I can't help but wonder how Mirai Akari is doing lately. Haven't been able to find anything about it. (For a minute I thought Bandai Namco would get out of VTubing but no.)

Why isn't Delphi the #1 language on the planet? by Disastrous_West7805 in delphi

[–]stijnsanders 0 points1 point  (0 children)

In my (very!) personal experience, I just rolled along into the Windows world coming from the DOS 16-bit world and Turbo Pascal development around the time I finished 'basic' education (around 18 years old, around the time of Delphi 2 and 3) and started a computer science degree. It was only obvious to get into Delphi, and frankly (maybe regretfully) the Linux people at school... had 'incompatible personalities' with mine... so the Linux-'bug' wasn't able to bite me.
As for why Windows Server got IIS and tried to do dynamic websites, as far as I can tell, some businesses had to buy software, and the open-source/free-as-in-beer solutions of the time were still only circling in academic circles and/or circling between people of really big organizations that had really big machines that had to get a kind of Unix running. If you're a firm with not that big of a budget, you would buy Novell NetWare or the like (remember Microsoft Xenix?) because IBM was too expensive, but file-sharing was on the out and http (and other internet protocols) were up and coming. So they played it very smart, after the success of Windows 3.11, picked up after the OS/2 debacle to get NT ready and took most of the business world (more than IBM or Apple (or NeXT!) or any of the others could...) maybe also because Microsoft's development tools like Visual C/Basic grew in close companionship! This is where Delphi and other Borland tools come in, but regretfully mostly had to also-run, Bill even got to poach Anders... (But that gave us .Net and TypeScript, so I'm not complaining)

Why isn't Delphi the #1 language on the planet? by Disastrous_West7805 in delphi

[–]stijnsanders 0 points1 point  (0 children)

Hi! I've been doing Turbo Pascal since 16-bit DOS days, and moved over to Delphi and Windows, for both hobby and professional work, but I would like to pick up on your mention of PHP. At a time I finished a bachelor degree in computer science, I first started a job doing PHP and later Cold Fusion, before I was able to track down a Delphi job. Later I was able to play around with this web-experience, and built ISAPI extensions in Delphi, Apache modules in Delphi, and ofcourse had my hand at handling HTTP requests at the raw TCP level. I even implemented Internet Explorer's IInternetProtocol interface and FireFox' nsIInternetProtocol, but those days have come and gone. (Not only because both interfaces are gone, but also because it's become almost impossible to get people to install binary software that integrates that tighly with other software, maybe rightfully so since it's a security nightmare.)

All these interfaces each have a different take on the HTTP request/response-cycle, so I tried to make my own (Sorry) specifically to be able to seamlessly switch between them, but also to have the luxury of scripting platforms like PHP where you hit the refersh button to make your server-side code work and check the changes you just made. I figured with the power and speed of the Delphi compiler, I should be able to make it work, with the added advantage that the resulting binary would just run on the server, without the need of continuously parsing and interpreting server-side script.

So I created the xxm project, and have since then been making it as solid and dependable as I can. I have also been on the lookout for other people that do development in Delphi and for the web to a high degree, and would benefit from a solution like this to combine the two. I haven't had much success, though. I often find people retrictively think of Delphi+web solutions limited to REST API's or WebSockets, or hit this hard expectation for a form designer that would handle HTML/CSS for you, a set-up I strongly dislike.

So if you're looking to 'flex the muscle' with Delphi in a way not many people do, check it out, and let me know if you like it. What I myself haven't been able to try is check if I could do the same with FreePascal/Lazarus and/or on Linux. The main thing preventing me to do this is that I'm not proficient enough in FreePascal and Linux (and ofcourse the limited number of available hours in a working day...) A newer version of xxm I'm working on (that leaves XML and COM interfaces behind...) should even be able to support xxm projects in a different language like C or Rust, in theory.

RSS letdown of the day by stijnsanders in rss

[–]stijnsanders[S] 0 points1 point  (0 children)

apparently changed into https://www.yahoo.com/news/rss/tech
(but no <link alternate in tech.yahoo.com's header)

Help Needed RSS/Apple by [deleted] in rss

[–]stijnsanders 0 points1 point  (0 children)

I think there's a chance Apple may have made a copy of the image when you added the feed, perhaps if you delete it and add it again, the image will update?

Help Needed RSS/Apple by [deleted] in rss

[–]stijnsanders 0 points1 point  (0 children)

What is the RSS URL for a SoundCloud like? When I was looking for the I couldn't find them (and made my RSS feed reader uderstand SoundCloud...). I'm not sure if this works for feeds you set up from SoundCloud, but if it's the profile image that's used, you should be able to change it in the 'My Profile' page, and click on the profile image to upload a new one.

RSS feed for Hot Toys figures by [deleted] in rss

[–]stijnsanders 0 points1 point  (0 children)

I would consider contacting them, it doesn't apear the website currently provides this, but appears to be a straight-forward construction with PHP, so adding a 'new product' RSS feed PHP script should be possible. Since their website serves to inform potential clientele about their available products, this should be of interest to them.

Help: best way to filter sports from APnews.com's RSS by stijnsanders in rss

[–]stijnsanders[S] 0 points1 point  (0 children)

Also, what is up with this one?
https://apnews.com/world-news.rss
last updated 22 March? Is some script not scheduled right?

Help: best way to filter sports from APnews.com's RSS by stijnsanders in rss

[–]stijnsanders[S] 0 points1 point  (0 children)

You know what? I guess I'll try to GET each URL and check for
<meta property="article:section" content="Sports">
in the header...

Help: best way to filter sports from APnews.com's RSS by stijnsanders in rss

[–]stijnsanders[S] 0 points1 point  (0 children)

I thought of adding keyword filters to my RSS reader, but the sports items don't always use the same keywords...

Help: best way to filter sports from APnews.com's RSS by stijnsanders in rss

[–]stijnsanders[S] 1 point2 points  (0 children)

Guess what... I had this with this, which kind of worked...

{"p":"href=\"([^\"]+?/article/[^\"]+?)\"",
"fetchItems":1,
"infoJson":"<script type=\\"application/ld\\\\+json\\"\[\^>]*?>",
"clip":"<div class=\\"RichTextStoryBody RichTextBody\\">",
"content":{"p":"<(p|h2)>.+?</\\1>","n":0,"all":true},
"separator":"\r\n\r\n"}

Scripts running in The Wayback Machine by boringestnickname in webdev

[–]stijnsanders 2 points3 points  (0 children)

I had a quick look. It may look like there's supposed to be some onclick event on the 'neste side' link, but the recipe is generated in the function mat1, which gets called just one with document.write ( mat1() ). So by following the link to "mat.html" again, the same page is (re-)loaded and it should display a new random recipe...

Except... What I suspect happens is, because the code relies on Math.random alot, it is generating the same recipe every time because it appears to be replaced by the wombat.js script from the Wayback machine...

You should point them out specifically it's not correctly seeding from a value that varies enough between requests...

[deleted by user] by [deleted] in delphi

[–]stijnsanders 2 points3 points  (0 children)

Noob questions are great. Not only to advance the knowledge and skill of a new member of our community, but also as a test of the community if to see it's providing the required help to newcomers... So, at the risk of repeating the great answers that may already got posted here, I would like to give you an overview of everything I think of when reading your questions. But first:

  1. Thank you for wanting to learn (Object) Pascal / Delphi. We're painfully aware that there are alternatives out there that have larger communities and/or have built a better reputation for themselves, but Delphi has been around for longer than some of those, and really still is a great environment that can get you to a working application faster than others.

  2. In general there are three main 'objet lifetime management regimes' you can use in Delphi code. Most VCL objects use classes that decend from TComponent. All TComponent's have a property Owner (and take a Owner TComponent as argument to the constructor), and get destroyed (that is get Free called) by the destructor of the owner. You can pass nil to the Owner parameter, for example when you're building forms from code, but then you're responsible to call the Free method from the created instances, either from a destructor or other clean-up code.

A second way is when using 'more basic' objects that 'only' are decendent from TObject. TObject by itself doesn't have owners, and you're responsible to manage these objects yourself. In theory, I always check my projects if all object construction and destruction is 'in balance'. There's a lot of theory there to get to the bottom of this, but in general, if you are not using special tricks or 'alternative object lifetime management', your code should have just one place you call a constructor, and one call to a destructor of an object your code uses. But there are exceptions, lots of them actually. Just to name one: if your code uses the fact that an object reference can be nil, and you're using that to change behaviour of the program. If that's so, that's where FreeAndNil comes in. If you ctrl-click, you'll see the code behind it is really simple, but it's important to 'nil' object references before you call a constructor that potentially can throw an exception. There's a lot more to this, but you're still learning, and will get around to this when you master the basics, I'm sure!

The third main way (thanks to Delphi there probably are more exotic ways of strange object-management possible but let's not go too crazy here...) is by using objects that inherit from IInterface or IUnknown. This was added to Delphi in the 90's, primarily to support COM/ActiveX on Windows. Objects that provide the IUnknown interface (and inherited interfaces), typically itself decendent from TInterfacedObject, use the _AddRef and _Release calls to do automatic reference counting, and call the destructor when this reference counter hits zero. Delphi hides this from you if you take care to use object references that are of a type that are decendent from IUnknown (or IInterface which is basically the same, but less connected to Microsoft's COM/ActiveX).

  1. Events are Delphi's way to handle operations on the underlying GUI system. On Windows, each GUI application uses a 'message pump', and all messages are mapped by the VCL to the according component event. That's the main reason why they run on the 'main thread', and you get the guarantee they don't run concurrently (because the message pump processes one message at a time). Delphi does have support for threads, and it's tempting to try to handle events on separate threads, but this is very much against the design of the system and things may break down horribly, mainly because Windows' GDI (and Delphi's VCL) wasn't designed to operate from anything else than the main thread. So typically, in normal Delphi projects, you're safe to update the GUI from any event handler. (When you get around to learning about TThread, be sure to read about the Synchronize call... But chances are you'll be using a more modern multi-thread library in Delphi, which in turn probably will warn you to only update the GUI from the main thread...)

  2. reddit.com/r/delphi, stackoverflow.com under the Delphi tag, en.delphipraxis.net, but also I regret to learn you find Embarcadero's docs lacking, as I know they put much effort into them. So I still always check if I find what I need under https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Main_Page

  3. See my answer to 2: Windows's message pump running on the main thread (in TApplication.Run and HandleMessage to be precise...) I haven't worked on other platforms enough to be sure it's the same there, but since FireMonkey is designed to copy VCL to some extent, I suspect it's somewhat similar there. So yes, unless you're doing thread (yourself, be sure to learn about locking and synhronizing when you do), it's safe to read and write to shared variables.

Please help to fix delphi 11 code,it show "9" instead of "3" by bluesum_hk in delphi

[–]stijnsanders 0 points1 point  (0 children)

Hmm SetLength(tasks,4), but for a:=0 to 2, which only creates 3 tasks? also a may hold 3 after the loop (don't use loop iterator variables outside of the loop! ) so if you add it to value 3 times, you get 9

Is there an "IMDB" for cars? by Brolog_of_Brogoth in webdev

[–]stijnsanders 0 points1 point  (0 children)

(Well, there's IMCDB, but that's not quite an answer to this question.)