https://finance.google.com/finance/portfolio/create?hash=XzZuRXIyV1NZYkgzSV9YY1UxdmFvS3NKWnJ3fDE1MTQwODgyNTY&ei=QCc_WrneEsywmAGV7Z_4DQ
Daily I help teams with solution engineering aspect of connected vehicle data projects. (massive datasets & always some new datasets with new car models aka new technologies.) Lately in the spare time, applying some of the ML/Deep learning techniques on datasets (many are create based on observations of real datasets)To Share some thoughts on my work (main half of this blog) and the other half will be about my family and friends.
Saturday, December 23, 2017
Google finance "Create Portfolio from quotes"
For a while this feature, it is not working. Multiple time, i reported to the help section documentation & as feedback. I guess no one is looking in to end user feedback.. If this is the case, why asking. Not sure................
https://finance.google.com/finance/portfolio/create?hash=XzZuRXIyV1NZYkgzSV9YY1UxdmFvS3NKWnJ3fDE1MTQwODgyNTY&ei=QCc_WrneEsywmAGV7Z_4DQ
https://finance.google.com/finance/portfolio/create?hash=XzZuRXIyV1NZYkgzSV9YY1UxdmFvS3NKWnJ3fDE1MTQwODgyNTY&ei=QCc_WrneEsywmAGV7Z_4DQ
Friday, December 22, 2017
“The Disaster Artist “ Incredible homage to the best bad movie of Hollywood
The film is a story of
friendship between Tommy and Greg from bay area film school.
Greg is baby faced
young actors dreaming of big carrier in Hollywood and Tommy odd looking middle
aged rich guy dreams of Hollywood. One fine day, they both movie to LA in pursuit
of their Hollywood. After multiple unsuccessful attempt to get in to
acting, finally they decide the make a movie “The Room”. Rest of the plot is around
filming of the ‘The Room” movie. Tommy writes, produces and finally acts a lead
actor in his story. Inspired based on 2003 Hollywood independent movie and subsequent
book, this is a perfect homage. Loved every scene & one of the best comedy
for this year. (at the end, during credits, they show both 2003 movie and 2017
movie scenes next to each other. Simply mind-blowing.)
Tuesday, December 05, 2017
emirates airlines USA to India air travel..(Inconsistent & poor Baggage allowance practices)
Last month, I went to India ( from Austin,TX to Hyderabad)
My reservation confirmation e-mail says no fee for two check in bags and
no fee on CARRY-ON HAND BAGGAGE & NO FEE CARRY ON PERSONAL ITEM.
From Austin to New York, travel is fine. From New York to Dubai is fine
However i am about to chicken Dubai to Hyderabad flight.
At this point of time, group of people are weighing the carry-on & handbags and saying limit is exceeded & you have to pay. My bad, i purchased few novels and books for reading/some food.. So i have to pay or drop 2 pounds of stuff.
I told, except books, i am carrying the same stuff from USA. but he is not listening.
I clearly see racial profiling. He simply allowed an american in the next line without much screening.
Really felt bad for my situation. End-up throwing few items in to trash, ( finished novel, towel etc)
Now coming back from Hyderabad, again problem at Hyderabad. He simply saying, you have to take only one bag. No CARRY ON PERSONAL ITEM.. (I am carrying I7 based laptop ( little heavy) with charger, external mouse etc.) there is no space in other carry-on bag. basically this is small one even to put 15" laptop..
This sucked so bad. end-up carrying laptop in the carry-on. ( leaving all laptop bag etc.)
Emirates airlines needs to think/implement differently.
Seems to be "CARRY ON PERSONAL ITEM" is US domestic airline concept. If they are OK with this item in US outbound flights & they need to implement all way to destination by tagging or something else.
In my case, Dubai to Hyderabad. Emirate needs to act smartly for US outbound citizens.
In bound flight also, since the ticket is brought from US, they need to allow "PERSONAL ITEM" from final destination. My overall trip experience is spoiled with this kind of dump rules implementation.
My reservation confirmation e-mail says no fee for two check in bags and
no fee on CARRY-ON HAND BAGGAGE & NO FEE CARRY ON PERSONAL ITEM.
From Austin to New York, travel is fine. From New York to Dubai is fine
However i am about to chicken Dubai to Hyderabad flight.
At this point of time, group of people are weighing the carry-on & handbags and saying limit is exceeded & you have to pay. My bad, i purchased few novels and books for reading/some food.. So i have to pay or drop 2 pounds of stuff.
I told, except books, i am carrying the same stuff from USA. but he is not listening.
I clearly see racial profiling. He simply allowed an american in the next line without much screening.
Really felt bad for my situation. End-up throwing few items in to trash, ( finished novel, towel etc)
Now coming back from Hyderabad, again problem at Hyderabad. He simply saying, you have to take only one bag. No CARRY ON PERSONAL ITEM.. (I am carrying I7 based laptop ( little heavy) with charger, external mouse etc.) there is no space in other carry-on bag. basically this is small one even to put 15" laptop..
This sucked so bad. end-up carrying laptop in the carry-on. ( leaving all laptop bag etc.)
Emirates airlines needs to think/implement differently.
Seems to be "CARRY ON PERSONAL ITEM" is US domestic airline concept. If they are OK with this item in US outbound flights & they need to implement all way to destination by tagging or something else.
In my case, Dubai to Hyderabad. Emirate needs to act smartly for US outbound citizens.
In bound flight also, since the ticket is brought from US, they need to allow "PERSONAL ITEM" from final destination. My overall trip experience is spoiled with this kind of dump rules implementation.
2017 How not to do e-commerce (a case study)
This is based on my 2017 black Friday shopping experience.
Like many retails, frys.com, send promotion code to all the
e-mail subscribers. So, I registered. Based on subscriber preference frys.com
send daily e-mails. Up to this part, everything is OK.
For 2017 black Friday time also, I received e-mail with
promo code. Both my kid’s laptop is not working so I decided to buy couple.
Based on e-mails, I picked two laptops and I placed orders on 11/23/2017. After
10 or 15 minutes, I received an e-mail saying your order is ready for pickup.
We are closed on thanks giving day & pick order on 11/24/2017. I thought, wow. next day, I received the
store around 10.15AM, went to straight checkout register line. After waiting
for 90, minutes, I reached cashier and showed my order number. He took, my info
went to back room and came back said, no one picked your items. Let me go and pick
your items. After 40 minutes, he came back and said, one of your item is out of
your stock. (standing with family, I was bit shocked.) finally paid bill and
went to manager who is standing at service desk. I show the order pick e-mail etc. He called
someone & after 15 minutes, he said we are out of stock. Apologies. I told,
if come next week, will you honor the prices. He said no. we don’t… So, dumb…
while, I was standing, another customer came and he is saying, I came after
driving 45 miles and his item is not there.
(like me so many disappointing parents.) after seeing this, I felt old
circuit city stores experiance. Absolute mess.
1)
If you are offering online sales, make sure your
order processing system works. (if ORDER
is ready for pickup means they have mean it.)
2)
In my case, my chaser completed only two
transactions per hour. Frys.com employees need to go to Walmart/target/kohls
store. How quick they do the job.
3)
Don’t merge online order customer with in store
promotion chases. There is is reason, we placed order online and we simply want
to pick and go. If you go to Kohls, even
they have special parking slots for online customers and separate service line
to process only ONLINE order. Please learn.
I will append more items later
2017 Back Friday experience with family
For past decade, I am not doing any shopping (At least
visiting the physical store.)
If required, I am purchasing via online. However this year, I decided to give some experience
to the kids. (Now they are in high/middle School) & they need laptops. SO I
felt, this is the right time. Basically they
are curious about one days record sales.
On thank giving day, I purchased couple
of laptop from frys.com and for pickup, we went to store. I will write one more post on frys.com ( how
not to do e-commerce in today's world) however coming to main topic, on Fridays stores
are opened at 6AM. We reached the store around 10.15 AM. Parking is mess. Based
on my past experience, I told wife & kids to pick whatever you want come to
line. I went directly checkout line. This is long. After sting 90 minutes in
the line, I reached, cash register. ( in between, family wrapped, their pick
& joined me. Absolute shocking thing
is my online order is not ready. Cashier took,
my order number and went on picking items for next 40 minutes. After spending
40 minutes, he came back and said one of my laptop is out of stock. Finally
we are out of the store around 12.15… My kids first feedback it, let’s avoid Black Friday shopping & in particular Frys. Let’s go to lunch.
Tuesday, July 18, 2017
My Kiva updates after a decade
Today at Kiva we celebrate YOU! |
10 years ago today, you joined Kiva to change lives around the world. |
Friday, July 14, 2017
PDF to CSV file generator
few years back, when I was working on Apache TIKA POC/evaluation/bench mark for document indexing with SOLR,
At the same time, i was exploring pdf document parsing with apache.pdfbox framework.
At that time, i wrote sample code to see the PDF box capabilities.
Exactly last year, my niece asked some help in parsing the PDF file.
I fixed the java file for her need. Keeping it here for any later uses.
import java.io.*;
import java.time.Duration;
import java.time.Instant;
import org.apache.pdfbox.cos.COSDocument;
import org.apache.pdfbox.pdfparser.PDFParser;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.util.PDFTextStripper;
public class PdfToCsvGenerator {
public static void main(String[] args) {
String string = null;
BufferedWriter out = null;
PDDocument pdDoc = null;
COSDocument cosDoc = null;
PDFTextStripper pdfStripper = null;
try {
System.out.println("Processing PDF file. please wait.");
Instant start = Instant.now();
PDFParser parser = new PDFParser(new FileInputStream("C:\\xxx\files\\final_result.pdf")); //TODO
parser.parse();
cosDoc = parser.getDocument();
FileWriter fstream = new FileWriter("C:\\xxx\\files\\out.csv"); ///TODO this is output file
out = new BufferedWriter(fstream);
pdfStripper = new PDFTextStripper();
pdDoc = new PDDocument(cosDoc);
pdfStripper.setStartPage(1);
pdfStripper.setEndPage(3); //TODO for now parse only first two pages. once everything is ready..extend it for all
String parsedText = pdfStripper.getText(pdDoc);
String lineSep = pdfStripper.getLineSeparator();
String[] lines = parsedText.split(lineSep);
for ( String aLine : lines){
if ( aLine!= null){
String trimLine = aLine.trim();
if (trimLine.matches("^[A-Z].*$")) {
System.out.println("Ignoring input line:"+trimLine);
}else{
String htno=null,subcode=null, subname=null, internal=null, ext=null, credit = null;
StringBuffer buf = new StringBuffer();
if (trimLine.contains(" ")){
String[] fields = trimLine.split(" ");
boolean isSubject = true;
int i = 0;
for ( String s : fields) {
if (i == 0) {
htno = s;
i++;
continue;
}
if (i == 1) {
subcode = s;
i++;
continue;
}
if (isSubject == true) {
//StringBuffer buf = new StringBuffer();
if (s.matches("[A-Za-z-&/]+")) {
buf.append(s+" ");
i++;
continue;
} else {
subname = buf.toString();
isSubject = false;
internal = s;
i++;
continue;
}
}
ext = s;
credit = fields[fields.length - 1];
break;
}
out.write(htno + "," + subcode + "," + subname + "," + internal + "," + ext + "," + credit + "\n");
// System.out.println("htno:" + htno + " subcode:" + subcode + " subject name:" + subname + " internal:" + internal + " ext:" + ext + " credit:" + credit);
}else{
System.out.println("Ignoring 2ed stage input line:"+trimLine);
}
}
}
}
if (out != null) {
out.flush();
out.close();
}
System.out.println("processing is complete. Check output file.");
Instant end = Instant.now();
Duration timeElapsed = Duration.between(start, end);
System.out.println("Time taken: "+ timeElapsed.getSeconds() +" seconds");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
}
}
}
Few dumbest SOLR/Cassandra implementations
1 I was in the Architecture review board and a
project came for review.
It is kind of upgrade or tech refresh
project.
Core ides is they moving simple Web application
is moving old version of OS, WebLogic (yes. still companies use this king of heavy
weight containers
IT BOM contains SOLR too. (Moving from Solr
3.2 to Solr 6.2)
Since I am not well versed with business
domain, after meeting. I was asking
What is the motivation to go to Solr 6.x?
Answer was simple refresh & may be we
will use new features. Solr cloud etc.
I asked how it is deployed. Answer was SOLR
is running 3 different contains separately and they are load balanced. I was asking it is master/slave etc. Answer
is no.
We index all the content separately and monthly
we update the content on each web logic instance. I said, this is incorrect
thing. Are you going to fix with new Cloud architecture etc?
Answer is no. Still 3 isolated SOLR instances
running separately in separate Elephant container and load balanced. I was
shell shocked.
Pure dumbest to the core.
I will expand this post later with more dump roll-outs.
Walmart (Free Pickup + Discount) rocks
Lately I end-up buying too many items from Walmart with Free Pickup + Discount option.
For most of the standard products, walmart.com prices are good and above pickup/discount is too good.
Amazon became more of prime member only.
Few example buys:
1) Product Title
For most of the standard products, walmart.com prices are good and above pickup/discount is too good.
Amazon became more of prime member only.
Few example buys:
1) Product Title
Schlage FE595VCAM716ACC
Amazon is offering this one for prime members for ~$80 and Walmart
offered at same product
with free pickup/discount offer.
Similarly CATAN game.
( free pickup/discount is too good. in all my purchase
it is matching or beating amazon prices.
at the same time, it is fast for me.
Nowadays, Amazon became to cleaver for non prime members. ( for free shipping, it says 5 to 8 business days)
and on 7 or 8 days, it is shipping. Kind of luring to buy prime.
At this point, still i am debating myself. $100 for prime &
$100 for sam'sclub membership. this list goes on.
Amazon is offering this one for prime members for ~$80 and Walmart
offered at same product
( free pickup/discount is too good. in all my purchase
it is matching or beating amazon prices.
$100 for sam'sclub membership. this list goes on.
Tuesday, January 10, 2017
Subscribe to:
Posts (Atom)