|
Внимание! Теперь для входа на форум необходимо вводить единый пароль регистрации сервисов sibnet.ru!
Здравствуйте, гость ( Вход | Регистрация )
 Сейчас обсуждают
 
| |
Песочница, Для совсем простых вопросов :) |
|
|
Песочница, Для совсем простых вопросов :) |
|
|
A_l_e_k_s |
10.2.2009, 21:31
|

Любит поговорить
Группа: Sibnet-club
Сообщений: 445
Регистрация: 29.5.2008
Из: Новоалтайск
Пользователь №: 34 897

|
Цитата(shouhei @ 9.2.2009, 9:53)  А если просто скопировать диск 1 в 1? Нортон гостом там или акронисом? Потом нужно же будет только имя и ай-пи поменять.
Не хочется, оба системника опломбированы, придётся акты на вскрытие писать
|
|
|
|
HiSER |
26.2.2009, 23:28
|

Бородатый
Группа: Пользователи
Сообщений: 517
Регистрация: 24.9.2007
Из: Барнаул
Пользователь №: 6 410
Репутация: 37

|
Цитата(Linky @ 26.2.2009, 14:56)  Cущеуствуют ли в QBasic аналоги Сишных ">> << & | ^ ~" а именно "~" ? Нужно инвертировать байт: 0 0 0 0 1 1 1 1 был 1 1 1 1 0 0 0 0 стал
возможно ли это на бейсике?
NOT
|
|
|
|
AxoN |
5.3.2009, 20:01
|

МЕГА флудер
Группа: Sibnet-club
Сообщений: 1 225
Регистрация: 25.10.2007
Пользователь №: 8 658

|
Нужно пару советов по shell В общем есть лог реального сервера, весом более 500мб И есть задание в котором нужно узнать сколько запросов типа GET, CONNECT и пр было сделано клиентами. По идее задание простяцкое Код cat access.log | tr -s " " | cut -f 6 -d " " | sort | uniq -c Но при выполнении получаю ошибку Код /tmp: write failed, user disk limit reached sort: write failed: /tmp/sortJ3Qw8u: Disc quota exceeded Как по другому можно выполнить это задание?  ЗЫ Квота 50мб, использовать промежуточные файлы нельзя, конвейер желателен один
|
|
|
|
mephisto |
5.3.2009, 20:39
|

ортодоксальный линуксоид
Группа: VIP
Сообщений: 7 724
Регистрация: 17.11.2007
Из: столицы вашей родины
Пользователь №: 10 849

|
AxoN, а нафига тебе sort и uniq? В первом приближении я бы сделал так: Код tr -s " " < access.log | cut -f 6 -d " " | grep "GET" | wc -l Да, файл придётся прогонять несколько раз, для GET,CONNETC и пр, но зато так точно работает 
|
|
|
|
mephisto |
5.3.2009, 22:30
|

ортодоксальный линуксоид
Группа: VIP
Сообщений: 7 724
Регистрация: 17.11.2007
Из: столицы вашей родины
Пользователь №: 10 849

|
Цитата(AxoN @ 5.3.2009, 21:07)  Работает. Только если для всех запросов делать то очень долго работает и разрывается связь.
Ну а что ты хотел от файла такого размера такого. Так или иначе обрабатывать его надо избегая создания копии файла на диске или в памяти. С помощью gawk у меня помнится и 700-метровые txt-шники обрабатывались, правда долго...
|
|
|
|
Krawler |
22.3.2009, 17:53
|

Любит поговорить
Группа: Sibnet-club
Сообщений: 305
Регистрация: 24.5.2008
Из: А адресок не надо????
Пользователь №: 34 141
Репутация: 18

|
Цитата(LoganBrew @ 22.3.2009, 17:44)  как сделать обычный такой инсталлер » Спойлер (нажмите, чтобы прочесть) « ЕМНИП CreateInstall Pro вам поможет...
» Спасибо сказали: «
|
|
|
|
Linky |
22.3.2009, 21:44
|

МЕГА флудер
Группа: Sibnet-club
Сообщений: 3 466
Регистрация: 31.3.2008
Из: Барнаул
Пользователь №: 27 560
Репутация: 243

|
Цитата(LoganBrew @ 22.3.2009, 17:32)  как сделать в дельфи прогу чтобы при запуске выкидывало на мой саит???
Код uses shellapi; ... procedure TForm1.FormCreate(Sender: TObject); begin ShellExecute(Handle, nil, 'http://ДЕЛФИ_ЭТО_КРУТО_точка_ру', nil, nil, SW_SHOW); end;
Сообщение отредактировал Linky - 22.3.2009, 21:45
|
|
|
|
D1mAK@ |
28.3.2009, 6:51
|

Ьрутальный Мучачос
Группа: Sibnet-club
Сообщений: 2 133
Регистрация: 30.6.2007
Из: вращенец!
Пользователь №: 1 189
Репутация: 438

