Showing posts with label coding. Show all posts
Showing posts with label coding. Show all posts

12 August 2014

Parsing a Feed with PHP


Maybe this isn't such a big deal for many of you out there, but to me it's something of an accomplishment. Had I known it would be this easy, I would have explored this option way before now.

Upon learning PHP, I had to dig in to find out what all I could uncover with this new language. For the past several years, I've migrated toward the web side from mainframe development. Get it? It's like Internet double speak combining website with a reference to the dark side. Still don't get it? Okay, never mind.



So anyway, if you are learning PHP and want to see your code rendered, try out XAMPP. You can run it on your PC's localhost. This will allow you to run your PHP scripts without having to upload to a server on a hosted site.

Includes: Apache 2.4.9, MySQL 5.6.16, PHP 5.5.11, phpMyAdmin 4.1.12, OpenSSL 1.0.1, XAMPP Control Panel 3.2.1, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 7.0.42 (with mod_proxy_ajp as connector), Strawberry Perl 7.0.42 Portable.

To all of my techie readers out there, try PHP to render RSS feeds from all your "fed" sites like Youtube, BBC News, Facebook, and your Blog. Of course, I haven't figured out the blog thingy just yet. I'm starting on a new adventure.

The instructions can get a bit hairy, but don't worry. If you perform all the steps exactly as written, it will all work out for you. I promise. I just ran some PHP code to grab and embed my last three uploaded videos from Youtube. It's all rendered in HTML at the end of the script with one simple line of code "echo $html;"

Published material has never been so easy to aggregate. Now that's progress! Don't you agree?




Smiley faceIf you enjoyed this article and would like to receive future articles in your inbox --- Subscribe to our free newsletter

21 May 2014

New Mobile App Coming Soon


I have been fortunate to have had opportunities to learn new things and this week hasn't been much different, only I've had my head in the clouds (literally, so to speak) learning how to build mobile apps for Android, iPhone, and iPad devices. I've had a heck of a time learning, but it's coming along. The more I learn, the more I realize my potential for such good AND bad.

With learning comes mistakes, and boy have they been painful. Today I discovered that I caused another developer a slap on the hand for infringement violations. It was all innocent, I promise!

Anyway, it's been cleared up and I get to keep my developer accounts with Google and Apple. What a scare! I know this seems a bit over-dramatic, but hey, this is a blog, not a news site. Stay tuned here though. My subscribers and readers will be the first to download and test out my new app, so stick around!

