MikeTheCoder

1

votes
1

answer
76

views

How can I prevent my algorithm from iterating and echoing values that already exist?

I'm trying to dynamically create 5 divs that represent 5 days of the week. In each div, I'm trying to loop through data fetched from my code igniter model and echo a series of un-ordered list based upon a project, a date, and tasks that are related to that project. I'm fetching the data from both my...
MikeTheCoder
1

votes
1

answer
308

views

Is there any kind of iOS API that exists for detecting shapes through the camera?

I've been working with augmented reality API's lately but haven't been able to achieve irregular shape detection, namely the hand. I want to be able to detect hand shapes through the video/camera and execute code based on hand signs. Does anything like this already exist?
MikeTheCoder
1

votes
1

answer
2.2k

views

A more simple approach to role-based access control (RBAC)?

I'm having a difficult time grasping the code behind role-based access control (RBAC). I'm trying to use a 'bundle' with the Laravel framework but it only seems to be complicating things more. What I need for my specific application is three roles. The first and most basic role is just to allow user...
MikeTheCoder
1

votes
2

answer
149

views

How to add a location filter to a php/mysql web application

I'm building a web application where businesses can log onto and post information about there business. When a 'user' visits the web application, I want to able to get the user's address and store it in a mysql database. When that user visits the web application home page, I want to be able to retri...
MikeTheCoder
1

votes
2

answer
1.5k

views

What's a good design strategy to make an existing website responsive without risking losing good search engine ranking

I've been working on re-designing a website for a client and I'm trying to figure out the best approach for making my clients new website as responsive as possible, without jepordizing his good search engine rankings. The client wants to add a bunch of new content to the website as well as a few new...
MikeTheCoder
4

votes
0

answer
37

views

Why Stream.Copy is faster than Stream.Write to FileStream?

I have a question and I can't find a reason for it. I'm creating a custom archive file , I'm using Memory Streams to storing data and finally I use a file stream to write the data to disk. My Hard Disk is SSD , But the speed was too slow when I tried to write only 95MB to a file , It takes 12 second...
MikeTheCoder
6

votes
5

answer
25.4k

views

How can I fix too many redirects caused by .htaccess?

I recently added a Wordpress blog to a client's website. I create a subdirectory and installed Wordpress there. Everything worked fine until I added a .htaccess file to the root directory. RewriteEngine on rewritecond %{http_host} ^websitename.com [nc] rewriterule ^(.*)$ http://www.websitename.com/$...
MikeTheCoder
2

votes
3

answer
8k

views

Trying to create a new application in Yii: env: php: No such file or directory

I'm trying to create a new yii app from the terminal. My YiiRoot folder is in my htdoc folder. I'm first going into my webroot: $ cd /Applications/MAMP/htdocs I'm then going into yiic and trying to create a new application: /Applications/MAMP/htdocs/YiiRoot/framework/yiic webapp demo I'm then gettin...
MikeTheCoder
2

votes
1

answer
333

views

How can I save an object that's related to another object in core data?

I'm having difficulty with a one to one relationship. At the highest level, I have a one to many relationship. I'll use the typical manager, employee, example to explain what I'm trying to do. And to take it a step further, I'm trying to add a one to one House relationship to the employe. I have th...
MikeTheCoder
14

votes
4

answer
71.4k

views

How can I get PHP working again in the command line?

I'm completely at loss here and am about to wipe my hard drive clean and start from a fresh OS install. I've been trying for two days to create a new yii app in the terminal and have finally figured out that the terminal or command line can not even execute PHP all of a sudden. I had no problem in p...
MikeTheCoder
2

votes
3

answer
7.2k

views

How do I add a small number into my html?

I'm having a difficult time doing this probably because I'm not sure what to even call it. But a client wants me to put a small number one in some text at the end of a sentence - wich indicates that they should find the small 1 at the bottom of the page to read more details about that particular sen...
MikeTheCoder