Profile

Cover photo
Mo Karimi
Works at Bank of America
Attended UCSB
Lives in Los Angeles, CA
116 followers|262,206 views
AboutPostsPhotosVideosReviews

Stream

Mo Karimi

Help Center  - 
 
Hi, anyone know how to to develop 2 viewpagers.  one with a tab like feature that has the main categories and the second that will have the sub-categories.  this is what i have so far:

import java.util.ArrayList;
import java.util.List;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;

public class MyClass extends FragmentActivity {
    MyPageAdapter pageAdapter;
    MyPageAdapter2 pageAdapter2;

   @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.creatorfirst);

        List<Fragment> fragments = getFragments();
        pageAdapter = new MyPageAdapter(getSupportFragmentManager(), fragments);
        ViewPager pager = (ViewPager)findViewById(R.id.viewpager);
        pager.setAdapter(pageAdapter);
    }

    private List<Fragment> getFragments(){
        List<Fragment> fList = new ArrayList<Fragment>();

        fList.add(Fragment1.newInstance("category1"));
        fList.add(Fragment1.newInstance("category2"));
        fList.add(Fragment1.newInstance("category3"));

        return fList;
    }

    private class MyPageAdapter extends FragmentPagerAdapter {
        private List<Fragment> fragments;

        public MyPageAdapter(FragmentManager fm, List<Fragment> fragments) {
            super(fm);
            this.fragments = fragments;
        }

       @Override
        public Fragment getItem(int position) {
            Toast.makeText(CreatorFirstScreen.this,
                    "Position is: " + position + " title: " + getPageTitle(position), Toast.LENGTH_SHORT).show();

            return this.fragments.get(position);
        }

       @Override
        public int getCount() {
            return this.fragments.size();
        }

        public void setLayout(int position) {
            List<Fragment> fragments2 = getFragments();
            pageAdapter2 = new MyPageAdapter2(getSupportFragmentManager(), fragments2);
            ViewPager pager2 = (ViewPager)findViewById(R.id.viewpager2);
            pager2.setAdapter(pageAdapter2);
        }
    }

    private class MyPageAdapter2 extends FragmentPagerAdapter {
        private List<Fragment> fragments;

        public MyPageAdapter2(FragmentManager fm, List<Fragment> fragments) {
            super(fm);
            this.fragments = fragments;
        }

       @Override
        public Fragment getItem(int position) {
            //Toast.makeText(CreatorFirstScreen.this,
            //        "Position is: " + position, Toast.LENGTH_SHORT).show();

            return this.fragments.get(position);
        }

       @Override
        public int getCount() {
            return this.fragments.size();
        }
    }
}
1
1
Add a comment...

Mo Karimi

General Discussion  - 
 
Hi I'm looking for developer in Los Angeles Area.  Anyone here got some time and want to be a part of a cool startup idea?
3
Mo Karimi's profile photoThomas DeBenning's profile photo
3 comments
 
You might check Hacker and Founders meetups in your area and if some place is doing a demo day show up.  Usually they have some time before and after to talk to people.  

The one I go to here in the Bay Area has time at the end where people who are looking for partners and founders to talk about what they do.
Add a comment...

Mo Karimi

Shared publicly  - 
1
Add a comment...

Mo Karimi

Shared publicly  - 
 
60 years of science, human intelligence, and some horrific before and after pictures 
1
Add a comment...

Mo Karimi

Shared publicly  - 
1
Add a comment...

Mo Karimi

Shared publicly  - 
 
#ifihadglass I could explore the beauties of Southern California from San Diego to Los Angeles to the beautiful Santa Barbara.  They have great historical and natural wonders to be explored.  What better way to do that then to record, take pictures and share it live with my friends all around the world.
1
Add a comment...

Mo Karimi

Shared publicly  - 
 
"He's fantastic. He only has one defect and that is that he doesn't play for Bayern Munich!" - Muller
1
Add a comment...

Mo Karimi

Shared publicly  - 
 
 
Finally managed to get my hands on a Nexus 4.
You got one in your cart? Here is how to complete your order!

The secret technique (found on XDA) is:
- Put the Nexus in your cart
- DON'T click on the Proceed button
- Press Tab, Tab, Tab... until the Proceed button is highlighted
- Press AND hold Enter key for ~1 mn. This will request for purchase many times (I know, I feel bad). Eventually you should get the Wallet Dialog to complete your order!

http://forum.xda-developers.com/showthread.php?p=34717491&highlight=tab#post34717491

#android   #nexus4   #google   #nexus   #googleplay
1
Mo Karimi's profile photoKyle Klein's profile photo
3 comments
 
Nah, I recently got a Galaxy Nexus, so I have 4.2 and upgrading isn't really worth it. I'll probably grab the new nexus phone next year.
Add a comment...

Mo Karimi

Shared publicly  - 
 
Remember to vote tomorrow and get yourself a freebie for voting:  #Election2012

A few stores are offering freebies for Election Day (11/6/12)

Starbucks will give you a free 12-ounce coffee. They will give the coffee to anyone who asks for it.

Krispy Kreme will give you a free star-shaped doughnut decorated with red and blue sprinkles

Ben & Jerry's (5pm-8pm) will give you a free scoop of ice cream

Chick-fil-A will give you a free chicken sandwich with an "I Voted" sticker

Shanes Rib Shack will give you a free Vote America Meal with an "I Voted" sticker

Daily Grill will give you a free appetizer with an "I Voted" sticker

