Profile

Cover photo
Elliot Derhay
211,315 views
AboutPostsCollectionsPhotos

Stream

Elliot Derhay

Shared publicly  - 
 
Pretty sweet prize, for anyone interested.
AppSumo is giving 1 lucky winner a lifetime to Pro (retail $3,600+). Second and Third place win a ton of Amazon Kindle goodies (retail $300+) Enter below!
1
Add a comment...

Elliot Derhay

Questions  - 
 
I need help with a child theme my coworker and I are working on.

What I'm trying to do: modify behavior in a file "noho/assets/js/script.js" by first copying it to "noho-child/assets/js/script.js".

This parent file is queued in an odd way... The action enqueuing this script is in a parent template file.

How the script becomes enqueued
1. "noho/functions.php:47": "require_once FUNC_DIR . '/noho-actions-config.php';"
2. "noho/include/functions/noho-actions-config.php":
307 | function noho_add_scripts() {
... | ...
wp_enqueue_script( 'script', T_URI . '/assets/js/script.js', array(), false, true);
... | ...
393 | }
394 |
395 | add_action( 'wp_enqueue_scripts', 'noho_add_scripts');

When trying to dequeue the parent's 'script' to add my own, this is what I've tried in "noho-child/functions.php":

17 | add_action( 'wp_enqueue_scripts', 'load_child_theme_scripts', 5 );
18 | function load_child_theme_scripts() {
19 | wp_dequeue_script( 'script' );
20 | wp_deregister_script( 'script' );
21 | wp_enqueue_script( 'script', get_template_directory_uri() . '/assets/js/script.js', array(), false, true );
22 | }

I've also tried the above without the "wp_deregister_script()" line, since I saw a StackOverflow answer without that line. But neither way worked. I also tried changing the priority above and below the priority of "add_action( 'wp_enqueue_scripts', 'noho_add_scripts');". The priority of this one is 10 (the default).

No matter what I've done so far, I can't get this to work. Every time I check the resulting HTML on the site, it includes the parent's original copy of "script.js" in the source, and the child's copy is nowhere to be found. Is there something I'm doing wrong...?

WordPress version: 4.3.2
Theme: Noho, version 1.2.0
1
Elliot Derhay's profile photo
 
Never mind. Both solutions I found that pointed to this pointed me to the wrong function...

The correct function for overriding a parent's script is not get_template_directory_uri(). It's get_stylesheet_directory_uri().

Source: https://codex.wordpress.org/Function_Reference/get_template_directory_uri

Solution in functions.php:

17 | add_action( 'wp_enqueue_scripts',
-- | 'load_child_theme_scripts', 100 );
18 | function load_child_theme_scripts() {
19 | wp_deregister_script( 'script' );
20 | wp_enqueue_script( 'script',
-- | get_stylesheet_directory_uri()
-- | . '/assets/js/script.js', array(), false, true );
21 | }
Add a comment...

Elliot Derhay

Shared publicly  - 
 
 
Car Battery Tester should be in every toolbox

I have heard it one too many times – if something can be measured, then for sure it can be improved. After all, we live in a society where improvement is always a priority, as we want to get better and better at how we do things, being more efficient and productive along the way, which gives birth to a slew of new devices including the Home Lie Detector Test. Whenever one travels, it is imperative that one makes all of the necessary preparations to ensure that the journey will be well equipped to meet any eventualities – and hence, this is where the $29.95 Car Battery Tester comes in handy.
The Car Battery Tester is as its name suggests, it will be able to monitor and display the battery level from inside the car. Using it is a snap – all that you have to do is to plug it into a car’s DC port and its LED screen will reveal the charge level and colored lights in order to provide easy-to-read battery status. Green stands for a full charge, yellow for within normal range, while red indicates the battery needs to be charged. Should it turn up blank, then the battery is officially dead. The device will also be able to check the functionality of the car’s alternator and shows if it is in normal working order or requires attention. You do realize that using this means your front DC port would be occupied, right?
3 comments on original post
1
Add a comment...

Elliot Derhay

Shared publicly  - 
 
Liking the new G+ so far. Will see how well it works out.
1
Add a comment...

Elliot Derhay

Discussion  - 
 
How would I get the screen to use my full monitor size?

- First, I went into the "Displays" settings, but there are only 2 4:3 screen options.

- Next, I went to Software Updates -> Additional Drivers and chose "*Use x86 virtualization solution-X11 guest utilities from virtualbox-guest-x11 (proprietary)*". After it finished installing, I restarted. After this, the "Displays" settings gave me a larger list of resolution options, but all the 16:9 options were way too large for my screen.

