Comment by Fiarr on Loop timer with PHP
If you are intending to update a tooltip via PHP, you may be approaching this from the wrong perspective. PHP is server-side, and you would need something like Javascript to update a tooltip.
View ArticleComment by Fiarr on Check for banned/inactive
His problem is that he is appearing as active when he shouldn't. The 'unactive' state will never occur, because he first tests for user/pass and then sets the 'unactive' flag to 1. The next test (which...
View ArticleComment by Fiarr on Big Oh in n^2 and n lg n
True, your constant could be 1. If you assume the constant is 0, you will lose points on your exam. Similarly, O(infinity) is considered poor form.
View ArticleComment by Fiarr on Deterministic Finite Automata pattern
Start by drawing out the states that the automata may be in. Ex: If your machine finds a single 'a', what valid transitions may it make from that state? Then from each of those, keep following...
View ArticleComment by Fiarr on Safety of PDO param bindings
The tricky part of the question is that your replacement param would become: ":id_ OR 1=1", which (I think) should be replaced in the final text with a sanitized version of " OR 1=1", which would not...
View ArticleComment by Fiarr on Safety of PDO param bindings
Having the $id replaced in the query string is intentional, and exactly what I am asking about.
View ArticleComment by Fiarr on Safety of PDO param bindings
Can you prove that it is vulnerable? I will update my question with a more concrete example as to why I believe it -could- be safe. I found a definitely-safe way to solve my problem, but I would still...
View ArticleComment by Fiarr on Safety of PDO param bindings
While your example isn't quite what I was trying to accomplish, it is somewhat similar to my actual implementation. Instead of using user-sourced-values for my $id in :id_$id, I used a parallel mapping...
View ArticleComment by Fiarr on How to measure signifiance of a data point (X,Y) in...
Cool question, but you might have more luck over here: math.stackexchange.com
View ArticleComment by Fiarr on Quickly exchanging data between two computers
What is your communication mechanism that you are currently using with PHP? As in, Sockets, HTTP requests... ?
View ArticleComment by Fiarr on Quickly exchanging data between two computers
Happy to help - networking is the fun that keeps on giving, and giving...
View ArticleComment by Fiarr on How to check whether a string is a valid HTTP URL?
You may want to add more conditions to the uriResult.Scheme == ... Specifically https. It depends on what you need this for, but this small change was all I needed for it to work perfectly for me.
View ArticleAnswer by Fiarr for How to deal with special characters in a string
Try base64encode and base64decode. That may be all that you need!
View ArticleAnswer by Fiarr for Gmail/Hotmail Flag email as spam
Try sending a header with the PHP mail() function that specifies the 'from' address as being a valid email address on your server. That is to say: create an email account on your webserver for...
View ArticleAnswer by Fiarr for Where can I find beta users?
I'd suggest just submitting the site to places like Digg and Stumbleupon. You'll get a more people viewing your site, where you can offer beta testing as an option.
View ArticleAnswer by Fiarr for php mail headers for outlook - the email arrives empty to...
Try adding to the end of 'From: ...'. This email should be an actual email address on the server. Try checking your spam folder with what you have.
View ArticleAnswer by Fiarr for Autoscroll Datagrid in Flex
Try looking up Timer. You can set both the vertical and horizontal scroll positions of a Datagrid with the .verticalScrollBarPosition method.
View ArticleAnswer by Fiarr for PHP Web-App Design
Honestly, what's worked the best for me has been a simple 'write it down before you do it' approach. If you just take the time to plan out how your service will function, you can save a lot of time...
View ArticleAnswer by Fiarr for Bugs versus enhancement versus new feature
I like to think that bug fixes should always come before enhancements and new features, in all cases. Even if the particular bug isn't bothering you too much as the developer, someone somewhere is...
View ArticleAnswer by Fiarr for Why would my site change sizes from testing offline to...
The web version could be cached. Try deleting it!
View ArticleAnswer by Fiarr for Flex layout 2 objects with first one centered
Add B to the container after A. The whole point of a VBox is to stack things vertically, so it will do what you want fairly easily.If what you're wanting it to position things differently horizontally,...
View ArticleAnswer by Fiarr for What precautions should I take when using '0' in PHP as a...
If you want PHP to evaluate a statement with 'false' being the only 'false', use === instead of the usual ==
View ArticleHow can I find the intersecting point of three planes?
I'm trying to build render the raw data from a Quake 3 .map file with Java. The .map format stores brush (shape) information as a series of planes, but I'd like to convert them to points of the form...
View ArticleAnswer by Fiarr for Advice for adding basic dynamic behavior to an otherwise...
For all points PHP would work beautifully. For your header and footer inclusions, you can have a single page that accepts a GET variable of the target page (ex: 'home', 'calendar', 'news'...)....
View ArticleAnswer by Fiarr for SMS/Text message sending via PHP
I've done this with PHP, and it works very well. Text messages are nothing more than an email, usually with the receiver's 10 digit number @address.com. If you want to send text messages to someone...
View ArticleAnswer by Fiarr for Grails FindWhere and BetweenDate
I am not at my workstation, (and cannot verify that this is correct) but from the docs it looks like you should be able to accomplish this by using the boolean 'And' as a part of your dynamic...
View ArticleDisable vs2010 XNA Content Pipeline warning
I am building a game with XNA, and I have a custom file format for my game's levels. I want to load them and parse them myself, without using XNA's content pipeline. I have this much working, and by...
View ArticleAnswer by Fiarr for security of sending passwords through Ajax
All HTTP requests are sent as text, so the particulars of whether it's a GET or POST or PUT... don't really matter. What matters for security in transmission is that you send it via SSL (and handle it...
View ArticleAnswer by Fiarr for weight-unbalanced AVL tree
You are correct in your understanding that an AVL tree is defined by the nearly-uniform height of its edge nodes, but your confusion appears to be about the difference between node position and edge...
View ArticleAnswer by Fiarr for How to send a result to a form with php?
In your opening form tag, the 'action' attribute specifies what file should receive the HTTP request created when you submit the form. As it is now the value is an empty string, and the script is...
View ArticleAnswer by Fiarr for what's the meaning of "|=" in PHP
| is a bitwise operator. It takes two numbers and conducts a bitwise OR operation. http://en.wikipedia.org/wiki/Bitwise_OR#OREx:A = 4B = 3In binary:A = 100B = 011A | B == 111 (in binary) == 7 (in...
View ArticleAnswer by Fiarr for Why can't nvcc find my Visual C++ installation?
With CUDA v6.0, having an older version of Visual Studio (I'm using 2010) is still required, but the other solutions did not work for me.To make this work, add the following to your nvcc.profile...
View ArticleAnswer by Fiarr for How to make PHP Java Bridge works
You have to have the jvm running at some point if you want to execute your java function - you are correct that running the jvm many times is not ideal.PHP's exec call simply runs an external program...
View Article
More Pages to Explore .....