Fred Koschara - My official personal Web page

The Internet Home of

Fred Koschara

Web dev

Investor sought for FredLines-Tshirts.com

Jun. 05, 2024, under bootstrap finance, call to action, progress reports, Web dev

I am currently seeking $75,000 to underwrite redevelopment of the FredLines-Tshirts.com website, originally built in 1997, into a functioning and profitable business.

I’m willing to pay a $5,000 finder’s fee to anyone who introduces me to such an investor when the deal is completed.

Please contact me with serious inquiries only.

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 
Leave a Comment more...

Installing WordPress 5.1.18 broke updating and installing new plugins

Jun. 05, 2024, under disturbing, really???, Web dev

Before adding new posts to my blog, I decided to upgrade WordPress on my server from 4.6.3 to 5.1.18.

BIG MISTAKE!!

My server is running PHP 5.3.8, so I cannot upgrade to 6.5.3. WordPress offered 5.1.18 as an alternative, but I had to manually install the update from the server’s command prompt because WordPress cannot do it internally. Not a problem, I am very familiar with Linux command line.

However, when I tried to update the plugins and themes, the connection type radiobutton was stuck on FTPS (SSL) – not a problem, since that’s the connection type I want to use. When I told it to proceed after entering my password, though, I got an error message stating

Failed to connect to SSH2 Server fkeinternet.com:22

WAIT! I didn’t ask for an SSH2 connection, and even if I wanted one, the radiobutton is stuck on FTPS! Why is WordPress trying to initiate an SSH2 connection when everything says it should NOT be doing that?

I found I had exactly the same problem trying to update the installed themes.

I set those problems aside because my objective here is to add some new posts to my blog.

WRONG AGAIN!!

I found every new paragraph is a new “block” – not that I wanted blocks in the first place, but OK, paragraphs can be blocks. I got three paragraphs written, and decided I wanted to change the color of some of the text in the second one. I selected the text by dragging out the range with my mouse cursor. When I went to the Color Settings and picked from the Text Color options, the entire paragraph changed color! This is NOT what I wanted to do. I deselected the color option, and went to edit the paragraph as HTML. I wrapped the selected text in a <span color=”#cdcd77″> directive, switched back to the visual editor – and there was no change. There was also no change when I previewed my post. Back in the editor window, I did something where an “invalid HTML” error appeared.

I deleted the entire paragraph block and retyped it. I figured perhaps I could look at the code when the whole paragraph is colored to see how I should set up my <span> directive. When I looked at the HTML after changing the color, I was horrified to see the <p> directive bounding the paragraph (inside the HTML comment <!– wp:paragraph –> directive added by the Department of Redundancy Department) had been changed to

<p class=”has-text-color has-luminous-vivid-amber-color”>

What? Is <p color=”#cdcd77″> really incomprehensible? (Further incendiary comments withheld…)

I turned to Google, trying to find ways to change the color of just a few words of text in a WordPress post. I found many references saying things like “select the text, use the controls in the toolbar” – but since the options aren’t present in the toolbar, that advice is totally useless.

I then discovered this horrific editor had been introduced in the 5.0 release of WordPress, but it’s possible to get the previous functionality restored by installing the Classic Editor plugin. Great!

but no, FOILED AGAIN!!

I went to the Add New option for the Plugins for my WordPress instance, and there was Classic Editor, right at the top of the list! Just click “Install Now” – and the dialog came up asking for the FTP credentials. This time when I hit the “Proceed” button, I didn’t even get an error message, the same dialog simply came back with the password field apparently filled in.

I thought that perhaps there was a file permissions problem on the server, so I added group write to everything in and under the wp-contents directory. That had no effect.

Again I turned to Google, looking for a way to install the Classic Editor plugin from the Linux command line, since it seems WordPress is now incapable of doing any updates from its GUI. However, I haven’t found anything resembling instructions for a manual installation of Classic Editor.

I guess I’m going to have to revert my WordPress installation to the state it was in before I wasted the day today by trying to do an update. I hope there weren’t any significant database changes, because I’d like to avoid having to reset the entire database system.

