Hi,
I need a random object generator in JavaScript that generates a variety of objects with different fields and values. Any ideas where I can find such tool?
Thanks,
Gjorgji.
I read your matter and I wonder did you resolve it? If you found out, let me know and give mail for me. My mail is [email protected]. Thanks much!
http://stackoverflow.com/questions/2298908/advanceddatagrid-does-not-displays-object-properties
i'm getting an error 'Object expected' for some odd reason due to jquery, and this does not 'submit' the form or enter the data into database.
without jquery, the data could be entered into the database. but now it doesn't.
i've used jquery mainly for validating asp.net controls.
I'm looking for an object database for .NET that is open source and free for commercial use. I need something that is available as assemblies and/or source code to embed into a project, i.e. not a stand alone database in its own process.
I am aware of db4o, and it would be perfect except for the commercial license coming at a price.
I'd like to know if there's a difference between the following two calls to create an object in Django
Animal.objects.create(name="cat", sound="meow")
and
Animal(name="cat", sound="meow")
I see both in test cases and I want to make sure I am not missing something.
thanks
does the nesting of function be possible in the object oriented languages like c# ,java ,c++ etc . If yes can anyone help me with the suitable code for that ...?
Hello Guys,
How will I use an instance of an object that is initially loaded throughout the whole site?
I want $myinstance to be used everywhere.
$myinstance = new TestClass();
Thanks!
So I have a class like this:
def Word
end
and im looping thru an array like this
array.each do |value|
end
And inside that loop I want to instantiate an object, with a handle of the var
value = Word.new
Im sure there is an easy way to do this - I just dont know what it is!
Thanks!
I've tried implementing various methods from around the internet, all seem to be providing the same solution. But it just won't work and I'm unsure why, it creates the file, however, it's blank and if I try loading that file, it has an error.
Main.java contains the code to save and load the file: 190-224.
Rooms.java contains the object.
Code
Any help is greatly appreciated, I've been trying for almost a week now! Thanks in advanced!
I have a Persons object. It has a variable name accessible by saying
$p = new Person('John');
echo $p->name;
Now I have a string.
$name = 'name';
I need to get $p->name using $p and $name. Something like
echo $p->[$name];
Is there a way to tell the .NET to allocate a new object in generation 2 heap. I have a problem where I need to allocate approximately 200 MB of objects, do something with them, and throw them away. What happens here is that all the data gets copied two times (from gen0 to gen1 and then from gen1 to gen2).
So i'm trying to render a template with trimpath in IE8, but when passing the template (a jquery object) there is nothing in it. This all works in chrome,safari,firefox.
So to give an example:
var $flickrImageGalleryPreviewTemplate =$('#flickr_image_gallery_preview_template',rootel);
$flickrImageGalleryPreviewTemplate.length)
will result in 0 in IE8 and 1 in FF,Chrome,Safari
i code some configuration setting. And need those values to be load, everytime my webapp start. yes, it's somekind autoload setting.
But, right now, i have to choose between save it as object or array. is there any different between them when we save them in database ? which one is faster or maintainable or other pro and cons
thanks
Hi All
SaveNotes *saveNotes = [[SaveNotes alloc]initWithTitleString:title descrString:descr];
[titleDescrObjects addObject:saveNotes];
[saveNotes release];
from the above code i have saved title,descr to a class SaveNotes , and then i have stored that object in my NSMutableArray - titleDescrObjects,
Its working fine,
i need to get particular objects "descr" alone,
how to get the descr from objectAtIndex:i
i am trying
for (int i=0; i<[titleDescrObjects count]; i++)
{
NSLog(@"\n ((%@))\n",[titleDescrObjects objectAtIndex:i].descr);
}
Thanks in advance,
I have some images in a section of a site that require the user to be logged in in order to view. These images are served by a PHP script, which checks the user's login state and if valid, serves the binary data with the appropriate headers. This all works fine.
The issue comes when a user tries to print one of these images. In Internet Explorer, when they go to print preview they get the broken image box with a red cross in the corner instead of the actual file. This is what gets printed also. All other browsers can print the images without issue.
I have some images elsewhere on the site that are also served via. PHP but these don't require a login. These print fine.
The PHP-powered HTML pages on the site that require a login also print fine in IE. It's just login-required images.
The user hitting print preview does not seem to result in additional HTTP request to the server for the file. However I do see an additional HTTP request a few seconds later that comes from the same IP (may or may not be related), This request includes no host header, no REQUEST_URI and no user agent.
The 'please login' page sends an appropriate 403 header. I've also added a far-in-future expires header to the image response itself to ensure that browsers can serve/print the files from their own cache but this hasn't made any difference.
Why can't IE print the images and what else can I do to investigate or fix the problem?
The following applies to ALL Demantra, EBS and Demantra Oracle Integrations:
All EBS desktop administrators must disable JRE Auto-Update for their end-users immediately.
See this externally-published article:
URGENT BULLETIN: Disable JRE Auto-Update for All E-Business Suite End-Users
https://blogs.oracle.com/stevenChan/entry/bulletin_disable_jre_auto_update
Why is this required?
If you have Auto-Update enabled, your JRE 1.6 version will be updated to JRE 7.
This may happen as early as July 3, 2012.
This will definitely happen after Sept. 7, 2012, after the release of 1.6.0_35 (6u35).
Oracle Forms is not compatible with JRE 7 yet. JRE 7 has not been certified with Oracle E-Business Suite yet.
Oracle E-Business Suite functionality based on Forms -- e.g. Financials -- will stop working if you upgrade to JRE 7.
Related News
Java 1.6.0_33 is certified with Oracle E-Business Suite. See this externally-published article:
Java JRE 1.6.0_33 Certified with Oracle E-Business Suite
https://blogs.oracle.com/stevenChan/entry/jre_1_6_0_33
In this tutorial we demonstrate how to use Skin Object Tokens in DotNetNuke v5 and above. Skin Object tokens are a new skinning method introduced in DotNetNuke 5 for adding tokens into a DotNetNuke skin.
A Skin Object Token is a web user control, it covers skin elements such as the logo, menu, search, login links, date, copyright, languages, links, banners, privacy, terms of use etc.
This new Object token method has been introduced into DotNetNuke with the idea of making it simpler to add a skin object into a DotNetNuke skin.
The videos contain:
Video 1 - Introduction to HTML Object Token Skinning
Video 2 - Basic Styling of a Skin and Creating Multiple Content Panes
Video 3 - Styling, Control Panel, Login and Register Skin Object Tokens
Video 4 - Packaging, Installing, Testing and Viewing the ASCX Version of the Skin
Video 5 - Viewing the Attributes for Skin Object Tokens, Logo Token, Search Token
Video 6 - Breadcrumb Token, Text Token and Localization, Links Token
Video 7 - More Skin Tokens and Token Replacement
Video 8 - Demonstration of the Object Tokens and Bug Fixing
Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
I have recently given a control of newly bought hosting space and the domain account. There is a technical team from the hosting site to help out with problems, but that is a long process, i.e. log a ticket, wait for a long time, and I don't get the correct answer in the first shot.
I was wondering, if anyone has any helpful guide and how one must go with hosting a site. Any info that must be know w.r.t to cpanel? Any other useful stuff if any one has, or could point me to ?
Just to give a few difficulties:
The same php code working well on local machine, giving error on remote as "File not found". The file is present indeed as I have ftp'ed all the files correctly.
session_start error are outputted to html page with warning "Header already sent".
and many more technical things, that work well on local but not on actual hosting server.
So, if anyone has any helpful stuff in this reference, as to what all changes are required or what a programmer must be aware from a hosting perspective, please let me know.
Note
I am hosting a PHP site with mysql db, on a shared environment.
I am working on VS C# on the following code, which converts an user input
math expression and computes it.
MSScriptControl.ScriptControl sc = new MSScriptControl.ScriptControl();
sc.Language = "VBScript";
sc.ExecuteStatement(
"function pi\n"
+ "pi = 3.14159265\n"
+ "end function");
sc.ExecuteStatement(
"function e\n"
+ "e = exp(1)\n"
+ "end function");
expression = textBox1.Text.ToString();
expression = expression.Replace("x", i.ToString());
object y = sc.Eval(expression);
string k = y.ToString();
double result = double.Parse(k);
While this outputs onto the console with the correct result, I want
to use the values to make a graph of the function user inputs and it's
not doing it correctly.
Thank you for your help.
Hello,
I'm using Sharepoint 2010 Object Model. I'm trying to retrive the content of a Custom List. Everything works fine except if when I try to retrieve a Choice Field.
When I try to retrieve the choice field, I got an PropertyOrFieldNotInitializedException exception...
Here is the code I'm using:
ClientContext clientContext = new ClientContext("https://mysite");
clientContext.FormsAuthenticationLoginInfo = new FormsAuthenticationLoginInfo("aaa", bbb");
clientContext.AuthenticationMode = ClientAuthenticationMode.FormsAuthentication;
List list = clientContext.Web.Lists.GetByTitle("mylist");
CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml = "<View/>";
ListItemCollection listItems = list.GetItems(camlQuery);
clientContext.Load(listItems);
clientContext.ExecuteQuery();
foreach (ListItem listItem in listItems)
{
listBoxControl1.Items.Add(listItem["Assigned_x0020_Company"]);
}
Thank you for you help!
Eric
I am developing a C# VS 2008 / SQL Server website application. I am a newbie to ASP.NET. I am getting the above error, however, on the last line of the following code. Can you give me advice on how to fix this? This compiles correctly, but I encounter this error after running it.
DataTable dt;
Hashtable ht;
string[] SingleRow;
...
SqlConnection conn2 = new SqlConnection(connString);
SqlCommand cmd = conn2.CreateCommand();
cmd.CommandText = "dbo.AppendDataCT";
cmd.Connection = conn2;
SingleRow = (string[])dt.Rows[1].ItemArray;
My error:
System.InvalidCastException was caught
Message="Unable to cast object of type 'System.Object[]' to type 'System.String[]'."
Source="App_Code.g68pyuml"
StackTrace:
at ADONET_namespace.ADONET_methods.AppendDataCT(DataTable dt, Hashtable ht) in c:\Documents and Settings\Admin\My Documents\Visual Studio 2008\WebSites\Jerry\App_Code\ADONET methods.cs:line 88
InnerException:
Which is the right/best tag to use in my HTML file when I want to display the Adobe PDF viewer? Right now I'm using the code below, but there are weird side effects (e.g. it seems to steal the starting focus that I've set to another INPUT text box; it doesn't seem to play real well with the jQueryUI Resizeable class; etc.)
<embed src="abc.pdf" type="application/pdf" />
Could I even do the same thing with the OBJECT tag? Are there advantages/disadvantages to using one tag vs. the other?
I have a "plain" XmlDocument loaded like so:
<root>
<element1 />
<element2></element2>
</root>
and want to qualify the elements with namespaces like so while the object model is loaded
<root xmlns:abc="urn:something">
<abc:element1 />
<abc:element2></abc:element2>
</root>
before writing it out.
I have two classes. Class1 and Class2.
public class Class1{
...
public virtual IList<Class2> Class2s{get;set;}
...
}
public class Class2{
...
public virtual IList<Class1> Class1s{get;set;}
...
}
The view contains
<%=Html.ListBox("Class2s",
ViewData.Model.Class2s.Select(
x => new SelectListItem {
Text = x.Name,
Value = x.Id.ToString(),
Selected = ViewData.Model.Class1.Class2s.Any(y => y.Id == x.Id)
})
They have many to many mapping. I have a ListBox in Class1 view which displays Class2. How to map the output of the ListBox back to IList Class2s property of Class1? I am able to display the values in the ListBox but unable to map back the SelectListItem to IList.
Hi,
Can someone tell me what is the main difference between a Javascript object defined by using "Object Literal Notation" and JSON object?
According to a Javascript book it says this is an object defined by using Object Notation:
var newObject =
{
prop1 : true,
showMessage : function (msg) {alert(msg)}
};
Why it is not a JSON object in this case? Just because it is not defined by using quotation marks?
Thanks,