Re: Поиск и замена строк в файле

2014-01-31 Thread Vyacheslav Karamov
1) Можно поискать здесь http://mywiki.wooledge.org/BashFAQ уже готовое решение, как такой файл прочитать и проанализировать. Кажется там я видел коллекцию готовых модулей, брал скрипт который парсил INI-файл виндовый. Работало :) 2) Простая программа на С++ или С легко сделает тоже самое. Вопр

Re: Resizing Detail View of UISplitViewController

2014-01-09 Thread Vyacheslav Karamov
Thanks! Good point, but I forgot to say I need the possibility to hide/show sidebar by tapping nav bar item. This might be ok for some cases, but I need detail view to be shrunk. 09.01.2014 19:34, Kyle Sluder wrote: On Jan 9, 2014, at 8:59 AM, Fritz Anderson wrote: In other words, you’d like

Re: Resizing Detail View of UISplitViewController

2014-01-09 Thread Vyacheslav Karamov
Thanks for help! I came to the same conclusion after making a set of experiments. 09.01.2014 18:59, Fritz Anderson wrote: On 9 Jan 2014, at 8:49 AM, Viacheslav Karamov wrote: I'm using a UISplitViewController in my iPad app and I don't really like the way the popover view slides in and cove

Re: Scrollable GridView with fixed row and column

2013-10-15 Thread Vyacheslav Karamov
Thanks Quincey! How to implement scrolling? 15.10.2013 21:43, Quincey Morris wrote: On Oct 15, 2013, at 11:05 , Vyacheslav Karamov <mailto:ubuntul...@yandex.ru>> wrote: How to do this in a right way? I think UICollectionView may be what you want: https://developer.apple.com/li

Re: Scrollable GridView with fixed row and column

2013-10-15 Thread Vyacheslav Karamov
Thank you Kyle. But could you be more specific? 15.10.2013 21:18, Kyle Sluder wrote: On Oct 15, 2013, at 11:05 AM, Vyacheslav Karamov wrote: I need to implement Grid view for iOS 7 and newer. The users should have ability to scroll its contents both horizontally and vertically. They also

Scrollable GridView with fixed row and column

2013-10-15 Thread Vyacheslav Karamov
I need to implement Grid view for iOS 7 and newer. The users should have ability to scroll its contents both horizontally and vertically. They also should have ability to mark the very first row and column as fixed i.e. non-scrollable. How to do this in a right way? Thanks, Vacheslav. __

Re: NSTextView with irregular shape

2013-02-14 Thread Vyacheslav Karamov
12:00 PM, Vyacheslav Karamov wrote: I know how to implement custom text layout. Good example of this I have found in "Cocoa Programming Developer's Handbook" by David Chisnall. This book gives an example how to implement custo text layout, but I don't understand how to

Re: NSTextView with irregular shape

2013-02-14 Thread Vyacheslav Karamov
ause my widget grow in height while user is typing, custom image should also grow and vertical scrollbar appears if needed. Anyway, thank you for the quick response! Good luck, Vyacheslav. 14.02.2013 18:56, Keary Suska пишет: On Feb 14, 2013, at 4:11 AM, Vyacheslav Karamov wrote: I need to

Re: NSTextView with irregular shape

2013-02-14 Thread Vyacheslav Karamov
No, I have already implemented bubbles. It is just NSTableView descendant. 14.02.2013 19:13, Kyle Sluder пишет: On Feb 14, 2013, at 3:11 AM, Vyacheslav Karamov wrote: Hello All! I need to implement NSTextView descendant similar to one used in Mac iMessages App. I have implemented live

NSTextView with irregular shape

2013-02-14 Thread Vyacheslav Karamov
Hello All! I need to implement NSTextView descendant similar to one used in Mac iMessages App. I have implemented live resizing, but how to set resizable image as its custom shape? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: [CMake] How to get Visual Studio to use more than a single core for compiling

2012-11-27 Thread Vyacheslav Karamov
How could I use it on Windows? 27.11.2012 17:36, Gary Little пишет: Try ninja, which is available via macports. My primary project uses CMake to create 3 Windows build environments: nmake, VisualStudio, and ninja. In the VS environment I can use msbuild /m .sln. The ninja environment is about

Re: [CMake] CMake toolchain and FIND_PACKAGE(OpenSSL)

2012-11-19 Thread Vyacheslav Karamov
Hi, try setting packagename_DIR before FIND_PACKAGE() 19.11.2012 14:41, Boards Killer ?: Hi CMake Community ! I am writing a CMake toolchain to cross compile our CMake project with the Ubuntu ARM Linux toolchain. The CMake toolchain is given below. I am facing the following problem. Whe

Re: [CMake] Change RPATH at the packaging stage

