I would like to be able to use a feature in PTX 1.3 which is not yet implemented it the C interface. Is there a way to write my own function in PTX and inject into an existing binary?
The feature I'm looking for is getting the value of %smid
Currently we're building a small datacenter. For the Infrastructure-as-a-Service part I'm planning to use VMWare vSphere. I know VMWare is pushing its vCloud API so my question is: how can I install and use this API within my own datacenter?
I would like to create a new page in Elgg where I can put my own content. I would like to have there all the default menus, etc. but with empty space where I can put my code. I would like to have a link to this page on my profile page. Should it be done as a new plugin? If yes, how to create empty page with my current template settings?
How do you preload dynamic classes which loads its own content? cause theoretically speaking the classes doesn't have a size yet until it loads its content right?
How would I create my own XP printer driver which will do the following:
print to file (probably XPS
format)
put this file into a password
protected ZIP file
email the zip file to a configured
email address
Do existing printer driver already offer something like this anyway?
Since Windows doesnt have a C++ locale with UTF8 support by default, i would like to construct a custom locale object which supports UTF8 (by creating it with a custom ctype facet).
How can i construct a locale object with a my own ctype implementation (i only found functions to construct a locale using an already existing locale as base..)
If C++ does not support construction of locales with a custom ctype facet at all, why is that so ?
I have a List where element is:
struct element {
double priority;
int value;
}
How can I implement my own comparer which allow me sort List by priority ? I try with SortredList... but it don't allow douplicated keys :(
Big thanks for help!
How can a Clojure program find its own MANIFEST.MF (assuming it is packaged in a JAR file).
I am trying to do this from my "-main" function, but I can't find a class to use in the following code:
(.getValue
(..
(java.util.jar.Manifest.
(.openStream
(java.net.URL.
(str
"jar:"
(..
(class **WHAT-GOES-HERE**)
getProtectionDomain
getCodeSource
getLocation)
"!/META-INF/MANIFEST.MF"))))
getMainAttributes)
"Build-number"))
Thanks.
I would like to create my own implementation of a LocationProvider, there seems to be a way to add a "mock" provider, but that isn't exactly what I want.
http://developer.android.com/reference/android/location/LocationManager.html
There also appears to be a permission called:
android.permission.INSTALL_LOCATION_PROVIDER
But there is no documentation about how to use this permission.
How do I register a new location provider?
Hi there. I'm using Qt 4.6.2 and i have problem with QCSS. I have own Q_PROPERTY(QFont myFont READ myFont SET setMyFont). I want to change it with QCSS but it doesn't work. I've tried using normal font syntax but it doesn't work. I've also tried few other combinations like:
qproperty-myFont:
font(serif 20 1 0)
font(serif 20 bold)
QFont(serif 20 1 0)
QFont(serif 20 bold)
QFont(bold 20px serif)
etc.
Hello, I want to create own filetype to save objects in my app. Basically, I urgently do not need new filetype, but it will be better.
How to save my objects like files?
Ok I wrote my own version of SALT I call it salty lol don't make fun of me.. Anyway the registration part of my script as follows is working 100% correctly.
//generate SALTY my own version of SALT and I likes me salt.. lol
function rand_string( $length ) {
$chars = "ABCDEFGHIJKLMNOPQRSTUWXYZabcdefghijklmnopqrstuwxyz1234567890";
$size = strlen( $chars );
for( $i = 0; $i < $length; $i++ ) {
$str .= $chars[ rand( 0, $size - 1 ) ];
}
return $str;
}
$salty = rand_string( 256 );
//generate my extra salty pw
$password = crypt('password');
$hash = $password . $salty;
$newpass = $hash;
//insert the data in the database
include ('../../scripts/dbconnect.php');
//Update db record with my salty pw ;)
// TESTED WITH AND WITHOUT SALTY
//HENCE $password and $newpass
mysql_query("UPDATE `Register` SET `Password` = '$password' WHERE `emailinput` = '$email'");
mysql_close($connect);
However my LOGIN script is failing. I have it setup to TEST and echo if its login or not. It always returns FAILED. I entered the DB and changed the crypted salty pw to "TEST" and I got a SUCCESS. So my problem is somewhere in this LOGIN script I assume. Now I am not sure how to implement my $Salty in this. But also be advised that even without SALTY (just using crypt to store my pass) - I was still unable to perform a login successfully. And if you're gonna suggest i use blowfish - note that my webhost doesn't have it supported and i don't know how to install it.
here's my login script:
if (isset($_POST['formsubmitted']))
{
include ('../../scripts/dbconnect.php');
$username = mysql_real_escape_string($_POST['username']);
$password = crypt(mysql_real_escape_string($_POST['password']));
$qry = "SELECT ID FROM Register WHERE emailinput='$username' AND Password='$password'";
$result = mysql_query($qry);
if(mysql_num_rows($result) > 0)
{
echo 'SUCCESS';
//START SESSION
}
else
{
echo 'FAILED';
//YOU ARE NOT LOGGED IN
}
}
So what's wrong with this login? Why isn't it working just using the crypt/storing only crypt?
How can i make it work storing both the crypt and randomly generated SALTY :) ?
Ty advance
I know that dot net dlls and exe contain their assemblies with them so every body can extract code from it. so to tell me how can i create my own dotnet obfuscator and tell me if their exist any other way to protect my application to deassemble. and plez dont give me link of any paid obfuscator. i would prefer code sample in c# or vb.net
I just want to know if it is possible to install windows azure on your own hardware, or the only possibility to use it is to use the Microsoft's hosting ?
i am new to component building, and i had notice to other components has a a comment on top of there units like agreement, terms and condition etc. wither its free or commercial.
How important is to register(license) your own component and how/where? and when do you need to register it?
how about the freeware? must have a licese too?
I just want to know if it is possible to install windows azure or any other cloud technology on your own hardware, or the only possibility to use it is to use the Microsoft's hosting ?
how can I force tomcat to use my own implementation of Authenticator, and not the existing one like [FORM, BASIC, DIGEST,, etc]. I know if I added my authentication class name in org.apache.catalina.startup.Authenticators.properties it would work,,, any help please... I need an alternative for this...
I am in late testing phase of my web application. The application will be tested at a larger scale now.
During this time I want to try and hack my own system and application with some tools, scripts, etc. Mostly some code I can try and execute in the browser. I have backups for the whole system so even down to the kernel can be hacked.
My system is nginx,apache,php,mysql on Linux CentOS.
If I pay someone to write some software for me and our contract doesn't specify, do I own the rights to the source code, or does the company who wrote the software? Who does the intellectual property belong to in this situation?
I'm specifically interested in the answer as it applies in the United Kingdom.
Hello, I need to save objects - instances of classes - in my app like some filetype. How I can write own serializer/deserializer for it?
Or exist some easier way how to save objects to some filetype?
Using of io.serialization was commented as not so good solution for "real" app. Why?
Hello all,
I'm doing some small projects which involve having different syntaxis for something, however sometimes these syntaxis are so easy that using a parser generator might be overkill.
Now, when should I use a own-made parser, and when should I use a parser generator?
Thanks,
William van Doorn
Blast from the past. This is one of the puzzles from my early days:
Can you write a method (a function) which when called outputs its own source - literally including all the quotes, indentations, etc?
No cheating - no reading from a file