Profile

Cover photo
Mo Karimi
Works at STUDIO ARTS, LTD.
Attended UCSB
Lives in Los Angeles, CA
105 followers|59,684 views
AboutPostsPhotosVideosReviews

Stream

Mo Karimi

Beginners  - 
 
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
Milton Chapilliquen's profile photo
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
Thomas DeBenning's profile photoMo Karimi'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  - 
 
"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
Kyle Klein's profile photoMo Karimi'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  - 
 
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...
Have him in circles
105 people
Vahid Behzadi's profile photo
Nicole Sandoval's profile photo
Steve Kochenderfer's profile photo
ali karimi's profile photo
Deanyar jahanian's profile photo
Andrew Ngo's profile photo

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  - 
1
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...
People
Have him in circles
105 people
Vahid Behzadi's profile photo
Nicole Sandoval's profile photo
Steve Kochenderfer's profile photo
ali karimi's profile photo
Deanyar jahanian's profile photo
Andrew Ngo's profile photo
Education
  • UCSB
    Computer Science, 2007 - 2011
  • Sunny Hills High School
    General, 2004 - 2007
Basic Information
Gender
Male
Other names
Mohammad
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
  • STUDIO ARTS, LTD.
    Python/Programming Instructor, 2012 - present
    * Working with Studio Arts LTD under the Employment Training Panel (ETP) to teach Python Intermediate/beginners to a classroom of about 10 students (co-workers) for 8 weeks. * These classes were held at the Rhythm & Hues Studios 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.
  • Beachbody
    NOC Engineer, 2013 - present
    * Using monitoring tools such as Splunk and Nagios to create dynamic dashboards, searches and alerts for day-to-day operation watch and unwanted activities. * Ensuring smooth sales while working with many different departments such as: BI, System Analyst, System Engineering, Software Engineering, Networking and many more. * Proactively monitor Beachbody's production infrastructure and troubleshoot or escalate as necessary. * Use monitoring tools to watch and perform triage via documented processes and respond to situations within Beachbody's environments * Perform Level 1 troubleshooting and support to efficiently manage issues as they arise * Report and escalate to senior team members/technical management any incidents that impact the Beachbody environment, and help to improve service levels for all properties * Arrange/coordinate with the other groups in IT or 3rd parties to assist in the resolution of problems, become familiar with deployment and release of new products, and contribute to world-class service and support * Create, update and enhance written processes, procedures,
  • Rhythm and Hues Studios
    Systems Administrator, 2012 - 2013
    * Worked with the technology team behind the 2013 Oscar winning movie Life of Pi. * Using Python, shell scripts and various tool to create a Virtual Private Data Center which will allow smaller FX studios to render the frames on over two Petabyte of disk space and hundreds of CPUs in a remote render farm. These scripts can create a VPDC per user with a push of a button. The automated scripts are capable of creating hosts such as DNS, Database Host, Apache Tomcat, LDAP, Nagios, FTP (GridFTP), and many more. * Using Python to create scripts that ensure safer and better functioning network between all 5 international locations. * Using Python, Java to create and maintain over 3000 render hosts and workstations. * Use of software and tools such as Sguil and Wireshark to monitor the network for any unwanted and suspicious activities. * Working 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 - Los Angeles, CA
Links
YouTube
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 to fairAppeal: Poor to fairService: Poor to fair
Public - a year ago
reviewed a year ago
1 review
Map
Map
Map