2012-11-02 Thread Vyacheslav Karamov
ake") set(CPACK_PACKAGING_INSTALL_PREFIX ${install_dir}) set(CMAKE_INSTALL_RPATH ${install_dir}) endif() 02.11.2012 16:40, Vyacheslav Karamov пишет: Thank you very much, Eric! It works! --- CMakeLists.txt -- include (FindSubversion) if (NOT Subversion_FOUND) message

Re: [CMake] Change RPATH at the packaging stage

2012-11-02 Thread Vyacheslav Karamov
---CPackOptions.cmake.in--- SET(CMAKE_INSTALL_RPATH "/opt/@proj_name@") set(CPACK_PACKAGE_VERSION "@pack_version@") set(CPACK_PACKAGE_FILE_NAME "@proj_name@-${CPACK_PACKAGE_VERSION}r@revision@-${CPACK_SYSTEM_NAME}") ------C

[CMake] Change RPATH at the packaging stage

2012-11-01 Thread Vyacheslav Karamov
Hi All! Is it possible to change rpath at the packaging stage? I have CMake based project with CPack directives in its CMake script: if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") SET(install_dir "/opt/chatterbox") SET(CMAKE_SKIP_BUILD_RPA

Re: [CMake] Variable target name visible at the top level

2012-10-26 Thread Vyacheslav Karamov
26.10.2012 12:16, Eric Noulard пишет: 2012/10/26 Vyacheslav Karamov : Hi All! I have project with the structure similar to this worker | | | chatterbox | || | |CMakeLists.txt | | | externals | || | |sndlib

Re: [CMake] Variable target name visible at the top level

2012-10-26 Thread Vyacheslav Karamov
Thank you, but if I need variable two level up? 26.10.2012 12:07, Rolf Eike Beer пишет: On Fr., 26. Okt. 2012 10:22:51 CEST, Vyacheslav Karamov wrote: Hi All! I have project with the structure similar to this set (snd_lib "sndlib") add_library(${snd_lib} SHARED ...) How to h

[CMake] Variable target name visible at the top level

2012-10-26 Thread Vyacheslav Karamov
Hi All! I have project with the structure similar to this worker | | | chatterbox | || | |CMakeLists.txt | | | externals | || | |sndlib | | | | | CMakeLists.txt | CMakeLists.txt | CMakeLists.txt $ cat worker/

Re: [CMake] Cmake link trouble in Windows

2012-10-23 Thread Vyacheslav Karamov
Hi! 1. I don't understand what did you mean, but I guess you want to create library test ADD_LIBRARY(test SHARED ${FAN_SRC}) then you wanted to specify in which directory some libraries should be searched LINK_DIRECTORIES(${ACE_LIB_DIR}) and then you tried to link library ACE with your targ

Re: [CMake] target_link_libraries fails if one of the libraries is NOTFOUND

2012-10-17 Thread Vyacheslav Karamov
e you sure that the Release configuration that you used is not considered as one of the *|DEBUG_CONFIGURATIONS ?|* Kind regards, On Sun, Oct 14, 2012 at 8:59 PM, Vyacheslav Karamov mailto:vkara...@yandex.ru>> wrote: Hi All! I've found annoying bug in Cmake 2.8.8 for L

[CMake] target_link_libraries fails if one of the libraries is NOTFOUND

2012-10-14 Thread Vyacheslav Karamov
o_scoring_debug) set (do_scoring_debug do_scoring) endif() but it seems to strange why should I need it. ___ WBR, Vyacheslav Karamov. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the

Re: Самообразование

2012-06-14 Thread Vyacheslav Karamov
А что значит "какие разработчики"? Слишком общий вопрос. 14.06.2012 0:06, Кирилл Коваленко написал: Ребята, подскажите те кто уже работают с GNU/Linux: что сейчас актуально?! Какие разработчики требуются на данную ось?! Если же заниматься администрированием, то что должен знать и уметь админ?!

Re: [CMake] Setting COMPILE_FLAGS property on a target in only debug?

2012-05-05 Thread Vyacheslav Karamov
Hi! It's pity, but CMAKE_BUILD_TYPE is empty for CMake Visual Studio generator. 04.05.2012 23:40, Tim Gallagher ???: Put an: if(CMAKE_BUILD_TYPE STREQUAL "Debug") endif() guard around the set_property call. Tim *Fr

Re: [CMake] Setting "Header Search Path" in Xcode project

2012-04-27 Thread Vyacheslav Karamov
Problem solved by removing Fink version and installing CMake from cmake.org 27.04.2012 18:56, Vyacheslav Karamov написал: Hi All! I have problem with CMake 2.8.8 in OS X Lion. CMake include_directories() doen't add "Header Search Path" to CMake-generated Xcode project.

[CMake] Setting "Header Search Path" in Xcode project

2012-04-27 Thread Vyacheslav Karamov
Hi All! I have problem with CMake 2.8.8 in OS X Lion. CMake include_directories() doen't add "Header Search Path" to CMake-generated Xcode project. WBR, Vyacheslav. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.ht