I’m glad I did a backup before starting the upgrade process!

This also doesn’t address the issue that Permalinks now ignore my Custom Format selection – an irritation at best.

All I wanted to do was write a couple of new blog posts…

 

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 
Leave a Comment more...

I stumbled again, but I’m still up and running !!

Oct. 22, 2022, under bootstrap finance, bugfix, disturbing, goals, philosophy, puzzling

Last Friday, October 14, I discovered the Buy Bonds buttons on the Invest page on Space Power Now were no longer working:  Between PayPal (continuously) changing their payment system API, moving the site to a different server than it was originally built on, and a few other details, bit rot had set in, and yet another one of my robots was broken.  With everything else going on, it took until Monday evening, October 17, before I got the buttons working once more in the PayPal sandbox.  It was the next morning, October 18, before they were live once more, because I forgot to switch the operation from the sandbox to the live system when I went out to have a few moments’ relief from the stress of working night and day.   It’s things like this that lead me to make comments such as “things break, everything takes longer than it does” as I did in my Deja Vu post on the 11th.

As if that wasn’t enough, I then lost another whole day, 24 hours straddling Tuesday and Wednesday, when I was trying to get the Donate buttons on Use My Middle Name updated and something happened to the server.  I don’t know what I did to trigger it, but after I posted some changes to the site, it suddenly disappeared, and one of the other sites started showing up instead.  I thought perhaps I had done something to the configuration when I was trying to get HTTPS set up.  I went through so many iterations of trying to go back to previous configurations, tweaking the server’s files, re-establishing the certificates, etc., that I completely lost track of how many steps I had taken.  Literally nothing I did made the slightest bit of difference, I couldn’t get Use My Middle Name to be displayed when I went to its URL, in either Firefox or Chrome.  Then I discovered I could go to the site on my phone – it had a few bugs that needed to be worked out, but at least it was the right site!  Unfortunately, a phone may be useful for browsing the Web, but it’s not a useful tool for developing and debugging it, so I had to go back to my laptop – which was still not doing the right thing.  I cleared the DNS cache, restarted the browsers, rebooted the machine – nothing made a difference.  I fell over from exhaustion, and when I came back from getting some rest, the problem was still there, and I had run out of things to try.  I repeated some of the steps I’d tried before I went to sleep, and as before, nothing made a difference.

Then, all of a sudden, almost exactly 24 hours later, it suddenly started working again.  I didn’t consciously make any modifications I could associate with the change, “it” just decided to start doing the right thing once more.  The fact that I have no clue what caused the failure, or what made the failure go away, is at least as much of a concern to me as the 24 hours I lost fighting with the problem:  I can’t explain what happened, or why, so I don’t know if another similar problem is going to come along at some (random) time in the future and take another bite out of me.

Once I was able to see the site on my laptop, it was relatively easy to get the cosmetic issues resolved that I had seen on my phone.  I haven’t gotten the buttons working properly yet because I had to go work on another, more urgent fire.  I guess I’ll have to make that a priority, once I figure out how to keep the electricity on, my phone active, my Internet connection running and get the domain name registration renewed for the sites that have disappeared over the past couple of days.

Right now, things are far from working smoothly for me.  I’m seriously struggling to survive, and it makes me question my decision to not get another J.O.B.[i] in my effort to break the cycle of insanity that has defined my adult life (also mentioned in my Deja Vu post).  However, as my Focus on Your Goals / Obstacles Will Disappear T-shirt advises, I’m doing my best to keep my eyes on the prize, and not let all of the stumbling blocks trip me up.  (You can read more of the T-Shirt Philosophy behind that shirt on FredLines T-shirts – which is yet another one of the Current Projects I’m hoping to find an investor for.)

If you get a cross-site scripting warning when trying to visit the FredLines T-shirts links, allow the page load to proceed:  The issue is a consequence of the ancient and decrepit PerlShop code still running the site – I haven’t had time yet to finish recoding it in PHP with a (MySQL) database behind it – another thing on the list…

