Tuesday, January 26, 2016

Where to find account number of my AT&T prepaid gophone



If you have AT&T prepaid Go Phone and want to transfer your number out of your gophone to another provider, like for example if you want to transfer your gophone number to Google Voice you will need the AT&T account number.

But you will not find your account number on the att.com website, not even when you login to att.com/mygophone with your phone number and pin.

It appears like AT&T does not want to disclose this account number even to the logged-in customers of gophone.

You can get this account number by calling 611 from your gophone and talking to representative (you select "More options" and then press 0 for operator. Operator will give this account number to you, just ask for it and insist that you need it.)

But there is a way to get your account number without having to call and deal with someone at at&t. Your at&t  prepaid gophone account number is hidden in the html source code of the "refill" page

Here are the steps. In this example I was using chrome browser on a MAC, but you can use another browser and can be on Windows. It helps if you already know how to view html source code of web pages.


  1. Login to att.com/mygophone with your phone number and pin
  2. Click on “Refill” link or icon.
  3. When on the refill page view html source code on the page using browser “view source” option. Att web page has javascript that disables the right-click, so you cannot just right-click to view source.
  4. If you using mac you must use CMD + ALT + J in chrome browser to open developer tools. On Windows use CMD+SHIFT+C (I think)
  5. Search html source code for your phone number using area code and number without any dashes. You will find block of html like this:
In this example we assume your phone is 5405556224
And your account is found in the same block of code in the data-user-account-billing-account property and also in data-user-account-ctn property. In this example it’s 494106666666



<div id="edmSession" data-user-login-id="5405556224" data-user-account-billing-account="494106666666" data-user-account-ctn="494106666666" data-user-email="" data-user-zip="" data-user-account-billing-state="" data-user-account-billing-city="" data-user-account-billing-zip="" data-user-login-type="CTN" data-user-account-liability-type="CONS" data-user-account-billing-system="T" data-description="Common session data" ></div>



Did this help you? 

Saturday, November 9, 2013

My answer to "Mongo DB question in Config"

This is my answer to a Question on Support site for LampCMS project


OK, the replica set is a bit tricky, but not all that difficult.
First rule to remember - do not point to server by IP address - always use the domain name of member of replica set. If you don't have your own DNS server then just add the name to ip mappings to your hosts file

Then use this type of mongo connection string in your !config.ini

mongodb://rs1.example.com:27017,rs2.example.com:27017/?replicaSet=myReplSetName

I took this example from php.net documentation here:
http://php.net/manual/en/mongo.connecting.rs.php

There are other ways to connect to replica set but for Lampcms the easiest way it to just have this connection string in !config.ini in MONGO section as value of 'server'

Again - its very important to use domain names and not ip addresses. We learned this the hard way when we first started using mongo replica set at our project at my job. Yes, I work with mongo replicate set from php and node.js every day. I am not a server admin or DBA so I don't really touch the servers. I am a developer and write programs that use MongoDB in production at a pretty large scale. We use sharding and replica sets.

My answer to "WAMP + Mongo"

This is my answer to a Question on Support site for LampCMS project


You need to download the mongo extension .dll file for windows
Here are basic instructions:
http://www.php.net/manual/en/mongo.installation.php#mongo.installation.windows

Another source for these dll files is here
https://github.com/mongodb/mongo-php-driver/downloads

Make sure you download the right version - 32bit or 64bit version depending on your system. If one does not work try another one.

It took me awhile to find the driver that actually worked on my PC and now I don't even remember which one I ended up using. The point is - you may try several different .dll files

Just try one, restart your Apache and launch the file that only has phpinfo(); like it it
Look for the output of that file in browser to see if Mongo section is present. If not then the dll file did not work, try another one, restart Apache and repeat.

Wednesday, November 6, 2013

My answer to "WAMP + Mongo"

This is my answer to a Question on Support site for LampCMS project


I have wamp + mongo running on my local PC. That's basically my development environment.
You install them separately.
Download Mongodb for Windows, install it, then start it from command line by just launching the mongod from bin directory from the command prompt. Do not just click on mongod file - you must instead open command prompt, cd into the directory where mongod file is located and start it by just typing mongod
Do not close the prompt - just keep it opened for as long as you want your mongo server to run.

You may need to pre-create the c:/data/db directory on your computer. That's where mongo stores database files by default.

Read instructions just to be sure:
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/


Then configure your WAMP server using sample config file in Lampcms distribution. In Lampcms in config/!config.ini edit the 'server' setting in MONGO section, like this:
server = "mongodb://127.0.0.1:27017"

That should work for your local mongodb server.

Tuesday, November 5, 2013

My answer to "Mongo DB question in Config"

This is my answer to a Question on Support site for LampCMS project