[CMake] How to add dependency on parent directories?

2012-04-25 Thread Vyacheslav Karamov
Hi All! My project's (named Compare) structure is similar to this: Root | SphinX | sphinxbase (autotools project) Sound | |-DoScoring (my Cmake-based project) |-Compare (my Cmake-based project) |-CMakeLists.txt |-src (source files f

Re: [CMake] target_link_libraries can't link shared libraries not listed in LD_LIBRARY_PATH

2012-04-23 Thread Vyacheslav Karamov
Pakulat ???: Hi, On Mon, Apr 23, 2012 at 13:24, Vyacheslav Karamov mailto:ubuntul...@yandex.ru>> wrote: Hi All! I have a problem with target_link_libraries. It can't link with shared libraries not from directory listed in LD_LIBRARY_PATH. 1. When I try to link sha

[CMake] target_link_libraries can't link shared libraries not listed in LD_LIBRARY_PATH

2012-04-23 Thread Vyacheslav Karamov
Hi All! I have a problem with target_link_libraries. It can't link with shared libraries not from directory listed in LD_LIBRARY_PATH. 1. When I try to link shared library with the full path obtained from find_library, my library is passed to gcc without -l option as ordinary object file. 2

[CMake] How to find MinGW static library in Windows?

2012-04-17 Thread Vyacheslav Karamov
Hi All! I have some MinGW static libraries and I need to use them in VS2008 project which is generated by CMake. if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") set(CMAKE_FIND_LIBRARY_PREFIXES ${CMAKE_FIND_LIBRARY_PREFIXES} lib) set(CMAKE_FIND_LIBRARY_SUFFIXES ".a" ${CMAKE_FIND_LIBRARY_SUFFIXES

Re: [CMake] find_library in Windows(SOLVED)

2012-04-17 Thread Vyacheslav Karamov
I'm happy. It works! target_link_libraries(${lib_name} debug ${do_scoring_debug} debug ${spinx_debug} optimized ${do_scoring} optimized ${spinx} ) 17.04.2012 14:59, Vyacheslav Karamov написал: When I specified full library name with extension find_library worked. But still have both debu

Re: [CMake] find_library in Windows

2012-04-17 Thread Vyacheslav Karamov
When I specified full library name with extension find_library worked. But still have both debug and release versions of library being linked with my target. 17.04.2012 12:13, Vyacheslav Karamov написал: This code doesn't work also: if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows"

Re: [CMake] find_library in Windows

2012-04-17 Thread Vyacheslav Karamov
ed PATHS ${CMAKE_CURRENT_SOURCE_DIR}/../../Sphinx/sphinxbase/bin/Debug DOC "SphinX debug library" ) endif() 17.04.2012 11:47, Vyacheslav Karamov написал: Hi All! I have a problem with find_library in Windows. It does find static library, but not import library. It's confusing

Re: [CMake] COMPILE_DEFINITIONS_Debug doesn't work in Windows

2012-04-17 Thread Vyacheslav Karamov
Yes I do. 17.04.2012 11:49, Rolf Eike Beer написал: It also doesn't work set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_DEBUG "USE_MP3READER2;DLL_EXPORTS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T") set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_RELEASE "USE_MP3READER2;DLL_EXPORTS;_U

[CMake] find_library in Windows

2012-04-17 Thread Vyacheslav Karamov
Hi All! I have a problem with find_library in Windows. It does find static library, but not import library. It's confusing to me. if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") find_library(spinx NAMES sphinxbase ${CMAKE_CURRENT_SOURCE_DIR}/../../Sphinx/sphinxbase/bin/Release ) fin

Re: [CMake] COMPILE_DEFINITIONS_Debug doesn't work in Windows(SOLVED)

2012-04-17 Thread Vyacheslav Karamov
;_USE_32BIT_TIME_T) else(WIN32) set_property(TARGET ${lib_name} PROPERTY COMPILE_DEFINITIONS_DEBUG USE_MP3READER2) set_property(TARGET ${lib_name} PROPERTY COMPILE_DEFINITIONS_RELEASE USE_MP3READER2) endif(WIN32) works fine, thanks! 17.04.2012 11:19, Vyacheslav Karamov написал: It also

Re: [CMake] COMPILE_DEFINITIONS_Debug doesn't work in Windows

2012-04-17 Thread Vyacheslav Karamov
It also doesn't work set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_DEBUG "USE_MP3READER2;DLL_EXPORTS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T") set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_RELEASE "USE_MP3READER2;DLL_EXPORTS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T")

[CMake] COMPILE_DEFINITIONS_Debug doesn't work in Windows