I tell people “dancing is the art of not falling down.”  So far, the artist has been successful.  I just have to focus on making it so that continues to happen!

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 
Leave a Comment more...

HumanMathTest, an open source PHP class

Sep. 24, 2018, under software dev, Web dev

HumanMathTest illustration

I’ve published my first contribution to the FOSS community on github: HumanMathTest implements a math test ‘bot deterrent PHP class for use in online forms.

This class is used to create an image to be included in an online form that shows a simple math test the visitor must solve when submitting the form. The operands and operation are stored in the $_SESSION data for the page. After submitting the form, the visitor’s answer is checked by calling the verify() method to compare their entry vs. the session data. If an error is found, the form submission should be rejected.

The demo page illustrates many of the options available, and includes a link to download the fully commented source code, including that of the demo and example pages.

 


To support my work, please buy a pre-publication copy of Race To Space. For more info about the project, see the Race To Space site, subscribe there to be kept abreast of its progress.


We are going to run out of oil. Before that happens, we MUST have a replacement source of energy and feed stock for our civilization that has become so dependent on plastic. The time to act is NOW!! Please visit SpacePowerNow.org to help build a solution.

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 
Leave a Comment more...

“Gray skies blue” and “Wrong starting point” gigs on Fiverr

Aug. 24, 2014, under Web dev

I’ve posted my first two gigs on Fiverr. For the bargain price of $5 each, you can get these services.

In my first gig, I’m offering to turn gray (or grey) skies blue:

I will take your cloudy day pictures and give them a nice cloudless blue sky in the background, lighter near the horizon as you will find in nature.

I'll turn your gray skies blue
( Click the image for a larger view )

In the second gig, I’m offering to create a “you don’t belong here” page for Web sites:

Every site has one or more directories where visitors should not go. For example, if you have a directory with nothing but images in it, or include scripts, you would not want someone rummaging around through them. Put this file in those directories, and if a browser finds their way into one, it will send them back to your home page without revealing the contents of the directory.

You will receive a ZIP file containing a stand-alone XHTML Strict compliant HTML page file with no external dependencies, fully customized for your site.

'You don't belong here' Web page screen capture
( Click the image for a larger view )

If you can think of any other services I could reasonably offer for $5 each, I’d be interested in hearing your ideas…


We are going to run out of oil. Before that happens, we MUST have a replacement source of energy and feed stock for our civilization that has become so dependent on plastic. The time to act is NOW!! Please visit SpacePowerNow.org to help build a solution.

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 
Leave a Comment more...

WholesaleNewEngland and RetailNewEngland – domains for sale

Aug. 18, 2014, under Web dev

I’ve listed WholesaleNewEngland.com for sale on Sedo in conjunction with RetailNewEngland.com. You can find the WNE offer page here and the RNE offer page here.

Note that Sedo sales are for domain names only – the domain name purchases do not include the UI technology demonstration sites at WholesaleNewEngland.com and RetailNewEngland.com. Please contact me to work out the necessary details if you would like to have me develop them into full Web sites.

Contact me directly for this or other Web development work. Depending on the project terms we agree to, I may work either at a per-hour rate or at a fixed price.

I have over 15 years of Web development experience using PHP, MySQL, JavaScript, CSS and other tools and languages. My resume can be viewed at http://wfredk.com/bio/resume.php illustrating this and the other diversified work in my background.


We are going to run out of oil. Before that happens, we MUST have a replacement source of energy and feed stock for our civilization that has become so dependent on plastic. The time to act is NOW!! Please visit SpacePowerNow.org to help build a solution.

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 
Leave a Comment more...

Building the Web, continuing work in progress

Jul. 29, 2014, under progress reports, Web dev

I spent a lot of time getting the next iteration of Space Power Now into proper working order for the Apollo 11 anniversary on July 20 & 21. The Development Plan mentions several other sites. It wouldn’t have felt like the job was finished without live links leading to pages with some level of polish.

The worst offender was the Space Questions site that still had the hosting company’s default page from when I first registered the domain. At least now it’s got a blurb saying what it’s supposed to be about, with a “keep me posted when this site is updated” form.

