Showing posts with label hacking. Show all posts
Showing posts with label hacking. Show all posts

Tuesday, May 26, 2020

My NFL Score prediction app: Year 2 on the Google Play Store

I just updated my NFL Score Prediction game app. We are now entering Year #2 on the Google Play Store. You can download the application here (Android users, Google Play Store).
 
If you want to use the app, but do not have an Android phone, visit the direct URL: NFLScoreApp.com

The annual maintenance took me about 3-4 hours of work. This involved inputting the 2020 NFL schedule and resetting various internal knobs and levers. Not bad from a time standpoint... Although I will admit, I'm pretty lazy and I thought about just throwing my hands up and not renewing my server space about an hour in.

https://play.google.com/store/apps/details?id=xyz.appmaker.nbwebh&hl=en_US

It was pretty nice out today, so I missed out on the great weather but instead was stuck inside staring at the computer screen, which is one reason I left the tech industry to begin with, but whatever.

The application costs $20 a year for the server space and it cost me a one-time fee of $25 to become a Google Developer, so from a money standpoint, it's not a huge waste of money. It amounts to a couple of magazine subscriptions, more or less.

https://play.google.com/store/apps/details?id=xyz.appmaker.nbwebh&hl=en_US

This year (as opposed to 2019) I opened up the free app download to every single country that's available in the Google Play store. Last year I only had the application available to the U.S.A. and the United Kingdom.

Some improvements I made for the 2020 NFL Schedule: There is now a "My Stats" page that shows some bar graphs about your level of participation and gives your definitive ranking.

I redesigned the navigation to simplify it.

I limited the Leaderboard to the Top 25 users only.

I'm not sure how long I will continue to keep this app active, but I'm satisfied with how it's working as of now. I still believe in my concept, but I'd need major help to bring it to the next level.

If you are interested in working on or buying this application, i.e. purchasing the source code outright, shoot me an email. My address is listed on my "About Me" page on blogger. - Mike

Monday, November 25, 2019

Smart phone detox: John's Phone (Business version) review

I used this phone for about two years, and it solved a major issue for me. It was simple. I used to like to drink on the weekends, and this led to the occasional drunk text to a former female friend. She didn't mind the texting when we were going steady, but when I couldn't seem to stop even years after she had unceremoniously dumped me, she laid down the law. "Stop, or else."


I knew I liked to drink every Saturday at a local bar. I'd walk there at 9:45 am and the side door would open at 10:00 to let in a crew of about five or six of us to watch English Premier League games.

Now, at this point (I was 28 years old) I had stopped drinking on weekends and at night, I essentially only drank on Saturdays, and during the English Premier League season. Still, I needed to avoid the "or else." John's Phone solved this problem for me.

The phone does not handle SMS. I believe any incoming SMS may be stored on the SIM latently, but outgoing texts are more or less impossible without the help of say, a computer and some serious hacking skills. The phone book is hand-written just like the old days when men carried a "little black book" of numbers they might have collected from strange women.


This phone's speaker is essentially a copper penny wired up to vibrate with low-fidelity. What's sort of amusing is the headset, which I did use somewhat often. I used to call into the caller-line for the Howard Stern show every morning. I'd often be put on hold, for the full duration of the show. You listen in as you wait to potentially get on the air, and I'd do this, through my John's Phone while I walked around the city by myself.

I'd probably still be using this phone, but AT&T shut down 3G service entirely and I had too much into my number to switch to T-Mobile in order to just preserve the usage of this device. In order to solve my other issue? I quit drinking entirely. No more issues, but hey, I'm still waiting for the John's Phone 4G.

Sunday, November 24, 2019

I built my dream app, and this is what happened

It took me two years of work to create my dream app. It's on the Google Play Store here, for now at least. The vision was clear, as were the motivations. To create an app that allows a userbase to predict the final score of a sports game, on an active "leaderboard" type of "Buddy List." This way, you could interact with friends in a light-hearted way in terms of who really knows what they're talking about before Sunday's Bears-Packers game.

 

I completed all work by myself, without help from anyone else. The first step was to create an LLC, just incase I were to receive investor interest. Then I weighed options to host the web application.

Over the two years it took to complete the app, I used Bluehost and BuyVM. Bluehost is helpful for a beginner, because they lay out the backend architecture of your site with a friendly GUI and set of menus. BuyVM requires more know-how and I wouldn't have been able to complete the setup without the knowledge I gained over the course of my tenure as a sys admin/ web app dev at a University.

In terms of the actual code writing, the most difficult aspects were the front-end interface and UX, the Leaderboard, the login mechanisms, and the overall design. I went through several iterations of the forward-facing markup before I settled on the W3.css I used for the PWA version of the app.

The backend scripting was all just written freestyle. The Leaderboard was the most challenging aspect and I actually legitimately failed trying to write it once. After a took a couple of months off I returned with a clearer vision for the Leaderboard and was able to complete it.

The app is heavily automated and updates on a single script execution that I do manually. The app would be fully automated if I were to pay for a service to put the final scores into a text file for me, but for now I do it myself. Once the scores are in the text file I just execute a single script and that updates the Leaderboard. As for building the app, it's also just a single script that completes that based off of the NFL Schedule as stored in a CSV.