2012-04-17 Thread Vyacheslav Karamov
Hi All! I need to add some preprocessor definitions to my target. Here is the code: if (WIN32) set (COMPILE_DEFINITIONS_Debug _DEBUG USE_MP3READER2 _EXPORTS _USRDLL _CRT_SECURE_NO_WARNINGS _USE_32BIT_TIME_T ) set (COMPILE_DEFINITIONS_Release NDEBUG US

Re: Installing & running Xcode

2012-03-21 Thread Vyacheslav Karamov
Hi! XCode 2x works pretty good with Panther. We have old PPC mac-mini with 10.3.9 and XCode 2x (I' don't remember exact version) installed. 21.03.2012 18:11, Nick Zitzmann пишет: On Mar 19, 2012, at 5:52 PM, Bill Meng wrote: I've downloaded Xcode 1.0 from Apple to run on OS 10.4. After inst

Re: How to tell Xcode to forget file

2012-02-08 Thread Vyacheslav Karamov
Hi! You need to remove file from the project tree in XCode. 09.02.2012 9:20, Alexander Reichstadt пишет: Hi, I am loosing my mind here. I have a project. It was under git control. When I tried to compile it failed. I noticed there was a wrong file added for iOS, the project was Xcode. I rem

Re: помогите поставить netbeans на убунту

2012-01-27 Thread Vyacheslav Karamov
А подробнее? 27.01.2012 15:16, Максим пишет: пытался тут поставить net-бобы, а в ответ получил, что jdk,jre и еще какой-то doc она получить не может, потому что error 404 ... вот-с -- ubuntu-ru mailing list ubuntu-ru@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru

Re: How to get mount options of a mounted volume?

2011-10-11 Thread Vyacheslav Karamov
Hi! Have you tried [NSWorkspace getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:] ? http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWorkspace_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWorkspace/getFile

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-06 Thread Vyacheslav Karamov
Cast window to the type id: if ([window respondsToSelector:@selector(setRestorationClass:)]) { [(id)window setRestorationClass:someClass]; } 06-Sep-11 13:33, Oleg Krupnov пишет: if ([window respondsToSelector:@selector(setRestorationClass:)]) { [window setRestorationClass:someClass]; }

Re: How disable File/Open command

2011-08-15 Thread Vyacheslav Karamov
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MenuList/Articles/EnablingMenuItems.html#//apple_ref/doc/uid/2261-BAJBFGED 15-Aug-11 16:08, McLaughlin, Michael P. пишет: I have a Cocoa document app targeting Snow Leopard. It is, in most respects, a standard document

Re: Graphical Keyboard Map

2011-08-15 Thread Vyacheslav Karamov
http://scripts.sil.org/cms/scripts/page.php?item_id=inputtoollinks#dc9009da ? http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=Ukelele 15-Aug-11 11:47, John Joyce пишет: Thanks Vyacheslav, but I am a little more interested in Mac keyboards... _

Re: Graphical Keyboard Map

2011-08-15 Thread Vyacheslav Karamov
http://msdn.microsoft.com/en-us/goglobal/bb964651 15-Aug-11 11:07, John Joyce пишет: Does anybody know a programmatic way or a reference resource to get graphical keyboard map or layout for the currently active keyboard? Are these documented anywhere anymore? I would like to provide an on-scree

Re: Using #define a good way for String constants, like enums for NSIntegers?

2011-08-09 Thread Vyacheslav Karamov
Don't forget about @: #define MY_FUNNY_STR @"Ha-ha-ha!" 09-Aug-11 13:47, Devraj Mukherjee пишет: Hi all, I am writing an API client for a REST service, parts of the REST API returns fixed String values. E.g. status of an order. I want to represents these fixed responses as constants. I have

Deprecated methods usage

2011-08-03 Thread Vyacheslav Karamov
Hi All! Could I use deprecated methods in my application? I have to support OS X 10.4+ and for example need to obtain file modification date, so could I use [NSFileManager fileAttributesAtPath:traverseLink:] which is deprecated in 10.5? ___ Cocoa-d

Re: Custom NSSlider

2011-06-16 Thread Vyacheslav Karamov
Look towards BWToolkit. But note: you should better use XCode 3.2.6, not 4.0.2, cause XCode 4.x lack of plug-ins support. 16-Jun-11 11:20, Nick пишет: Basically I was looking for some freely available fancy controls, that are suitable for players. Like AlphaControls for Delphi (for Windows) o

Re: Custom NSSlider

2011-06-16 Thread Vyacheslav Karamov
I'm currently support project which use custom NSSlider. 16-Jun-11 04:18, Nick пишет: Hello I am wondering if there are any free custom NSSlider controles available with changed knob and trackbar images? The ones similar to QuickTime Player and iTunes (for a player application). Does everyone i

Re: List of fonts installed?

2011-06-08 Thread Vyacheslav Karamov
I couldn't find these keys in the list of available keys in App property list. I'm using XCode 3.2.6 08-Jun-11 15:23, Ken Thomases пишет: On Jun 8, 2011, at 7:18 AM, Vyacheslav Karamov wrote: 08-Jun-11 15:13, Ken Thomases пишет: On Jun 8, 2011, at 6:56 AM, Vyacheslav Karamov wrote

Re: List of fonts installed?

2011-06-08 Thread Vyacheslav Karamov
Oops, I forgot to mention that target platform is OS X 10.4+ 08-Jun-11 15:13, Ken Thomases пишет: On Jun 8, 2011, at 6:56 AM, Vyacheslav Karamov wrote: I need to install some fonts to ~/Library/Fonts at the first run of my Application, Why? Are you aware that you can have fonts bundled

List of fonts installed?

2011-06-08 Thread Vyacheslav Karamov
Hi All! I need to install some fonts to ~/Library/Fonts at the first run of my Application, but how to obtain list of fonts already installed to copy missing fonts only? Thanks you in advance, Vyacheslav. ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: Declaring and initialization of C array.

2011-06-02 Thread Vyacheslav Karamov
I agree with you, but I guess he missed semicolon just before an array declaration because he got *compiler* error, not linker! Correct declaration could be of two forms: 1) In header file static int a[2] = {1,2}; or static int a[] = {1,2}; 2) In header file extern int a[2]; In *.m file: int a