The Space History Newsletter has had a banner image for a few years, but it wasn’t even shown on its home page. I had to fix that, and as I started working on the site, I wondered how difficult it would be to just move the newsletter over from the L5 Development Group page – I’ve got most of the code written, after all, so it shouldn’t be too hard, right? Oh, if life were that easy! When I wrote the SHN code in 2005, I built a template system that seemed like it was going to provide the flexibility for publishing in several formats. It works well for creating the email version and updating the page on the L5 Development Group site – but getting it to work on the SHN site is going to take figuring out the template system again, at a minimum – more work than I had time for just then. The first line item for SHN on the Space Power Now Development Plan page already was “move the space history newsletter from L5Develoment.com to its own site” – so that puts it off until there’s more funding to cover the cost of the development.

Next on the first-level links list was SpaceColonists.com – another one that’s had a banner of its own for quite some time, but still had an unstyled text page for its face. I gave it a quick touch up, but since I was running out of time, it didn’t get as much attention as it probably deserves. (Such is the life of projects that are waiting for funding to arrive…)

The L5 Development Group site is a bit of a thorn in my side: I started a complete rewrite a couple of years ago, and made a lot of progress (an incomplete development version is at the beta site) but got stuck when I couldn’t get the floating accordian menu to work right in both Firefox 3.6.28 and InternetExploiter 6. (Yes, I’ve been obsessed with backwards compatibility – but that’s another story.) Since then I’ve decided the menu needs to be rewritten using a better combination of CSS and JavaScript, but I haven’t had the time and resources to get back to it. As a result, L5Development.com is stuck in the past, with a somewhat clunky interface that’s really showing its age. Instead of being the showcase that ties everything together, it’s another project simmering on a back burner, waiting for the day when there’s enough money to bring it back to the front.

The last of the direct links from the Space Power Now Development Plan on July 20th was to the L5 National Bank site. The frames-based implementation of the site had not been touched since I first put it up in 2004, but it had the site’s banner displayed, the stub menu illustrated some of the features that are planned, and it had an appropriate disclaimer to be sure visitors understand it’s not a functioning bank yet. I wasn’t happy with leaving it like that, but I was up against my deadline, and let it stay the way it was.

I got my Remember the Moon – and Mars! post published on July 21, the 45th anniversary of Neil Armstrong and Buzz Aldrin walking on the Moon, and told my world about it. I was hoping people would read it, and that at least a few would follow one of the links leading to Space Power Now, and that some would even push the buttons on the Invest page to help support its mission. That hasn’t happened yet, so I’m still scrambling to get the (back) rent paid by the end of the month – on Thursday.

Since the “High Holiday” (the anniversary of the Apollo 11 Moon landing), I’ve been working on the network of sites linked to by the Space Power Now Development Plan. “Working” is a bit of a euphemism, I guess – I’ve been programming night and day, feeling like it was almost to the exclusion of everything else. I did have to take a break on Thursday for my “one day a week” day job, spent a few hours reading in a book store cafe, took a couple of days on some eBay business, and went to visit my cat over the weekend. Other than that, I’ve been tangled in the innards of the World Wide Web, building components of my development program. Oh, yeah, I did sleep a few times – but nowhere near 8 hours a night…

The first thing I had to fix was the L5 National Bank Web site: Not only are frames-based sites considered obsolete by much of the development world, but it took a long time to load. I’d recently done a frames-to-divs upgrade on another site, so I expected it would be a fairly short project. When I was done, I’d be right back to working on getting the rent paid. It wasn’t until I’d started editing the code that I realized it was “ten years after” that I’d returned to it from when I first put the site up. It could have been a real nightmare, but I’ve always tried to follow the best practices to avoid future problems. As it turns out, the conversion did go smoothly, and if I had stopped there, I would have been doing something else for the past few days.

