Community Member
Member Avatar
pty 588 Replied To a Post in border-collapse
Topic by davy_yg in UI / UX Design
css
Ah, one of my posts is editable and one isn't.

![Screen_Shot_2018-04-26_at_09_43_11.png](/attachments/large/0/70fd9d93ca03eba2a2a620f374255d8e.png)


The difference is that the first was made on my phone and the second on a computer.

If there was a bug tracker I'd raise one. Reply by pty
Member Avatar
pty 588 Replied To a Post in border-collapse
Topic by davy_yg in UI / UX Design
css
Has the edit button disappeared? My last post doesn't make sense, it should say 'your failing css'. Reply by pty
Member Avatar
pty 588 Replied To a Post in border-collapse
Topic by davy_yg in UI / UX Design
css
Learn how to combine CSS selectors. Clue, your failing for is looking for a `table` within `#profitlosstbl`.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors Reply by pty
Member Avatar
pty 588 Replied To a Post in table css
Topic by davy_yg in Web Development
css
The `cellpadding` attribute has been dropped, the suggested method these days is to use `padding: val` in css. Reply by pty
Member Avatar
pty 588 Replied To a Post in Select from multiple tables
Topic by k_7 in Databases
He's clearly not tried anything Shark_1, it's just a homework question he's pasted.

Giving him the answer will encourage this kind of behaviour in the future and further pollute our industry with *qualified* idiots. Not giving him the answer pollutes the forum with shitposts.

The only sensible thing to do … Reply by pty
Member Avatar
pty 588 Replied To a Post in table css
Topic by davy_yg in Web Development
css
You want your table and every cell within it to be `5px` wide and have `5px` padding?

I think you should start by learning [how CSS selectors work](https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Selectors). Reply by pty
Member Avatar
pty 588 Replied To a Post in Select from multiple tables
Topic by k_7 in Databases
The fact this post hasn't just been deleted is a bad sign. Burn it with fire. Reply by pty
Member Avatar
pty 588 Replied To a Post in email not validating
Topic by divinity02 in Web Development
Use [the standard method](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email). It's much cleaner, nicer, simpler and more robust.

<input type="email" ... /> Reply by pty
Member Avatar
Featured pty 588 Replied To a Post in Plugging my project
Topic by pty in Hardware and Software
It should run natively on Windows although I haven't tested it.

