Menu

ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setHomeAsUpIndicator(R.mipmap.ic_arrow_back_white_24dp);
actionBar.setDisplayShowHomeEnabled(true);

getSupportActionBar().setHomeButtonEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setDisplayUseLogoEnabled(true);
getSupportActionBar().setLogo(R.drawable.ic_logo);
getSupportActionBar().setDisplayShowTitleEnabled(false); //optional

getSupportActionBar().setHomeButtonEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setIcon(R.drawable.ic_logo); //also displays wide logo
getSupportActionBar().setDisplayShowTitleEnabled(false); //optional

Kategoria: 

locale

dpkg-reconfigure locales

Kategoria: 

linux df -i

df -i
 
find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n
 
 
ls -1 | grep "sess_*" | xargs -L 50 rm -f
 
 
 
find /path/to/file -name "*.PNG" -delete \;
find /path/to/file -name "*.PNG" -exec rm \; (runs rm once for each file)
find /path/to/file -name "*.PNG" -delete + (groups them into chunks just small enough to pass to rm)
Kategoria: 

debian9 php5-mysql rasberry problem

Solved!
Download from here https://packages.debian.org/wheezy/armh ... 8/download the package

then install it via

sudo dpkg --install libmysqlclient18
and then reinstall php5-mysql via apt-get
apt-get install php5-mysql

now misqli is installed
cheers
Kategoria: 

Many-to-many EF core

Entity core manual
https://docs.microsoft.com/en-us/ef/core/modeling/relationships#many-to-...

-----------
Zero to One

You can do it declaring your foreign key like in the following:

public class Blog
{

public int BlogId { get; set; }
public List Posts { get; set; }

}

public class Post
{
public int PostId { get; set; }
public int? PostId { get; set; }
public virtual Blog Blog { get; set; }
}

M2M

Creating:
1. Create new XY
2. Set XY.X = New X
3. Set XY.Y = New Y
4. Db.SaveChanges()

Deleting:
1. Find and delete XY
2. Db.SaveChanges()

Thanks,

Jeff Bowman

Fairbanks, Alaska

Kategoria: 

Strony

Subskrybuj Notatnik RSS