Right before I got to work on the L5 National Bank site, I made the mistake of clicking a link, probably when I was looking at the banners displayed on the Fred Koschara Enterprises site. The link led me to the Interplanet Dating Service site where I found it was another one with an existing banner – and a favicon – neither of which were being used on the text-only existing page. I did postpone working on it until I’d finished the L5 National Bank upgrade, but once I saw the state InterplanetDating.com was in, fixing it was an itch I found I couldn’t ignore: I’d put a list on it some time ago of the types of affiliations with the space T/E/D field one could have with a suggestion for the “not interested” category: Go use another dating service. Besides not having the banner or favicon in use, I felt that list really needed to be addressed more fully. Again, if I had stuck to that bit of work, I wouldn’t have slipped further down the rabbit hole, but no, I couldn’t leave it alone. I had put a “Your Link Here” place holder as an action item under the “not interested” entry. Shouldn’t that be a link someone with another dating site could use to request their site be added to the list? (That’s what I had in mind in the first place.) I considered putting a mailto link there, but that could lead to long conversations before enough information came across to decide whether to add a link or not. What I needed was a link to a “simple” form with fields for all of the appropriate information. OK, build the form. Now, what to do with the collected data? Just email it, and “some day” add it to a database? That sounded like another unfinished project in the making, certainly not something I need. That meant building a database table to store the entries – but I didn’t have a database set up for the site. Since I was setting up the database, why not drop in the “stock” FAQ system, that code’s mostly complete, right? – except that the publicly accessible FAQ page was way out of date, and cleaning it up turned into a bit of a project, by itself. Eventually I did get the “submit your link” database code implemented, but I still had to write the email notification part of the form handler when I crashed for five hours. After my nap, I realized that if the email notification told me there was data in the database I’d need an Admin page to do something with it (as if I needed another project to work on) – so the email processing has to forward all of the entered information as well. A number of iterations later, I’d finished testing the page, and had the email formatted so the information would be readily understandable, even if the requestor wrote a small novel in submitting their link. Nineteen hours had elapsed (including the five hour nap and “some time” dealing with email, etc.) since I started on it, but in the end the Your Link Here page was operational, and I could set the Interplanet Dating Service site (including its newly functional FAQ system) aside feeling it was “done enough for now.”

I still wasn’t done: The site blurb at the top of the L5 National Bank page says it’s (going to be) “the premier banking institution at and for the L5 Nation” – and the L5 Nation Web site was in pretty bad shape: There was a banner, but it wasn’t being used on the site, and there wasn’t a favicon for the site, which was also just a crude text implementation. The site did include some minimal text and a couple of links that I’d want to preserve in a reimplementation, but not much. I’ve got a set of prototype files that I use to bring up a new site with minimal effort – but before I used them again, I needed to add some recent changes, or I’d have to repeat fixing the copied files over and again. Once I got the prototype file set updated, though, putting a new face on L5Nation.com went pretty smoothly. I still needed to create the favicon, but there was another diversion that had to be addressed first:

The L5 Nation site is only half the picture – and it’s got a link to the other side of the coin, the L5 Colony web site. L5Colony.com was in a similar state: There was a text site with minimal text and a couple of links, a banner not being used on the site, and no favicon. By the time I started on the L5 Colony site, I was really leery about looking for other links that could lead further down the rabbit hole, so this update went pretty quickly – just a few hours later, the L5Colony.com facelift was done, except for the favicon.

Creating the favicons for the L5 Nation and L5 Colony sites was a straight-forward task. I took care of it with minimal effort, but getting Firefox to display the newly created ones was a challenge, as usual. I found a Firefox addon that claims to make it possible to delete an existing favicon association. I installed it, which required restarting Firefox – and when the browser came up, it knew about the new favicons, so I didn’t have an opportunity to test the addon I’d just installed.

While I was writing this blog entry, I had occasion to go look at the Fred Koschara Enterprises site again, and noticed one of the “extra” places a page title could be displayed had been activated recently – changing server-global files can have unexpected consequences like that. I was certain I knew what the problem was, and how to fix it. The only thing is, it turns out the FKE site is one I’d done a lot of experimenting on when I was implementing the floating accordian menu. Some of the code is pretty old, and other parts aren’t implemented quite the way the more recent work has been done. Consequently, my simple fix proved to not be, and before I was done, I’d had to touch six files, some multiple times – and it was two hours later. So much for a quick solution!