I guess this puts a nail in the coffin into any conversations about, "I will create an app and become a millionaire." Hardly. I lost money making this. This should also put nails into the coffin on "portability." I wrote this app and ported it everywhere, from Ubuntu to Mac to Windows 10 to CentOS, building on production servers, and local machines regularly.

The two years I spent building this free application wasn't a total waste of my time. Over the course of creating the pages I studied Linear Algebra by myself and came to understand n-dimensionality in a proper fashion. I used a book I'd highly recommend by I.M. Gel'fand called "Lectures on Linear Algebra" and found it was quite useful and relevant to the idea of manipulating a creative idea in hyperspace. Had I not challenged myself, I would be less enriched.

Monday, September 7, 2015

Tutorial: G-chatting in the Terminal

This is a Mac OSX tutorial to install Gchat in your Bourne again Shell with bitlbee+irssi via MacPorts

  
Step 1. Install MacPorts, which is a package manager which allows you to easily install utilities.
In this instance, we'll use MacPorts to install bitlbee and irssi, see Steps 2 and 3.
Go to The MacPorts website and click on "Installing MacPorts"
This tutorial is for Mac OSX, specifically, I am running Mavericks, which is OS 10.9.
During the MacPorts installation they may ask you to also install Xcode, but I've skipped this in the past with no real consequences.

Step 2. Install irssi, which is a chat client that supports IRC protocol.
To install it... open up a shell and run $ sudo port install irssi
Along the way, it asked me to get jiggy with something called javac, I obliged.

Step 3. Install bitlbee, which is an IRC client that interfaces with irssi and conveniently lets you use multiple IM services at once.
So you can login in once and have your MSN, AIM and gchat all ready to go.
To install it... open up a shell and run $ sudo port install bitlbee

Step 4. run $ bitlbee
Here was my result:
$ bitlbee
Warning: Unable to read configuration file `/opt/local/etc/bitlbee/bitlbee.conf'.
:localhost.localdomain NOTICE AUTH :BitlBee-IRCd initialized, please go on
:localhost.localdomain NOTICE AUTH :If you read this, you most likely accidentally started BitlBee in inetd mode on the command line. You probably want to run it in (Fork)Daemon mode. See doc/README for more information.
ERROR :Closing link: Ping Timeout: 180 seconds

so then I ran...
$ cd /opt/local/etc/bitlbee
$ sudo mv bitlbee.conf.sample bitlbee.conf
$ sudo emacs bitlbee.conf
...Then I went in and changed the line
#RunMode = Inetd ...to
RunMode = ForkDaemon
now I rerun
$ bitlbee
$
success!

Step 5.$ irssi
Now once inside the irssi interface, type in "/connect localhost" this will connect you to the local bitlbee server.
Now type in Ctrl+p to shift over to the bitlbee-connected window.
Now you can just type in "help" without the leading forward slash, to read out the basics of bitlbee.
You will need to synchronize your IM information into bitlbee so it will work, that is done like so...

Step 6.
Add your gchat account with "account add jabber you@gmail.com" Then type in /OPER and hit enter.
It will prompt you to add a password to you account, type it in and hit enter.
You can type in "ac l" at any point to list the accounts and their statuses in your session.
To turn on your gchat, type in "ac 0 on". Each account corresponds to a number, in this case, starting at 0 your gchat account will be the first account added so it should be "ac 0 on."
Type in "blist all" to see your buddy list.
For good measure, let's also add an AOL Instant Messenger account...
"account add oscar Your_sn" should work, then simlarly, use /OPER to add the password and then "ac 1 on" to log in.

Step 7. Register your settings so you won't have to do all this everytime you log in.
Type in "register" then add your password with /OPER
At this point I got an error message of
03:06 <@root> Error while opening configuration file.
03:06 <@root> otr save: /opt/local/var/lib/bitlbee/username.otr_fprints: Permission denied
03:06 <@root> Error registering
...So I had to run...
sudo touch /opt/local/var/lib/bitlbee/username.otr_fprints
cd /opt/local/var/lib
sudo chown -R username bitlbee/
sudo chgrp -R staff bitlbee/
sudo chmod -R 775 bitlbee/
That just search did it... then once I ran register and then entered my password via /OPER prompt I got back...
03:15 <@root> Account successfully created

Step 8. Testing it out
To exit bitlbee, type in "/exit" then back at your new shell type in "killall bitlbee" This completely ends your session.
Now let's test out what we've done...
Go to a normal shell and follow this flow...
$ bitlbee
$ irssi
/connect localhost
identify your_register_password (i.e. this is what you typed in at the /OPER prompt after you typed in "register" in Step 7.
blist all

That should search wrap it up. As far as passwords and plaintext, you can google oauth and check that out and there are some other settings in certain config files that are worth checking out and understanding, you can find info online. There are other commands you'll see in there, but that's generally how it's done. Oh yeah and to chat with a buddy you type something like, hmm... /msg smarterchild hello and then Ctrl+p your way over to the chat.

Good luck!

How I wrote/recorded my album "Disposable" (2025)

Click to listen on YouTube, out now!! This blog post will attempt to fully encapsulate as much of the writing/recording/mixing process of th...