Jump to content

yoursurrogategod

Members
  • Posts

    178
  • Joined

  • Last visited

Everything posted by yoursurrogategod

  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.
  16. Hi, I think I'm slightly confused about how all of these pieces fit together. These are my files and I've included the output. application/controllers/ReportsController.php: http://bin.cakephp.org/view/1278364199 application/views/scripts/reports/date-custom-report.html: http://bin.cakephp.org/view/821235364 And this is the output that I get when I run it from this URL [ http://host.com/project/reports/date-custom-report ]: http://bin.cakephp.org/view/2092353700 I've shortened the Zend_Debug::dump($this->view) output in the controller. But basically, why is none of the stuff (like "Hello world!") in my view not being displayed? Am I doing something very silly/stupid? Thanks in advance for all help that you guys give, I'd really appreciate it.
  17. When would you use one as opposed to the other? Aren't they the same?
  18. Hello, this is the HTML that's generated by my ZF 1.12 view: http://bin.cakephp.org/view/1509700953 This is my CSS page: http://bin.cakephp.org/view/894562095 The issue that I'm struggling is with the recentUpdates div showing up on the same space as my form. What I'd like to do is have it show up on a new line, below the form. Any thoughts on how to do this?
  19. I don't get it, how would that help me? The datetime is stored in the database and I have to convert it to 5 hours earlier, that would just get the current time.
  20. That was the first thing that I wanted to do, but I can't. Thanks, I'll have a look.
  21. Hi, I have a small problem. We get output from a database where the time-stamp is in Greenwich time while we're in New England USA. There's a time discrepancy of about 5 hours. What I'd like to do in PHP is subtract 5 hours (no, it can't be done in the DB, I've asked). My current approach is to take the timestamp (which is consistent) and split that up into smaller pieces and turn that into a unix timestamp, then subtract the 5 hours equivalent and turn that into a timestamp. But, is there a better way?
  22. I should have mentioned that I'm working in Zend Framework 1.12. But basically, what I described is what happens. This is a problem if you're using arrays and you're in a different section. The original array gets over-written and you lose the previous information. Gotta watch out for that.
  23. I googled this, but couldn't find anything specific. Basically, if I have this file: [production] val1 = 'hello' [staging : production] val2 = 'world' [development : staging] val1 = 'g day' When the file is read, when the parser gets to staging, it inherits val1 as 'hello' from production, but in development, it's set to 'g day', yes? And val2 remains as 'world' throughout, right? You can do such nested inheritance.
  24. Thanks guys. I realize that one would need to be vigilant. I'd probably setup an app that checks the ranking of pages that I'm supposed to be keeping track of and notify me if it falls appreciably in ranking. But another question that I don't know how to answer is this: How to practice? The algorithms that drive search engines change from time to time, that's a given. My question is this. How to best get a feel for how this beast works? I obviously don't have the source code for this thing, I can setup a site and play with its ranking. Is it possible to muck with the meta tags in a wordpress blog?
  25. Honestly, a lot of things at first are awkward to use, but unless the user interface is totally broken and it offers some value (such as making some aspects of reading easier), then it will catch on. My $0.02
×
×
  • 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.