I have used sqlite in c++, python and now (perhaps) in C#. In all of these i have no idea how to insert a blob into a table. How do i store and retrieve a blob in sqlite?
I am wring a netfilter module which would operate one specific TCP connection. After operating on one packet the function will return. Now, my question; is it possible if I want to steal one packet, and want to send it few millisecond later in one of my timeout(timer_list) function by storing the previous sk_buff structure?
Hi,
I have a list of binaries written in java, ada,C, python and I want to execute them.
How to do that ?
Is there any JVM binding to those languages ?
Thanks for your answers
Hello all,
Does anyone know of a DB setting in DotNetNuke, where you can configure ALL modules to disable print or maximize&minimize? Just so I don't have to configure every module individually.
How can I make it a default?
Thanks again!
Imagine you have a NB Platform application and you would like to use that application via some other app that you've created.
In essence, how can you learn how to start an application if you don't want to use the NB Platform or IDE. You'd somehow need to figure out the stuff that NB Platform does for you when it loads up a module.
Hi,
As the title says I have a list of Django objects and I want to get a list of primary keys. What is the best way of doing this?
I know I could do
my_list = []
for item in object_list:
my_list.append(item.pk)
but was wondering if there is Django or Python specific way of doing this better.
Thanks
I'm looking for what the standard, approved, and robust way of stripping invalid characters from strings before writing them to an XML file. I'm talking here about blocks of text containing backspace (^H) and formfeed characters etc.
There has to be a standard library/module function for doing this but I can't find it.
I'm using XML::LibXML to build a DOM tree that I then serialize to disk.
I would like to be able to run some functionality with a module that I am building whenever a customer registers an account, but I can't seem to find any events that are fired upon a new customer registration. Does anybody know of an event that is dispatched for that?
I could have sworn I used a chr() function 40 minutes ago but can't find the file. I know it can go up to 256 so I use this:
std::string chars = "";
chars += (char) 42; //etc
So that's alright, but I really want to access unicode characters. Can I do (w_char) 512? Or maybe something just like the unichr() function in python, I just can't find a way to access any of those characters.
I want to rename a table... (any table.)
I tried this line of code:
ActiveRecord::ConnectionAdapters::SchemaStatements.rename_table(old_name, new_name)
Here's the weird thing. I know I got it working the first time, but now I get this error: undefined method `rename_table' for ActiveRecord::ConnectionAdapters::SchemaStatements:Module
Was there something I need to set? Or am I going blind here..
Thanks!
How can I generate types like these using the System.Reflection.Emit libraries:
public class Test<T> {}
public class Test<T1, T2> {}
When I call ModuleBuilder.DefineType(string) with the second type declaration, I get an exception because there is already another type in the module with the same name (I've already defined the type parameter on the first type). Any ideas?
hi,
I cannot solve this issue with the video at this link:
http://www.sanstitre.ch/drupal/portfolio?tid[0]=66
It displays correctly in all browsers but not in IE8 or IE7.
The IE8 debugger doesn't give me any error message.
If I'm not wrong the video object is not added in IE. So, for some reason the Drupal module, jQuery Media and the library SWFObject are not adding it in IE browsers...
any tip ?
thanks
Currently im just using something like:
in the DB Table:
access: home,register,login
and then in each page:
if(!Functions::has_rights('content'))
{
Functions::noAccess();
}
is there more efficient way to do it, php & MySQL? i may want to gain access even to several parts a page, for example: user can read a page, but doesnt comment to it, and I dont want to build a separate system to each module.
Thanks in advanced, Tal.
I am creating a booking module using MOSS 2007.What i would like to know is that is it possible to create a webart that will show only the Daily view ,which will be connected to the central Calender..
Basically what im trying to achieve is this.
Each Room must have its own webpart that shows the bookings only associated with that room,so ultimately you might have two rooms that are booked at 8:PM(Same Day) showing on the central Booking calender.....
Help would be appreciated
I've been using matplotlib in a Python project. It is great.
I have now to plot data in a C++ project. Is anyone aware of a plotting library in C or C++?
Note that I cannot accept GPL licensed libraries.
I would like to plot some image binary data on a grayscale matrix-like graph with custom values on axes. I'm using Perl on a Windows machine but I can't fine the right module to do this. I'm already using GD::Graph to plot other type of data but it seems unsuitable for this specific task.
I've the CSS file with many entry like
id1, #id2, #id3, #id4 { ... }
id3, #id2 { ... }
id2, #id4 { ... }
I want to extract list of unique IDs using command line tools (msys).
Unique means any entry in list presented only once. How?
PS: I know how doing it using python, but what about awk/sed/cat?
The user Laurent had an interesting reply to the question [Why hasn’t logic programming caught on?]:
If you look at the influence
logic-programming has had in the field
of -- air traffic control -- I don't think it can be said logic-programming
has not caught on.
A question arises:
Where is prolog used for traffic
control systems on the roads? Why is it used
instead of languages, such as C or
Python, in such environments?
I need to parse C#, Ruby and Python source code to generate some reports. I need to get a list of method names inside a class.
What parsers for those languages are provided?
For C#, I found http://csparser.codeplex.com/Wikipage , but for the others, I found a bunch of parsers using those languages, but not the language parsers of them.
i have posted this question
http://stackoverflow.com/questions/2874487/how-can-i-implement-this-python-snippet-in-java
i have compiled it now i need to use in main project
public static void main(String[]args){
}
?
can anybody show me example?
i have posted this question
http://stackoverflow.com/questions/2874487/how-can-i-implement-this-python-snippet-in-java
i have compiled it now i need to use in main project
public static void main(String[]args){
}
?
can anybody show me example?
i have posted this question
http://stackoverflow.com/questions/2874487/how-can-i-implement-this-python-snippet-in-java
i have compiled it now i need to use in main project
public static void main(String[]args){
}
?
can anybody show me example?
Hi,
Can we convert numbers to their alphabetical equivalents? For example
21 - twenty one
9999 - nine thousand nine hundred ninghty nine
If yes, how to do this?
Thanks and Regards,
EDIT :
Any language will do. C#, C++, Java, python.
Hi all,
Under Hudson, does somebody know how to specify a release tag name in a cvs checkout ?
At the moment, i only specify the CVSROOT and modules names to checkout my project in my workspace. I tried to add '-r TAG_NAME' for each module name, but it doesn't work.
I think that this functionality exist, so if someone as the right syntax/way to do it.. :)
Thanks in advance for your help.
Best regards.
hi i created web application project.In that i created and run successfully,but it shows one message alert.ie GWT Module need to BE (re)compiled message displayed.How to solve this error(warning).