Misunderstood
  • Member for 6 years, 10 months
  • Last seen more than 5 years ago
Nav slider needs to be smoothed out
2 votes

I think the transition is smooth enough. Where I have a problem with this design is when the window width is 501-767px. This covers the common qHD, WVGA, FWVGA resolutions. The problem being when ...

View answer
Merging website info into an array
2 votes

The "i" is not necessary when you already have the array key. The key applies to both link and title. PHP $linkQuery = array("link1", "link2", "link3", "link4", "link5"); $titleQuery = array("...

View answer
Toggle code using jQuery
1 votes

The way I see it there are two accordion styles. Expand and Contract (ec) the one Section where multiple Sections can be Expanded or Contracted. Only one Section is Expanded at any given time. (ecp ...

View answer
Create a 2D array from SQL table
Accepted answer
2 votes

added $colCount = count($colNames); removed unset() added grave accents to $table replaced for with foreach replaced MYSQLI_ASSOC with MYSQLI_NUM removed $iii in DESCRIBE Loop renamed $tableHead to $...

View answer
HTML & CSS accordion
1 votes

The way I see it there are two accordion styles. Expand and Contract (ec) the one Section where multiple Sections can be Expanded or Contracted. Only one Section is Expanded at any given time. (ecp ...

View answer
Fourteen buttons with hover effects
3 votes

This is just an additional comment as the two previous have done well. Encoding small images with base64 There is a misconception that using base 64 encoded images in HTML and CSS is inefficient. ...

View answer
Getting CSS files based on production or development
1 votes

One quick one. if(!defined("ENVIRONMENT") or ENVIRONMENT == 'development') If ENVIRONMENT has only two defined values e.g. 'development' and 'production' then use: if(ENVIRONMENT != 'production') ...

View answer
Validate input of month/year, otherwise set it to current month/year
1 votes

You may be over thinking it. It's actually very simple. The only ambiguous thing is if the year is two digits. In most cases a two digit year can be fixed like this. I believe in your use the ...

View answer
REST API using PHP
Accepted answer
5 votes

Instead of: $_SERVER['REQUEST_URI'] REQUEST_URI: index.php/products/xxx/yyy Use: $_SERVER['PATH_INFO'] PATH_INFO: /products/xxx/yyy PATH_INFO is relative to the root URL. REQUEST_URI is not. ...

View answer
Open a comm port and send an ASCII string
0 votes

UPDATE After further review of your code, delay is likely in the getPortIdentifiers(). That is where I'd look first. For purposes of locating the delay, bypass getPortIdentifiers(). You could hard ...

View answer
Driver license program which grades an individual's responses
-6 votes

The first thing I would do is convert A,B,C, and D to 1,2,3, and 4. Maybe 0-3, not sure yet. yeah 0,1,2,3. 0,1,2,3 just makes so much more sense than A,B,C,D. Very likely down the road it will prove ...

View answer
Extracting keywords from 3 billion CSV records
-1 votes

Motherboards with multiple processors, processors with multiple cores, and the processor's microarchitecture will greatly affect the benefits of parallel processing, and multithreading. Without ...

View answer
Equalizing heights
2 votes

There are a few issues with the original approach. It is far better to use the id rather than class to find the div pairs. jQuery has a fair amount of unnecessary work to do to find the classes for ...

View answer
Simple technology quiz
0 votes

I do not know python well enough to show examples. Fill in the blank questions will always require a human to check those marked wrong. As you find incorrectly answers marked wrong, you can tweak the ...

View answer
Normalizing strings using PHP preg_replace and regex expressions
1 votes

At first glance I would first trim without a mask and then stringtolower inside before the preg_replace. $modded = preg_replace(array( '/[^a-z0-9 ]/','<\W+>'),array( ' ', '_' ), strtolower(trim(...

View answer
Responsive web design using HTML5/PHP/Bootstrap3.3.4
Accepted answer
6 votes

I think a good responsive design does not start with downloading 247,387 Bytes of jQuery and 67,546 Bytes of Bootstrap JS. It only requires some simple CSS. Instead of trying to decipher what ...

View answer
Piccoche - a coordination game
4 votes

This is cleaner. added <title> for no HTML Errors W3C Markup Validator. changed CSS units px to em, for 100% W3C Mobile OK changed width to 20em (320px) for Mobile Viewport added mobile ...

View answer
"P1 attacks P2" and "P2 attacks P1"
0 votes

From: Intel 64 and IA-32 Architectures Optimization Reference Manual Intel 64 and IA-32 Architectures Optimization Reference Manual Chapter 3 GENERAL OPTIMIZATION GUIDELINES 3.4.1 Branch ...

View answer
A Simple, One-Page PHP Admin Login (with prepared SQL statements)
0 votes

A few things to consider: Not validating user input Content Security Policy input-protection report-uri SecurityPolicyViolationEvent See W3C User Interface Security Directives for Content Security ...

View answer
Minimalist accordion implementation using vanilla JavaScript
1 votes

The way I see it there are two accordion styles. Expand and Contract (ec) the one Section where multiple Sections can be Expanded or Contracted. Only one Section is Expanded at any given time. (ecp ...

View answer