I will look into that. What I can suggest is to add the 3rd server to your replica set.
From what I understand about mongo replication is that the members of replicate set vote to elect the new primary when old primary goes down.

Read this documentation.

http://docs.mongodb.org/manual/core/replica-set-elections/

From the documentation:

"If you have a three-member replica set, where every member has one vote, the set can elect a primary as long as two members can connect to each other. If two members are unavailable, the remaining member remains a secondary because it cannot connect to a majority of the set's members. If the remaining member is a primary and two members become unavailable, the primary steps down and becomes and secondary."



Friday, October 25, 2013

My answer to "SMF Import"

This is my answer to a Question on Support site for LampCMS project


What do you mean by mergin profile with facebook/twitter? Lampcms already has option for users to connect their FB and Twitter accounts so Questions can be posted to FB/Twitter at the same time you ask a question.

Also links to user's Facebook, Twitter, LinkedIn, Blogger are added to user's profile when they connect their social accounts to Lampcms account.

And of cause once connected you can login with Twitter/FB, Google, LinkedIn login.

Friday, September 27, 2013

My answer to "How to Start the Forum ?"

This is my answer to a Question on Support site for LampCMS project


This means your php installation does not have the 'gd' extension. Do you know how to install or enable the 'gd' extension? It's used for creating the "captcha" image which is used on the registration page.

Friday, September 20, 2013

My answer to "Search Doesn't appear to be searching Titles"

This is my answer to a Question on Support site for LampCMS project


Fist about title search: try searching "searching titles" on this site. You will find this question, confirming that searching by title works.

Second: comments are not added to search index, so searching in comment does not work. This can be changed but will require tweaking indexer and search.

At this time search is powered by MySQL Full text search feature. One thing about MySQL full text search is that it will exclude documents from search results if the results are not unique enough. For example if you have just 3 questions in your new database and 2 of the questiosn have "building widgets" in the title, then searching for 'building widgets' will not return any results because MySQL will consider the results to be too common. I think document must appear in the index in less than 50% of documents to be returned in results.

Read this document:
http://dev.mysql.com/doc/refman/5.0/en/fulltext-natural-language.html

Especially this paragraph:
"The search result is empty because the word "MySQL" is present in at least 50% of the rows. As such, it is effectively treated as a stopword. "

My answer to "lighttpd subdirectory example"

This is my answer to a Question on Support site for LampCMS project


I use lighttpd for hosting this support site and for development I use WAMP at home. So I know it works on Apache and Lighttpd. I have not tried on Nginx myself, just never had time to setup Nginx.

The lighttpd.conf sample file is included with Lampcms distribution, just give it a try. Of cause you must setup php using FPM

Here are some details about FPM
http://php.net/manual/en/install.fpm.php

Saturday, September 7, 2013

My answer to "ACL file for disabling anonymous users to see content"

This is my answer to a Question on Support site for LampCMS project


The viewing of questions and answers is not currently protected by ACL.

What will not logged in user see on the home page? Is user suppose to see list of questions but then clicking on a questions will show some sort of permission error?

If that's what you want you can add this line to the Lampcms/controllers/Viewquestion.php
right about the "protected function main()" line


protected $membersOnly = true;

Tuesday, August 27, 2013

My answer to "Sorting to see just unread"

This is my answer to a Question on Support site for LampCMS project


Currently unread (new) questions or questions that have new items are represented by the closed envelope icons. The logic to keep track of new items is actually implemented on client-side using html5 local storage feature.

In order to be able to have a tab where only new questions and questions with new items are shown per-user
we need to keep track on per-user 'read' activity on the server. It's a good suggestion for a new feature but it may take awhile for something like that to be added.

Tuesday, August 13, 2013

My answer to "Character Limit Questions/Answers"

This is my answer to a Question on Support site for LampCMS project




Did you look in !config.ini (in !confiig.dist.ini which of cause should be renamed to !config.ini before the install)

There are a few lines there (with comments above the config parameters)


So for Question and Answers there are way to set minimum chars, minimum words and only minimum length of title of the question.

There are no maximum limit for Questions and Answers.

;
; Minimum length of question in chars
MIN_QUESTION_CHARS = 10
;
; Minimum required length of question title
MIN_TITLE_CHARS = 10
;
; Minimum required length of comment
MIN_COMMENT_CHARS = 10
;
; Maximum length of comment
MAX_COMMENT_CHARS = 600
;
; Minimum number of words required in question
MIN_QUESTION_WORDS = 3
;
; Minimum length of answer in chars
MIN_ANSWER_CHARS = 10
;
; Minimum number of words required for answer
MIN_ANSWER_WORDS = 3

Sunday, August 11, 2013

My answer to "Comments ignoring MAX_COMMENT_CHARS"

This is my answer to a Question on Support site for LampCMS project