Eatn Park will give you a free coffee

California Tortilla will give you a free taco with an "I Voted" sticker
1
2
Add a comment...

Mo Karimi

Shared publicly  - 
 
I've been super impressed by this band and in particular the lead singer's voice
1
Add a comment...
Work
Occupation
Software Engineer
Skills
Python, Linux, Perl, Unix, C++, Java, Farsi, Git, C, Eclipse, NAS, Ruby, Xen, Visual Effects, Matlab, Data Mining, Ant, Programming, Verilog, English, Awk, CVS, PHP, PyQt, Nagios, Wireshark, OpenGL, OpenGL ES, SQL, Android, Github, UML, Subversion, HTML, Virtual Management
Employment
  • Bank of America
    Security Engineer, 2015 - present
  • Beachbody
    NOC Engineer, 2013 - 2015
    • Providing application support and problem management to many teams such as BI, SOA (service-oriented architecture), and QA. • Troubleshooting hardware (more than 950 Virtual and Physical hosts running on VMware vSphere ESXi), software application (about 7800 processes) and data center assets. • Developing and maintaining operational tools and scripts used to monitor application and system processing using Python and BASH. • Implementing Backup and Recovery process and technology using CommVault. • Installation and support of software and hardware for all business and IT teams. • Software release upgrades and conversions including maintenances, patches, and enhancements. • Performing security and disaster recovery planning, implementation, and testing while working closely with other teams in infrastructure. • Developing and enforcing Information Security i.e. PCI as well as reviewing and implementing security alerts. • Creating, updating and enhancing written processes, procedures, and documentation using guidelines focused on ease of understanding and attention to detail. • Proactively monitoring Beachbody's production infrastructure to better understand issues that may be impacting the business. • Working with different teams to suggest points of improvement in the infrastructure. • Arranging and coordinating with the other groups in IT or 3rd parties to assist in the resolution of problems. • Implementing Level 1 monitoring tools such as Nagios, Splunk, Xmatters, and AppDynamics to reduce overall mean time to resolution (MTTR).
  • STUDIO ARTS, LTD.
    Python/Programming Instructor, 2012 - 2015
    • Working with Studio Arts LTD under the Employement Training Panel (ETP) to teach Python Intermediate/beginners to a classroom of about 16 VFX industry professionals for about 10 weeks. • These classes were held at either the Rhythm & Hues Studios or the Studio Arts facility with the purpose to teach technology to entertainment creatives. • Allowing students to work on projects using pair programming skills to plan and solve problems together. • Teaching data structures and algorithms, data types and interactive programming.
  • Rhythm and Hues Studios
    Systems Administrator, 2012 - 2013
    • Worked with the technology team behind the 2013 Oscar winning movie Life of Pi. • Leveraged Python to create a Virtual Private Data Center (provisioned on the Xen hypervisor), which will allow smaller FX studios to remotely render the frames on over two Petabyte of disk space and hundreds of nodes. The automated scripts are capable of creating hosts such as DNS, Database Host, Apache Tomcat, LDAP, Nagios, FTP (GridFTP), and many more for each VPDC. • Created Python scripts that ensure safer and better functioning network between all 5 international locations. • Used Python and Java to create and maintain over 3000 render hosts and workstations. • Utilized of software and tools such as Sguil and Wireshark to monitor the network for any unwanted and suspicious activities. • Worked as one of the lead designers of remote rendering farm with capabilities to host many other corporations.
  • Rhythm and Hues Studios
    Operations and Render support, 2011 - 2012
    • Provide IT technical operation support for 700+ users in Windows, Linux and Mac interface. • Working with C++, Python and Perl to develop and maintain the studios Linux render systems. • Monitor the render operations, using various tools to ensure quality work are delivered to the clients. • Provide queue support to users and monitor disk servers and perform backups/restores. • Work closely with the entire studio for safe keeping of all systems, and assist users with hardware, email, network, peripheral problems and troubleshooting. • Assist in writing tools and the maintenance of the operations manual and procedures. • Monitor disk usage, maintain tape library and database and update online database.
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Los Angeles, CA
Previously
Tehran, Iran - Fullerton, CA - Santa Barbara, CA
Links
YouTube
Other profiles
Education
  • UCSB
    Computer Science, 2007 - 2011
  • Sunny Hills High School
    General, 2004 - 2007
Basic Information
Gender
Male
Other names
Mohammad
So I don't really know where to begin with how mad I am with this place. First of all, the only good thing when I walked in yesterday I was first assisted with a knowledgeable man who gave me good amount of information about the VW Jetta. But before we can even start he told another person to carry the process because he wanted to assist someone else (weird) but it's okay and understandable. But this guy named Joe, from the beginning didn't seem like a good salesman. Very pushy and not polite. For example he would interrupt me when talking with family about the car over the phone to push me to buy it when I'm still thinking. Then, when I tried to negotiate he literally told me to "Get the F*** outta here, I don't want to deal with you anymore"???????? what??? since when does a sales man say that? Then this morning I get an alert that someone has ran a credit score on me and it has influenced it negatively of-course. This is after, I specifically told Joe 4 times NOT TO DO THAT. I went to many dealerships and I can tell you this experience was the worst and finally chose a Kia Optima, and this definitely has some influence on it.
• • •
Quality: Poor - FairAppeal: Poor - FairService: Poor - Fair
Public - 4 years ago
reviewed 4 years ago
1 review
Map
Map
Map