stop next-track from removing previous track from playlist - mpd

I know this is possible because I did it before, I just cant remember how I did it. In my virtualbox when I press > in ncmpcpp it just goes to the next song in the playlist but in the fresh server I just set up pressing > removes the currently playing song from the playlist and goes to the next song.

consume mode is toggeled by pressing Shift + R

Related

How do I delay video from my webcam on my own feed?

Id like to have the ability to delay the video from my webcam on. my own computer. Honestly I am using. it. as a "delayed mirror" for my golf swing. I have always recorded, then stopped, opened up the file and watched then did it again. Doing this 30 times in a session working on my swing is annoying. Id like to just take a webcam, be able to delay the video 5,8,10 seconds so I can watch and just keep moving. what is the easiest way around this. I have been told I could do this with a script but not sure where to start. Can anyone help me or send me in the right direction? Im on a Mac but also have a PC if needed.
Python + OpenCV.
First manage to show a current image from your webcam using tutorials.
Then instead of immediately showing the image you add it at the end of a buffer object, this could be a collections.deque from standard Python.
If you want to delay for say 5 seconds and you're capturing with 30 frames per second, then don't show anything until you add 5*30 images from your camera to the buffer. Now when you filled the buffer as soon as you get another image, you add it to the end of the buffer, but also remove 1 image from the beginning of the buffer and show it.

Simulate mouse presses (BUTTON 4 and 5)

I'm trying to create a single file in BAT (Windows Command Prompt) to simulate a Mouse Back and Mouse Forward event (which is in fact just pressing down mouse button 4 and 5). I can't find anything on the internet on how to simulate these exact events. Most of them are about clicking the left mouse button but that's not what I need.
The program should be as simple as possible as I do not want heavy coding on this one. It should be straight forward and I hope one of you could help me out. Is this even possible (with BAT)?
The reason for this is that Logitech Gaming Software wrongly executes the back and forward buttons' up event twice, which results in annoying behaviours while for example browsing a webpage and trying to go back one page. It would then go back two pages.
Ok, I've been a little too quick with my question but it might help others. If you have the problem of your Logitech mouse doing double forward or backwards on browsers (Chrome, IE etc.) and in Windows Explorer please try the following.
First of all, you'll want to remove the currently mapped buttons. Be sure to select the desired profile first! So go over all three buttons (MOUSE 3, MOUSE 4 and MOUSE 5 (middle, tilt left, tilt right)) and remove their current mapping. By default (generic buttons) it will be "Middle click", "Back" and "Forward".
Now right click the profile at the top and select "Scripting". This is open a new window in which we can do some very advanced but still easy coding. Clear the whole thing and paste the code you find below in there. Press "Script" >> "Save" at the top of the window to save it and enjoy the working glory! You can easely test this by right clicking the profile again and selecting "Test profile". Now press any of the three buttons and you should get the outcome we want (down and up event only once on those exact buttons).
If you want to do some coding of your own feel free to change the script! The actual numbers to each mouse button can be found by clicking "Help" >> "Scripting API" at the top, along with some handy documentation. Keep in mind that you'll have to do this for every profile you desire. Doing this on the Default Profile seems the most reasonable for browsing.
function OnEvent(event, arg)
if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
OutputLogMessage("Pressing back button\n");
PressAndReleaseMouseButton(4);
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
OutputLogMessage("Pressing forward button\n");
PressAndReleaseMouseButton(5);
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == 3) then
OutputLogMessage("Pressing middle button...\n");
PressAndReleaseMouseButton(2);
end
--OutputLogMessage("event = %s, arg = %s\n", event, arg);
end

short cut for going back to previous implementations in Intellij

I am using the Intellij to view the codes.
I usually use ctrl + B to go to declaration and find the detailed implementations of the codes. However, I have no idea about going back to previous position where I started. So, I clicked the tab whenever I want to go back to the previous screen and this behavior is very annoyed and time consuming tasks. Do you know the short-cut of how to go back previous screen to debug the codes more quickly?
Go to next/previous editor tab
Alt + Right/Left
Navigate back/forward codes
Ctrl + Alt + Right/Left
Also Navigating Through the Source Code will help you.

Windows phone universal app is using camera only one time

In my app I have a button which open camera, take picture and do some processing on it and return back to previous page with the results.
Now Problem is this that it works one time and on second time it open other page but doesn't show camera. Then I have to completely close my application and again launch it to make it work.
I think this is happening because when I am taking picture first time, I open camera, capture it in a captureElement and when I open it second time the previous code is using camera or some thing. I thing there is some thing to close camera which i am missing.
You have to initialize camera every time you navigate to the page that contains it (OnNavigatedTo method). If you want to write a good code you have to deactive camera every time you leave the page (OnNavigatedFrom method). I hope this could be help you.

Detaching from inside screen. ^a, ad doesnt work

Firstly, I hope this is the right place for this question.
I have an odd problem with screen detaching. I can detach from most every screen I create, except one I am using to host a minecraft server.
When I hit control A D, all I get is another '>' symbol.
I get the same if i Hit control D.
I am doing the same thing that works on other screens, could this one be different somehow?
Ok, heres watcha wanna do. When you log into your unix system you get sent to the main screen. (The screen you first see) what you want to do, is type "screen". This will make you a new screen session. Now in this new screen session, start up your server. Once its started you can now CTRL+A D out of it, and it will take you to the main screen. I had this same exact problem. You NEED to have at least 2 screens to be able to do CTRL+A D.