Basically the minimum of 10 and maximum of 600 chars were hard-coded in the javascript file and anything in between could be configured by changing these 2 values on !config.ini, so you were not allowed to set values outside of 10 - 600 chars.

I removed these hard coded strings from javascript and pushed commit to github. It's only in the qa.js file - so if you need this change for production you will have to minify this js file yourself and same with the same name as your current minified js file.

Tuesday, August 6, 2013

My answer to "Cannot ask a question using Internet Explorer"

This is my answer to a Question on Support site for LampCMS project


LampCMS was designed to handle multiple templating packages. I would rather create a second templating based on bootstrap. The idea is that end-user can select different 'theme' in which to view LampCMS.

That's why the structure of the style folder in www directory is
www/style/1/www

The idea is that you can have another theme under
www/style/2/www
theme can include own css file and own set of templates.

Also the reason for www folder under the theme id is that you can also have a mobile folder next to it.

The template loader was designed to handle inheritence-like loading of templates in the modile directory.

For example you may put a template in the
www/style/1/mobile and when viewing the site in mobile phone browser the loader will look in the
www/style/1/mobile directory but if template is not found there that it will load the template of the same name from the www/style/1/www directory.

This way you can create a more specific mobile-version template only for the templates that you want to be specific to mobile browsers while some other templates can be reused in all browsers.

I have not implemented this feature but the logic is there, all is left to do is for someone to create a different 'theme'

My answer to "Cannot ask a question using Internet Explorer"

This is my answer to a Question on Support site for LampCMS project


It's not a bad idea to upgrade YUI, but the problem is - the rich text editor that we use is actually from YUI 2.x, not even from YUI 3. It works really well with Chrome and Firefox.

I don't know if upgrading YUI will help in this situation if we still using the same version of editor.

As for using bootstrap for css it's a great idea. I would like to create bootstrap-based templating package for Lampcms. I even think we should use LESS for creating CSS files and then convert less files to css during build time for production release and use javascript-based less parser in debug mode.

Sunday, August 4, 2013

My answer to "Error when requesting password after joining with oAuth"

This is my answer to a Question on Support site for LampCMS project


I think it may be better to just allow underscores and dots in username so these created usernames will validate.

Try to make username() function in Lampcms\Validate look like this, let me know if this will allow underscores and dots in generated usernames.

public static function username($string)
    {
        d('$string: ' . $string);
        $ret = (0 !== \preg_match('/([a-zA-Z0-9@])([a-zA-Z0-9\-_.]{1,18})([a-zA-Z0-9])$/A', $string, $m));

        d('ret ' . $ret);

        return $ret;
    }


My answer to "Difference between revokeFacebookConnect and revokeOauthToken"

This is my answer to a Question on Support site for LampCMS project


These methods just remove the oauth token from their account (document in USERS collection)
These methods are used internally to unset the Twitter, Facebook details when the APIs return authorization errors.

So basically if script is trying to post to Twitter on behalf of user but Twitter API returns some type of authentication error we realize that user probably removed our app from their Twitter account. We then remove the Twitter token from user's account so that next time we don't waste time trying to post to Twitter API again, essentially will treat that user as someone who has not added Twitter to their account.

If you want you can write a script that will call these methods manually allowing user to remove the Twitter or Facebook credentials from their account.

Saturday, August 3, 2013

My answer to "Edited question/summary doesn't change"

This is my answer to a Question on Support site for LampCMS project


This was a bug, thank you for finding it. I pushed the updated code to github. It will also be included in the official release, but it will take awhile before the next build is released, so for now use github if you want this update.

Tuesday, July 30, 2013

My answer to "question on links"

This is my answer to a Question on Support site for LampCMS project


1) Write your answer in the editor, highlight the word you want to link, then the icon is not grayed out anymore. 2) Click on link icon, insert your link
3) Enjoy.

Saturday, July 27, 2013

My answer to "How do I generate a sitemap"

This is my answer to a Question on Support site for LampCMS project


First in your www/w directory create subdirectory called 'sitemap'
Make it writable.

Second - from command like issue this command

/path/to/your/php /path/to/your/lampcms/sitemap.php
Here /path/to/your/php is the path to your executable php (cgi version of php) file - usually it is not the same php as used by your web server.
On Windows it will be php.exe file, on Linux it is an executable php file installed with your php installation.

If it does not work look in your logs/cli-php.log file

It should generate the sitemap and index file in the www/w/sitemap/ directory

It will also ping Google, Bing and Yahoo with the locations of you sitemap

If it works then you may want to add this command to your cron file to be executed every day or every week.

You may also add the location of your w/sitemap/index.xml to your robots.txt file

Just add something like this to your robots.txt


Sitemap: http://yoursite.com/w/sitemap/index.xml