Tag Archives: Frash

Split AT&T Bill in a Shared Data Plan

Getting fair shares for a shared data plan is always disaster! Because it is not a simple +/- but also there are a lot of overheads included inside the charges such as tax and extras, and also AT&T doesn’t divide the data charge and overage among the lines but only one line!

The attached EXCEL file contains the details of the processing of the separate shares of a 13-line AT&T data shared plan. To start with it, you should fill out the yellow boxes at the bottom of the file. You can get help from “View my bill” page at AT&T website. The instructions can be as follows:

  1. Fill out total bill balance (Total), number of lines (T#), total amount of data (TData), AT&T base charge per line (ATT Base) by looking at “View my bill” page at AT&T website.
  2. Fill out insurances (Insurance column) and installments (Installment column) again by by looking at “View my bill” page at AT&T website.
  3. If any line has an extra charge (for international calls, etc.), calculate extra charge by subtracting ATT_BASE from the actual balance in front of the line. [Note: AT&T charges one line for the whole data. So don’t try to consider it as an extra charge.]
  4. If the plan had a data overage, you can fill out the used data by each line in Data column (shown as yellow) from “Check Usage” page at AT&T website. A user-defined function (UDF), UDF(x)=ROUNDUP(x*(1+SIGN(x))/2,0); x is the distance of the line data usage from the mean data usage, has been used to compute the data overage share among the lines.

Now, you can verify the results:

  1. Green balances shown in ATT Website column should be equal with the balances in “View my bill” page at AT&T website.
  2. Also you can verify the overpay balance, calculated balance, etc.

Finally the fair shares would be in “Separate” column.


Maryam Mirzakhani, the mother who won Fields Medal

Unbelievable and heartbreaking! Our role model since elementary school dies at 40! I still remember the days I was struggling to learn her book written for young math lovers to prepare for math Olympiad. She was ahead of us as a senior but she passed all the elevation steps very fast, and soon she became Stanford professor while she had a little girl.

Her milestone completed when she won Fields Medal in Math (the most prestigious award equivalent to Nobel prize). As a woman, her accomplishment is not only inspiring for all Iranians but also specially for all women in fundamental sciences. Definitely her work helps the other mathematicians in the field, but her humble character wasn’t self-explanatory.

Unfortunately her life was short but fruitful for all of us not only from scientific aspects but also other societal aspects as a public figure like Galois, Ramanujan, and Riemann.  May she rest in peace.


IAAP Scholarship Award

Dear Mr. Farshid Farhat,

On behalf of Dr. Manouchehr Farkhondeh, President of the Iranian American Academics and Professionals (IAAP) and the entire organization, I would like to congratulate you on your outstanding academic success as well as the invaluable service to the Iranian-American community. We are also delighted to inform you that you have been selected as one of the recipients of IAAP’s Scholarship Awards for 2017.

We look forward to the opportunity to congratulate you in person and present you the Award Certificate and the accompanying check at our special gathering on June 24, 2017 (Information of the ceremony is posted at http://iaadc.net/).

We ask that you kindly acknowledge receipt of this email at your earliest convenience and be prepared to introduce yourself and provide a short background on the program you are in and any studies or project(s) you might be working on for a total of 3 to 4 minutes.

You will be among our honored guests, and as such exempt from making the customary fee, but to order enough food for everyone, we request that you register for the event at your earliest convenience, if not done so already. Your guests, if any, are also welcomed and expected to RSVP early but are required to pay the nominal dinner fees.

In case you are truly unable to participate in the ceremony, your certificate and the check can be given to a designated person provided the receipt of your notification by Tuesday, June 20th at the latest, or they can be mailed to you at a specified address. Also, in case you are unable to be with us in person, please make sure to send us a short video on the information we requested on the third paragraph with the notification by Sunday June 18th as well.

Yasaman Ardeshirpour, PhD
Scholarship Committee Chair

frash 🙂

Chinese Academy of Sciences

From April 2016 to June 2016, I was a visiting researcher at Chinese Academy of Sciences (CAS) in Beijing, China. Thanks to all people who accompanied me during my visit.

1st row (standing): Hoho, Yu Huang, Hou Huang, Xikun, FeiFei, Zhang Pan, Shengluan
2nd row (seated): SM Zhang, Lu Ruqian, me, Ju Wang.

frash 🙂

Thumbnail Generation by Smart Cropping

Given any aspect ratio, oval shape, or automatically AutoThumbGen generates a thumbnail based on the input image. In fact, the most prominent part of the input image is recognized and captured by the app with a proper thumbnail size. The source code is in C. The code has been also embedded in Android via JNI and PHP by exec.

Sample photos:



The contributors: Jia Li, Farshid Farhat, James Wang.