What are "directoryentry" and "directorysearch" controls in Visual Studio 2008? How do they work? What are there real-world applications? What about their properties?
As you know, the @ characters before a php istruction suppress every eventual warning, error or notice from being raised.
Personally, i dont like this tecnique, becose i prefer to handle those errors, and in a real life, the error must no happen or have to be managed.
By the way, i find this tecnique to be applied in many scripts (cms plugins, open-source classes).
So, could the @ really be usefull (in this case, an example would be appreciated), or is just for lazy developers?
In development mode I would like to have assets served locally and when deployed in production I would like them served from the CDN. Anyone using play2 and serving content from CDN be willing to share how they are doing it?
// Thinking of something like this in the routes file...
@if(play.Play.isDev()) {
GET /assets/*file controllers.Assets.at(path="/public", file)
} else {
GET CDNPATH/assets/*file controllers.Assets.at(path="CDNPATH", file)
}
(Note: using 2.0.2 because of the headers fix https://github.com/playframework/Play20/pull/276)
We have some code that works and it's a Win32 app with a GUI, but I would like to be able to trigger it from the command line as well (silent mode). Is there any easy way to do this? Or do I have to create another project as a command line application?
I'm am trying to figure out how the Oracle "Layered Architecture Model" works, and I am very confused about what the business, data, and presentation do, and how they relate to each other. I have seen many diagrams showing how this should work, but some real world examples would be useful?
Hi
I am new to iphone development. In my application, i want to draw a road map(driving/walking mode) from current location (wherever we are in) into target place which is given by user via textfield. All things should be done inside my application. Is there any idea? or any sample?
It is well-accepted that we should all learn something new every six months. But what should should have topped the list for 2009? What new things should we learn have learned this year that appear to have real staying power?
(Answers do not have to be limited to languages.)
I'd like to be able to specify an SQLite database as a resource in the CACHE section of a manifest file. This would allow the script on the page to use the database in offline mode.
I cannot find anything in the HTML5 spec that says this cannot be done, but I haven't had any success in getting it working either.
Is it possible?
Are there any real resources for creating MySpace Profile Widget apps? I have looked through all the sample code the present and am unable to perform any simple tasks. I basically need to grab the current profile page URL or ID, and then pass this onto an AJAX query and return data from my server.
How do I do this?
I am aware of some the obvious gains of the x64 architecture (higher addressable RAM addresses, ect)... but:
What if my program has no real need to run in native 64 bit mode. Should I port it anyway?
Are there any foreseeable deadlines for ending 32 bit support?
Would my application run faster / better / more secure as native x64 code?
The windows service I am writing will need to run some processor intensive operations once in a while (sound encoding wav - mp3) on a machine that takes part in real time voice communication (so I cannot just run them any-time).
What would you check (what counters maybe) before running such operation?
Can you point me to any good articles?
I have two buttons that both have onTouchListeners and perform an action when pressed down. Why do they not work if you try to click both at the same time? I'm building for Android 1.6. I don't have a real device to test on, and you can't test clicking two things at the same time in the emulator. Thanks for any help.
I have a windows application,sometimes in windows 7(also ultimate with administrator user) and vista to run it i need to right click and run it as administrator,I know the reason is attempt to access to system directories from my program,how i can solve this problem,is
net user administrator /active:yes that using for enabling the real aministrator account solve the problem? if no what should i do ! Thx
Hello,
My site heavily depends upon javascript and if i turn off javascript my website looks real ugly. I want to force user and show him notification to turn on javascript else prompt him that site can't be viewed. What do i do to achieve this?
web.config:
<customErrors mode="On" defaultRedirect="~/Foo.aspx" />
When Foo.aspx.cs is running, how can I know that an uncaught exception is what sent me to Foo.aspx?
How can i create a vanity url in codeigniter. Im having real trouble doing this in the framework. And there doesnt seem to be any good answers out there.
I have a table view and want to allow rearranging of all cells, however there are certain cells that i do not want to be allowed to be deleted. when the UiTableView is put into deletion mode i do not want the red '-' button to appear on the left hand side, and do not want the swipe gesture to bring up the Delete button of these cells but want it to happen for the others. Any ideas?
Q:
I have the following case :
set of letters (grades)
A,A+,A-,B,B+,B- stored as strings in
the database i wanna to order these
grades logically from the small
one to the big one ,, but this not
what happen in real.. because these
are strings the order is:
A,A+,A- i wanna
ASC
A-,A,A+
DESC
A+,A,A-
i bind those grades in drop down list
and i wanna these grades with this
logical order in it..
is there any idea how to do something
like this..
I am using a Jquery dialog for both viewing a record and editing a record. When in edit mode the user can change the date using the datepicker. In viewmode I need to hide the datepicker icon and only show the date. Is there a way to toggle the datepicker icon on and off as needed?
So, I Have the following very simple map.r file.
I'm trying to have the user type "click" in interactive mode and then have the function .
Since it's a function, the user has to type "click()" how can I make it so that they only have to the word (w/o parentheses), and then have that function do something with the img.
So the user types:
mydist("image.pnm")
click
//And then the function click does what it's supposed to
mydist <- function(mapfile) {
img <- read.pnm(mapfile)
plot(img)
}
click <- function() {
//Prompt user to click on img
}
I want to use mode rewrite to display the following:
mydomain.com/Florida/Tampa/ instead of mydomain.com/place.php?state=Florida&city=Tampa
I've akready done this: (since I think it might make a difference!)
mydomain.com/[name].html instead of mydomain.com/profile?user=[name]
Here is the code!
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{SCRIPT_FILENAME}! !-f
RewriteCond %{SCRIPT_FILENAME}! !-d
RewriteRule (.*).html profile.php?user=$1 [QSA.L]
Hello,
I'm looking for a suitable open source project to work on in C++. It really can be anything.
My background is in gaming, on both PC and consoles; but I'd prefer to work on something low latency or real time. I'm also interested in Math stuff.
Do any of you guys have suggestions?
Int64 c1 = Convert.ToInt64(csvdeep[1]);
Int64 division = 1024;
string results = Math.Abs(c1 / division / division / division).ToString();
My c1 is 10201841664 and results is "9".
I'd perfer to get the 2nd two decimal places so my real result would be 9.50. Any tips on how I could get the 2 decimal places?
It is well-accepted that we should all learn something new every six months. But what should top the list for 2009? What new things should we learn this year that appear to have real staying power?
(Answers do not have to be limited to languages.)
At MIX it was announced that WCF RIA Services supports OData Endpoint on the server now. But is there a good way to use a real OData Server in the WCF RIA Services Tooling as an endpoint or is that just an option for the team to say that are supporting the standard, too?