I'd like tocreate copies of the VMs located on my datastore that I can put up temporarily on a different server while I perform some maintenance on our main virtualization server.
Aside from using the Converter utility (which I don't believe I can use with the Linux machines) is there a way to make copies of these machines? It would make my life a lot easier.
Thank!
How tocreate a .BAT file to download file or folder from FTP server? (and replace with it existing file) (we have links like ftp://me:[email protected]/file.file and absolute file link like C:\Users\UserName\Some mixed ??????? English Adress\file.file) (using only native windows (xp vista win7 etc) BAT functions and files)
Is the ASP.NET 4.0 SQL session state mechanism backward-compatible with the ASP.NET 2.0 schema for session state, or should/must we create a separate and distinct session state database for our ASP.NET 4.0 apps?
I'm leaning towards the latter anyway, but the 2.0 database seems to just work, though I'm wondering if there are any substantive differences between the ASPState database schema / procedures between the 2.0 and 4.0 versions of ASP.NET. Thank you.
Hi, i need to comunicate with a smartcard from an ASP.NET site. I've create a dll(using Winscard.dll and MCSCM.dll that is the SCM Micro Reader's dll) that work with the cardreader on windows but i'm not able to use it with ASP.NET. The project will run only on IE and i must avoid Javascript.
Thank you for the help.
In RIA, especially very complicate such as google WAVE. For browser's DOM object recycle system is not smart, I think put all DOM object into an object pool maybe a good idea to avoid create too much useless DOM node.
Can anyone give me some advice?
I'm trying tocreate a sliding drawer in code, but I don't understand what to do for the AttributeSet part of the constructor.
What do I need to do for that?
Also, how do I define in code where the slider is going to show up?
Thanks,
My app needs toaccess two network cards. One to receive data (eth0) and another to send data (3G modem).
Normally, the kernel force the app to work with only one card at a time.
Is there any thing that I can do to make it run?
Thank you.
I have written the following basic Tuple template:
template <typename... T>
class Tuple;
template <uintptr_t N, typename... T>
struct TupleIndexer;
template <typename Head, typename... Tail>
class Tuple<Head, Tail...> : public Tuple<Tail...> {
private:
Head element;
public:
template <uintptr_t N>
typename TupleIndexer<N, Head, Tail...>::Type& Get() {
return TupleIndexer<N, Head, Tail...>::Get(*this);
}
uintptr_t GetCount() const {
return sizeof...(Tail) + 1;
}
private:
friend struct TupleIndexer<0, Head, Tail...>;
};
template <>
class Tuple<> {
public:
uintptr_t GetCount() const {
return 0;
}
};
template <typename Head, typename... Tail>
struct TupleIndexer<0, Head, Tail...> {
typedef Head& Type;
static Type Get(Tuple<Head, Tail...>& tuple) {
return tuple.element;
}
};
template <uintptr_t N, typename Head, typename... Tail>
struct TupleIndexer<N, Head, Tail...> {
typedef typename TupleIndexer<N - 1, Tail...>::Type Type;
static Type Get(Tuple<Head, Tail...>& tuple) {
return TupleIndexer<N - 1, Tail...>::Get(*(Tuple<Tail...>*) &tuple);
}
};
It works just fine, and I can access elements in array-like fashion by using tuple.Get<Index() - but I can only do that if I know the index at compile-time. However, I need toaccess elements in the tuple by index at runtime, and I won't know at compile-time which index needs to be accessed. Example:
int chosenIndex = getUserInput();
cout << "The option you chose was: " << tuple.Get(chosenIndex) << endl;
What's the best way to do this?
These two functions are both infinite loops,
and the programe hangs once called in the same thread.
gtk_main();
...
pcap_loop(adhandle, 0, packet_handler, NULL);
How do I create a child thread and run pcap_loop(adhandle, 0, packet_handler, NULL); instead?
I am trying to request.user for a form's clean method, but how can I access the request object? Can I modify the clean method to allow variables input?
Thanks.
I would like tocreate a dictionary which is indexed by lists. For instance, my dictionary should look like:
D = {[1,2,3]:1, [2,3]:3}
Anyone know howto do this? If I just type D([1,2,3]) = 1 it returns an error.
After several Google searches, it appears that the way tocreate PDFs in Rails from HTML and CSS (versus a new markup language) is to use Prince.
With licensing at $3800 for my non-big-commercial app, I'm wondering if this is, in fact, consensus or people have an alternative they can share the whats and hows.
Hi,
I am trying to play around with integrating with some possible HTTP or XML/SOAP services in rails?
I am looking specifically at Postful access points and Postful's...but I'm not clear exactly howto do it without using net:http but the Nestly gem looks like a way I'd like go. I just need a step-by-step example because the current docs I'm not sure what to do.
Thanks!
I have two colors that I need to linearly interpolate tocreate a duotone color based of another color's luminance value.
Dim clr1 = Color.Black
Dim clr2 = Color.FromArgb(224, 255, 165)
Dim lum = Color.FromArgb(226, 189, 136).GetBrightness
'lum = 0.71
I know the result of this should be R=171, G=192, B=125, but I can't figure out howto do this. I've searched through SO quite a bit and all over Google, but have not discovered a way to produce this result. Can anyone help?
I have a usercontrol, and I want a storyboard inside the user control to fade the user control out. Using Expression Blend, I can create the storyboard and cause it to fade the user control out, but when I run the silverlight application I get an error on FindControl stating that it can't find the control. I'm guessing the find control only searches the children of the parent, but does not look at the parent itself. Is there any way around this?
I have been doing a lot of searching today for C# libraries which will allow me tocreate H.264 encoded video files. Does anyone know if any such libraries or 3rd party components exist?
The simplest example that I can provide for what I want to do is this:
I need tocreate a Report, whose only requirement is that I have (4) of the same subreport on the page (imagine 4 portrait-oriented post cards on a page), each quadrant using a separate row from my datatable, yet all 4 are identical in terms of fields. If there are more than 4, it needs to carry over to a new page with the same format.
I'm using C# and the built-in Crystal Reports Basic for the task.
I am looking for a way tocreatean alias for a user that has commited to a mercurial repository. For example, if there is a user named user1 I'd like every commit done by him to be under the name user2.
Hi guys! I was wondering if it's possibile tocreate a web-client that can connect two users and then it sends their webcam stream to each other. This should happen without using Red5 or any other flash/media server.
What protocol can I use? What api etc...
Can someone help me understand howtocreate a JSON object like: [{"locationID":"16","locationDesc":"XXXX"}, {"locationID":"111","locationDesc":"XXXX"}, {"locationID":"12","locationDesc":"XXXX"}, {"locationID":"11","locationDesc":"XXXX"}]
I'd like to build this object via a LOOP, so some way to append over and over.
thxs
Hello there,
-- First of all, I don't know whether the vector can be called as a "global vector" if I declared it under a namespace, but not in a class or function. --
I'm now writing a simple Irrlicht (http://irrlicht.sourceforge.net) wrapper for my game to make things simpler and easier, but recently I got an "Access violation reading location" error when trying to push_back a vector declared in the global scope.
Here is my code so far:
irrwrap.cpp:
namespace irrw
{
//.........
IrrlichtDevice *device;
IVideoDriver *driver;
irr::core::array<irr::video::ITexture*> TextureCollector;
vector<int> TextureConnector;
//.........
}
//..............
void irrInit(int iGraphicsDriver, int iWindowWidth, int iWindowHeight, int iScreenDepth, bool bFullScreen)
{
E_DRIVER_TYPE drvT;
if(iGraphicsDriver == GD_SOFTWARE)
drvT = EDT_SOFTWARE;
else if(iGraphicsDriver == GD_D3D8)
drvT = EDT_DIRECT3D8;
else if(iGraphicsDriver == GD_D3D9)
drvT = EDT_DIRECT3D9;
else if(iGraphicsDriver == GD_OPENGL)
drvT = EDT_OPENGL;
//..............
irrw::device = createDevice(drvT, dimension2d<u32>(iWindowWidth, iWindowHeight), iScreenDepth, bFullScreen);
irrw::driver = irrw::device->getVideoDriver();
//..................
}
void irrLoadImage(irr::core::stringc szFileName, int iID, int iTextureFlag)
{
//........
irrw::TextureCollector.push_back(irrw::driver->getTexture(szFileName)); // the call stack pointed to this line
irrw::TextureConnector.push_back(iID);
}
main.cpp:
//.........
INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
{
//.........
irrInit(GD_OPENGL, 800, 600, 16, false);
irrLoadImage("picture.jpg", 100, 1);
//.........
}
and the error:
Unhandled exception at 0x692804d6 in Game.exe: 0xC0000005: Access violation reading location 0x00000558.
Now I really got no idea on howto fix the problem.
Any kind of help would be appreciated :)
Here are some prototypes:
virtual ITexture* getTexture(const io::path& filename) = 0;
typedef core::string<fschar_t> path; // under 'io' namespace
typedef char fschar_t;
typedef string<c8> stringc;
typedef char c8;
Just FYI, I am using MSVC++ 2008 EE.
(CODE UPDATED)