Community Member
Member Avatar
Featured pty 140 Gave Reputation to DavidB in How to Choose License Type?
I have translated many numerical math programs from FORTRAN into C++ and JavaScript. The original FORTRAN source code listings are posted on the NETLIB site and have been in the public domain for 20, 30, years.

The C++ and JavaScript translations that I write are hand-coded, line-by-line, and repeatedly tested … First Post in Topic by DavidB in Community Center
Member Avatar
Featured pty 140 Replied To a Post in How to Choose License Type?
Topic by DavidB in Community Center
I am not a lawyer, but I believe that if you 'port' software from one language to another, you're creating a derivative work and the original licence applies. However (from Wikipedia):

> The code base of Netlib was written at a time when computer software was not yet considered merchandise. … Reply by pty
Member Avatar
Topic by newbi11 in Web Development
Plus, the CSS is totally different between the first and second fiddles. Posting examples with minimised code is a bad idea, it's clearly broken because while it looks like Bootstrap 2 the fonts aren't applied in the preview window. Total failure. Reply by pty
Member Avatar
Topic by newbi11 in Web Development
It's unresolved because you're a chump. I'm not here to do your work, resize your images or craft your stylesheets.

You asked a question, I answered it; I subsequently ignored the request for further help via PM. Your posting history is fun of similar tactics. Maybe you should rethink your … Reply by pty
Member Avatar
Topic by newbi11 in Web Development
Did you actually read the source? Assuming you want to replace the `icon-cog`:

<div class="icon-cog box-icon"></div>

Replace the contents of the div with an `img` tag:

<div class="box-icon">
<img width="60" height="60" src="http://i.imgur.com/vPkeDtI.png"/>
</div>

Results in beautiful images whever you like.

![Screen_Shot_2017-03-25_at_14_38_25.png](/attachments/large/0/53a382fb4b264f77092269a378dbaf78.png "align-center") Reply by pty
Member Avatar
Featured pty 140 Replied To a Post in Change Markdown Syntax Page
Topic by diafol in Community Center
I'm currently writing a Markdown powered CMS, which adheres to [Commonmark](http://commonmark.org). Their [help page](http://commonmark.org/help/) is quick, easy and to-the-point. Reply by pty
Member Avatar
pty 140 Replied To a Post in Email marketing or Social media
Topic by Sinelogix_1 in Digital Marketing
Not spamming forums with stupid questions works quite well, you should try it. Reply by pty
Member Avatar
Topic by bill_21 in Digital Marketing
If you plan on writing in English, I'd master it first.

