Quantcast
Channel: User Fiarr - Stack Overflow
Browsing all 33 articles
Browse latest View live

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 Article


Comment 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 Article


Comment 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 Article

Comment 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 Article

Comment 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 Article


Comment 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 Article

Comment 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 Article

Comment 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 Article


Comment 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 Article


Comment 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 Article

Comment by Fiarr on Quickly exchanging data between two computers

Happy to help - networking is the fun that keeps on giving, and giving...

View Article

Comment 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 Article

Answer by Fiarr for How to deal with special characters in a string

Try base64encode and base64decode. That may be all that you need!

View Article


Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer by Fiarr for Why would my site change sizes from testing offline to...

The web version could be cached. Try deleting it!

View Article
Browsing all 33 articles
Browse latest View live


Latest Images