How to extract files from zip archive?

2011-05-30 Thread Vyacheslav Karamov
Hi All! I need to extract zip-archive content to ~/Library/Application Support/My Program/Shared at the first launch. What the best way to do it? I tried to NSString * listsPath = STR_ADDPATH([[NSBundle mainBundle] resourcePath], @"lists.zip"); if (0 == folderSize && FileTools::DoesFi

Re: How to remove menu from WebView?

2011-05-23 Thread Vyacheslav Karamov
OS X 10.4+ 23-May-11 12:36, Mike Abdullah пишет: Mac or iOS? It's hard to tell from your question. On 23 May 2011, at 10:28, Vyacheslav Karamov wrote: Hi All! How to remove pop-up menu from WebView instance? ___ Cocoa-dev mailing list (

How to remove menu from WebView?

2011-05-23 Thread Vyacheslav Karamov
Hi All! How to remove pop-up menu from WebView instance? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/

Re: bash: Скопировать каталог с сохранением структуры но без *.svn

2011-05-20 Thread Vyacheslav Karamov
Спасибо, но я не понимаю, для чего мне нужно пользоваться git, если у меня на сервере subversion? Задачу с копированием каталогов без .svn я решил благодаря рассылке, а усложнять себе жизнь не хочу. К тому же, кто даст гарантию, что другим людям, которые будут пытаться собрать проект без меня,

How to disable menu item?

2011-05-19 Thread Vyacheslav Karamov
Hi all! How to disable menu or menu item programmatically? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/

Re: bash: Скопировать каталог с сохранением структуры но без *.svn

2011-05-19 Thread Vyacheslav Karamov
О, спасибо! То, что надо! 19-May-11 10:54, Alex пишет: Здравствуйте, Vyacheslav Karamov On 19.05.2011 11:21 Привет всем! Как на bash cкопировать каталог с сохранением структуры но без *.svn? Не совсем bash, но если есть rsync то rsync -r --exclude *.svn /path-to-dir1/ /path-to-dir2

Re: bash: Скопировать каталог с сохранением структуры но без *.svn

2011-05-19 Thread Vyacheslav Karamov
: Ты прямо в репозитории что ли код правишь? 19 мая 2011 г. 11:39 пользователь Vyacheslav Karamov mailto:ubuntul...@yandex.ru>> написал: конечно нет 19-May-11 10:30, Vladimir Yatulchik пишет: 19 мая 2011 г. 11:21 пользователь Vyacheslav Karamov mailto:ubuntul...@yan

Re: bash: Скопировать каталог с сохранением структуры но без *.svn

2011-05-19 Thread Vyacheslav Karamov
конечно нет 19-May-11 10:30, Vladimir Yatulchik пишет: 19 мая 2011 г. 11:21 пользователь Vyacheslav Karamov mailto:ubuntul...@yandex.ru>> написал: Как на bash cкопировать каталог с сохранением структуры но без *.svn? svn export не подойдёт? -- ubuntu-ru mailing list ubu

Re: bash: Скопировать каталог с сохранением структуры но без *.svn

2011-05-19 Thread Vyacheslav Karamov
/srv/data/for_report -name *.svn -exec rm -f {} \; Только убедись что у тебя все файлы правильно ищет, а то удалишь лишнее) 19 мая 2011 г. 11:21 пользователь Vyacheslav Karamov написал: Привет всем! Как на bash cкопировать каталог с сохранением структуры но без *.svn? -- ubuntu-ru mailing

