Can I make my desktop icons smaller?
153
Hmm that was easier than I thought.
- Load up Nautilus and head to Edit → Preferences
- Under the Views tab, change the Icon View Defaults' zoom level.
That does only give you choices of 33, 50, 66, 100, 150, 200 and 400 percent scale so if there's an absolute method of setting the size, I'm open to that too. 66% is a bit too reduced IMO.
Related videos on Youtube
Author by
Mic
Updated on September 18, 2022Comments
-
Mic over 1 year
I have data here:
Array ( [1] => Array ( [SiteID] => 1 [OwnerAID] => 1 ) [3] => Array ( [SiteID] => 3 [OwnerAID] => 1 ) [6] => Array ( [SiteID] => 6 [OwnerAID] => 2 ) )
Now, I need to group the
OwnerAID
into two categories: the first one isOwnerAID
owning only oneSiteID
and the second one isOwnerAID
owning more than 1SiteID
.I've tried to make a program and do some research, but the output of my code is wrong.
Please see my code:
public function groupIndividualAndAggregateSites() { $arrays = array(); foreach($this->combined as $key => $key_value) { $SiteID = ""; if ($SiteID == "") { $SiteID=array($key_value['SiteID']); } else { $SiteID = array_merge((array)$SiteID, (array)$key_value['SiteID']); $SiteID = array_unique($SiteID); } } if ($SiteID != "") { $arrays = array('AID'=>$key_value['AID'], 'Sites' => $SiteID); } print_r($arrays); }
The result should be shown like this:
Array( [1] => Array ( [Sites] => Array ([0] => 1, [1] => 3))) Array( [2] => Array ( [Sites] => Array ([0] => [6]))
-
eggyal over 11 yearsSo, for the avoidance of doubt, the keys of the original outermost array do not need to appear in the resulting array?
-
Mic over 11 yearsYes eggyal. Thanks for the concern.
-
Gundars Mēness over 11 yearsOk, I'm done with my answer, I hope you got the Idea.
-
Mic over 11 yearsHi Gundars, Thank you so much, it's a great help, but if ever I will have little bit question in your code,I will tell you. Thanks again.
-
Gundars Mēness over 11 years@Mic Glad I could help. If you got what you needed, accept my answer by clicking the V mark next to it. PS - I fully encourage you to ask questions about it. Thats how we learn :)
-
Mic over 11 yearsHi sir Gundars, sure, your answer was the closest from the result that I want to achieved but if you don't mind sir, could you pls help me to format the printing of array of what I wanted. Pls review my question again. Thank you sir and more power.
-
Gundars Mēness over 11 yearsI simply don't think your desired output is semantic, so I prefer mine.
-
-
Mic over 11 yearsHi Sir Gundars, there something wrong with the printing of arrays, but I got your idea, I learn something new,I need to format the array in the kind of result what I wanted.(Please see my question again) May you please help me sir.Thank you so much sir.