By default when system() and exec() functions are used in PHP the default user is SYSTEM so I can never see the result. Is there a way to change the user it runs on?
I want to use a field (kind of QTextEdit), which is capabale of storing picture and text (like MS Word is doing) and it serializes and deserialaizes picture+text data. Is there any Qt Widget that allows us to manipulate with picture and text simultaniously and it has set/get functions which operate with serializable type? In othger words, I want to know if there exsists any Qt widget that can store picture+text and has "get" types of function that returns the content of that widgets editable area, which is a Type that could be serialized with QDataStream.
Is there simply way to install Git on Solaris as on Windows without installing any side libraries and compiling source files? And if not, why?
UPD. Yes I'm looking for single package that will be easy to install.
We have ~8 solaris zones using for development those we need simple way to install git fast on they. Installation should be easy because each member of team possibly will be do it and it should be fast because of big count of zones.
I currently have a console project which creates an .exe file; I want it to also create a .lib file so other projects, compiled as DLLs, would be able to call functions from the original project.
I know it is possible, but I couldn't find how to do that. How do I tell the linker to also link a .lib?
If we have three functions (foo, bar, and baz) that are composed like so...
foo(bar(), baz())
Is there any guarantee by the C++ standard that bar will be evaluated before baz?
I'd like to have a way to get the sum of a field stored into a variable from inside a dataflow task. The rowcount transform does this, but I can't see how to use any other aggregate functions. Is scripting a transform component my best bet?
So whenever I write code I always think about the performance implications. I've often wondered, what is the "cost" of using a memcopy relative to other functions in terms of performance?
For example, I may be writing a sequence of numbers to a static buffer and concentrate on a frame within the buffer, in order to keep the frame once I get to the end of the buffer, I might memcopy all of it to the beginning OR I can implement an algorithm to amortize the computation.
I need to modify a GLib's time-out interval while it is in execution. Is that possible? I took a look to the source code and it seems possible to me, but is required use some non-public functions from GLib internals. Should I reimplement GTimeoutSource or there are a way to do it?
I have the following class;
class myStringMethod():
def __init__(self):
self.func_list= [('func1','print_func1()'),('func2','print_func2()')]
def print_func1(self, name):
print name
def print_func2(self, name):
print name
def call_func_by_name(self):
for func in self.func_list:
getattr(self, func[1])('Func Name')
if __name__=='__main__':
strM = myStringMethod()
strM.call_func_by_name() #Nothing prints out!
No functions get called out, what am i missing?
gath
Can you create a list of functions and then execute them sequentially, perhaps passing them into do notation?
I'm currently doing this by mapping over a list of data and am wondering if I can call somehow pass the result as a series of sequential calls?
How do I store standalone attachments in Couchdb using eCouch library.
Ecouch provides doc_create/3 and doc_Create/2, can we make use of any of these functions?
Did anyone has success in storing and retrieving attachments using eCouch?
Thanks in advance.
In a MySQL query I am using the timediff/time_to_sec functions to calculate the total minutes between two date-times.
For example:
2010-03-23 10:00:00
-
2010-03-23 08:00:00
= 120 minutes
What I would like to do is exclude any breaks that occur during the selected time range.
For example:
2010-03-23 10:00:00
-
2010-03-23 08:00:00
-
(break 08:55:00 to 09:10:00)
= 105 minutes
Is there a good method to do this without resorting to a long list of nested IF statements?
I'm using NSAssert macro for Objective-C assertion, and it's the regular way to do this.
But it's not work in C functions. What do I should use for this?
Dear all. I was wondering if there are examples of situations where you would purposefully pass an argument by value (deep copy) in C. For instance, passing a char to a function is usually cheaper in space than passing a char* (if there's no need to share the value), since char is 1 byte and pointers are, well, whatever they are in the architecture (4 in my 32 bit machine). ?(When) do you want to pass (big) deep copies to functions? if so, why?
Im looking for a way of compressing a given string using the Lempel-Ziv Algorithm.
Preferably there would only be a set of two functions, encoder and decoder.
The encoder takes the string and returns an integer.
The decoder takes the integer and returns the original string.
Time complexity is not important.
How would you implement this?
I have check out this Wikipedia page on it, but I still don't understand it. Can someone please help my dim-witted mind to understand the concepts of hashing, hashtable/hashmap, and hash functions? Some examples would really help.
Hi, does anyone know how to run something like the following on a Windows machine with the DOS command line?
emacs -batch -l functions.el --eval '(run-function "argument")'
Thanks!
i still , don't understand , how wordpress can understand what is this url refer to :
www.mysite.com/about-me/
they are using no identifier
if they using slug functions so how they can retain story information or in other word , how they change back the slugged title to select from database
Hi Guys,
could you help me with following questions.
How do i get the:
absolute/relative current url
http://www.example.com/subdir/controller/action
/subdir/controller/action
absolute/relative application url
http://www.example.com/subdir/
/subdir/
I could of course use native php to get it but i think i should rather use ko3 functions.
Any idea how that works?
Thanks in advance!
I am using the Android NDK to make an application primarily in C for performance reasons, but it appears that file operations such as fopen do not work correctly in Android. Whenever I try to use these functions, the application crashes.
How do I create/write to a file with the Android NDK?
I want define a functions that accepts &rest - parameters and delegates them to another function.
(html "blah" "foo" baz) = "blahfoobaz"
I did not find a better way than this one:
(defun html (&rest values)
(concatenate 'string
""
(reduce #'(lambda(a b) (concatenate 'string a b)) values :initial-value "")
""))
But this looks somewhat glumbsy to me, since line 4 does no more than concatenating the &rest parameter "values". I tried (concatenate 'string "" (values-list values) "") but this does not seem to work (SBCL). Could someone give me an advice?
Kind regards
I want to use this function:
http://www.frankmacdonald.co.uk/php/post-to-wordpress-with-php.html
Its used to post to Wordpress using XMLRPC, can anyone give me the basics for using this function and maybe a brief over view?
I want to learn how functions work and how to use them.
I'm trying to interface a C++ library (pHash) with Python using Cython, but I have trouble with some of the types. The library functions use "unsigned long long" and I can't find a way to declare variables and parameters with this type. I searched for a list of the types that I can use with cdef but I found nothing. Can anyone point me to such a list (if it exists) or otherwise suggest a way to use 64 bit types in Cython? Thanks.
I need to execute a file when I only know the descriptor. It is also possible that there are no links to the file so finding out the name somehow is not an option. All the execve(), execvp(), etc functions take a file name. dlopen() also takes a name.
Ugly solutions (like reading the file and calling some function pointer) are OK.