bash: Скопировать каталог с сохранением структуры но без *.svn

2011-05-19 Thread Vyacheslav Karamov
Привет всем! Как на bash cкопировать каталог с сохранением структуры но без *.svn? -- ubuntu-ru mailing list ubuntu-ru@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru

Re: Moving windows from one NIB to another(solved)

2011-05-12 Thread Vyacheslav Karamov
loadNibNamed saved me :) 12-May-11 15:14, Vyacheslav Karamov пишет: Hi All! I have to support pretty large project which has all windows in a single NIB. I tried to create another NIB and then moved some windows from Main.NIB to it. But application fails to load. I suggest that app

Moving windows from one NIB to another

2011-05-12 Thread Vyacheslav Karamov
Hi All! I have to support pretty large project which has all windows in a single NIB. I tried to create another NIB and then moved some windows from Main.NIB to it. But application fails to load. I suggest that app couldn't load one of the panels at start, but I have no idea which steps I ne

Re: L-shaped custom view in Cocoa?

2011-05-06 Thread Vyacheslav Karamov
Yes, I need to write virtual keyboard. 05-May-11 21:11, Kyle Sluder пишет: On Thu, May 5, 2011 at 10:59 AM, Shawn Bakhtiar wrote: What? It does too work! Once the window is setup correctly. This is how a do all my transparent windows, and for any naysayers out there here is the code: http://w

Re: L-shaped custom view in Cocoa?

2011-05-04 Thread Vyacheslav Karamov
rectangle. On May 4, 2011, at 6:41 AM, Vyacheslav Karamov wrote: I need to make custom view in the form of letter L. How to do it? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

L-shaped custom view in Cocoa?

2011-05-04 Thread Vyacheslav Karamov
Hi All! I need to make custom view in the form of letter L. How to do it? Thank you in advance, Vyacheslav. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: How to store main window frame to user defaults?

2011-04-28 Thread Vyacheslav Karamov
8 Apr 2011, at 11:32, Vyacheslav Karamov wrote: I can't use Interface builder, because it crashes while opening NIB file. I'm currently using XCode 3.2.6, but NIB file was created with IB 2.x using plug-in. So, where is it better to save main window frame? I've tried to do do it in

Re: How to store main window frame to user defaults?

2011-04-28 Thread Vyacheslav Karamov
RectFromString() to convert to/from a string to store in the defaults. However, it might be easier to set frameAutosaveName and let the window save and restore the frame itself. Just enter the key in the autosave attribute in Interface Builder and it should work. Aaron On Apr 28, 2011, at 4:50 AM,

How to store main window frame to user defaults?

2011-04-28 Thread Vyacheslav Karamov
Hi All! I need to save main window size and position to user defaults: NSValue * rect = [NSValue valueWithRect: [[NSApp mainWindow] frame]]; [[NSUserDefaults standardUserDefaults] setObject:rect forKey:@"MainWndFrame"]; but console output is: 2011-04-28 11:45:00.139 UserDefaults[32801:a0f]

Re: Adding custom view in IB

2011-04-15 Thread Vyacheslav Karamov
15-Apr-11 00:34, Luc Van Bogaert пишет: Hi, I know how to subclass NSView to create a custom view, and add it to a window as a subview using interface builder. But when I want to control my custom view with a viewcontroller object, both contained in a seperate nib file, I'm getting a bit con

Re: Mac App Store requirements

2011-04-11 Thread Vyacheslav Karamov
I have $99 account, so I'll try to find the doc. 11-Apr-11 15:24, Graham Cox пишет: On 11/04/2011, at 10:17 PM, Vyacheslav Karamov wrote: Is it required that my application has Drag'n'Drop support? No. Why don't you just download the requirements document? The requireme

Re: Mac App Store requirements

2011-04-11 Thread Vyacheslav Karamov
Is it required that my application has Drag'n'Drop support? 11-Apr-11 02:54, Tom Hohensee пишет: Yes I second what Todd has said. I am currently working on receipt validation for my third app store app. I did not do it for my first two apps, too many other thinks to worry about. The documentat

Re: Framework Installation Directory

2011-04-08 Thread Vyacheslav Karamov
08-Apr-11 15:53, Mr. Gecko пишет: I need help with the Installation Directory for a framework that will be shared between a application and 2 daemons within side it. I think I may be able to do it if I were to have the 2 daemons executables in the MacOS path or another folder such as one named

Re: быстрый проигрыватель вместо тотема

2011-04-04 Thread Vyacheslav Karamov
03-Apr-11 15:07, Роман пишет: Здравствуйте, Алексей. Вы писали 2 апреля 2011 г., 16:37:53: АШ> mplayer консольный кстати, да я до него вчера добрался, но у него пошла со временем рассинхронизация изображения со звуком. а работает да он шустрее дерганий если машина была свободна ресурсами прак

