Categories
Ask Engineering

Low voltage cutoff

A while back when I ordered a 3S Li-ion protection board I didn’t think about low voltage protection so I made a small circuit using an opamp. Is this gonna be good or will the magic smoke escape?

Categories
Ask Engineering

ac/dc adapter input amperage rating

if you have a control circuit of 120V on the secondary side of a transformer which you have fused at 1.5 A since you are using a 150VA dry type and you connect a wall outlet plug in that 120V circuit and the device’s ac/dc power adapter has an input rating of up to 1.5A […]

Categories
Ask Engineering

Steadily decreasing output voltage in ‘Bipolar Junction Transistor Amplifier’ circuit

I had to design this ‘Bipolar Junction Transistor Amplifier’ circuit for my course, however I’m quite confused as to how the circuit is behaving: My input voltage [AC] on the wave generator is set to 40mV at 1Hz. The expected peak to peak amplitude measured by the oscilloscope should therefore be 40mV. Yet as shown […]

Categories
CMS Mastering Development Wordpress

Developing lots of wordpress sites

This is more a general advice question not a technical one. Currently I am using MainWP for managing my WordPress sites but I am looking for a tool to help manage it during development. What is the best way to manage multiple themes, I was thinking GitHub repos for each theme but not sure the […]

Categories
CMS Mastering Development Wordpress

How can I set multi archive page template on same time for only one custom post type?

I want to show templates of my theme to promotion.So, I need show different templates for only one custom post type.For example, on header menu, if click template 1 button, will show the archive with template1, if click template 2 button, will show archive of the same post type with template2. I created custom post […]

Categories
CMS Drupal Mastering Development

Change Image Alternative text on select box change

Fields: Image Field – field_image Selectbox Field – field_custom_language Testcase: On selecting a different value from Selectbox, Alternative text of the image field should be changed. Issue: Alternative text is not changed on ajax call. function custom_form_alter(array &$form, FormStateInterface $form_state, $form_id) { $form[‘field_custom_language’][‘widget’][‘#ajax’] = [ ‘callback’ => ‘AltChange’, ‘event’ => ‘change’, ‘wrapper’ => ‘custom-image-wrapper’, ‘progress’ […]

Categories
Linux Mastering Development

Why does my bash script stop and say “Timeout. Exiting.”?

To learn Linux, I’m currently playing the overthewire.org Bandit wargame. I’m on level 24. I generated a wordlist to brute-force a local daemon. It didn’t work for me. I tried someone else’s script: https://www.jonyschats.nl/writeups/bandit-level-24-to-25/ Followed it step-by-step. Of course as I ran the script the output repeatedly displayed: Wrong! Please enter the correct pincode. Try […]

Categories
Linux Mastering Development

What’s up with set -x on my system?

In trying to learn about bash shell expansion and the effects that it has on passing arguments to grep, someone recommended that I use set -x to set the trace option on my shell and see how the shell was parsing my commands. On my remote BSD account, this seems to work as expected: ~ […]

Categories
Linux Mastering Development

Bash: how to build JSON from multiline strings

My awk outputs a multiline string. awkresult=`awk ‘{…}’` echo “{ \”result\”: \”$awkresult\” }” > result.json The multilines must be preserved in the result string. I think the best way is to insert newlines at the end of each line in awkresult. My awk script cannot be modified. How should I modify my code?

Categories
Ask Games Video Games

How to turn an enemy into a flying sheep?

There is an achievement on Steam: **Silence of the Lambs** Turn an enemy into a flying sheep… and then get rid of the sheep. How can I unlock it?