Categories
CMS Mastering Development Wordpress

Exclude specific media/post ID from media library plugin?

I have a multisite setup and I use a plugin called Multisite Global Media https://github.com/bueltge/multisite-global-media I have a specific site ID set that shares the complete media library with all other sites. This works great. But I have a specific file I don’t want to share with every other site. So my wish is to […]

Categories
Ask Engineering

DIY Ideas with ADALP2000 Analog Parts Kit [closed]

I am taking an EE course this summer and got sent an ADALP2000 Analog Parts Kit, and I want to find some small DIY project I can do with it after the course. It comes with the typical analog circuits parts (resistors, caps, LED’s, etc.) along with some basic logic gates, amplifiers, a speaker, sensors, […]

Categories
Ask Engineering

How to read such long range RFID tags?

I am impressed by the range of these these “long range RFID tags” or this item: Reading distance:3-15M How is this technically possible? it seems there are passive (no space to have a battery in this picture). What kind of reader should be used for this? The reference “ISO18000-6C EPC classe 1 Gen2” mostly points […]

Categories
Ask Engineering

Help with dc output power circuit

simulate this circuit – Schematic created using CircuitLab I am fairly new to electronics. I’ve been studying it for the last few months and have put together a few circuits. The problem I had was that none of my circuits worked even if I followed a design that i found. I don’t know why, but […]

Categories
CMS Mastering Development Wordpress

How to allow only the editing/creation of specific CPT?

I answered a question about capabilities, but now I’m in need of help on the subject. And after reviewing the manual, I’m even more confused. I have two custom post types both fully accessible to Administrators. I have Subscribers, some having access to one of these CPT’s which is a “child” of the first and […]

Categories
CMS Mastering Development Wordpress

wordpress 2.1.3 with php 7.0

I am updating wordpress 2.1.3 to work with php7. I have already been able to install it, after modifying multiple files, but I have a problem now When I want to enter the control panel give the error “You do not have sufficient permissions to access this page.”, It seems to me that this error […]

Categories
CMS Development Wordpress

How to dynamically allow editor to access customizer on multisite?

Background For reasons I don’t want to permanently grant the required capabilities to editor users to allow them to access the Customizer. So I’m using user_has_cap filter to set capabilities for editors dynamically. I also don’t want to categorically grant the dynamic capabilities, but restrict them to certain admin views. So this is not what […]

Categories
Development

How to print elements in slice without bracket in golang line by line?

package main import “fmt” func main() { var s []int s = append(s, 2, 3, 4) printSlice(s) } func printSlice(s []int) { fmt.Printf(“len=%d cap=%d %v\n”, len(s), cap(s), s) } Playground: https://play.golang.org/p/tx8gmx5eR7B Output: len=3 cap=4 [2 3 4] Output should be: 2 3 4