The script works only once by clicking on the opening and closing

What is wrong with my code? What needs to be fixed so that the script always works on clicks of buttons? <script type=”text/javascript”> // Выполнить асинхронный Ajax-запрос с помощью метода POST. // Отправить данные на сервер и в случае успеха вывести // ответ сервера в диалоговом окне. jQuery(document).die(‘click’, ‘.sale_buton’) jQuery(document).on(‘click’, ‘.sale_buton’, function(event) { jQuery.ajax({ url:…

Details

Printing echo command only once at loop start

I have the following loop: for k in “${keys[@]}”; do if curl_output=$(curl -s -f \ –max-time 10 \ “https://api.site/info?key=$k”); then printf “\n\n%s\n$(json_pp<<<“$curl_output”)\n\n” “$k” fi done i want to printing echo command only once at loop start. It is clear that this option will print the “info endpoint” line many times instead of one. for k…

Details

rm with invert-match

I submitted 6490 jobs to our HPC > ls -1 split-data/*.fasta | wc -l 6490 > ls -1 split-data/*.fasta split-data/utg000001l.fasta split-data/utg000002l.fasta split-data/utg000003l.fasta split-data/utg000004l.fasta split-data/utg000005l.fasta Unfortunately, 93 jobs were put on hold. > qjobs | grep racon 5240703 racon-3/utg001564l-racon-3.fasta H 1 1 0 10.0 0.0 150 :03 5241418 racon-3/utg002276l-racon-3.fasta H 1 1 0 10.0 0.0 150…

Details

Ubuntu mate keyboard layouts adding problem

After updating of system keyboard is broken! I can not add keyboard layout! Button “Add” is disabled! How I can restore the system? $ cat /etc/default/keyboard # KEYBOARD CONFIGURATION FILE # Consult the keyboard(5) manual page. XKBMODEL=”pc105″ XKBLAYOUT=”us” XKBVARIANT=”” XKBOPTIONS=”” BACKSPACE=”guess” $ apt-cache policy mate-control-center mate-control-center: Installed: 1.20.2-2ubuntu1 Candidate: 1.20.2-2ubuntu1 Version table: *** 1.20.2-2ubuntu1 500…

Details

HTML Response Format incorrect?

I was looking at creating WebServers with C++. I followed this tutorial by Sloan Kelly, and referenced this answer here. I wrote the following code (showing the sending part only): std::stringstream make_response; make_response << “HTTP/1.1 200 OK\r\n”; make_response << “Cache-Control: no-cache, private\r\n”; make_response << “Content-Type: text/html\r\n”; make_response << “Content-Length: 88\r\n”; make_response << “\r\n”; make_response <<…

Details