I am trying to work with the Populator gem. I just installed it, but Ruby is unable to load it. I have only one Ruby installation on my machine and it's Ruby 1.8.7. What can I do?
This is the gem that doesn't get loaded.
Edit: Here is the trace out. I should have included this earlier.
Freenaut:bio-clinical newuser$ rake db:populate ...
I have a library that contains a class that references dwm. If this library is use in an XP system but the class is not used, would this cause an error?
Supposed this library was to be used on WP7 or XNA? Would this cause an error?
...
I am creating a splash for a program that I'm making but RegisterClass keeps on failing (2: The system cannot find the file specified.)
My code is this:
WNDCLASS wc = {0};
wc.lpfnWndProc = DefWindowProc;
wc.hInstance = g_hinstance;
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
if (wc.hCursor == NULL)
{
#ifdef DEBUG
log_debug("ShowSplas...
Hey everyone,
I am getting a compile error in my code, and I cannot figure out what to do.
Here's the block:
#include <stdio.h>
#include <string.h>
/*
* Function to return index at which team ID input is stored
*/
int getIndex(char* id, char* idList[][50]) {
int k;
for (k=0; k<50; k++) {
if (strcmp(id,idList[k])==0...
Hi All,
I am facing a weird problem in eclipse.
I am doing a project on android. After some minute modifications, I suddenly noticed the project icon has a small red cross icon. However, no other file/package/folder is showing this icon. I am not sure where the error is and how to solve it.
Can anyone please help me out ? Thanks.
-ah...
Following the tutorial at http://www.codersource.net/mfc/mfc-tutorials/ctabctrl.aspx , I have declared the function ActivateTabDialogs() in my header file and called it inside another function in my class. The compiler gives error C2065: 'ActivateTabDialogs' : undeclared identifier, at the line ActivateTabDialogs(); inside the definition...
I am calculating UDP checksum using the following function (found it somewhere):
uint16_t udp_checksum(const void *buff, size_t len, in_addr_t src_addr, in_addr_t dest_addr)
{
const uint16_t *buf=(const uint16_t *)buff;
uint16_t *ip_src=(uint16_t *)&src_addr,
*ip_dst=(uint16_t *)&d...
I have created an enumerated data type to define possible flight lengths. I'd like to overload its << operator so the representation is nicer.
When I compile this, I get the following error (posted for completeness' sake. Basically multiple definitions of operator <<(ostream&, Categoria&)):
g++ -oProjectoAEDA.exe src\voo.o src\tui.o sr...
i have converted a C++ library to managed and get the following error on this code line:
std::ifstream fin(filename, std::ifstream::in);
Errors:
Error 30 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c0003b5). C:\Users\Freeman\Documents\Visual Studio 2010\Projects\testsharp1\cpp1\MSVC...
Hi
I am trying to create a report and am looking to pull out some information from a table 'contact'. I am trying to pull out the 'advisor' relating to the contact and a count of contacts who have that advisor based on a set of criteria. This is fine and works, however, I want to pull out a third column which is also a 'Count' based on ...
I am getting "Object Does Not Source Automation Events "
on the following VB 6.0 line
Public WithEvents conn As Connection
Please Help
...
Hi,
I am returning a DataTable from a WebService which contains 10-100 rows depending on the query.
Sometimes in this DataTable, i have some special characters coming in, like "$", which causes the problem and i get XML Parsing Error.
One way i found was to Encode the string but I don't want to loop through each rows and column and en...
I keep on getting the error "incorrect syntax near keyword 'where'."
DoCmd.RunSQL "insert into userPreferences (userId, GroupId, preferenceId, properties, isDefault)" & _
"select " + Me.UserId + ", " + Me.GroupId + ", preferenceid, properties, 1 from preferences " & _
" where preferenceId not in " & _
"(selec...
When I run KitchenSink example project on iPhone emulator everything is OK, but trying to launch for Android emulator produces errors:
[ERROR] /Users/lukasz/Android/android-sdk-mac_x86/tools/apkbuilder
[ERROR] Failed installing com.appcelerator.kitchensink: pkg: /data/local/tmp/app.apk
It happens whatever Androig API I choose (from 1....
Hi everyone,
I have a .aspx page for adding new product include the following field:
ID, Name, DateTime, Price
and it run well at localhost but when I publish it and up to the server, then I get the following error:
System.Data.UpdateException: An error occurred while updating the entries. See the InnerException for details. ---> Sy...
-[AdWhirlAdapterCustom webBrowserClosed:]: message sent to deallocated instance 0x7408a90
This is the full error message I get.
My setup is the following:
- (void) viewDidLoad {
self.adView = [AdWhirlView requestAdWhirlViewWithDelegate:self];
self.adView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
[self.vie...
Hi guys,
I recently changed SQL Server 2008 from windows authentication mode, to mixed. I created a new user 'taraw' and set a password. I'm connecting to localhost - which works perfect when using windows authentication, however if I want to use SQL Server authentication with my user - taraw, I get the following error:
Shared Memor...
The code is this:
Originally:(http://www.oracle-base.com/articles/misc/FTPFromPLSQL.php)
The approach uses a combination of the UTL_TCP and UTL_FILE packages to create a simple FTP API (ftp.pks, ftp.pkb). Once the API is loaded into the appropriate schema simple FTP commands can be initiated as follows:
CREATE OR REPLACE DIRECTORY my_...
Hi Everyone,
I am receiving the following error when trying to run ASDoc against a Flex library. Any ideas?
Error: Access of possibly undefined property id through a reference with static type flash.display:DisplayObject.
markersByName[marker.id] = marker;
This is obviously an ASDoc issue, as Flex doesn't complain about this.
Any ide...
I have a TabControl and each Tab can contain the same UI but with different data. In any tab the user can click on a button and bring up a popup. This sets a Style property to the ViewModel telling it what style to use for the popup UI. The Style gets bound to a custom DependecyProperty that is attached to a custom PopupUserControl. My p...