This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testfile1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ликбез по контрольной (в ближайшие часы будет пополняться): https://gist.github.com/nefanov/5bb54a7f8bc04f5768d46ace9b72c6ce | |
Напоминаю, что в четверг у нас доп. занятие, посвящённое повторению и подготовке. Время и место уточняются. | |
Контрольная работа планируется 21 октября на семинаре (12:20 - 15:30), почти на две пары. Проводиться она будет на EJudge - всё очень похоже на распределительный контест. Логины и пароли вам будут выданы, регистрироваться не нужно. | |
Детальнее - на семинаре :) | |
__________________________________________________________________________________________________________________________ | |
Ссылка на контест: | |
http://93.175.29.68/cgi-bin/new-register?action=207&contest_id=600102&locale_id=1 | |
Регистрируемся сами. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Для установки и настройки Qt Creator 5.x с MinGW (ОС Windows) нужно: | |
1) скачать онлайн-установщик http://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe | |
2) в случае невозможности онлайн-установки - скачать standalone-версию (можно отдельно Qt, можно Qt Creator): | |
http://download.qt.io/official_releases/qtcreator | |
или http://download.qt.io/official_releases/ | |
3) запустить скачанный файл | |
4) пошагово выполнить инструкцию, данную по ссылке: http://cppstudio.com/post/9273/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!По результатам доп. занятия. | |
printf и вообще форматный I/O: http://www.cplusplus.com/reference/cstdio/printf/ | |
Прошу прощения за неверный комментарий относительно беззнакового модификатора - глаз "замылился" - просто %u (смотрите man, там исчерпывающая информация). | |
Относительно рекурсии - как писать рекурсию и как сводить задачи от рекурсии к ДП по массиву, вроде бы , разобрались. | |
Демонстрирую (чтобы не забывали + по желанию учащихся): | |
Написать рекурсивную функцию, проверяющую, является ли число n степенью 2-х: | |
int recursion(double n) { | |
// Условие остановки: мы делили/делили наше число на два, в итоге получили 1 | |
if (n == 1) { | |
printf("YES\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Since kernel 3.3 with CONFIG_CHECKPOINT_RESTORE set(which is set in most distros), | |
there is /proc/sys/kernel/ns_last_pid which contains last pid generated by kernel. | |
Open /proc/sys/kernel/ns_last_pid and get fd | |
flock it with LOCK_EX | |
write PID-1 | |
fork | |
https://www.opennet.ru/man.shtml?topic=flock&category=2&russian=0 | |
Voilà! Child will have PID that you wanted. Also, don't forget to unlock (flock with LOCK_UN) and close ns_last_pid. | |
http://efiop-notes.blogspot.ru/2014/06/how-to-set-pid-using-nslastpid.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
main() | |
{ | |
double a,b; | |
scanf ("%f%f", &a ,&b); | |
if (a<b) | |
{ | |
printf ("%f\n", (a/sqrt(b*b+b*b))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//db | |
// создание коллекций | |
// этот код должен быть объявлен как на сервере, так и на клиенте | |
Rooms = new Meteor.Collection("rooms"); | |
Messages = new Meteor.Collection("messages"); | |
Parties = new Meteor.Collection("parties"); | |
// сервер: наполнение коллекций несколькими начальными документами | |
Rooms.insert({name: "Conference Room A"}); | |
var myRooms = Rooms.find({}).fetch(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.html5canvastutorials.com/advanced/html5-canvas-save-drawing-as-an-image/ | |
meteor add pascoual:pdfjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload = function() { | |
canvas = document.getElementById("the-canvas"); | |
context = canvas.getContext("2d"); | |
// Подключаем требуемые для рисования события | |
canvas.onmousedown = startDrawing; | |
canvas.onmouseup = stopDrawing; | |
canvas.onmouseout = stopDrawing; | |
canvas.onmousemove = draw; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Keyloggers: How they work and how to detect them (Part 1) | |
This article is a continuation of the previous report on keyloggers. It offers a detailed analysis of the technical aspects and inner workings of keyloggers. As was noted in the first article, keyloggers are essentially designed to be injected between any two links in the chain whereby a signal is transmitted from a key being pressed to symbols appearing on the screen. This article provides both an overview of which links exist in this chain, and how both software and hardware keyloggers work. | |
This article is written for technical specialists and experienced users. Other users, who are not part of this target group, should simply be aware that Windows offers a multitude of ways in which data entered via the keyboard can be harvested, although the vast majority of keyloggers only use two of these methods (see: Designing keyloggers, the first part of the article). | |
It should be stressed that this article does not include any keylogger source code; we d |
OlderNewer