I know there is a command that updates the changes like
c:\svn up <working directory>
i wonder if there is any command line statement which can commit the changes.
..: Any help would be appreciated :..
I created an application to receive a broadcasted windows message which works fine. When I turn it into a service, install it, and start the service, the service doesn't receive the message.
I am trying to introduce the hstore type into the database of a project I'm developing. But the problem is that I have a slightly newer version of the Postgres server installed on my development machine than there is on the production machine. While I can simply execute the CREATE EXTENSION command locally, this command is unavailable on the production machine.
Is there a way to create a script that will install hstore both on 9.1 and 9.0?
In my script "script.sh" , I want to store 1st and 2nd argument to some variable and rest to another separate variable. What command I must use to implement this task?
Number of arguments that is passed to a script is random)
When I run the command in console
./script.sh abc def ghi jkl mn o p qrs xxx #It can have any number of arguments
In this case, I want my script to store "abc" and "def" in one variable. "ghi jkl mn o p qrs xxx" should be stored in another variable.
I have a find command that I run, to find files named 'foo' in a directory. I want to skip the ".git" directory.
The command below works except it prints an
annoying ".git" any time it skips a .git directory:
find . ( -name .git ) -prune -o -name '*foo*'
How can I prevent the skipped ".git" directories from
printing to stdout?
I need to parse a command line like
script.rb <mandatory filename> [options]
with optparse.
Sure I can write some custom code to handle the filename, then pass ARGV to optparse, but maybe there's a simpler way to do it?
EDIT: there's another hacky way to parse such a command line, and that is pass '--mandatory-filename ' + ARGV to optparse, then handle the --mandatory-filename option.
I'm creating game mario like in win32 GDI . I've implemented the new loop for game :
PeekMessage(&msg,NULL,0,0,PM_NOREMOVE);
while (msg.message!=WM_QUIT)
{
if (PeekMessage(&msg,NULL,0,0,PM_REMOVE)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
else // No message to do
{
gGameMain->GameLoop();
}
}
But my game just running until I press Ctrl + Alt + Del ( mouse cursor is rolling ).
Hi, everyone
I'm looking for an easy way of packing/unpacking data structures for sending over the network:
on client just before sending:
a = ((1,2),(11,22,),(111,222))
message = pack(a)
and then on server:
a = unpack(message)
Is there a library that could do pack/unpack magic?
Thanks in advance
-J-Dorg.netbeans.editor.linewrap=true
This command, I have read here turns the line wrap feature on. What I need to know, however, where can I put this command in order to turn it on? I am using NetBeans 6.9 on Mac OS X 10.6. Thanks in advance for any help!
How do you handle clean up when the program receives a kill signal?
For instance, there is an application I connect to that wants any third party app (my app) to send a finish command. What is the best say to send that finish command when my app has been destroyed with a kill -9?
In former Mac OS x versions it was possible to call Cocoa methods via the "call method" command in applescript ("Applescript Studio").
E.g. this way:
set theURL to "http://www.apple.com"
set URLWithString to (call method "stringByAddingPercentEscapesUsingEncoding:" of theURL with parameter 30)
The script interpreter in the "Applescript Editor" (10.6) does not understand the command "call method". - Is there an equivalent for "Applescript Editor" (10.6)?
I'd like to call a simple YUI3 function from within a JavaScript function.
Here is some code that does what I want in a very verbose way:
function changeContent (message) {
YUI().use("node", function(Y) {
Y.all('#content-div').setContent(message);
});
}
Is there a better way to do this?
NOTE: I don't want to attach this function to any event, I just want a global changeContent() function available.
I m consuming java based web service with c#.net app.
I m sending soap message in xml format.
But Im receving this error message:
ns1:Client.NoSOAPAction no SOAPAction header
Hi,
I want to set the svn:needs-lock property on a local directory, and then to commit it.
I want to do it from the command line and it seems to not letting me.
my command is:
svn propset svn:needs-lock '*' d:\src_svn\Multilizer
the answer I get is:
svn: Cannot set 'svn:needs-lock' on a directory ('D:\src_svn\Multilizer')
what can be the problem?
thank you.
On the emulator, I can unmount the SD card from the Settings.
On OSX, I can then mount it using hdiutil, then unmount it normally.
I haven't been able to figure out how to re-mount it then on the emulator (without rebooting it).
hints:
the adb command "remount" is unrelated: it's about /system
the emulator command is unrelated: it's only about starting the emulator
mounting the SD card on OSX without unmounting it from the emulator, causes horrible pain to the emulator
MySQL 5.5.8 uninstall MAC OS 10.6.5,restart computer is message “/Library/StartupItems/MySQLCOM” has not been started because it does not have the proper security settings. i set
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /usr/local/mysql/support-files/mysql.server
Locate the configuration defining the basedir and set the following :
basedir=/usr/local/mysql
datadir=/usr/local/mysql/data
bug i click the mysql preference start mysql server isn't start
and i sudo chown -R root:wheel /Library/StartupItems/MySQLCOM and restart again ,not warning message but mysql server not start ,why?
In VxWorks 5.5.1 you could run a script using the execute command. In VxWorks 6.7 the execute command is no longer supported. Does anyone now if there is a replacement?
I want to get a list of all InventoryItems
According to this document:
https://system.netsuite.com/help/helpcenter/en_US/Output/Help/SuiteCloudCustomizationScriptingWebServices/SuiteTalkWebServices/getAll.html
I'm forming the following request:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:platformMsgs="urn:platform_2013_1.webservices.netsuite.com" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<passport>
<email>******</email>
<password>******</password>
<account>******</account>
</passport>
</env:Header>
<env:Body>
<platformMsgs:getAll>
<recordType>InventoryItem</recordType>
</platformMsgs:getAll>
</env:Body>
</env:Envelope>
But receiving response with the error:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2013_1.platform.webservices.netsuite.com">
<platformMsgs:nsId>WEBSERVICES_969904_100920131651936419141601801_cbf1690968b43</platformMsgs:nsId>
</platformMsgs:documentInfo>
</soapenv:Header>
<soapenv:Body>
<getAllResponse xmlns="urn:platform_2013_1.webservices.netsuite.com">
<platformCore:getAllResult xmlns:platformCore="urn:core_2013_1.platform.webservices.netsuite.com">
<platformCore:status isSuccess="false">
<platformCore:statusDetail type="ERROR">
<platformCore:code>GETALL_RCRD_TYPE_REQD</platformCore:code>
<platformCore:message>The getAll record type is required.</platformCore:message>
</platformCore:statusDetail>
</platformCore:status>
</platformCore:getAllResult>
</getAllResponse>
</soapenv:Body>
</soapenv:Envelope>
I've tried to request currencies, states - the response always the same
I've tried following variants:
<GetAllRecordType>inventoryItem</GetAllRecordType>
and
<recordType>inventoryItem</recordType>
and
<GetAllRecordType>currency</GetAllRecordType>
and
<recordType>currency</recordType>
with the same response:
<platformCore:message>The getAll record type is required.</platformCore:message>
According to https://webservices.netsuite.com/xsd/platform/v2013_2_0/coreTypes.xsd - I've specified correctly recordType (btw I've also tried without any success)
I'm using ruby and there is no complete library for ruby. The one that is exists doesn't contain almost all things I'm going to use.
Can someone help me what I'm doing wrong or may be someone have working example
Hey,
I have a problem with moving a MovieClip to front in actionscript3. The main problem is, everytime I try to move it to front, using setChildIndex() I get an error message witch tells me, that the movieclip (that I named my_tofront) cannot converted to a flash.display.DisplayObject
full error message:
TypeError: Error #1034: Type Coercion failed: cannot convert my_tofront$ to flash.display.DisplayObject.
Why is this happening, and whats the solution for this problem?
I'm using wx.AUI and having a bit of a problem managing panes. Once you have created a new pane using AddPane(), what is the syntax to update or change the pane?
I've seen the SetPane command but I can't find any examples. Can someone direct me to an example? Or perhaps it makes sense to use some command to delete the pane and create a new one?
Thanks in advance for your time.
I am trying to write a macro which calls cscope-find-functions-calling-this-function on each and every tag in a file displayed in the *Tags List* buffer (created by list-tags command). This should create a buffer which contains list of all functions calling a set of functions defined in a certain file.
This is the sequence of keystrokes:
1. <f11> ;; cscope-find-functions-calling-this-function
2. RET ;; newline [shows results of cscope in a split window]
3. C-x C-p ;; mark-page
4. C-x C-x ;; icicle-exchange-point-and-mark
5. <up> ;; previous-line
6. <end> ;; end-of-line [region to copy has been marked]
7. <f7> ;; append-results-to-buffer
8. C-x ESC O ;; [move back to split window on the right]
9. C-x b ;; icicle-buffer [Switch back to *Tags List* buffer]
10. *Tags ;; self-insert-command * 5
11. SPC ;; self-insert-command
12. List* ;; self-insert-command * 5
13. RET ;; newline
14 . <down> ;; next-line [Position point on next tag in the list]
Problem:
I get no results in the buffer, and I found out that's because Step 3-7 execute even before
cscope prints the results of query made on Steps 1-2.
I can insert a pause in the macro by using C-x q, but I'd rather like the macro to wait after Step 2, until cscope has returned with the results and only then continue further. I
suspect this is not possible through a macro, maybe a LISP function... I'm not a lisp expert
myself. Can someone please help? Thanks!
Details:
I have Icicles installed so by
default I get word at point in current buffer as input in minibuffer.
F11 is bound to
cscope-find-functions-calling-this-function
windmove is installed and C-x (C-x ESC o - as shown below) takes you to the
right window.
F7 is bound to
append-results-to-buffer which is
defined as:
(defun append-results-to-buffer ()
(interactive)
(append-to-buffer (get-buffer-create "c1") (point) (mark)))
This function just appends the currently marked region to a buffer named "c1".
I have put the following method in my master page. It works when I call it on a full post back, but when I call it from a updatePanel's asyncPostBack no alert is shown.
public void ShowAlertMessage(String message)
{
string alertScript =
String.Format("alert('{0}');", message);
Page.ClientScript.RegisterStartupScript(this.GetType(), "Key", alertScript, true);
}
What do I need to do so it works on partial post backs?
when I try to use a "third part module" in my perl script, I got some error message like
"unknown error, compilation failed in require at ... line xxx"
nothing else and the line mentioned in the error message is exact the same line I "use the module"...
my question is: are there any good practice to handle this situation? like a list to check or something else. thanks in advance.
I am trying to write a file with format - "id file_absolute_path" which basically lists down all the files recursively in a folder and give an identifier to each file listed like 1,2,3,4.
I can get the absolute path of the files recursively using the following command:
ls -d -1 $PWD/**/*/*
However, I am unable to give an identifier from the output of the ls command. I am sure this can be done using awk, but can't seem to solve it.