Of course, the easiest method of running it is to use the [Docker image](https://hub.docker.com/r/graphia/cms/) which [will work just fine on Windows](https://www.docker.com/docker-windows). Reply by pty
Member Avatar
pty 588 Replied To a Post in AWS
Topic by davy_yg in Web Development
aws
It is none of those things. Amazon have lots of servers, in some cases it's easier/cheaper/more-reliable to use theirs than have your own.

If you don't know the difference between Hadoop and Apache HTTPD, you don't need Hadoop. Reply by pty
Member Avatar
Featured pty 588 Replied To a Post in Plugging my project
Topic by pty in Hardware and Software
Yep. This isn't a SAAS, it's self-hosted; either on your own cloud platform (AWS, GCP, Azure, whatever) or on your own hardware. Reply by pty
Member Avatar
Featured pty 588 Replied To a Post in Plugging my project
Topic by pty in Hardware and Software
Oh, and in case anyone hasn't guessed, the website is still in progress. A logo is in the works and the text needs some refinement. Reply by pty
Member Avatar
Featured pty 588 Created Plugging my project
Inbetween contracts over the last year or so I have been beavering away building a CMS with a difference. https://www.graphia.co.uk/

It's aimed at companies that have huge libraries of documents that every employee needs (operating procedures, handbooks, guides, etc) locked away in inflexible propriatory formats (aka Sharepoint/Confluence).

* documents are … Topic by pty in Hardware and Software
Member Avatar
Featured pty 588 Replied To a Post in Plugging my project
Inbetween contracts over the last year or so I have been beavering away building a CMS with a difference. https://www.graphia.co.uk/

It's aimed at companies that have huge libraries of documents that every employee needs (operating procedures, handbooks, guides, etc) locked away in inflexible propriatory formats (aka Sharepoint/Confluence).

* documents are … First Post in Topic by pty in Hardware and Software
Member Avatar
Topic by DBexpert in Databases
Looks good. I'm afraid I don't use Windows so can't give it a test, but it definitely looks like a comprehensive tool. Reply by pty
Member Avatar
Topic by Dom_2 in Software Development
So you want a number in the web page to increment when a backend operation takes place? To do this 'on the fly' would require you to implement [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) or write something custom with [websockets](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API), which might be a little advanced for you at the moment.

I'd suggest creating … Reply by pty
Member Avatar
pty 588 Replied To a Post in on the website there are same id
Topic by Erkin in Programming
c#
Change the `id` of one of the inputs, perhaps? Reply by pty
Member Avatar
pty 588 Replied To a Post in code works in test file but not live form
Topic by janicemurby in Web Development
![it is for me](http://www.giphy.com/gifs/15bTYLER1ssltxjfZO)

http://www.giphy.com/gifs/15bTYLER1ssltxjfZO Reply by pty
Member Avatar
pty 588 Replied To a Post in code works in test file but not live form
Topic by janicemurby in Web Development
I'm not quite sure what the problem you're having is.

[I have put your code in a codepen](https://codepen.io/anon/pen/oqzbOG) and it *looks ok* (selecting a region updates the postcode prefix dropdown).

What isn't happening that should be? Reply by pty
Member Avatar
Featured pty 588 Replied To a Post in Checking for array value in another array
Topic by EvolutionFallen in Web Development
Like my post perhaps? Reply by pty
Member Avatar
pty 588 Gave Reputation to manoj_12 in encryption in c# and decryption in Java
Topic by abhijeet P in Software Development
can you please tell encryption in java and decryption in C# Reply by manoj_12
Member Avatar
pty 588 Replied To a Post in IP Address Conflict
Topic by Naomi_2 in Software Development
How are your networks connected together? Are you using a site-to-site VPN? Reply by pty
Member Avatar
Featured pty 588 Replied To a Post in Checking for array value in another array
Topic by EvolutionFallen in Web Development
And the reason your code wasn't working is that you were calling `include?`on a string and passing an array. Both string and array have an `include?` method, string's only accepts strings but array's accepts any object.

I'd add an example but I'm typing on my phone Reply by pty
Member Avatar
Featured pty 588 Replied To a Post in Checking for array value in another array
Topic by EvolutionFallen in Web Development
As John suggests, array intersection will work. If you don't need to know what clashes, this *might* be faster due to `any?` stopping as soon as it's fulfilled.

colours = %w{red green blue orange}
targets = %w{yellow black pink red blue}
colours.any? {|colour| targets.include? colour} Reply by pty
Member Avatar
pty 588 Gave Reputation to davy_yg in Facebook Analytics vs Google Analytics
What is the difference between facebook analytics and google analytics? First Post in Topic by davy_yg in Web Development
Member Avatar
Featured pty 588 Replied To a Post in Datepicker to display div based on day & ISO week #
Topic by Jon_7 in Web Development
There's [a progress HTML element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress), you shouldn't need to use any additional libraries or plugins and [you can style it with CSS](https://codepen.io/amwill/pen/RWBpBZ). It's as simple as:


<progress value="75" max="100"></progress> Reply by pty
Member Avatar
pty 588 Replied To a Post in a foreign key constraint fails
Topic by davy_yg in Databases
No, the foreign key is *working *.

Have you read the documentation? If you do and still don't understand I'll tell you how to fix it, but you clearly haven't put in any effort. Reply by pty
Member Avatar
pty 588 Replied To a Post in helo :)) help me
Topic by QUang_3 in Digital Media
Yes. Run the website on your local machine and then take a screenshot, and upload *that* to your host. Then, people can see your *AMAZING CONTENT* but won't be able to get at your precious, hand-crafted, artisanal, rolled-on-a-virgin's thigh HTML.

An alternative would be to write your website using Adobe … Reply by pty
Member Avatar
Featured pty 588 Replied To a Post in Datepicker to display div based on day & ISO week #
Topic by Jon_7 in Web Development
The week selector is based on [ISO8601](https://en.m.wikipedia.org/wiki/ISO8601), and Monday was decided as the first day of the week.

You would need to use a custom widget to customise that. Alternatively, use two inputs, one with the year and one with numbers 1-52. But where possible, I try to stick to … Reply by pty
Member Avatar
Featured pty 588 Replied To a Post in Datepicker to display div based on day & ISO week #
Topic by Jon_7 in Web Development
> but how can I add HTML instead of the 1-word you used for each day?

Yes, you can add whatever you like. If you structure your data something like this, you can easily use a [simple templating library](http://olado.github.io/doT/index.html) to insert any HTML you like

let data = {
"2018-W12": … Reply by pty