I wanted to clean up a couple of things after getting my Apollo 11 post finished. I’ve done that, and now it’s eight days of a week later – and I’m not any closer to getting the rent paid. This could be a problem. I guess I’m going to have to reach pretty deeply into my hat to find the rabbit I’m supposed to be pulling out of it. Considering how far down the rabbit hole I’ve been in the past week, it seems like there must be an answer here somewhere – all I have to do is find it…

Go visit Space Power Now – I’ve been working on the projects described in the Development Plan this past week because I believe it’s a project that is really important for the healthy future of humanity. I wouldn’t be the evangelist I am if I didn’t think so.

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 
Leave a Comment more...

Comments are fixed, RSS is verified

Jul. 22, 2014, under bugfix

It seems there was a bug in the theme I adapted that made it impossible to leave comments. (Thanks to Joe Strout for bringing this to my attention!) I fixed that problem – and discovered two of the three anti-SPAM plugins I have installed weren’t working right, either. It’s all straightened out now.

I’ve also verified that the RSS subscription process works – I’m subscribed to my own blog 😉 If you are having trouble subscribing, make sure you’ve got an RSS reader installed. The one I use is FeedReader.
FeedReader button

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 
Leave a Comment more...

My own blog theme – finally!

Jul. 18, 2014, under progress reports, Web dev

Since I first installed WordPress and set up my blog on this site, it’s been using the pixeled theme, which was OK – but it made my blog look like something attached to my site with bubble gum, duct tape and baling wire – it didn’t fit in. Among other things, while it was easy to pick a menu item from my home page to get to my blog, there wasn’t a link in the reverse direction: Once you were in my blog, there was no going back to the rest of my site unless you used your browser’s button or re-entered the Web address. I’ve never really been happy with it, but I also had the impression it would take a significant investment of time and effort to build my own WordPress theme.

I read through a couple of tutorials Monday night (July 14) and got a rather different perspective: Between having delved into the workings of WordPress when I was contracting at MIT Sloan School last year, and the presentation in the tutorials, I thought it might not be too much work, after all, to create my own theme, to make my blog fit into my site smoothly.

I started working on creating my theme about 9:30 Monday evening. By 2AM I’d made a couple of slight changes, but most of the time had gone into cleaning up the ghastly code I was trying to adapt. Who was the VisualBasic idiot that came up with the if: endif type of conditionals for PHP? Brackets are much easier to follow – and to make sure you’ve got your blocks properly closed! I’ve got WordPress 3.8.1 running here, so there’s no need for pre-2.7 code – gack!

I had to take a break from 2AM until about 3:15 to post another picture on Photo By Fred, and to validate Tuesday’s entries for the Space History newsletter. After installing my barely changed theme on my blog, it took practically two hours just to get back to where it would display again: There’s something wrong with the PHP installation at eApps and syntax errors in nested function calls aren’t being recorded in the error_log, so I had to trace through WordPress to find out where there was an extraneous close-bracket in one of the theme modules where I’d been optimizing the code, and a missing close bracket in another module where I’d missed a VisualBasic PHP block being closed.

Once I got the theme to display, I started modifying it, an iterative process that kept going and going and …. Eventually it converged on a solution, and before 11:30 Tuesday morning I’d gotten to where I was happy with the way it looks: My blog now looks like an integral part of the site, and I’m pretty comfortable with the color scheme and layout (at least for the moment).

There are still HTML validation errors because the AddThis plugin uses the same ID for every element on the page and doesn’t escape ampersands the way it’s supposed to, but those problems are common enough that most browsers handle them without taking particular notice. I should probably submit bug reports to the plugin’s developers. I’ll get to it one of these days when I’ve got nothing to do and a staff to do it with…

In the mean time, my blog has a new look and feel, and I’m happy with the way it works – so the roughly 12.75 hours of work I put into it paid off nicely.

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 
Leave a Comment more...

Site Features