Community Member
Member Avatar
Topic by webguru_1 in Digital Media
seo
The irony is palpable. Reply by pty
Member Avatar
Topic by webguru_1 in Digital Media
seo
HTML, as stated in the standard, is case-insensitive. XHTML, like all XML, is case sensitive. Reply by pty
Member Avatar
Featured pty 497 Replied To a Post in Why can't I find good front end developers ?
Topic by jkon in Community Center
Maybe, if all developers are struggling to write for your platform, they are not the issue?

As a contractor I've seen companies at all levels of NIH syndrome fail to keep their in-house frameworks (and associated projects like documentation, examples, plugins) on par with the tools that the rest of … Reply by pty
Member Avatar
Featured pty 497 Replied To a Post in accessing data on MultiLevel Json Array
Topic by patk570 in Web Development
You probably want to be using a `for...of` loop here instead of a `for...in`, which means you don't need to set the variable using the index every time.

const drivers = [
{
dateTime: "2018-12-04T10:30:45:222z",
comments: "",
drivers: [
{
fname: "John",
lname: "Doe",
driverCode: "DOEJ"
},
{
fname: "Mary", … Reply by pty
Member Avatar
pty 497 Replied To a Post in compare two files using perl script
Topic by Dev_9 in Software Development
Looks like you're actually going to have to write some code then! Reply by pty
Member Avatar
pty 497 Replied To a Post in compare two files using perl script
Topic by Dev_9 in Software Development
Working out the difference between two files is trivial using (like I said earlier) `diff` and `comm`, both of which have existed since at least the 1970s.

The two provided files, diffed by word. Red bits have been removed, green added.

![Screen_Shot_2018-02-15_at_16_18_03.png](/attachments/large/0/b81122366e500b308ad9332d4d2eb141.png)


Now, `comm` outputs three columns

1. lines only … Reply by pty
Member Avatar
Featured pty 497 Replied To a Post in How can I run multiple dedicated servers for one domain?
Topic by FarrisFahad in Web Development
I'd pay more attention to the [slow query log](https://dev.mysql.com/doc/refman/5.7/en/slow-query-log.html) and simple page stats from your logs than hunting down `select *` queries.

The slow query log will highlight all queries that take more than `x` time (configurable by you). Your logging system or analytics should tell you which pages take … Reply by pty
Member Avatar
pty 497 Replied To a Post in Singing Auditions
Topic by Auditions in Digital Marketing
seo
I'd create a profile on a low-traffic niche tech forum, add a few links in my signature and then start asking stupid questions. This method is used by all the biggest, most successful marketing companies and soon you will have to upgrade your web hosting because of the influx of … Reply by pty
Member Avatar
pty 497 Replied To a Post in NodeJs
Topic by davy_yg in Web Development
Do you want to *actually learn* how to use NodeJS or are you looking for code you can copy and paste from the internet then ask on here why it's not working?

If it's the former, you can make a good start by checking out the free content on [Code … Reply by pty
Member Avatar
pty 497 Replied To a Post in Laravel CRUD Booster
Topic by davy_yg in Web Development
The clue is `Access denied for user 'homestead'@'localhost'`

Do you have a user called `homestead`? Have you attempted to grant them access to the database?

If you're unsure of the answers to either of those questions, I think you should re-read the documentation. Reply by pty
Member Avatar
pty 497 Gave Reputation to gentlemedia in cell phone navigation
Topic by davy_yg in Web Development
You **DON'T** create two versions of your navigation! I told you (in one of your other four threads regarding this same issue) that you have to **REPLACE** the markup (HTML) from your current navigation with the navbar markup that comes with Bootstrap out of the box. The classes on that … Reply by gentlemedia
Member Avatar
pty 497 Replied To a Post in compare two files using perl script
Topic by Dev_9 in Software Development
Use [`comm`](https://linux.die.net/man/1/comm) or [`diff`](https://linux.die.net/man/1/diff). Reply by pty
Member Avatar
pty 497 Replied To a Post in Mobile Navigation
Topic by davy_yg in Web Development
So you're trying to use [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries) in HTML?

Perhaps you should try to read the documentation and gain [a basic understanding of things](https://www.youtube.com/watch?v=XWZ-iA3HMOU) before wasting time by asking inane questions. Reply by pty
Member Avatar
Featured pty 497 Replied To a Post in Get textbox data without POST or GET calls
Topic by Mr.M in Web Development
This is a shady tactic at best. If someone doesn't submit the form, calling them to offer your services is likely to make them run a mile and choose a less-scummy competitor. I certainly would.

If you're selling on their data it's even worse. But, you know, it's your call. Reply by pty
Member Avatar
Featured pty 497 Replied To a Post in Get textbox data without POST or GET calls
Topic by Mr.M in Web Development
No, that's *how* you're currently trying to do it. *It* being something confusing.

What is the outcome? Simple, a couple of sentences max. For example:

> I'm trying to implement some kind of custom phone number validation where numbers follow [this pattern]

or

> I'm trying to record someone's phone … Reply by pty
Member Avatar
Featured pty 497 Replied To a Post in Get textbox data without POST or GET calls
Topic by Mr.M in Web Development
> This is an integration with payment gateway so this data should be passed to them via this way so that why I don't post or get this to another php file.

Really? Which gateway requires this kind of ridiculous gymnastics?

I think that your problem is self-inflicted.

In one … Reply by pty
Member Avatar
pty 497 Replied To a Post in Subscript out of range
Topic by Gokul_4 in Software Development
Check line 34!

Seriously, how do you expect anyone to point you in the right direction without having a ####ing clue about what you're doing? Post the problematic piece of code. Reply by pty
Member Avatar
Topic by Sagnik_1 in Databases
sql
If I can find it with one search you're not trying very hard.

Clue, add CSV to your query. Reply by pty
Member Avatar
Topic by vedwebservices in Digital Marketing
That kind of ban is called a shadowban. Regular Reddit moderators cannot perform site-wide shadowbans, only administrators can. Usually it happens to spammers. Reply by pty
Member Avatar
pty 497 Replied To a Post in Navigation Bootstrap
Topic by davy_yg in UI / UX Design
css
Yes, it's possible. Reply by pty
Member Avatar
pty 497 Replied To a Post in profile_info value remains the same
Topic by davy_yg in Web Development
Just an idea. Rather than trying to do two things at once, first make one work then (when you're sure the first bit is correct) concentrate on the second.

If you can't answer the question of "which part is broken?" you're going to struggle.

Install [httpie](https://httpie.org/) and then you can … Reply by pty
Member Avatar
Topic by Terry_8 in Software Development
An example output with a diff tool.

![Screen_Shot_2018-01-11_at_13_08_21.png](/attachments/large/0/5e45840806221fac94ec0c16a51d277f.png)

If you use a merging tool like [Meld](http://meldmerge.org/) you can interactively (and graphically) merge the two files together, combining rows that are only differ by whitespace and copying rows that exist on one side but not the other. Reply by pty
Member Avatar
Topic by Terry_8 in Software Development
I use [`diff`](https://en.m.wikipedia.org/wiki/Diff_utility) for this kind of thing. Reply by pty
Member Avatar
Topic by Liam_8 in UI / UX Design
css
It will be much easier for people to test and contribute if you create a JS fiddle demonstrating exactly what the problem is. Reply by pty
Member Avatar
Topic by James_90 in Web Development
[`MM-DD-YYYY`](https://i.imgflip.com/1lss3k.jpg). Reply by pty
Member Avatar
Topic by James_90 in Web Development
You need to convert the dates users enter to Unix timestamps. You can do that either in PHP or [MySQL](https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html) (see `UNIX_TIMESTAMP()`). Reply by pty
Member Avatar
Featured pty 497 Replied To a Post in Do i need $each() if i have for loop in JS?
Topic by patk570 in Web Development
A few points.

You are looping through `dutyStatusLogs` multiple times in different ways. You're calling `dutyStatusLogs.forEach` twice and `$.each(dutyStatusLogs, function(i,v){...})` once. These should probably be combined into one loop.

Now, what your original question was about, the nested loop

$.each(dutyStatusLogs, function(index, value) {

var json = dutyStatusLogs;

var tr;
for … Reply by pty
Member Avatar
Featured pty 497 Replied To a Post in Do i need $each() if i have for loop in JS?
Topic by patk570 in Web Development
Your `for` loop will be executed once per iteration of your `$.each` loop.

If that's what you *intend* to do, then it's not dangerous. Perhaps posting an example of your code (use [jsfiddle](https://jsfiddle.net/) or similar) would help you explain exacctly what your concerns are.

Additionally, the two types of loop … Reply by pty
Member Avatar
pty 497 Replied To a Post in Jquery
Topic by davy_yg in Web Development
So what's the question?

Have you ever thought about learning web development rather than just copy/pasting random stuff you find on the internet until it looks like it's working? Reply by pty
Member Avatar
pty 497 Replied To a Post in Understanding codes
Topic by davy_yg in Web Development
`href="#"` makes an anchor tag appear like a link without actually redirecting you. It's *intended* to take you to anchors on the same page (`<a href="#section-1">Section One</a>`) but with no following text does nothing.

The intention is that a JavaScript handler takes over the `click` event. Reply by pty