|
Цитата Вы настолько неопытны, что не можете правильно задать вопрос? Значит вам сюда! Даже не знаю, в правильную ли тему пишу =) Вообщем нужно поставить скрипт на "Юкозовский" сайт. Он уже готов к "употреблению", а вот каким образом его ставить я не знаю, обьясните если не трудно) Если нужно, то вот сам скрипт
com_clantools_v._1.2.3.zip ( 1008.88 килобайт )
Кол-во скачиваний: 68
|
|
|
|
3D Makc |
28.3.2009, 15:55
|

MaxTeam©
Группа: Sibnet-club
Сообщений: 456
Регистрация: 22.9.2007
Из: дома
Пользователь №: 6 303
Репутация: 102

|
Срочно!!! помогите разобраться с javascript'ом (я в нём почти ничё не понимаю  ). Вот он код: » Спойлер (нажмите, чтобы прочесть) « Код //**************************************************************************** //Copyright (C) 2005 Macromedia, Inc. All Rights Reserved. //The following is Sample Code and is subject to all restrictions on //such code as contained in the End User License Agreement accompanying //this product. //****************************************************************************
/* Dynamic Movie Clips Example The Flash gallery is created at runtime from an XML file. Images are scaled to 20% of their original size, but you can see the full size image by clicking an image and keeping the mouse button pressed. */
// Import the transitions classes so you can add a fading effect when the images load to the Stage. import mx.transitions.*;
// Set the starting X and Y positions for the gallery images. _global.thisX = 35; _global.thisY = 100;
/* Set static values for the Stage's width and height. Using Stage.width and Stage.height within the code results in strangely positioned full images when testing in the Flash environment (but the problem doesn't exist when published to a SWF file). */ _global.stageWidth = 720; _global.stageHeight = 540;
// Create and configure the XML instance which is used to load the list of gallery images on the fly. var gallery_xml:XML = new XML(); gallery_xml.ignoreWhite = true; gallery_xml.onLoad = function(success:Boolean) { try { /* if you are able to successfully load and parse the gallery from a remote XML file, parse out the image names and add them to an array. */ if (success) { var images:Array = this.firstChild.childNodes; var gallery_array:Array = new Array(); for (var i = 0; i<images.length; i++) { gallery_array.push({src:images[i].firstChild.nodeValue}); } /* call the displayGallery function which handles loading in each of the gallery images and placing them on the Stage. */ displayGallery(gallery_array); } else { throw new Error("Unable to parse XML"); } } catch (e_err:Error) { trace(e_err.message); } finally { delete this; } };
// load the gallery.xml file from the current directory. gallery_xml.load("gallery_tween.xml");
/* create a function which loops through the images in an array, and creates new movie clips on the Stage. */ function displayGallery(gallery_array:Array) { var galleryLength:Number = gallery_array.length; // loop through each of the images in the gallery_array. for (var i = 0; i<galleryLength; i++) { /* create a movie clip instance which holds the image. We'll also set a variable, thisMC, which is an alias to the movie clip instance. */ var thisMC:MovieClip = this.createEmptyMovieClip("image"+i+"_mc", i); /* load the current image source into the new movie clip instance, using the MovieClipLoader class. */ mcLoader_mcl.loadClip(gallery_array[i].src, thisMC); // attach the preloader symbol from the Library onto the Stage. preloaderMC = this.attachMovie("preloader_mc", "preloader"+i+"_mc", 5000+i); /* set the preloader's bar_mc's _xscale property to 0% and set a default value in the progress bars text field. */ preloaderMC.bar_mc._xscale = 0; preloaderMC.progress_txt.text = "0%"; // set the _x and _y coordinates of the new movie clip. thisMC._x = _global.thisX; thisMC._y = _global.thisY; // set the position of the image preloader. preloaderMC._x = _global.thisX; preloaderMC._y = _global.thisY+20; // if you've displayed 5 columns of images, start a new row. if ((i+1)%4 == 0) { // reset the X and Y positions _global.thisX = 70; _global.thisY += 200; } else { _global.thisX += 100+50; } } }
// define the MovieClipLoader instance and MovieClipLoader listener Object. var mcLoader_mcl:MovieClipLoader = new MovieClipLoader(); var mclListener:Object = new Object(); mclListener.onLoadStart = function() { };
// while the content is preloading, modify the width of the progress bar. mclListener.onLoadProgress = function(target_mc, loadedBytes, totalBytes) { var pctLoaded:Number = Math.round(loadedBytes/totalBytes*100); // create a shortcut for the path to the preloader movie clip. var preloaderMC = target_mc._parent["preloader"+target_mc.getDepth()+"_mc"]; preloaderMC.bar_mc._xscale = pctLoaded; preloaderMC.progress_txt.text = pctLoaded+"%"; };
// when the onLoadInit event is thrown, you're free to position the instances mclListener.onLoadInit = function(evt:MovieClip) { evt._parent["preloader"+evt.getDepth()+"_mc"].removeMovieClip(); /* set local variables for the target movie clip's width and height, and the desired settings for the image stroke and border. */ var thisWidth:Number = evt._width; var thisHeight:Number = evt._height; var borderWidth:Number = 5; var marginWidth:Number = 15; evt.scale = 20; // draw a white rectangle with a black stroke around the images. evt.lineStyle(borderWidth, 0x000000, 100); evt.beginFill(0xFFFFFF, 100); evt.moveTo(-borderWidth-marginWidth, -borderWidth-marginWidth); evt.lineTo(thisWidth+borderWidth+marginWidth, -borderWidth-marginWidth); evt.lineTo(thisWidth+borderWidth+marginWidth, thisHeight+borderWidth+marginWidth); evt.lineTo(-borderWidth-marginWidth, thisHeight+borderWidth+marginWidth); evt.lineTo(-borderWidth-marginWidth, -borderWidth-marginWidth); evt.endFill(); /* scale the target movie clip so it appears as a thumbnail. This allows users to quickly view a full image without downloading it every time, but unfortunaltey also causes a large initial download. */ evt._xscale = evt.scale; evt._yscale = evt.scale; // rotate the current image (and borders) anywyhere from -5 degrees to +5 degrees. evt._rotation = Math.round(Math.random()*-10)+5; /* when the target_mc movie clip instance is pressed, begin to drag the current movie clip and set some temporary variables so once you are finished rescaling and positioning the full image, you can return the instance to its original position. */ evt.onPress = function() { // start dragging the current clip. this.startDrag(); /* set the _xscale and _yscale properties back to 100% so the image appears full sized. You're also storing the original X and Y coordinates so you can return the image where you found it. */ this._xscale = 60; this._yscale = 60; this.origX = this._x; this.origY = this._y; // find the depth of the current movie clip, and store it within the movie clip. this.origDepth = this.getDepth(); /* :TRICKY: swap the depth of the current movie clip, with the next highest movie clip of the _parent. Effectively this makes the current movie clip the top of the "stack". */ this.swapDepths(this._parent.getNextHighestDepth()); // try and center the current movie clip on the Stage. this._x = (_global.stageWidth-evt._width+30)/2; this._y = (_global.stageHeight-evt._height+30)/2; // apply a transition to the movie clip which makes the movie clip flicker for a split second. mx.transitions.TransitionManager.start(this, {type:mx.transitions.Photo, direction:0, duration:1, easing:mx.transitions.easing.Strong.easeOut, param1:empty, param2:empty}); }; /* when the movie clip instance is released, stop dragging the movie clip. Reset the _xscale and _yscale properties as well as the _x and _y coordinates. */ evt.onRelease = function() { this.stopDrag(); this._xscale = this.scale; this._yscale = this.scale; this._x = this.origX; this._y = this.origY; }; // if the mouse cursor was released outside of the movie clip, call the onRelease handler. evt.onReleaseOutside = evt.onRelease; }; mcLoader_mcl.addListener(mclListener);
Он с пояснениями на английском. Этот скрипт загружает изображения из xml-файла во флэш. И мне нужно сделать, чтобы при при переходе на другой кадр (командой "gotoandplay") изображения убирались/выгружались, а то они остаются висеть, когда уже идёт какая-нибудь другая анимация. Анимацию создаю в Macromedia Flash Professioanal 8.
|
|
|
|
mephisto |
3.4.2009, 21:14
|

ортодоксальный линуксоид
Группа: VIP
Сообщений: 7 724
Регистрация: 17.11.2007
Из: столицы вашей родины
Пользователь №: 10 849

|
Цитата(kolap @ 3.4.2009, 18:44)  На Бейсике или Турбобейсике кусок программы проверки готовности принтера, наличия бумаги и др. >100 '''Получаем адрес LPT1 и проверяем готов ли принтер >110 DEF SEG = &H40 'указываем на область BIOS >120 PRTRBASE = PEEK(9)+256*PEEK(8)+1 'адрес регистра статуса >130 IF INP(PRTRBASE) = 223 THEN 180 'если принтер готов
Не нашел как обратится к памяти в Вижуал Бейсике. Команд: PEEK, POKE там нет. Чем их заменить, чтоб записать или прочитать регистры принтера в памяти компьютера?
Не тот путь, Windows не DOS, смотри в сторону WinAPI для работы с принтером. http://msdn.microsoft.com/ru-ru/library/9s96f6ft.aspxЦитата(AirKite @ 3.4.2009, 18:47)  как откомпилировать код имея только файл с расширением .с? Очевидно компилятором, например gcc Цитата(AirKite @ 3.4.2009, 18:47)  да и кто бы поделился вот этими инклудами Ты бы для начала разобрался что такое инклюдник и с чем его едят 
|
|
|
|
|
  |
1 чел. просматривают этот форум (гостей: 1, скрытых пользователей: 0)
Пользователей: 0
|