Re: Клавиатура с дополнительными клавишами

2011-03-31 Thread Vyacheslav Karamov
31-Mar-11 16:09, Людмила Бандурина пишет: 31 марта 2011 г. 17:07 пользователь Иван Семенов > написал: В Thu, 31 Mar 2011 15:32:19 +0400 Людмила Бандурина http://bigdogs.ru>@gmail.com > пишет: > > Я могу повесить запуск любого прил

Convert nib file usage to dynamically created controls

2011-03-28 Thread Vyacheslav Karamov
Hi All! I'm pretty new to Cocoa and I (alone) have to support large Cocoa-based project which uses NIBs with custom controls. I've rewritten IB 3x plug-in, but IB crashes while opening some of the NIBs. How to convert these NIBs to dynamically created controls?

Re: Help with Custom Control

2011-03-28 Thread Vyacheslav Karamov
26-Mar-11 00:16, Kyle Sluder пишет: On Fri, Mar 25, 2011 at 2:48 PM, WT wrote: I'm downloading 4.0.1 at this very moment so I didn't know that IB plugins are officially deprecated. That really indeed sucks. File bugs at http://bugreport.apple.com. If you don't, the developers won't know that

Re: Adding tabs programaticaly (solved)?

2011-03-22 Thread Vyacheslav Karamov
21-Mar-11 16:08, Vyacheslav Karamov пишет: Hi All! I'm writing IB 3.2 plug-in for NSTabView descendant. After adding new tab CLTabViewItem * item = [[CLTabViewItem alloc] init]; [item setLabel: @"new Item"]; [tabView addTabViewItem: item];

Adding tabs programaticaly?

2011-03-21 Thread Vyacheslav Karamov
Hi All! I'm writing IB 3.2 plug-in for NSTabView descendant. After adding new tab CLTabViewItem * item = [[CLTabViewItem alloc] init]; [item setLabel: @"new Item"]; [tabView addTabViewItem: item]; I'm trying to select it and edit is properties. But IB crashe

Re: bash парсинг лога

2011-02-25 Thread Vyacheslav Karamov
25-Feb-11 16:56, Alexander пишет: On 02/25/2011 04:17 PM, Vyacheslav Karamov wrote: В том же Perl, будь он трижды проклят Простите, а почему? Я Perl не знаю, но подобные отзывы слышу иногда. Почему пёрл так плох по вашему? Потому что нужно всегда помнить, в каком контексте вызвана функция

Re: bash парсинг лога

2011-02-25 Thread Vyacheslav Karamov
Ваше упорство достойно восхищения. Но почему бы тогда не попробовать решить задачу на каком-то ЯП? В том же Perl, будь он трижды проклят, есть хэши. в качестве ключа используйте имя пользователя, которое выделите при помощи регулярного выражения. Программа будет на несколько строчек. 25-Feb-11

Re: bash парсинг лога

2011-02-25 Thread Vyacheslav Karamov
Я могу Вам на С++ программу написать, а вы её себе соберёте и будете пользоваться. Зачем Вам баш? "Сегодня ты юзаешь баш, а завтра Родину продашь" (с) 25-Feb-11 10:47, Тарас Перебейносов пишет: Доброго времени суток! Нужна помощь в написании скрипта, который будет парсить очень большой лог

Re: система контроля версий

2011-01-31 Thread Vyacheslav Karamov
31-Jan-11 15:11, Serge Matveenko пишет: 2011/1/31 wrt: http://ru.wikipedia.org/wiki/CVS Забыть как страшный сон? Просто тренироваться во фряхе начинал на ней. На смену соответственно пришла svn (условно)? git умеет импорт из cvs и cvs, и svn надо забыть как страшный сон на яву... svn хвати

Re: xdmcp

2010-12-28 Thread Vyacheslav Karamov
28-Dec-10 13:23, Smagin Vladimir пишет: > у кого получилось поднять? > Я поднимал и в макоси и в кубунте 7.04. Ещё в далёком 2007. -- ubuntu-ru mailing list ubuntu-ru@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru

Использование CUDA для к одирования видео

2010-11-04 Thread Vyacheslav Karamov
Привет всем! Как использовать видеокарту при перекодировании видео в Linux/Windows? Кто-нибудь сталкивался? Стоит задача конвертировать 20+ Гб файлы в AVI-контейнере, формат DV - т.е. оцифрованное и обработанное видео с камеры, битрейт видео 30 Мб/с, разрешение 720х576 PAL, 25 кадров/с. Требуетс

Re: Разбор строк

2010-11-03 Thread Vyacheslav Karamov
Вы тогда сразу выкладывайте, что Вам там нужно. Может ещё работа с сокетами понадобится? AWK для этого не предназначен, увы. А значит проще будет написать пару строчек на Perl. Pivushkov Alexandr пишет: > Vyacheslav Karamov пишет: > >> Держите, лентяюшко :) >> >> awk