Yes, I know you're actually linking to that site for SEO purposes. Kind of lame at the best of times. Reply by pty
Member Avatar
Featured pty 140 Replied To a Post in Twitter Bootstrap based on device width
Topic by Dani in UI / UX Design
If you did that it would no longer be responsive! (actually, the only way it would 'respond' would be if you're using a tablet/phone and rotated it) Reply by pty
Member Avatar
Topic by Phil_7 in Web Development
The XPath works, your PHP looks wrong.

$xmllint --xpath "/solar/solardata/solarwind|/solar/solardata/magneticfield" solarxml.xml

<solarwind>511.8</solarwind><magneticfield> -0.7</magneticfield>

I assume you didn't read [the documentation](http://php.net/manual/en/simplexmlelement.xpath.php). I don't know PHP, there may be preferred libraries for this type of thing. Reply by pty
Member Avatar
Topic by Phil_7 in Web Development
[XPath](https://www.w3.org/TR/xpath/) `/solar/solardata/solarwind|/solar/solardata/magneticfield` yields:

<solarwind>509.4</solarwind>
<magneticfield> 1.9</magneticfield> Reply by pty
Member Avatar
pty 140 Replied To a Post in Chat application
Topic by jeffersonalomia in Web Development
Yes, that sounds like a good use case and it's quite easy to set up a reasonable demo in Neo4J.

create
(Frank:Member {name:'Frank'}),
(Julian:Member {name: 'Julian'}),
(Amanda:Member {name: 'Amanda'}),
(Claire:Member:Admin {name: 'Claire'}),
(Susie:Member {name: 'Susie'}),
(Dolly:Member:Admin {name: 'Dolly'}),

(Frank)-[:HAS_CHATTED_TO]->(Amanda),
(Claire)-[:HAS_CHATTED_TO]->(Frank),
(Amanda)-[:HAS_CHATTED_TO]->(Susie),
(Susie)-[:HAS_NOT_CHATTED_TO]->(Dolly),
(Dolly)-[:HAS_NOT_CHATTED_TO]->(Frank),
(Frank)-[:IGNORES]->(Susie),
(Dolly)-[:IGNORES]->(Julian),
(Julian)-[:HAS_CHATTED_TO]->(Amanda)


Which results in this … Reply by pty
Member Avatar
pty 140 Replied To a Post in Chat application
Topic by jeffersonalomia in Web Development
A graph database alone isn't the right choice for a chat application. A message would be represented as an edge between two nodes (people) and too many edges will hurt performance.

Storing the actual social network portion of a chat app in one makes a lot of sense, though. It's … Reply by pty
Member Avatar
Featured pty 140 Replied To a Post in Laptop video card
Topic by Dani in Hardware
If you want to play 3d games or develop with Cuda/OpenCL, very. For browsing the web and 'normal' development, not so much.

Neither my MBP and XPS have one, both are lightweight and quiet, and both cope fine with a big external monitor.

Also, if you plan on running Linux … Reply by pty
Member Avatar
Featured pty 140 Replied To a Post in Student laptop
Topic by happygeek in Hardware
> @pty: Good try, but it was a refurb (and I wanted new, the two year warranty at John Lewis is always hard to ignore), there was only one of them (I needed two) and they don't have any stock :-)

Haha yeah, it was such a good deal it … Reply by pty
Member Avatar
Featured pty 140 Replied To a Post in Student laptop
Topic by happygeek in Hardware
[£20 over budget, but i7 with 8GB RAM](http://www.laptopsdirect.co.uk/refurbished-hp-15-ay168sa-15.6-intel-core-i7-7500u-2.7ghz-8gb-1tb-windows-a2-z3c97ea/version.asp). Reply by pty
Member Avatar
Featured pty 140 Replied To a Post in Need suggestions for gaming desktop
Topic by Reverend Jim in Hardware and Software
I'd try somewhere like Microcenter, if you look at their clearance/open box section on the website there are some deals to be had. I don't know what your budget is, but [this](http://www.microcenter.com/product/455377/XPS_8900_Desktop_Computer?ob=1) for $791 looks like it'll fit the bill. You'd have to see what's available in your local store … Reply by pty
Member Avatar
pty 140 Replied To a Post in Array 2 Variable
Topic by phphp in Web Development
php
[Here you go](http://php.net/manual/en/class.dateinterval.php) Reply by pty
Member Avatar
pty 140 Replied To a Post in page skips
Topic by Sandra_9 in Web Development
True, and if she wants to continue and learn then fair play, and I hope she manages to build something great.

However, she's using a discontinued tool that outputs unmaintainable HTML, and developing her site clearly isn't her goal; letting people know about her jewelry (which looks fantastic, by the … Reply by pty
Member Avatar
pty 140 Replied To a Post in page skips
Topic by Sandra_9 in Web Development
I'd suggest using something like SquareSpace for this kind of site, rather than attempting to build it yourself. It has an e-commerce module built-in and plenty of easy templates to choose from.

A note unrelated to the original question, when at 100% zoom, I can only see 2/3 of the … Reply by pty
Member Avatar
Featured pty 140 Replied To a Post in RESTFul API actions
Topic by Dani in Web Development
> I've been following this with some interest. Bad practice to end with a verb?

I think the distinction is between an API and a web app. In a web app, `/widgets/123/edit` (obtained via a `GET`) should contain a form that allows you to edit Widget number 123. Submitting the … Reply by pty
Member Avatar
Featured pty 140 Replied To a Post in RESTFul API actions
Topic by Dani in Web Development
> It turned out that the load balancer was blocking non-GET/POST requests. It wasn't an Nginx problem after all!

This doesn't suprise me at all! :)

> I actually imitated the /users/~ endpoint after LinkedIn's API, which does:

Yes, but LinkedIn's API is read only.

If Dazah's API allows you … Reply by pty
Member Avatar
Topic by gkumaravel in Web Development
True, but the requirements he is looking to implement exist in most clients anyway (definitely Gmail, Mail.app and Outlook 365, but you'd need to use categories/labels instead of a new folder per subject). Reply by pty
Member Avatar
Topic by gkumaravel in Web Development
Of course it's possible, but just do everyone (yourself included) a favour and use an existing client. What advantage is there of having your own? Written by a non-expert, without having thousands (or millions, billions) of hours of hands-on testing, your client is likely to be pretty poor. Reply by pty
Member Avatar
Featured pty 140 Replied To a Post in MySQL query taking too long
Topic by Dani in Databases
Have you tried `explain`ing the slow statement?

This might work:

explain insert into articles_read
set
member_id = 314062,
article_id = 507257
on duplicate key update
timestamp = now();

Otherwise, try [show profiles](https://dev.mysql.com/doc/refman/5.7/en/show-profiles.html). It might give a hint as to why it's slow. Reply by pty
Member Avatar
Featured pty 140 Replied To a Post in Slightly cluttered notifications
Topic by pty in DaniWeb Community Feedback
While yes, I'm annoyed by spammers, the notification problem exists for legitimate posts too. It just so happens that this chap was top of the list! Reply by pty
Member Avatar
pty 140 Replied To a Post in Third party modules in Python
Topic by pywriter in Software Development
Sure, [here you go](https://www.python.org/about/gettingstarted/).

You need to crawl, walk and run before you start the 110m hurdles. Reply by pty
Member Avatar
Featured pty 140 Created Slightly cluttered notifications
It would appear that too many notifications are added to the feed for certain events, making it difficult to sort the wheat from the chaff.

Take the example of this annoying spammer creating a post:

![Screen_Shot_2017-01-26_at_15_16_46.png](/attachments/large/0/70f9ca54d7b9fe3b576a82ab688e0d74.png "align-center")

Aside from the fact he's a waste of oxygen, that's more than one … Topic by pty in DaniWeb Community Feedback
Member Avatar
Featured pty 140 Replied To a Post in Slightly cluttered notifications
It would appear that too many notifications are added to the feed for certain events, making it difficult to sort the wheat from the chaff.

Take the example of this annoying spammer creating a post:

![Screen_Shot_2017-01-26_at_15_16_46.png](/attachments/large/0/70f9ca54d7b9fe3b576a82ab688e0d74.png "align-center")

Aside from the fact he's a waste of oxygen, that's more than one … First Post in Topic by pty in DaniWeb Community Feedback
Member Avatar
pty 140 Replied To a Post in Third party modules in Python
Topic by pywriter in Software Development
> What if I want to modify the third party module? Where can I find it?

`pip show unidecode`

Metadata-Version: 2.0
Name: Unidecode
Version: 0.4.20
Summary: ASCII transliterations of Unicode text
Home-page: UNKNOWN
Author: Tomaz Solc
Author-email: tomaz.solc@tablix.org
Installer: pip
License: GPL
Location: /usr/local/lib/python2.7/site-packages
Requires:
Classifiers:
License :: OSI Approved … Reply by pty