What will you be able to do with my new app?


  1. Get a quote for web design, photography, content management, and editorial services.
  2. View my extensive portfolio in one place
  3. Submit guest posts and ideas for my blog
  4. Request a review of your book
  5. Purchase my books (short stories for now, I'm working on it!)


Do you think there is a demand for this type of mobile functionality?

Until next time, don't go causing people to get in trouble for intellectual property rights violations (unintentional), unless of course you're just learning the ropes. Then you get a couple of screw ups before you'll be held accountable I'm sure. And as my friend Randi always says, "Stay classy, Blog-o-sphere!"

Okay, that wasn't infringement. I totally gave her credit.





Smiley faceIf you enjoyed this article and would like to receive future articles in your inbox --- Subscribe to our free newsletter

28 April 2014

Word of the Day - Technology

It should be no surprise when I tell you I am a software developer. My background is pretty diverse in the field of technology, so I'm sharing with you some reactions to different scenarios in the IT world. Not every technologist will have similar reactions, but I'm willing to bet that the majority of us do.

tech·nol·o·gy  [tek-nol-uh-jee]
noun

1.
the branch of knowledge that deals with the creation and use of technical means and their interrelation with life, society, and the environment, drawing upon such subjects as industrial arts, engineering, applied science, and pure science.



I was recently asked to provide a simple email confirmation for those members registering for an event. Knowing this to be a task I could complete in less than 30 minutes: creation, testing, and implementation, I looked forward to the work. However, after using the Lotus Notes Designer Client on my PC and having experienced several instances of computer seizures and restarts, I was left completely spent and frustrated.




So the years pass. I'm not just a worker, you know. I've applied for promotions into management many times. Yet, many times those opportunities just were not for me or it wasn't my time. No matter which jobs I applied for in hopes to climb out of the restrictive claws of technology in order to make a difference, I have been met with disappointment. Either someone else got the job or it mysteriously disappeared.




Technology is forever changing, so if you're not changing with it, it's easy to get left behind, especially if you keep doing the same job with no opportunity for advancement. Because I refuse to be that person, I learn as much about technology as I can.

As a matter of fact, much of my time is spent learning new technology, new languages, and new development environments. I may not be in a position to use what I've learned at the moment, but it feels good knowing how things work, all the while keeping the current processes from falling apart.

I have a B.S. in Computer Science and 16 years experience and the hardest part of my job is trying to figure out how to answer this basic question, "Can you just tell me how to do it and I'll do it myself?"




Listen, if technology were that simple, everybody would be a developer. Many years ago, you could get away with just showing someone how to operate a tape drive in one of those clunky mainframes. Clearing the telephone queue when it bottlenecks? No problem! Push this button.

But see, technology looks simple today because so much of the complexities are hidden from the average user. They don't see the algorithms, the code, or the architecture involved in the creation and maintenance of a variety of systems. Everything should work just like the stuff on your iPhone, right?




So, whenever a mature IT crowd, and I use that term respectfully because we have a ton of experience and knowledge in the progression of this thing called infrastructure, whenever they get a new boss fresh out of college and he wants to switch to .NET, it's like...




In all honesty, if I didn't love my job and the people I work with, I wouldn't be able to provide this information so freely and without prejudice. If you can relate, don't be afraid to make it known how you feel. Technology isn't just frustration for the average person. I feel it too! We are all making it through life with constant change, whether it's technology or something else. How you deal with it along the way can make you a better person. So, as technology improves, so do you!



Smiley faceIf you enjoyed this article and would like to receive future articles in your inbox --- Subscribe to our free newsletter

05 January 2014

Smart Web Development - Bootstrap! I Love You

Well, Tim has flown off from Atlanta and is on his way to Los Angeles where he will spend the evening before heading out to Pasadena so he can watch the Seminoles kick some War Eagle ass. Haha! That's right, he's on his way to the BCS Championship game. Have fun dear! And please, don't let any of the guys use the dance pole on the party bus, only the ladies. Thanks.

As for me, I've been spending my spare time learning as much as I can about web development, the new stuff. Sure, I've been coding HTML, CSS, and JavaScript for some time now, but I've grown tired and weary with all the advances in technology, including new browsers popping up, and mobile devices, etc. Cross browser compatibility issues spring up everywhere and it's cumbersome. But, I find that the more I learn, the more I find better tools and concepts that I didn't realize existed.




That's right, I discovered a new love and its name is Bootstrap, from the developers at Twitter. It is an extremely smart way to develop your web apps being the core package is designed so that its use of new features in HTML5 and CSS3 already include the code needed for cross-browser compatibility issues, so you don't have to worry about forgetting to include them in your code or spend hours tracking down the bugs.

jQuery and JSON are the next two groups on my "to study" list. I've completed PHP and a course in responsive web design, which was pretty amazing. It's easier than ever for me to get up and started with this new knowledge. Tim always called me a professional student. I guess he is right. I can't NOT learn. It's in my blood.

Until next time, I'm making progress with my writing, but for now I've gone from fiction writing to writing code again. *sigh*

I'll get that chapter 14 started soon! Here's to another cup of Hazelnut Cream. So, what have you been working on or studying lately? Share!  {^_^}






Smiley faceIf you enjoyed this article and would like to receive future articles in your inbox --- Subscribe to our free newsletter

02 December 2013

Is Your Search Box Gadget Broken?

Many Blogger authors are experiencing issues with the Blogger Search Box Gadget. If you are using this gadget on your site, you may have similar issues when searching keywords you know exist on your site. If you receive an "x" at the top right when you should be receiving search results, then you are experiencing what other Blogger authors are experiencing.

Don't fret, and it's useless to post issues in the Google forums at this time, as I'm sure they are very busy. Log into your Blogger account and navigate to your layout. Yours may have a different layout, but either way, hopefully you have the option to "Add a Gadget".




Click on it and select HTML/JavaScript.




You are ready to customize your own HTML Search Box! Select and copy the following code and be ready to paste it into your new gadget (in case Blogger inserts extra coding, the code in the picture below is all that you should need! Type it in):




In the Title area type "Search this blog" and if you want to change "Go!" in the code to "Onward!" or whatever suits your fancy pants, then do it. Just make sure it stays within the double quotes. Now, paste the code into the content area.




Make sure you replace "yourblog" with the actual name of your blog, and don't forget to save the gadget.

I know it can be frustrating when a huge organization such as Google does not respond to your inquiries. I'm sure they are working to find a universal fix so that all of the Blogger templates will be satisfied. Just know that these simple HTML elements have been around forever and they still work!



Smiley faceIf you enjoyed this article and would like to receive future articles in your inbox --- Subscribe to our free newsletter

05 April 2013

Q is for Quality Assurance


We all make mistakes, right? I don't just write fiction. I write computer code, where many mistakes can and will occur. These are 5 things I've done in my programming career, none of which I'm proud or ashamed. However, they will remain memorable until the day I rest in peace. I will not do these again and you shouldn't either.


1. I will never leave debug messages in my programs.

When I was in college, I'd left a debug message for myself in the code, completely forgetting it was there. I turned in my project without commenting it out. The reason I'd forgotten about it was because the condition for which I'd created the message never occurred during testing, and therefore, it never popped up to remind me of its existence.

The error message was:




Apparently, my instructor met the condition for which I'd intended to test. He docked me a letter grade.


2. I'll never try to implement bright ideas into my code when I'm drinking and have a deadline the next morning.



Yes, I did this, without a backup copy of my source. For some reason, when you've been drinking, you think you're smarter than you really are. So the next time all these ideas that you come up with for extra credit start poking you in the brain...STOP. Don't do it. The program meets specifications and it's due in the morning. Just let it be.

I couldn't do that though. The narcissist in me drowned out my inner critic, "Come on! You know it would be cool,” she said. “Ten lines of code...tops."

In the morning, I didn't remember what I was thinking or what I’d changed. My program wouldn't run, and I had 30 minutes to get to class.


3. I will never again breach security in order to play an online, text based role-playing game.

I got busted for playing +Threshold RPG, an online text based role-playing game while at work. I had connected to the AS400 firewall with the knowledge that it came pre-packaged (circa 1999) with a user profile: anonymous, and a default password: anonymous. The system administrator of the AS400 never changed this default.

But, Diane, how did you know that? 













I didn't. I just tried and it worked! After I logged into the firewall, I was able to telnet to the game server and play. Little did I know that port 23 access, along with my IP address, were being logged and because of the constant back and forth from the game server, the firewall log would fill up and crash several times during the day, alerting the system administrator, who remained puzzled for about two weeks.


4. I will not hard code place holders.

I have a bad habit of leaving in hard coded place holders like my own name and address so that I can see the format that a user would see. After testing and before implementation, I would write code to retrieve the web user's name and address for display instead of my information.

Once implemented, I was called back into the office, after hours, to fix a problem. Everyone logging in to see their information received a message of "Welcome, Diane Carlisle!" Yep, I'd forgotten to remove my hard coded personal information.

5. I will not create programs which change security settings on any system.


I created a CL program to include changing the job user's profile to have all object authority in order to perform a task. After the task was performed, the program would do a cleanup routine and put the user profile authority back to its original setting.

A week later when reviewing the dump queue (where error reports go when a program crashes), I realized that my program had error-ed out after the all object authority was granted to the user, thereby never completing the cleanup routine. When I checked the profile of said user, sure enough, they had all object authority. I had to contact the administrator, profusely apologize,  and request he fix the user's profile before they accidentally delete all objects on the system.

I hope you've enjoyed the letter Q. If you did, hop over to my other A-Z entries.


Visit my Alphabet Links:
A - B - C - D - E - F - G - H - I - J - K - L - M - N - P - Q - R - S - T - U - V - W - X - Y - Z


Contact Diane

Name

Email *

Message *