Hi guys,
I have build a php authentication for my site http://www.skyeye.cc/ and wanted to make sure I didn't forget any security holes... let see if you can hack into it?
Thanks!
Hey Guys,
I am having a hard time getting the rewrite rule setup correctly for my website&blog. Here is the current line in Apache's virtual host:
RewriteRule ^/(?:blog|apc|_em|phpsecinfo|blog/)/ - [L]
I am able to access my URL at www.domainname.com/blog/
But I am unable to access it at www.domainname.com/blog (without the ending /)
How can I edit my Rewrite rule so that I can reach the blog without the ending / ? Thanks
Hi guys.
I'm creating a page that searches for an item and then be able to edit/update it. I was able to do it when it returns just one result but when it gives me multiple results I could only edit the very last item. Below is my code:
.......
$dj =$_POST[djnum];
$sql= "SELECT * From dj WHERE datajack LIKE '$dj%'";
$result = mysql_query($sql);
//more code in here//
while ($info =mysql_fetch_array($result)) {
// display the result
echo "<form action=\"dj_update.php\" method=\"POST\"><input type=\"hidden\" name=\"djnumber\" value=\"".$info['datajack']."\">";
echo "<tr><td>DJ ".$info['datajack']."</td>";
echo "<td>".$info['building']." </td>";
echo "<td>Rm ".$info['room']." </td>";
echo "<td>".$info['switch']." </td>";
echo "<td>".$info['port']." </td>";
echo "<td>".$info['notes']." </td>";
echo "<td style=\"text-align:center;\"><input type=\"Submit\" value=\"Edit\" ></td></tr>";
}
// more code here //
Then this is the screen shot of the result:
The idea is the user should be able to click on "Edit" and be able to edit/update that particular item. But when I click any of the Edit button I could only edit the last item. What am I missing here? Is there an easier way to do this?
Thanks guys and Happy new year!
Hello guys I'm looking for a way on the iPhone to parse an XML document using DOM. I have been using SAX with NSXMLParser but now I really want a DOM tree (or anything that can quickly translate the XML document into an NSDictionary)
Thanks for any help
Guys, having quick look in Winnt.h I have discovered that there is a lots of typedefs and one of them is for example CHAR for a char. Why? What was the purpose of these typdefs? Why not use what's already there (char, int etc.)?
Thank you.
Hey,Guys!
In rails , I met a question!
when i use the multiple select ,i don't know ,how can i get the all parameter values ,it likes
in javaEE,
String[] strs=request.getParameters("aaa");
so,who can tell me the method in rails to realize the function?
Thank you in advance!
Hi Guys,
Im trying to run a function that will never end (until the program is killed)
How would i start such a function and be able to continue on past that function, because at the moment the program will not run past the never ending function.
Regards
Paul
Has anyone tried to make Android and Arduino communicate with each other?
I found a couple of projects online:
Amarino
Android-Arduino
What do youguys suggest is the best way to make those two communicate?
Sorrry guys, I'm stuck here.
I have a few grids, I also have CollectionViewSource objects associated with those grids.
Now, I'm trying to apply CollectionViewSource.SortDescriptions in ColumnHeaderClick method, and now I have to define almost the same method for each grid.
But the only thing I really need is to obtain in which Grid is happenning.
How to get that, I have no idea. Help me please.
VisualTreeHelper.GetParent didn't work.
Hi Guys,
In IE7 and in IE6, I have an anchor inside of an li which has a background image in it. When you mouse over these links, the backagound images go missing in these browsers. Any ideas as to why this would happen?
Here's an example (IE7 and IE6):
http://bit.ly/dekwva
Many thanks,
James
Hi guys
I'm looking for an equivalent in python of dictionary.get(key, default) for lists. Is there any one liner idiom to get the nth element of a list or a default value if not available?
Thanks!
Hi guys,
I guess no one will have a definative answer to this but considered predictions would be appriciated.
I am in the process of developing a mySQL database for a web application and my question is:
Is it more efficient to make a single query that returns a single row using AJAX
or
To request 100 - 700 rows when the user will likely only ever use the results of two or three?
Really I am asking what is heavier for the server 2-3 requests with one result or 1 request with 100 - 700 results?
Thanks,
Mark
hi guys, i've been searched around for couple days about installingpassenger in a lampp (xampp linux) server ...
no luck, i couldn't find any reading to achieve what i want to do
could you gimme a solution to accomplish this?
many thanks
Hello guys, I'm working with protobuf and Linux. Where is it's compiler protoc. I've downloaded package from main site, compiled and installed it successfully but I can't find protoc to build my own format file. Where is it?
ok guys so i'm new in iphone dev you know it !
I want to add badge from my app : i know how to in the application did finish launching.
But i want to it depending on an int value i have stored in a plist (just one string an int value) i have placed on my server htt://anadress/myplist.plist
How can i read the content of this value in the plist from my server thanks to all it'll help so much
Hi guys, i have this code:
[Flags]
public enum MyUriType {
ForParse,
ForDownload,
Unknown
}
and then:
MyUriType uriType = MyUriType.ForDownload;
but, I was wondering why this returns true:
if ((uriType & MyUriType.ForParse) == MyUriType.ForParse)
When it is not set in the second code group. Please advise.
Guys I know this question is silly but just to make sure:
Having in my class method:
boolean equal(Document d)
{
//do something
}
I'm overloading this method nor overriding right? I know that this or similiar question will be on upcoming egzam and would be stupid to not get points for such a simple mistake;
Ok guys,
I know others have asked this question in a similar manner in the past, but I want to go beyond the theoretical and find out answers from people who have worked in an environment that relied heavily upon open source technology and never contributed anything back to the open source community, and was able to convince the boss / owner to contribute back to the open source community.
I know alot of the standard answers, but I'm looking for some more practical information? What was the key argument, that changed the culture in your company, and how has it changed?
Hai
I have the system with employees having different timezones in their profile. I would like to show the date according to their timezones specified. The GMT time zone values are placed in the database.
could youguys help me
Hi guys:
I am a noivce at JQuery.
I'm curious about if there is any plug-in or libraries to help developers validate whether any input value over a set of form elements is not entered (empty string).
I can just think of using a function to achieve this feature. Any better idea?
Thanks.
hi guys,
I am getting result as decimal in storeprocedure.for eg:If iam getting result as 123.45
I want to split 123.45 to 123 and 45.Can any body help?
hey guys.. i installed drupal views module and am getting this error
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/views/includes/admin.inc' (include_path='.:/usr/lib64/php:/usr/lib/php')
how can i solve this problem?
thanks
I want to develop my project on Google App Engine with Struts2. For the database I have two options JPA and JDO. Will youguys please suggest me on it? Both are new for me and I need to learn them. So I will be focused on one after your replies.
Thanks.
Hi guys,
In my app I save an XML file to the users SD-card by doing File newxmlfile = new File(Environment.getExternalStorageDirectory() + "/Message.xml");
But not all users have SD-cards in their phone and therefore my app is likely to crash.
How must I change my File creating method in order to save the file to the phone's memory instead of the SD-card?
Also, how must I change the loading of the file? (currently: new InputSource(new FileInputStream(Environment.getExternalStorageDirectory() + "/Message.xml")))
Hi, I'm new at ruby and I would like to ask youguys if there's something that could improve my Ruby code. Here's my script:
#!/usr/bin/ruby -w
require 'mysql'
dbh = Mysql.real_connect('localhost', 'db_user', 'password', 'db_table')
tables = dbh.query('show tables')
tables.each do |table|
puts "#{table}" + " (" + "#{table}".length.to_s + ")"
end
I'd love to hear your comments. Thanks in advance