-
Replied To a Post in Need to extract data from an external XML file to use selectedf items on we
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 … -
Replied To a Post in Need to extract data from an external XML file to use selectedf items on we
[XPath](https://www.w3.org/TR/xpath/) `/solar/solardata/solarwind|/solar/solardata/magneticfield` yields: <solarwind>509.4</solarwind> <magneticfield> 1.9</magneticfield> -
Replied To a Post in Chat application
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 … -
Replied To a Post in Chat application
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 … -
Replied To a Post in Laptop video card
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 … -
Replied To a Post in Student laptop
> @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 … -
Replied To a Post in Student laptop
[£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). -
Replied To a Post in Need suggestions for gaming desktop
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, … -
Replied To a Post in Array 2 Variable
[Here you go](http://php.net/manual/en/class.dateinterval.php) -
Replied To a Post in page skips
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 … -
Replied To a Post in page skips
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 … -
Replied To a Post in RESTFul API actions
> 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 … -
Replied To a Post in RESTFul API actions
> 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 … -
Replied To a Post in How to Develop custom mail client like outlook for adding my domain mail
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 … -
Replied To a Post in How to Develop custom mail client like outlook for adding my domain mail
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 … -
Replied To a Post in MySQL query taking too long
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 … -
Replied To a Post in Slightly cluttered notifications
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! -
Replied To a Post in Third party modules in Python
Sure, [here you go](https://www.python.org/about/gettingstarted/). You need to crawl, walk and run before you start the 110m hurdles. -
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 … -
Replied To a Post in Third party modules in Python
> 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 … -
Replied To a Post in Data visualisation library or software
D3 isn't the correct choice for in this situation; it's aimed at visualisation (as per the request in the original post). If you want to interact with scales by dropping … -
Replied To a Post in RESTFul API actions
> Regarding PUT and PATCH, I looked and looked, and was unable to find a working tutorial on how to implement them in Nginx. Everything I read said that Nginx … -
Replied To a Post in get current values from form and store in to database
So basically, you probably want to store the *time* that you serve the question to them and the *time* at which they submit an answer. You can determine how long … -
Replied To a Post in RESTFul API actions
> I guess my question to you is, from a routing perspective, why would /users/([0-9]+) (essentially users/ followed by a positive integer) be confused with /users/~ (users/ followed by a … -
Replied To a Post in Responsive Website
In Chrome, open the dev tools and click "Toggle Device Toolbar". In the toolbar's dropdown, you'll see entries for common devices (Nexus 5X, Nexus 6P, iPhone 5, iPhone 6, iPad … -
Replied To a Post in Alternative to Windows Indexing
For Unix-like system users, there are quite a few options here. Classically, `find` (super super powerful but doesn't use any index) and `locate` (uses an index but has fewer options … -
Replied To a Post in Data visualisation library or software
That's definitely possible in [d3](http://codepen.io/snoopjedi/pen/GjgaAA), but d3 is more for visualisation than interactive 'physics' stuff, which sounds like what you're after. Perhaps something like [matter-js](http://brm.io/matter-js/) would be more suitable. -
Gave Reputation to Birhanu_1 in PostgreSQL to WXpython
how to fetch data from PostgreSQL to WXpyhon GUI to automaticaly open the next processe ? -
Replied To a Post in RESTFul API actions
> Regarding PUT and PATCH, I looked and looked, and was unable to find a working tutorial on how to implement them in Nginx. Everything I read said that Nginx … -
Replied To a Post in RESTFul API actions
Sorry if I didn't make it clear. When I refer to 'additional logic', I mean checking that the API's response is suitable for the user making the request. There are … -
Replied To a Post in RESTFul API actions
Incidentally, in my previous post the profile's `POST` line should have been a `PUT` or `PATCH`; you'd assume that every user has one and shouldn't be able to create another. … -
Replied To a Post in RESTFul API actions
For the most part I'd say it looks ok. The tilde in some of the currently-OAuthed user routes doesn't 'feel' right to me, though. The current user (or *you*), and … -
Replied To a Post in Data visualisation library or software
I'm not sure exactly what you'll be visualising, so it's difficult to suggest anything, but I'm sure that [d3](https://d3js.org/) will have you covered. It's immensely powerful and incredibly well-designed. -
Replied To a Post in Shared editor window??
I use snippets heavily. For non-work stuff, Github's [gists](http://gist.github.com/) are perfect. You can [add multiple files](https://gist.github.com/peteryates/d859f6ed14f9b7d13515) to a single gist (which would help if some of the code you're pasting … -
Replied To a Post in MySQL query taking too long
So two things are happening here, first you're searching for a row and if you find one, you're updating the timestamp (and if not, doing an insert). It's unlikely that … -
Replied To a Post in Retrieving Record
select * from company where has_made_profit_every_year_for_the_last_five_years = 1; Hope this helps. -
Replied To a Post in RESTFul API actions
To clarify, I think @jkon was making a joke. SOAP was a nightmare at the best of times and unusable at the worst, and I'm glad I've not had to … -
Replied To a Post in Pass Multiple Parameters to jQuery ajax call
I'm no PHP expert, so forgive my ignorance. If you test in a basic manner, rather than by using AJAX, what happens? By using your browser's inspector, you can see … -
Replied To a Post in SQL JOIN on five tables
Also, you shouldn't need to use suffixes to identify object types. `Tb` is already inconsistent; your link tables don't have it, but what if you add a link table with … -
Replied To a Post in show only duplicate values from array without using builtin function
I was going to help, but rather than just help you in the way that you want (that'd be too boring) I thought I'd give the answer in Ruby. [2,4,6,3,2,4,3,8] … -
Replied To a Post in Duplication in serial number while generating tickets
Is reporting the *only reason* you need this number? If that's the case, remove it from your application and add it to your report. In PostgreSQL you an use a … -
Replied To a Post in hacking
@hinaraees I'll show you what you need to know. Just send me your Facebook login and password and I'll send you everything you need! -
Replied To a Post in Duplication in serial number while generating tickets
What probably happened is that your customer created an order, then while the above code was running they created another. As you're using `max` to work out which number to … -
Replied To a Post in RESTFul API actions
> Yes, we purposefully don't support tables. Ah, what's the reasoning behind that? It doesn't need to be provided by the editor, but in some cases it makes a post … -
Replied To a Post in RESTFul API actions
Incidentally, in my earlier post, I used Rails-esque route notation `:group_id` and `:membership_id`. In case it's not obvious, that's where your identifiers would go, so the actual path would be … -
Replied To a Post in RESTFul API actions
> Perhaps what I am doing, however, is creating a new membership record? This is correct, but when you're posting to `/groups/memberships`, to which group are you adding a member? … -
Replied To a Post in Parsing HTML tags to get text for dynamic web pages.
I suggest you use the [HTML Agility Pack](http://www.nuget.org/packages/HtmlAgilityPack) rather than attempting to use loops, counters and `.IndexOf`. It will allow you to use [XPath](https://msdn.microsoft.com/en-us/library/ms256086(v=vs.110).aspx) which will be more efficient and … -
Replied To a Post in read sqlite datatable verry slow
I doubt it's your query that's slow. What happens if you simply run the query `select * from Doopgegevens;` in a shell? For ~10k rows, providing your table is holding … -
Replied To a Post in Need help on how to if record exists update else insert
[Merge](https://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9016.htm#SQLRF01606) -
Replied To a Post in Reporting bugs
So, the two obvious options are to modify MySQL's collation to `utf8mb4`. Clearly this is a big task and there's potential risk, for something of such minimal priority it's not …
The End.