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?
Hi all
I am very confused about the const version and mutable version member function like below::
value_type& top() { return this.item }
const value_type& top() const { return this.item }
What is the different these two functions? In what situation they would be used? Could someone give me some explanation about it?
Best Regards,
I have one image. i want that when someone scrolls the browser window then by jquery i should also change the image position from top as well
I want to use jquery only . Is there function like that.
I don't want to use position:fixed or something like that. I want something like
onScroll(){
var x = getScrollDIstance();
moveImageDown(x);
}
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
In my project I am trying to save video to the iPhone after being taken by the camera.
When I call the method:
UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(path)
It reports the error:
Implicit declaration of function 'UIVideoAtPathIsCompatibleWithSavedPhotosAlbum'
I've imported MobileCoreServices/UTCoreTypes.h
I was previously using this same code for saving camera pictures, and it worked fine.
In another class, in the same project, I am able to reference the UIKit method:
UIImagePNGRepresentation()
without any problems
So why does it give me this error?
I want to use URL such as /Image/sample.png
I create route, but it does not work, it say "The resource cannot be found"
What is the problem? (action GetImage is in controller home)
routes.MapRoute("Image",
"Image/{id}",
new { controller = "Home", action = "GetImage", id = "" });
I am triggering the transformation using a .NET code,
unless I add "EnableDocumentFunction" property to the XSL-Setting, the program throws error saying .. "Usage of Document() function is prohibited",
Actually the program is not editable and a kind of read-only .. is it possible to edit the XSL code itself so that I can use document() function??
The sample XSL and XMLs are Here:
Sample XML :
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:output method="xml" indent="yes"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:variable name="State_Code_Trn">
<State In="California" Out="CA"/>
<State In="CA" Out="CA"/>
<State In="Texas" Out="TX"/>
<State In="TX" Out="TX"/>
</xsl:variable>
<xsl:template name="testing" match="test_node">
<xsl:variable name="test_val">
<xsl:value-of select="."/>
</xsl:variable>
<xsl:element name="{name()}">
<xsl:choose>
<xsl:when test="document('')/*/xsl:variable[@name='State_Code_Trn']
/State[@In=$test_val]">
<xsl:value-of select="document('')/*/xsl:variable[@name='State_Code_Trn']
/State[@In=$test_val]/@Out"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>Other</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
And the sample XML :
<?xml version="1.0" encoding="utf-8"?>
<root>
<test_node>California</test_node>
<test_node>CA</test_node>
<test_node> CA</test_node>
<test_node>Texas</test_node>
<test_node>TX</test_node>
<test_node>CAA</test_node>
<test_node></test_node>
</root>
Is there a debugging system that allows me to record javascript function calls and their parameters as they occur? this would allow me to trace and debug applications in live/client situations without the performance hit due to manual logging.
Edit: I'm not talking about manually calling functions using a 'console' window and viewing the results, or manually adding 'trace' or 'log' commands into my javascript. I need it to work with any running javascript.
Hello experts,
I need to pass javascript function as a parameter value to the ajax actionlink in asp.net mvc app. how can we achieve this?
Thanks in advance.
I was able to create a subdomain in my plesk panel (linux serverm and plesk 10.4.4 ) using API (with a PHP script).
But I'm not able to find a documentation online for just two things:
How can I set the stats property to be "awstats" instead of "Nothing"?
How can I set (if is it possible) the home directory for the created subdomain to be, for example /subdomains/my-subdomain?
Thank you very much...
To illustrate:
class Customer
has_many :sales_orders
end
class SalesOrder
belongs_to :customer
end
i want to have customer to list sales_order which is ready to be sent, should i:
put the routing http://.../sales_orders/can_be_delivered or
create a new controller for reporting http://.../reports/sales_orders_can_be_delivered
for the 1st one, what should goes in the route.rb?
for the 2nd one, nothing goes in route.rb, we can use the last defined route which is :controller/:action.. <-- but this isn't named route
any ideas for this kind of problem?
I want to create my own RSS/XML feed. I fetch data from the database to display, but keep getting invalid character errors. If the string has an ampersand or other strange characters in it, the XML will be invalid.
I tried using urlencode and htmlentities, but these don't capture all possible characters which need to be escaped. Does anyone know of a PHP function which will prepare a string for XML output?
Hi
I have wordpress site. I have installed modern-blue-green-120070612-2 theme.Then i got an error message on the right hand side "Fatal error: Call to undefined function cypher_previousposts() in mydomain\wp-content\themes\modern-blue-green-120070612-2\sidebar.php on line 59.
Does any one know this? Please help me ....
Thaks in advance
Hello,
For C#, I hate writing out the variables and then writing out all the properties. Isn't there a way to select all variables, right click and create all the properties.
I need to create environment to run potentially untrusted code. Program allowed to connect to preconfigured address:port and nothing else (even read the system time). I have compiled the class whitelist. I'd searched similar questions, but found only template that based on SecurityManager which AFAIK is deprecated.
Can anybody give me a simple sample how to run code in sandbox based on security policies and AccessController?
I've found many definitions of the 'var' statement but most of them are incomplete (usually from introductory guides/tutorials). Should I use 'var' if the variable & scope has been declared in the params list?
someFunc = function(someVar)
{
// Is it considered good practice to use 'var', even if it is redundant?
var someVar = cheese;
};
How can i make my own delete method to prevent that the data really gets deleted?
i want to set a datetime field when it gets deleted insted of a normal delete.
i read about overriding the submitchanges function, but i don't get it to work
thanks
I am building a website. I have created the database in MySQL. I need to build the web pages really fast! Is there a PHP CMS with which I can easily create the webpages with forms that can modify my database tables? The point is that I don't want to code it using plain PHP or MVC frameworks either. I looked at other CMSs' like Drupal and Joomla but it looks like its difficult to make them use custom tables.
If funciton overloading and templates serve more the less the same purpose then which one should we go for templates or function overloading and what are the corresponding benefits.
Does anyone know how bing's weather webslice search works? I am attempting to create a web slice(only available in IE8) with search built in and I have read that forms are not allowed and neither is javascript. Any help would be appreciated.