I have an Access 2003 application and it has AutoKeys macro. I would like to add an another Keyboard shortcut to this application from my VBA module. How can I do that?
I've found the method set_log in the documentation, I just can't figure out the syntax to call it. Here's what I tried:
require 'ruby-aws'
Amazon::Util::Logging.set_log('my.log')
NoMethodError: undefined method `set_log' for Amazon::Util::Logging:Module
Hello all ,
i am getting this error when i try to compile an iPhone app.
error: Could not compile reconstructed dtrace script:
provider CorePlot {
probe layer_position_change(char *,int,int,int,int);
};
#pragma D attributes PRIVATE/PRIVATE/UNKNOWN provider CorePlot provider
#pragma D attributes PRIVATE/PRIVATE/UNKNOWN provider CorePlot module
#pragma D attributes PRIVATE/PRIVATE/UNKNOWN provider CorePlot function
#pragma D attributes PRIVATE/PRIVATE/UNKNOWN provider CorePlot name
#pragma D attributes PRIVATE/PRIVATE/UNKNOWN provider CorePlot args
ld: error creating dtrace DOF section
collect2: ld returned 1 exit status
Hi!
Can COM program be 32 bit?
How can I compile COM program?
I have TLINK32 and TASM32.
tasm32 \t alex_7.asm
pause
tlink32 alex_7.obj
pause
td32 main.exe
I ve got following error:
Fatal: 16 bit segments not supported in module alex_7.asm
I have DOSBOX and I'am running Windows 7 x64
I got same when I try to compile my program inside DOSBOX
I am working on the module in which I have to decompress the data. The data comes from server which is zipped using gzip format. I am using NSData+Gzip.m file in which there is a function named "gzipInflate" to unzip the data. but it gives me the error "Z_OK -3". Now what is the solution of that error. How can I solve it. Please reply me :)
I'm using Qt and have some real basic problems. I have created my own widget MyTest that have a variable obj. I need to set this variable obj from an object outside of the widget so that the variable is copied not just a pointer to another object. I get an error message and can't figure out how to do this basic stuff. This is the code I'm using:
MyTest.h:
class MyTest : public QWidget
{
Q_OBJECT
public:
void setObj(QObject &inobj);
QObject obj;
....
}
MyTest.cpp:
void MyTest::setObj(QObject &inobj) {
obj = inobj; //HERE I get the error message: "illegal access from 'QObject' to protected/private member 'QObject::operator=(const QObject &)'"
}
main.cpp:
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QObject *ob = new QObject();
MyTest w;
w.setObj(*ob);
}
Thanks for your help!
In my project there are some 'Prototype' factories that create instances by cloning a final private instance.
The author of those factories says that this pattern provides better performance than calling 'new' operator.
Using google to get some clues about that, I've found nothing really relevant about that.
Here is a small excerpt found in a javdoc from an unknown project
javdoc from an unknown project
Sadly, clone() is rather slower than
calling new. However it is a lot
faster than calling
java.lang.Class.newInstance(), and
somewhat faster than rolling our own
"cloner" method.
For me it's looking like an old best practice of the java 1.1 time.
Does someone know more about this ? Is this a good practice to use that with 'modern' jvm ?
Is it right that the procedure of using log4j looks like this:
1) put a .properties file somewhere in a project folder
2) in an initialization method, that runs only once, invoke
PropertyConfigurator.configure("path_to_file");
3) in every method we need to use logger we define a static logger variable and simply
invoke getLogger(class)
I'm asking you this: what if the initialization module is not defined?
Where to put "log4j.properties" file so that we wouldn't need to invoke propertyconfigurator.configure at all,
or if it's not possible,
is it ok to invoke PropertyConfigurator.configure("path_to_file") in every method that uses a logger?
In Windows, I can set the processor affinity of driver code using KeSetSystemAffinityThread, and check which processor my code is running on using KeGetCurrentProcessorNumber.
I'm trying to do something similar in a Linux kernel module, but the only affinity calls I can see are for userland processes. Is there any way to do this, so that I can run assembly code on a specific processor? (i.e. sgdt)
Tell why you think Python, Perl, Ruby, etc is easiest for plugging in modules from other languages with minimal thought.
To clarify, an example: I want to write business logic in Python, but use functionality that conveniently exists as a Perl module.
In other words, which language "just works" with the most modules?
On page 64 of "LINQ To Objects Using C# 4.0" (Tony Magennis) he states that LINQ's quicksort ordering algorithm is unstable...
...although this is simply solved by
cascading the result into a ThenBy or
ThenByDescending operator.
Huh? Why would cascading an unstable sortation into another sortation fix the result? In fact, I'd say that isn't possible. The original order, once passed through an unstable sort, is simply lost. What am I missing here?
Hi I'm developing a CMS with zend now My problem is how can I have two or more blog in this CMS I can make module with separate layout but which code I must add to my layout two show blogname or else ... maybe is another way?
Hi
When used at site level, the IIS7 URL Rewrite 2 module saves its configuration in the web.config file of that site. I'm using Sitecore CMS, and best practice is to store any web.config customisations in a separate config file for ease of upgrading, staging/production setups etc.
Is there any way to specify a different config file for IIS7 redirects?
I know that application-level rewrites are stored in ApplicationHost.config, but I have several sites running on the server and would like to keep them separated.
Thanks, Adam
I had Ubuntu 8.10. I upgrade it to 9.04.
I have Openerp5.0 , server/client/web. It worked on 8.10 but not with 9.04.
Now when I try to launch my server using:
./openerp-server.py
I have this error:
ERROR: Import xpath module
ERROR: Try to install the old python-xml package
It seems that this version of openerp doesn't work with python2.6.
Can you help me to redirect openerp to use old version of python please?
Hi,
i am just trying to create a link which execute some JavaScript in stead to redirect the user to a particular page
I tried the following but it doesn t work
<a href="#" onclick="javascript:location.replace('http://http://stackoverflow.com/questions/ask');">www.google.com</a><br />
<a href="javascript:location.replace('http://stackoverflow.com/questions/ask');">www.google.com</a>
I am not trying to do anything illegal whit the redirect, just an exercise for a university module (Internet Security)
Thanks
I have developed a module using SagePay Form integration method. It works fine until it returns from the Sagepay site and all of my local user session vars are destroyed for some reason.Thus i am unable to use my own created session vars and save information about a user regarding that specific order.
The url's it returns to are success and failure urls.
What might be the possible reason? Please any help is appreciated.
Regards.
Hi guys,
We've recently upgraded from VS2008 - VS2010 (and hence upgrading from Web Deployment Project to proper deployment templates).
Alas - my Workflow skills arent quite up to scratch.
Previously, we used a MSBuild task to execute the Yahoo YUI Javascript/CSS compression module to minify/compress javascript and css files.
Anyone manage to accomplish this task with Visual Studio 2010 / TFS 2010 ?
I'm attempting to create a fairly complex search engine for a project using a variable number of search criteria. The user input is sorted into an array of hashes. The hashes contain the following information:
{
:column => "",
:value => "",
:operator => "", # Such as: =, !=, <, >, etc.
:and_or => "", # Two possible values: "and" and "or"
}
How can I loop through this array and use the information in these hashes to make an ActiveRecord WHERE query?
Hi,
I have a few classes:
Article
-------
Content
ID
Magazine
--------
Name
Code
And 3 tables in database:
Articles
Magazines
ArticlesInMagazines (two fields: IDArticle and CodeMagazine)
In my app, I've got a module to manage Articles, and a datagridview to relate their associated magazines
DataGridView has twofields:
MagazineCode
IsPublished (indicates articles which have been published in this magazine).
The same article can be in many magazines (1:n)
How would you implement on model ?
Article have to has a field : List ??
I am concerned because Magazine associates Articles
I'm able to browse to localhost, but when I add a new website in Windows Vista and make it's home folder C:\Users\Admin\Documents\My Dropbox, then I get:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x80070005
Config Error Cannot read configuration file due to insufficient permissions
Config File \\?\c:\Users\Admin\Documents\My Dropbox\web.config
Requested URL http://localhost:80/
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
Hi All,
Could you tell mw what is the problem with the below boost::thread program
#include<iostream>
#include<boost/thread/thread.hpp>
boost::mutex mutex;
class A
{
public:
A() : a(0) {}
void operator()()
{
boost::mutex::scoped_lock lock(mutex);
}
private:
int a;
};
int main()
{
boost::thread thr1(A());
boost::thread thr2(A());
thr1.join();
thr2.join();
}
I get the error message:
error: request for member 'join' in 'thr1', which is of non-class type 'boost::thread()(A ()())'
BoostThread2.cpp:30: error: request for member 'join' in 'thr2', which is of non-class type 'boost::thread ()(A ()())'
Few questions:
Is it possible to call a controller method in a helper module (e.g., application helper)?
If so, how does the helper handle the rendering of views? Ignore it?
In what instances would you want to call a controller method from a helper? Is it bad practice?
Do you have any sample code where you're calling controller methods in helper?
Something I keep doing is removing comments from a file as I process it. I was was wondering if there a module to do this.
Sort of code I keep writing time and again is
while(<>) {
s/#.*// ;
next if /^ \s+ $/x ;
**** do something useful here ****
}
I have created a simple GAE app based on the default template. I want to add an external module like short_url. How do I do this? The directions that I have found so far are confusing and GAE doesn't seem to use PYTHONPATH for obvious reasons I guess.