Blog: [Blog Home] [Archives] [Search] [Contact]

Posts Tagged ‘Python’

Ad Blockers and My Art Title Generator

Saturday, July 15th, 2017

Automatic Art Title Generator

A few days ago I added an Art Title Generator to my web site. I did so as a consequence of having writer’s block on coming up with a title for a generative artwork I had created at the beginning of the week. I wrote the Python program for the generator using word dictionaries I had created for a Haiku generator I had written using Java. I added it to my web site and promoted it via some of my social media accounts.

I was surprised when I heard from a couple of people who said that it was not working. Surprised because this is a Python program running on the server and delivering to the user a complete web page with the generated artwork title clearly visible. I couldn’t imagine why these folks were not seeing the title – but were seeing the rest of the generated page.

Impossible.

I went to my son’s computer and used his browser (Chrome) to view the page. And what I saw was no title. It just wasn’t there – which was impossible. I did a view source to take a look at the code that was received by his browser – and the title was there – right where it was supposed to be. So why wasn’t it visible?

And why did the art title display in my Chrome browser but not my son’s? Then it occurred to me. I asked my son if he was using an ad blocker. He said yes. Looking at my CSS, I had used a CSS class that I had named "contentad" and used it to display quotations about art at the bottom of quite a few of my web pages. The only explanation for the invisibility of the generated art titles was that an ad blocker was looking at the name of the CSS class and saying to itself "oh, this is an advertisement so I’ll hide it from the viewer."

To test my theory, I renamed the CSS class and then updated the 102 html files on my site that used it – as well as the Python program. I went back to my son’s browser and voila – there was the art title in full view – no longer hidden by the ad blocker plugin.

To read more about my art title generator and generate a title for yourself, you can proceed to the introductory page Automatic Art Title Generator. Or if you are the impatient sort and want to see an art title right now, load the Art Title Generator.

Here’s hoping that you enjoy the algorithmically generated artwork titles.

Bookmark it:  Stumble It  Bookmark this on Delicious  Digg This  Technorati  Reddit Tweet It


My Social Media Holiday

Friday, November 4th, 2016

Digital Art Prints website screenshot
Coming Soon
Digital Art Prints website screenshot

My use of social media has always been erratic because it has never been a high priority for me. That does not mean that I don’t have accounts on many platforms – I do. A number of the accounts I set up are simply for learning about that platform’s features and usability – an area of professional interest for me.

To improve my knowledge of social media, I’ve read articles, books, and taken online classes. I’ve even taught classes for artists and photographs on how to use social media. But knowing and doing are two separate things. Let me provide an example. I attended an online seminar on how to be successful at Twitter. The key take away from this class, other than the completely generic advice to post great tweets was that the teacher spent three hours a day every day engaging on Twitter. For me, that is far too high a price to pay just to be popular on Twitter. Personally, I don’t spend three hours a year using Twitter.

My periods of absence from social media are driven by two key factors. First is the availability of time. Second is the variety of platforms I have accounts on. The more accounts you have, the less time you can devote to any one of them and skipping out on one makes it easier to skip out on the others.

Social Media Platforms

The main social media platforms I have accounts on and on which I am actually at all active are:

I have left off this list the many niche social networks I am on as well as sharing platforms like Tumblr and FLickr. And of course there are the more-than-a-handful of social media platforms that have gone out of business.

It has now been several months since I have engaged on any of my social media accounts. What happened? The most striking of my absences is from Linkedin – which was in large part driven by Linkedin’s own actions – two in particular. First they made a number of platform changes that were particularly harmful to members who managed groups. In trying to make the platform more mobile-friendly, Linkedin eliminated a number of usability features. Fortunately there was a strong user backlash and Linkedin eventually restored many of those features. The second was driven by the fact that I stopped receiving group updates from Linkedin. I reported the problem to Linkedin and their response was to basically say "yeah, we made some changes to the platform and a small number of our users were adversely impacted. But because it’s a small number, it’s not a priority for us to fix it." What is small for them was critical for me. That sort of customer service led me from using Linkedin on a daily basis to being only an occasional visitor and that in light of the fact that Linkedin had a couple years ago wanted me to promote the fact that I was in the top one percent of profiles on Linkedin!

