Jump to content

yoursurrogategod

Members
  • Posts

    178
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

yoursurrogategod's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. This is my code: http://bin.cakephp.org/view/2118176254 When I first start it up, I enter a username and then proceed to click on the Exit above. I was expecting some sort of a pop-up asking me if I _really_ want to exit. But, nothing happens. I'm running Firefox and I checked in my about:config, Javascript is enabled. jQuery is located one directory above. I got this idea from this tutorial: http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-a-simple-web-based-chat-application/
  2. Ok, my friend bounced this idea off of me at a bar, it's his problem and he's getting paid to solve it, but I'm still curious on how to best do this. Basically, he works for a company that makes baseball pitching machines. Recently, the company decided to make "smart" baseball pitching machines. These machines would need to track each ball that gets pitched (I guess each ball has slightly different physical properties and that impacts how the ball flies). Basically, a ball is thrown and the machine needs to know that ball serial number 2398402 has been pitched. He's thinking of two possible solutions and their pros and cons: 1 - Have a number printed (or a bar code) on the ball and have this scanned. This is a well-established and cheap solution. The downside is that it would have to have human involvement or have the ball somehow get scanned by the machine by being bathed in scanning laser lights (the likes of which you see in supermarkets) and then find out which ball this is. 2 - Have an RFID in the ball itself. In this case, identifying the ball is very easy. However, how would this work if a signal is sent out and then multiple RFID chips respond at the same time? Or is my understanding of RFID incorrect? 3 - Have an operator enter manually the number printed on the ball. This is very easy to implement, but error prone (fat-fingering), time consuming and just seems like a needlessly manual operation that a machine can do. I'd be curious how you can do this automatically (maybe RFID?): Machine: "Hey ball, what's your number?" Ball 293929: "Why I'm ball 293929." Machine: "Noted."
  3. I'm _guessing_ that they mean something like this: header("Location: " . $_SERVER['SERVER_NAME'] . "/user_financial_info.php"); die();
  4. Hi. I have this bit of code: elseif(!preg_match("^[A-Z]'?[- a-zA-Z]( [a-zA-Z])*$", $_POST['lastNameForm'])) Now, when I run it, I get this error: Warning: preg_match(): No ending delimiter '^' found in C:\xampp\htdocs\user_personal_info.php on line 21 Warning: preg_match(): No ending delimiter '^' found in C:\xampp\htdocs\user_personal_info.php on line 30 Why am I getting this error? I want to check whether the user correctly entered only letters (an apostrophe is permissible as well) for first/lastname.
  5. I was told to implement the site with this requirement. What does this mean? And how would you do it? Never heard of something like this.
  6. I'm not sure I follow. Yes, this is forwarding the e-mails, but, what if I wanted to export all of them as just TXT files?
  7. What if I wanted to get a dump of all of my e-mails in my Inbox (I don't care if it's large and takes time). What would be the best approach? Basically, what would be the best way to draw information from my inbox and into something else?
  8. Doesn't have to be a desktop app, that's just the first thing that I came up with . Thanks for your help.
  9. Like, this is how I view this universe based on reading that paragraph. +--------+ +----------------+ +-----------------+ | Client | --- > | Resource Owner | --- > | Resource Server | +--------+ +----------------+ +-----------------+ So, lets say that the "Resource Server" is facebook and the "Resource Owner" is Bob (he posts pictures and greets his friends on there), but he would like to give access to a Desktop app -- the "Client" -- to collect some metrics on his media (the scope of this access can be defined). So, "Resource Owner" Bob would log into "Resource Server" facebook, generate a token and paste it into the "Client" Desktop app and have that little puppy go on its merry way. Is my explanation sensible? Am I missing something?
  10. Hey, quick question. I'm reading this RFC on Oauth: http://tools.ietf.org/html/rfc6749 I get to this point: Who would be the resource owner in this case? The client? I see primarily 3 parties involved: the host, the client and the 3rd party that wants what the client has access to.
  11. I'll look into OAuth. Thanks for the moment. I'll post again if there are questions that I have no idea about.
  12. Ok, I don't really understand what you wrote for #1 . Is it possible to spoof a domain like yahoo.com or microsoft.com? What I was envisioning is something that permits access based on those domains and then when you're established there, you can grant access to other users outside that domain. Feel free to correct me if what I'm saying doesn't sound like a good idea.
  13. This is more of a software design concept, so I wasn't really sure where to post it. Say I have a customer portal. But, I'd like to limit who has access to it. It should block out those who try to access it based on domain. Say, the company has a service and they would like to provide it only to specific (read: paying) entities. What I was thinking about was having a white-list setup, where you have two tiers of permissions: 1 - You let people in based on domain, so if they're coming from www.yahoo.com, then they're all good, but if the request is coming from 129.34.92.32 and we have no idea what this is, the request is simply ignored. 2 - Now, you might want to let others in later on. Say you have employees that work from home. Then, from the permitted domain, you can enter specific domain access based on IP-address or other domain and assign some expiration parameters (how long this person will have access to this site, does the access expire after a set amount of time, etc.) Does this sound reasonable? Logical? Does it seem that I'm missing something?
  14. I have a good background in C/C++ and was would like to put it to good use. What extensions do you guys think are a good idea? Stuff that you'd like to have in the PHP language itself?
  15. I noticed on in your post that you had a file-ending as asmx. This is ASP .NET related: http://pcsupport.about.com/od/fileextensions/f/asmxfile.htm From that, you can narrow down your options to VB .NET and C#. Hope that helps.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.