i have a multi array that looks like this.
$_SESSION['cartItems']['quantity']
how do i print out its values? print_r wont work. unless i sessions dont work with multi arrays?
Hello. I dont know how to acces my method of my class ProjectNode, that is returned from ExplorerManager mgr like this:
mgr.getRootContext().setSomething()
getRootContext() returns Node object, but I put class ProjectNode (extends AbstractNode, abstractNode extends Node)into rootContext.
The compiler does not want to eat that line of code. But it must!
I'm doing a C# project and I want to call next_permutation from the algorithm library in C++. I found the way to call c++ functions in c# but i dont know how to get vectors from c++ and use it in c# (cause next_permutation require a int vector...)
this is what I'm trying at the moment:
extern void NextPermutation(vector<int>& permutation)
{
next_permutation (permutation.begin(),permutation.end());
}
[DllImport("PEDLL.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void NextPermutation(IntPtr test);
In particular, what are the implications of running code in two different application domains?
How is data normally passed across the application domain boundary? Is it the same as passing data across the process boundary? I'm curious to know more about this abstraction and what it is useful for.
EDIT: Good existing coverage of the AppDomain class in general at http://stackoverflow.com/questions/622516/i-dont-understand-appdomains
Currently im just using something like:
in the DB Table:
access: home,register,login
and then in each page:
if(!Functions::has_rights('content'))
{
Functions::noAccess();
}
is there more efficient way to do it, php & MySQL? i may want to gain access even to several parts a page, for example: user can read a page, but doesnt comment to it, and I dont want to build a separate system to each module.
Thanks in advanced, Tal.
I wonder if there are great GUI management tools for Apache so you dont have to manually edit files in VIM.
It would be great if you could manage Apache over internet.
Any suggestions of such tools?
Hi,
I have an existing application that i want to implement password resets after 30 days.
But i dont want the user to use the same password as the last 5 times.
How do i go about doing this or is there any links i can follow.
Please help
Thanks,
I am looking for a good Tree data structure class. I have come across this package, but since I am relatively new to Python (not programming), I dont know if there are any better ones out there.
I'd like to hear from the Pythonistas on here - do you have a favorite tree script that you regularly use and would recommend?
i dont understand class_eval in ruby.
http://pastebin.com/RMnvTCyz
what does the % mean?
what does class_eval do?
and where is (val) coming from?
thanks
Hi i want to invoke the Console application from my application but i would like to capture all the output generated in the console. (Remember, i dont want to save the information first in a file and then relist as i would love to receive it as live)
pass=session("password")
Set objIns=server.CreateObject("adodb.connection")
objIns.Open session("Psrconnect")
inspass="Insert into passwords(pass) values ('&pass&')"
objIns.Execute(inspass)
i dont know what should be the syntax to pass the value stored in the variable. with this syntax, the value entered in the database is &pass&.
can anyone plz help me out?
I am implementing one iphone application in which i want to find direction of device on movement.I dont know how to find.Can u help me for this query.Thnks in advance.
hi i installed vmware workstation 7.0 in windows,and it working well.i installed mac os 10.4.8 in it as a guest it is alo working well,but while installin mac os 10.6.2 it dont installed and shows an error as "invalid front-side bus freqency 66000000 hz. disablin the cpu." please help me how to solve this and please suggest any link to easyly understand installation if mac os 10.6.2
How to convert the existing flash site into mobile version existing site in form of the cakephp frame work. We thought that html ,css,php,javascript may work all mobiles.We dont know exactly. Please tell us how many possible way to develop existing site into mobile version and also need to detect the from which browser the request is coming whether mobile browser or pc browser.
The existing site link is :This site convert into mobile version
private static void SaveOrRemove<T>(string key, T value)
{
if (value == null)
{
Console.WriteLine("Remove: " +key);
}
....
}
If I call passing 0 to value: SaveOrRemove("MyKey", 0), the condition (value == null) is false, then CLR dont make a (value == default(T)). What really happens?
Basically i have binary data, i dont mind if it's unreadable but im writing it to a file which is parsed and so it's importance newline characters are taken out.
I thought i had done the right thing when i converted to string....
byte[] b = (byte[])SubKey.GetValue(v[i]);
s = System.Text.ASCIIEncoding.ASCII.GetString(b);
and then removed the newlines
String t = s.replace("\n","")
but its not working ?
If you look at the top right you'll see on a radar an enemy unit line of sight.
I was wondering what is the most efficient or easiest way (little code, fairly accurate. doesnt need to be perfect) to detect if something is in your line of sight? I may or may not need to render it (i likely wont).
I dont know the formula nor used any math libs/namespaces in C#
Hi everybody,
Is there a "known limit" for columns & rows in a mySQL table that when passed, it can be safe to say that performance is severely affected?
I've think that I had heard that there is a "golden number" that you really dont want to exceed in either columns or rows in a table. - Or is it all about the size of the index and available RAM + CPU on the server?
Thanks!
In my setup I have a central Hg repo to which I'm pushing my local changes. Say in my local clone I have a series of local commits and then I want to push the changes to the central repo. How can I push only the final state without including all of the "small" local commits that I made?
I want this because sometimes I dont want to pollute the central repo's history with all of the small local commits that I made.
Hoi,
I have a simple app with a surfaceview nothing special one would say. However when installing on my phone I get two warnings.
1 - Phone calls
- read phone state and identity
2 - Storage
- modify/delete SD card content.
My really is nothing more than a simple puzzle and I dont understand why I get these warnings.
Any ideas how to avoid this?
Help is very much appreciated,
Kind regards
Jasper de Keijzer.
Hi,
I guess it has to do something with string being a reference type but I dont get why simply string.Replace("X","Y") does not work?
Why I need to do `string A=stringB.Replace("X","Y")
I thought it is just a method to be done on specified instance? Thanks for explanation
EDIT: Thank you so far. I extend my question Why "b+="FFF"works but the b.replace is not?
ok so im creating a jquery plugin that will allow me to use the new html5 Audio interface and im trying to create an option that is an object that you will be able to set the various listeners but i dont seem to be able to set those options to the listener property of the Audio object.
I want to catch an exception when user enter no value in a Textbox and try to process further by press a button, I know I can use "If else" statement to make it. but in terms of "Try and Catch" block, I dont know how. Here is the code sample.
Dim NameString As String
Try
NameString = OperatorNameTextBox.Text
Catch ex As ArgumentException
MessageBox.Show("Enter a String Value")
End Try