So what have I done with the time I gained by ignoring my social media accounts?

Reading is FUNdamental

Two principle areas occupied my reading time. One area was for pleasure and knowledge. The other area was for professional development. Yes, its true, following are books I read for pleasure and knowledge:

  • Business
    • Making It In America – A 12 Point Plan for Growing Your Business and Keeping Jobs At Home by John Bassett and Ellis Henican
    • Good Profit: How Creating Value for Others Built One of the World’s Most Successful Companies by Charles G. Koch
  • Space Development
    • The Business of Space: The Next Frontier of International Competition by L Brennan et al
    • Realizing Tomorrow: The Path to Private Spaceflight by Chris Dubbs
    • Crowded Orbits: Conflict and Cooperation in Space by James Clay Moltz
    • Law and Regulation of Commercial Mining of Minerals in Outer Space by Ricky Lee
    • The Twenty-First Century Commercial Space Imperative – SpringerBriefs in Space Development by Anthony Young

The books I read for professional development dealt with computing: specifically web design and programming.

Web Design

Earlier this year I decided to dig into learning the Bootstrap framework for responsive web design. I had already converted by own sites to mobile-friendly designs using the general principles of responsive web design – but I wanted to learn Bootstrap. My first tangible product was to convert the
Chicago Society for Space Studies website to a mobile friendly design using Bootstrap. Having learned Bootstrap to an acceptable level of proficiency, I was able to design and code and implement the new site in a single weekend.

I am still learning Bootstrap and am close to releasing a new web site – Digital Art Prints which will feature some of the artwork and photography that I offer for sale on a few of the POD (Print On Demand) services I have accounts with.

Python Programming

For some time I’ve been wanting to learn the Python programming language in order to create scripts for GIMP and possibly Blender. What finally pushed me over the edge was the decision to create a new web site (Digital Art Prints) and to use a Python program to construct the web pages from a database I maintain for all my art and photography. My first actual productive use of Python was to create an auto-mailer program for email distribution for Chicago Society for Space Studies. I also have a couple of other projects in mind for interactive website queries.

Presentations

I give a number of talks over the course of a year. These talks tend to fall into four distinct categories. As a NASA JPL Solar System Ambassador, I give talks about planetary science and planetary exploration – the most recent of which was about the New Horizons mission to Pluto. As President of the Chicago Society for Space Studies, I give talks that focus on space business, space development, and space policy. For more about this, see my Chicago Society for Space Studies Speakers Bureau page. As an artist, I give talks on a number of digital art subjects and on various aspects of web use for art marketing. You can see a full list on my lectures and presentations page.

My last presentation was last Saturday (for details see Space Art Program At Elmhurst Art Museum). My next presentation will be this coming Monday for the Nineteenth Century Club and Charitable Association on the topic Globalization of the Solar System – a presentation that asks the question can the economic and technological principles that make globalization possible here on Earth work for a human civilization that is spread across the solar system?

I also completed work on a new presentation titled The Impact of Space Policy on Space Settlement and am working on a presentation about the history of lunar art and another on Earth imaging and remote sensing.

Digital Art Prints website

As I mentioned, I’ve been working on a new web site – digital-art-prints.com where I will have a portfolio of art and photography that I have made available on certain POD (Print On Demand) sites, like Redbubble and Crated for example. The design of the site, which is built using the Bootstrap framework, is complete. I’m not using a CMS (WordPress for example) for the site but am instead working on a Python program that will take the information I have for each artwork and use that information to automatically build the site’s web pages and image gallery. This will allow me to swap out web page designs very easily. I have also written a program using the Processing programming language to automatically generate all the images that the web site will need. Stay tuned as I hope to have the site up before the end of November – assuming no more computer problems.

And What About Social Media?

I certainly expect to return soon to the world of social media but probably not until after I have rolled out my Digital Art Prints website, which is my number two priority at the moment. My number one priority is putting together the next issue of Spacewatch – the quarterly e-newsletter of the Chicago Society for Space Studies.

In the event that I don’t have any more blog posts before Thanksgiving, here is wishing everyone a happy and hearty Thanksgiving.

Bookmark it:  Stumble It  Bookmark this on Delicious  Digg This  Technorati  Reddit Tweet It