Re: Разбор строк

2010-11-03 Thread Vyacheslav Karamov
Более правильно будет сделать даже не так, а вот так: awk '{for (i = 1; i <= NF; ++i) if ($i=="from") {print $3 "\t" $(i+1)} }' log.txt > output.log Vorobyev Andrey пишет: > 02.11.2010 18:01, Vyacheslav Karamov пишет: > > awk '{for (i=0;

Re: Разбор строк

2010-11-02 Thread Vyacheslav Karamov
Держите, лентяюшко :) awk '{for (i=0; i < NF; ++i) if ($i=="from") {print $3 "\t" $(i+1)} }' log.txt > output.log Pivushkov Alexandr пишет: > Vyacheslav Karamov пишет: > >> Мануал тут http://bug.lfs06.ru/rtfm/lang/awk/awk1.0.4/ >> &

Re: Разбор строк

2010-11-02 Thread Vyacheslav Karamov
Мануал тут http://bug.lfs06.ru/rtfm/lang/awk/awk1.0.4/ Можно ещё примерно так: awk '{i=split( $0, fields, "\t"); for(j=1; j<=i; j++) if (fields[i] =="from") {print (fields[i], "\t", $3);}}' log.txt > output.log Не проверял. Vyacheslav Kar

Re: Разбор строк

2010-11-02 Thread Vyacheslav Karamov
Gочитай awk manual. Там несложно. Задача сводится к перебору всех полей (т.е. столбцов) и нахождении поля равного "from" и печати третьего поля, и поля номер_поля_from + 1. Вывод перенаправить в файл. Pivushkov Alexandr пишет: > Здравствуйте Уважаемое сообщество. Позволю себе то же спросить не

[OctDev] Error building octavec (Octave to C++ translator)

2010-11-01 Thread Vyacheslav Karamov
Hi all! I need to install octavec in my Kubuntu 9.04. I've isnstalled autotools, libtool, octave 3.01 and all packages from ftp://ftp.stratego-language.org/pub/stratego/StrategoXT/strategoxt-0.17/ubuntu904i386/ then mkdir octavec; cd octavec; svn co https://svn.strategoxt.org/repos/octave/oc

[HarfBuzz] Where hb_glyph_buffer_* functions are implemented?

2010-09-01 Thread Vyacheslav Karamov
Hi All! I found declarations of hb_glyph_buffer_new(size_t item_size) and other hb_glyph_buffer_* functions, but I can't find usage and implementation. A they obsolete? --- WBR, Vyacheslav. ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org htt

[HarfBuzz] Purpose of Harfbuzz calbacks

2010-08-27 Thread Vyacheslav Karamov
Hi All! I'm new to HarfBuzz and I want understand it. So, what the purpose of hb_getAdvances(), hb_stringToGlyphs() and other callback functions? Thank you in advance. --- WBR, Vyacheslav. ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http:

Re: [Rd] C or Java code generation

2010-08-21 Thread Vyacheslav Karamov
Simon Urbanek пишет: On Aug 20, 2010, at 1:15 PM, Paul Johnson wrote: On Thu, Aug 19, 2010 at 5:47 AM, Vyacheslav Karamov wrote: x.ru>>> Hi All! I'm new to R and I need to know is it possible for R to generate C/C++ source code, Jav

Re: [Rd] C or Java code generation

2010-08-20 Thread Vyacheslav Karamov
Dirk Eddelbuettel пишет: No, what you describe in the next few hundred lines would _build the examples if the package is already installed_ Also, building these examples (once you have the package is installed) does "Work For Me (TM)" in the sense that the compiles and linking steps succeed (W

Re: [Rd] C or Java code generation

2010-08-19 Thread Vyacheslav Karamov
Daniel Cegiełka пишет: 2010/8/19 Vyacheslav Karamov <mailto:ubuntul...@yandex.ru>> Daniel Cegiełka пишет: http://www.rforge.net/r2c/ regards, daniel 2010/8/19 Vyacheslav Karamov mailto:ubuntul...@yandex.ru> <mailto:ubunt

Re: [Rd] C or Java code generation

2010-08-19 Thread Vyacheslav Karamov
Daniel Cegiełka пишет: http://www.rforge.net/r2c/ regards, daniel 2010/8/19 Vyacheslav Karamov <mailto:ubuntul...@yandex.ru>> Hi All! I'm new to R and I need to know is it possible for R to generate C/C++ source code, Java byte code or native Win32 D

[Rd] C or Java code generation

2010-08-19 Thread Vyacheslav Karamov
Hi All! I'm new to R and I need to know is it possible for R to generate C/C++ source code, Java byte code or native Win32 DLL like MatLab? --- WBR, Vyacheslav. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

  1   2   3   4   5   6   7   8   >