I am developing a module for DotNetNuke and have used a DotNetNuke Compiled Module template to create the module in the DesktopModule folder.
I then get a Web Application Project under the DNN website in my Visual Studio 2008.
Now I want to use DAL and BLL which are created in DNN app_code folder.
But when I add them in code behind it can't find…
I'm looking for some Linux code to find an IP address from an Ethernet adress. I suppose I have to do some inverse ARP trickery but I don't find any example...
Hello, I am trying to use my own function to get the file size from a file. I'll use this to allocate memory for a data structure to hold the information on the file.
The file size function looks like this:
long fileSize(FILE *fp){
long start;
fflush(fp);
rewind(fp);
start = ftell(fp);
return (fseek(fp, 0L, SEEK_END) - start);…
Hi, i'm having trouble about animating an Image in a UIImageView.
I've created an image view in interface builder and linked it to its iboutlet. Here is my code.
@interface Game : UIViewController <UIAccelerometerDelegate>{
IBOutlet UIImageView *diying;
}
@property (nonatomic, retain) UIImageView *diying;
In the…
Can a user be a member of multiple Organization Units (OU) in Active Directory ? Also, is there a standard format mentioned by Microsoft on how an OU should be created and what its attributes are ?
I found this in Wikipedia
"However, Organizational Units are just an abstraction for the administrator, and do not function as true…
I have to cs file for one partial class. I know that I can modify project file to group them together like way that vs.net group *.aspx and *.aspx.cs, but is there a way to do that in vs.net IDE directly?
I can't find my error in the following code. When it is run a type error is given for line: cur.executemany(sql % itr.next()) = 'function takes exactly 2 arguments (1 given),
import sqlite3
con = sqlite3.connect('test.sqlite')
cur = con.cursor()
cur.execute("create table IF NOT EXISTS fred (dat)")
def newSave(className,…
Hello everyone, well I'm new here and I really need some help.. I want to create a table and this table's name will be inserted from a textfield. However when I run the query it's giving me an error, any help on this one? Ill paste the code here:
public boolean CreateTable() {
TableNumber=jTextField4.getText();
…
I'm asking because PowerShell confuses me.
I've been trying to write some deployment scripts using PowerShell and I've been less than enthused by the result. I have a co-worker who loves PowerShell and defends it at every turn. Said co-worker claims PowerShell was never written to be a strong shell, but instead was…
So,
i am trying to do a very simple disc rotation (2d), according to the user touch on it, just like a DJ or something.
It is working, but there is a problem, after certain amount of rotation, it starts going backwards, this amount is after 180 degrees or as i saw in while logging the angle, -3.14 (pi).
I was…
I was playing around with recursion and did this simple function. I was assuming that it would print out 9-0 to stdout, but, it prints 0-9. I can't see how that happens at all.
int main()
{
rec(10);
return 0;
}
int rec(int n){
if(n > 0)
printf("%d\n", rec(n -1));
…
I am trying to migrate data from an Informix database to MSSQL 2008. I've got quite a lot of data to move. I've been try multiple methods to get the data over, and so far SQLBulkCopy in multiple chunks seems to be the fastest that I can find. Does anyone know of a faster means of getting the data over? I'm…
Hi everyone,
I have a gigantic (4GB) XML file that I am currently breaking into chunks with linux "split" function (every 25,000 lines - not by bytes). This usually works great (I end up with about 50 files), except some of the data descriptions have line breaks, and so frequently the chunk files do not…
Hi have made this function which is made to replicate an error that I can't get past. It looks like this:
void enumerate(double *c, int size){
while(c < &c[size]){
printf("%lf\n", *c);
c++;
}
}
I have added some printf's in there and it gives me:
Adressof c:…
Hi All,
I want to write a Scala script to recursively process all files in a directory. For each file I'd like to see if there are any cases where a string occurs at line X and line X - 2. If a case like that occurs I'd like to stop processing that file, and add that filename to a map of filenames…
About the script:
The script below will create 300 sets of random characters.
What is presently happening, is that it creates them but shows them all on one line, in one big chunk.
With all the searching and testing I've done to try and achieve this, I have had no success.
I would like to know…
I have an R script file that executes a second R script via:
source("../scripts/second_file.R")
That second file has the following lines:
myfiles <- list.files(".",pattern = "*.csv")
...
rm(myfiles)
When I run the master R file I get:
> source("../scripts/second_file.R")
Error in…
Hi,
I'd like to implement a sort of Addressbook/Contactbook using a Datagrid (or a List) and the MVVM pattern.
Something like in Outlook/Thunderbird, where you've a list of your contacts displayed with a 2-3 main fields (name surname for example), and when you double-click a contact,…
The rich text editor must be implemented in Java, provide Swing support, and preferably be open source.
I'm looking to integrate it into an existing Java/Swing application.
Thanks.
Well, i got this oop:
abstract class TestSystemUtils {
abstract public function __run();
/* utils funcs */
}
class TestSystem extends TestSystemUtils {
protected $body;
protected $out;
function __construct() { }
public function __run() { }
}
I got a directory with many modules, each…
Is there a Pattern in Scala that can add a method to an Array object?
I am thinking of the implicit conversion of Int to RichInt. But that can't be done as Array is a final class.
Hi All,
I have a Java serial driver that's using the notifyOnDataAvailable mode to enable async. receive notification.
I see an occasional problem where the SerialPortEvent.DATA_AVAILABLE serial event is not called until a relatively large no. of characters have been received (e.g. 34). …
Using MySQL, I have three tables:
projects:
ID name
1 "birthday party"
2 "soccer match"
3 "wine tasting evening"
4 "dig out garden"
5 "mountainbiking"
6 "making music"
batches:
ID projectID templateID when
1 1 1 7 days before
2 1 1 …