Check whether an array is empty

function in_multi_dimensional_array($multidimarray, $multidimarray_key, $lookingfor ) { $found = false; foreach ($multidimarray as $key => $data) { if ($data[$multidimarray_key] == $lookingfor) { // item found => add new keys & data if...

Can I get a list of files marked –assume-unchanged?

What have I marked as –assume-unchanged? Is there any way to find out what I’ve tucked away using that option? I’ve dug through the .git/ directory and don’t see anything that looks like what I’d Source: Can I get a list of files marked...

crontab.guru – the cron schedule expression editor

An easy to use editor for crontab schedules. Source: crontab.guru – the cron schedule expression editor 1 8 4 * * “At 08:01 on the 4th of every month.” next at 2016-09-04 08:01 random [minute] [hour] [date] [month] [weekday] * any value , value list separator...

JavaScript version of var_dump

<script> function dump(obj) { var out = ''; for (var i in obj) { out += i + ": " + obj[i] + "\n"; } alert(out); } </script> // or, if you wanted to avoid alerts and var_dump() on the page… <script> function dump(obj) { var out = ''; for (var i...

Divi Theme: Add Copyright & Add Social Icons to Footer

Here’re a couple of Divi Theme tips & tricks: /* CSS Color Footer Social Media Icons on :hover */ #footer-bottom .et-social-facebook a:hover { color: blue; } #footer-bottom .et-social-twitter a:hover { color: powderblue; } #footer-bottom .et-social-linkedin...

Cost to charge an iPhone for a year?

Ever thought how much your iPhone (or Android smartphone) is costing you in power a year to charge? What about your tablet or laptop? Or your ebook reader? And do wall warts consume power when there’s nothing connected to them? Source: How much does it cost to...
Daring Fireball: RSS Readers

Daring Fireball: RSS Readers

[OT] Not sure if it’s open to discussion, but I don’t understand why all browsers don’t just display RSS (don’t get me wrong… NetNewswire is great, but sometimes I don’t want to launch another app… I just want to see an RSS feed). Safari used to display RSS… and very...