- Last, I switched that driver setting I changed back to "Do not use the device" and restarted. I'm back to square one. Not sure what the issue is, honestly...

I have Kubuntu 15.10 running in a different VM without issue. It had to install some updates, which I guess included a video driver. But it displayed properly after that.

Either way, I'm stumped... Any help/suggestions in how to correct this would be greatly appreciated.

Version: 15.10
Platform: VirtualBox 4.3.12r93733 on Windows 10
Physical screen size: 1366x768
2
Nicolas Guichard (Nico-du-26)'s profile photoElliot Derhay's profile photo
4 comments
 
+Nicolas Guichard That worked.

It looked like Ubuntu did install it automatically for the version of VirtualBox I listed above. But after I updated to VirtualBox 5 and reinstalled the guest additions, it's working properly.

Thanks again!
Add a comment...

Elliot Derhay

Shared publicly  - 
 
When looking in a science textbook or a toy mobile of the solar system, it's easy to depict the sun, planets and moon to scale in comparison to each other. What's not so easy to visually comprehend the staggering distance that separates each planet on its individual orbit around the su
3 comments on original post
1
1
Katie Derhay's profile photo
Add a comment...

Elliot Derhay

Shared publicly  - 
 
+Google​ is Hangouts having carrier SMS/MMS removed in the future? Is that why that pop-up in Hangouts says to switch to Messenger? I've seen rumors about that.

Since switching to Hangouts for SMS, I've loved keeping merged SMS/Hangouts conversations. That's why I'm asking.
1
Add a comment...
 
I have an odd issue with Piktures. It works fine as the default image viewer, but trying to select an image in ES File Explorer doesn't work.

Here are the steps I take:
1) Open ES File Explorer
2) Navigate to an image to look at
3) Open image
4) Choose Piktures as the app to view the image

Doing this gives me a black image screen with the normal image viewer buttons not working (for instance, the info button won't open image info, since Piktures apparently didn't load the image).

Loading an image directly from Piktures, however, still works.

Device: Motorola Nexus 6
OS version: Android 6.0.1, security patch January 1, 2016
App version: 2.0.287

Thanks.
3
Diune's profile photoKevin Tamarit's profile photo
15 comments
 
Right there with you. Tried clearing cache, then data as a last ditch. Problem still persists. =/    [edit] Is there a folder on Internal Storage I can delete? Maybe something that sderves as cache or file configuration that would help give the app a fresh start?
Add a comment...

Elliot Derhay

Shared publicly  - 
 
Unlock a new rank to receive coins, equipment or even cash! TANK BATTLES.
1
Add a comment...

Elliot Derhay

Shared publicly  - 
 
Neat wall charger for MC gamers.
 
Minecraft Redstone Torch USB Wall Charger

A USB wall charger might seem to be rather ordinary for many of us, taking into consideration how these happen to be dime a dozen these days. Hence, if you would want to stand out from the rest of the crowd, how about approaching an accessory that many of us take for granted so easily with a dash of Minecraft to it? I am referring to the $29.99 Minecraft Redstone Torch USB Wall Charger, where this particular device doubles up as a mini light while simultaneously charging two devices.
There is an orange LED bulb in the top of the redstone torch in order to add that touch of authenticity and originality to the overall picture. The Minecraft Redstone Torch USB Wall Charger will feature two USB outputs – 1 x 2.1A and x 1A, making sure that an average smartphone can be juiced up in double quick time as well as another tablet device in the vicinity. It makes perfect sense, too, to have this as part of the deal since the Minecraft universe sees redstone torches as potentially endless power sources. Thankfully, it does not produce “reddust” particles.
24 comments on original post
1
Add a comment...

Elliot Derhay

Shared publicly  - 
 
Not too surprised. Not too comfortable with it either though.
 
Is it easy for a hacker to steal your facial features?
Fingerprints and iris scans are insecure and can be stolen to compromise your identity.
1 comment on original post
1
Add a comment...

Elliot Derhay

Shared publicly  - 
2
1
ranoju sai's profile photo
Add a comment...
Elliot's Collections
Collections Elliot is following
View all
Links
Basic Information
Gender
Male
Apps with Google+ Sign-in
  • Mr.NooO!!
  • Smashy Road:Wanted
  • Give it Up
  • Twin Shooter
  • Interlocked
  • Prop Hunt Portable
  • Toon Wars
  • Pixelo
  • Mr Right
  • Downtown Showdown
  • BattleFriends Refueled
  • Smash Hit
  • Fallout Shelter
  • Sky
  • PAC-MAN Bounce
  • Bejeweled 3
  • Don't Fall
  • Tank Battles
  • Space Jet
  • Zombie Hive
  • SwapQuest