Questions tagged [Abnormal programming] (52)

2
answers

Criticism and help on Vmware infrastructure

Actually you want criticism and help on building such infrastructure. Requires replication of live servers, and failover, with two identical infrastructure must be based on different sabretech and is available through DNS round-robin. Thanks for the help
Alize_Hau asked October 9th 19 at 22:14
3
answers

The implementation of the entry change in the table context with a composite primary key?

Faced with a seemingly standard problem, but I can't find neostyle solution (or maybe I'm just a sweet). The feeling that everything is very simple and elementary solved, and I'm not ashamed who knows nothing. There are two tables A and B primary keys are id — surrogate standard these INT NOT NULL AUTO_INCREMENT PRIMA... F...
Orville_Joh asked October 9th 19 at 20:25
1
answer

Recursive(?) regular expression in tcl?

Is the following program in tcl: #!/usr/bin/tclsh set p {} while {[gets stdin c] >= 0} { set r $p$c #puts [execute r] set p {} regexp {^([^\}]*\{)(?:[^{}]*(?:\{[^{}]*\})?)?$} $r -> p puts -nonewline $p flush stdout } It is seen that it is possible to open multiple brackets in one command(here "([^\}]*\{)"). Is it...
Birdie_Hahn asked October 8th 19 at 01:01
9
answers

Sleep(delay) in javascript?

Need a sleep function like in other languages, in javascript. To stop the rest of the code to download some data.Features of national forums: in America will meet in Europe will be sent, and in Russia will explain why you're a fool (joke). What is it? Don't tell me about setTimeout and setInterval. They are not suitable. I ...
melody.Williams asked October 8th 19 at 00:03
4
answers

2D rotation around center

Good day, ladies and gentlemen! Can't understand the next question — how to rotate image (sprite) around its center? Normal rotation rotates it in the upper left corner. The only way out is to adjust the X and Y coordinates in accordance with an angle so that the center of the sprite does not move due to the rotation. T...
Concepcion26 asked October 7th 19 at 23:18
1
answer

Advise books on neural networks

Advise books (and online resources) on neural networks. I recently began to study neural networks. It is desirable that resources were Russian-speaking and with a large number of references(!).
3
answers

How to make offline mode for clock screensavers Esquire?

About a beautiful watch Esquire wrote habrahabr.ru/post/143208/ Only that in every way they prepyatstvuyut work of the screensaver. But with a certain skill I was able to download all the movies. I wish someone would write an Intro for this set of files. You can download it via Magnet url (line breaks removed) magnet:? xt=u...
Joshuah.Howe asked October 7th 19 at 13:11
8
answers

Rand with different probability?

Hello my favorite hub "abnormal programming" Now I'll throw a problem on the uptake. Condition: there is a sequence, from 1 to 100, you need to choose a random number from this sequence, but so that at least 1 was lowest priority and 100 the maximum. The solution I have (even two, one programmer (found myself), the second m...
aron.DAmore41 asked October 3rd 19 at 19:25
3
answers

storing data for plotting

in General, there is a script that each time collects some data, some sensors. question: how to save the data, it was convenient to work with them in terms of charting? I want to see data for any period in any scale. to store each value as a separate entry in the database would not be desirable
london46 asked October 3rd 19 at 19:24
4
answers

Emulator SIM card

Good afternoon colleagues. Appeared the task to create an emulator of SIM cards push please to solution. Explain: Is your Asterisk server GSM Gateway with 4 slots under the SIM card. But SIM cards not 4, and 500 and included they must consistently and not all at once. Is it possible once to dump the SIM card and slip the GS...