Hi all,
I have an object in PHP with some very odd property names. I just need to know how to access a property when it's name is "//www.w3.org/1999/02/22-rdf-syntax-ns#type".
I found something that suggested
$object->{'//www.w3.org/1999/02/22-rdf-syntax-ns#type'};
but that doesn't seem to work.
Thanks in advance
Rob
I have a web service that contains 2 asmx files (public.asmx and private.asmx). On IIS6 I could go to the properties of private.asmx then, from the 'File Security' tab, deny all computers access except the IP address for localhost.
In IIS7 I only seem to be able to do this for an entire folder. What am I missing?
HI,
Do anyone has idea of specific private api's required for accessing the sms, calendar, notes, photos, videos, and all the datas stored internally from the iPhone. I dont want to jailbreak my device. So i cant access their respective .db files . Any help will be greatly appreciated.
Best Regards,
Mohammed Saiq.
How can I access ConfigurationManager.AppSettings in my Windows Forms Application?
The error message reads: The name 'ConfigurationManager' does not exist in the current context.
I have a decorator that I use for my views @valid_session
from django.http import Http404
def valid_session(the_func):
"""
function to check if the user has a valid session
"""
def _decorated(*args, **kwargs):
if ## check if username is in the request.session:
raise Http404('not logged in.')
else:
return the_func(*args, **kwargs)
return _decorated
I would like to access my session in my decoartor. When user is logged in, I put the username in my session.
Is it possible to access Google Chrome's cache from within an extension?
I'd like to write an extension that loads a cached version of a page when the online one can't be accessed (e.g. Internet connectivity issue).
Updated: I know I could write an NPAPI plugin accessible through an extension to accomplish this but I'd rather not suffer writing one... I am after a solution without resorting to NPAPI, please.
My system administrators advice me to be careful when setting access control to files and directories. He gave me an example and i got confused, here it is:
a file with protection mode 644 (octal) contained in a directory with protection mode 730.
so it means:
File:101 100 100 (owner, group,other: r-x r-- r--)
Directory:111 011 000 (owner, group,other: rwx -wx ---)
How can file be compromised in this case ?
Just to be on the safe side, what's the best practice to ensure that only my application has access to my webservice, which is hosted on a public server? Should I implement I shared key or something?
My webservice is hosted on Googles App Engine and my Application runs on iPhones and iPads.
If you need further information, just ask.
Thanks,
Henrik
Hi ,
Is there any iphone library for accessing the full photo gallery,which should help me to access and upload all the images.
Not looking like three20 application ,expecting some information from iphone api's
Thanks in advance.............
Hello,
When using sharepoint designer you can quite easily use current item and perform different actions with it when using workflows etc. However, the options available are limited. I am wondering how to access current item in a list through visual studio 2010 and use and assign values from its fields to variables or items in another list automatically using C# code.
Any help would be most appreciated.
Thanks
Windows 7 computer running SQL Server Express 2008.
When I try to run net start mssql$sqlexpress I receive an error:
System error 5 has occurred.
Access is denied
The SQL service is running under "Network Service" account
The service starts fine if I use the services window. Could somebody help me figure out why I am receiving this error?
Hello this is similar to http://stackoverflow.com/questions/2620165/how-to-access-a-named-element-of-a-derived-user-control-in-silverlight with the difference is inheriting from a templated control, not a user control.
I have a templated control called MyBaseControl
<Style TargetType="Problemo:MyBaseControl">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Problemo:MyBaseControl">
<Grid x:Name="LayoutRoot" Background="White">
<Border Name="HeaderControl" Background="Red" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
public class MyBaseControl : Control
{
public UIElement Header { get; set; }
public MyBaseControl()
{
DefaultStyleKey = typeof(MyBaseControl);
}
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
var headerControl = GetTemplateChild("HeaderControl") as ContentPresenter;
if (headerControl != null)
headerControl.Content = Header;
}
}
I have another control called myControl which inherits from MyBaseControl Control
<me:MyBaseControl x:Class="Problemo.MyControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:me="clr-namespace:Problemo"
d:DesignHeight="300" d:DesignWidth="400">
<me:MyBaseControl.Header>
<TextBlock Name="xxx" />
</me:MyBaseControl.Header>
</me:MyBaseControl>
public partial class MyControl : MyBaseControl
{
public string Text { get; set; }
public MyControl(string text)
{
InitializeComponent();
Text = text;
Loaded += MyControl_Loaded;
}
void MyControl_Loaded(object sender, RoutedEventArgs e)
{
base.ApplyTemplate();
xxx.Text = Text;
}
}
The issue is xxx is null. How do I access the xxx control in the code behind ?
In workflowRuntime_WorkflowUnloaded and Loaded etc.. the only thing I can get which is pretty useless is the workflowinstanceId. I want to be able to access some DPs that are on the root activity, whenever I do a GetWorkFlowDefintion() and cast to root activity, all the property that I've passed in are all null..
I'm trying to create a zipfile in a MVC method using the DotNetZip components.
Here is my code:
public FileResult DownloadImagefilesAsZip()
{
using (var memoryStream = new MemoryStream())
{
using (var zip = new ZipFile())
{
zip.AddDirectory(Server.MapPath("/Images/"));
zip.Save(memoryStream);
return File(memoryStream, "gzip", "images.zip");
}
}
}
When I run it I get a "Cannot access a closed Stream" error, and I'm not sure why.
I have some viewdata that is generated by going through my repository to the database to grab some scheduling info. When the information is stored in the Viewdata, I noticed that the viewdata is enumerated. How could I access the enumerated items and generate a table/list based on the viewdata? Most of the information just needs to be spit out into a table, but one item will have a link generated for it.
Thanks!
I have a server, did some of the programming myself. It ison my home network, but I need to be able to access it from anywhere over the internet. I have done the port forwarding like I am supposed to, but I still cant get to it from an outside computer. It just displays Internet Explorer cannot display the webpage. I don't know what else to do. I am on a Linksys WRT54G v8 router running ddWRT v24 micro firmware.
i has following codez:
<html>
<body>
Accessing NTFS thingie...
<hd type=ntfs>
<access file='C:\my_document.txt' value='test' />
</hd>
</body>
</html>
plz help!!!! i need it.
Hi,
I'm using mvvm light to build a Silverlight application.
Is there a code snippet that shows how to access a view model's property or command from within another view model or user control's code behind?
I guess it's simple, but I somehow missed something.
Ueli
hi,
I'm trying to access owl file using jsp.I've successfully load the owl file and quering that using SPARQL.But still I couldn't success with JSP.
I'm always getting error "java.lang.ClassNotFoundException: com.hp.hpl.jena.util.FileManager
"
help me!
Thank in advance!
I have a webservice @ http://recpushdata.cyndigo.com/Jobs.asmx but I'm not able to access it though I am adding it as a WebReference properly.
Any Help would be great.
How can I access child page controls from the parent page in a Silverlight 3/4 Navigation Application? I wish to hide an image from the child page when I click a button in the parent page.