While reading a file I get broken UTF-8 String error whenever I have the following in my file
través
if I change it to normal e then it works.
Whats the way to fix this?
error only happens if I do line.lstrp or any other function. Just printing the lines is ok.
problem even happens when I try to match the string with regex.
I want to create a link like the following:
http://www.myurl.com/?IDHERE
What i want to be able to do is be able to goto the above link, and then pull whats after the ? (in this case IDHERE) and be able to use that information to perform a MySQL lookup and return a page.
Can anyone point me into the right direction? please know this is using PHP not ASP
We always say that method overloading is static polymorphism and overriding is runtime polymorphism. What exactly do we mean by static here? Is the call to a method resolved on compiling the code? So whats the difference between normal method call and calling a final method? Which one is linked at compile time?
During the initial release of the HadoopOnAzure, Microsoft had provided the C#Isotope SDK as a programatic interface to the Hadoop cluster on the Azure. After the HDInsight release this is removed from the downoads.
More over while trying with the previous version of the sdk we get a 500 - Internal Server Error.
Any idea if this services is disabled? If so whats the alternative way to programatically interface with the HDInsight Cluster on Azure?
Hi!
I'm writing a static page controller.
I get the menuname in the routes.rb and it's call the static controller show method.
match '/:menuname' = 'static#show'
And static_controller.rb:
@static=Staticpage.where("menuname =
?", params[:menuname])
But if I want print @static.title in the view, I get this error:
undefined method `title' for #
Whats wrong?
the SQL query looks good:
SELECT staticpages.* FROM staticpages WHERE (menuname = 'asd')
I notice these characters are all illegal
#%<>?\/*+|:"
I notice these are encoded (%NN where NN is the hex value) but can be replace without problem
$,;=& @
(note the space which is typically encoded as + (but may be %20))
#%?/+ i understand. But whats do the following characters do? <>\*|":
Note: I understand what : does in the domain part (its the port) as @ is a login but after the first / why is : illegal? (@ isnt)
Hey,
I wanted to know if we can access the HttpContext class in the App_Code folder. I am asking so because i have a CommonMethods.cs class inside my App_Code folder.
I have written a method that checks if a cookie exists on the client machine or not, but it does not return the cookie.
Although when i write the same code on the ASPX.cs page i get the cookie!!
can anybody clarify me as in whats going on??
thanks
I've created an affilaite system that tracks leads and conversions. The leads and conversions records will go into the millions so I need a good way to store them. Users will need to track the stats hourly, daily, weekly and monthly.
Whats the best way to store the leads and conversions?
I want to calculate the quarter Hour from the given two datetimes:
Suppose datetime1 and datetime2 , i am doing somewhat like this :
int d = datetime2.Subtract(datetime1).Hours;
double l = Math.Round(Convert.ToDouble(d/4));
but if the QuarterHour is 3 (ie d=3), whats the good way to show the output- should it be zero or the round one :
3/4 = 0.75. so should i round up to 1 or 0 is ok.
And if round up to 1..how should i?
Can I do Android Programming in C++ ,C ?
If ( answer == "yes" )
{
then please tell how ? and whats the procedure for set-up ?
( i donot know obj-c ,java ) but well versed in C,C++ ,FLASH AS3
SDK released by google
please do not tell about NVDIA SDK its not fully developed :)
}
Whats the difference between
SELECT DISTINCT field1
FROM table1 cd
JOIN table2
ON cd.Company = table2.Name
and table2.Id IN (2728)
and
SELECT DISTINCT field1
FROM table1 cd
JOIN table2
ON cd.Company = table2.Name
where table2.Id IN (2728)
both return the same result and both have the same explain output
If System.IO.Directory.Exists(HttpContext.Current.Server.MapPath(Server.MapPath("images/TravelogueGallery/" & getMaxID()))) Then
System.IO.Directory.Delete(HttpContext.Current.Server.MapPath("images/TravelogueGallery/" & getMaxID()), True)
End If
I am using the above code snippet to delete a directory but i get this error "'G:\Projects\Latest\LTCIndia 05-04-12 1415\images\TravelogueGallery\19' is not a valid virtual path. "
Whats wrong with the code?
I am trying to execute a query in oracle db.
When i try to run thru SQLTools the query is executing in 2 seconds
and when i run the same query thru JAVA it is exectuting in more than a minute.
I am using a hint /*+ordered use_nl (a, b)*/
I am using ojdbc6.jar Is it because of any JARS?
Please help whats causing this?
Is there an IDE for PHP where you can set breakpoints and step into and render a webpage "stepwise"?
And whats the "best" IDE for working with php-code?
This setting in PATH:
D:\MATLAB\R2007b\bin\win32
Here is a fresh bad affect by this setting for me:
http://stackoverflow.com/questions/2712913/why-does-this-program-require-msvcr80-dll-and-whats-the-best-solution-for-this-k
And here's an issue reported by another guy:
http://groups.google.com/group/ggobi/browse_thread/thread/dacea0fa93dcaf75
What's that setting for and why it's causing so many problems?
How can I make a link that justs adds or changes 1 GET var while maintaining all others?
I have a page that is created using different GET vars.
So it will be like mypage.php?color=red&size=7&brand=some%20brand
So I want to have a link that sets it to page=2 or size=8. Whats the easiest way to have a link do that without reseting all the other vars?
I hope that makes sense, let me know if I need to further explain anything
i am doing:
explain select * from calibration;
it says 521332 rows
when i do:
select count(*) from calibration;
i am getting 521961
can someone explain whats going on here?
hello members i have 1 site : http://www.magentocommerceexperts.com/ it is not showing cache in google toolabr also i am not getiing result properly also other pages has been cached and it showing and the site genrated in wordpress so will u show me whats a problem. all seo stuff done completd and i am facing problem since 2 months