• Member Avatar for pty
    pty

    Gave Reputation to Busuioc in Please help me make this program work, can't find the problem

    #include<iostream.h> void main() { int a,b,r; cout<<"a=";cin>>a; cout<<"b=";cin>>b; while (r!=0) { r=a%b; a=b; b=r;} cout<<"cmmdc="<<a;
  • Member Avatar for pty
    pty

    Gave Reputation to cereal in how to popular a site .....

    Hi, if your target is worldwide, then provide an English version of the site: not only of the contents, but also of the links. See this for example: http://iraniantranslate.com/%D8%AF%D8%B1%D8%A8%D8%A7%D8%B1%D9%87-%D9%85%D8%A7/ which …
  • Member Avatar for pty
    pty

    Replied To a Post in Sort data from text file in python using quick sort

    Ah ok. The original post didn't sound like a typical "do my homework" request.
  • Member Avatar for pty
    pty

    Replied To a Post in Sort data from text file in python using quick sort

    This problem was solved like 40 years ago. $ sort -t" " -rnk4 data.tsv ascon1 201707015 Jack 97.5 11.5 11.5 11.5 ascon1 201707013 Josh 79.5 11.5 11.5 11.5 ascon1 201707011 …
  • Member Avatar for pty
    pty

    Replied To a Post in How to increase the traffic for my website??

    There is only one way, one rule and one method. It's called *write some good content*. Content is key, and if it's good enough to capture an audience you've cracked …
  • Member Avatar for pty
    pty

    Replied To a Post in Up vote comment in mobile

    Yep can confirm this on Android with Chrome.
  • Member Avatar for pty
    pty

    Replied To a Post in Fixing my not-so-smart TV

    So, a quick update. My [spare router](https://www.asus.com/uk/Networking/RTN56U/) that I tried using as a firewall [can't block https traffic](https://forums.anandtech.com/threads/cant-block-https-sites-with-asus-router.2338270/), which is unfortunate. Luckily I had *Plan B*. I switched the TV …
  • Member Avatar for pty
    pty

    Replied To a Post in Fixing my not-so-smart TV

    That's what I thought. Although I believe I may have only done a *soft reset*, which is the only option available in the standard menus. There might be a full …
  • Member Avatar for pty
    pty

    Replied To a Post in Fixing my not-so-smart TV

    Tried several factory resets with no joy, it appears to spring back to life at the same firmware version, 1201, as it was before. Samsung explicitly told me that it's …
  • Member Avatar for pty
    pty

    Replied To a Post in Fixing my not-so-smart TV

    In addition to my post, something that made the experience worse was that when I contacted Samsung support they said > Please be informed that the adverts or advertisements depend …
  • Member Avatar for pty
    pty

    Created Fixing my not-so-smart TV

    This isn't a typical hardware post, but I couldn't find anywhere better for it. Last October, after my previous TV packed in, I bought a shiny new Samsung Smart TV. …
  • Member Avatar for pty
    pty

    Replied To a Post in Parsing XML with Regex and preg_match_all

    [Here's a comprehensive answer](https://stackoverflow.com/a/1732454/7649503) why parsing XML with regular expressions is a bad idea. @AndrisP put you on the right track.
  • Member Avatar for pty
    pty

    Replied To a Post in Multi Master Marter replication

    Yes, it is possible, and how to do it is outlined in MySQL's excellent documentation. However, you almost certainly don't need multi-master. You just don't.
  • Member Avatar for pty
    pty

    Replied To a Post in LG UltraFine 5K

    Are you definitely using a Thunderbolt 3 cable between your MBP and the 5K monitor? Incidentally, slightly jealous, I need to get one of those monitors but I'm worried my …
  • Member Avatar for pty
    pty

    Replied To a Post in How to embed this in HTML

    [`script` tags](https://developer.mozilla.org/en/docs/Web/HTML/Element/script).
  • Member Avatar for pty
    pty

    Replied To a Post in XHR calls the functions but doesnt return anything as it should.

    The code I provided is in an entirely different language, you can't just paste Ruby into PHP! Maybe ignore JavaScript for a while and [learn PHP](https://www.codecademy.com/learn/php) first.
  • Member Avatar for pty
    pty

    Replied To a Post in Coupon Function - Javascript

    You're not actually adding them to the DOM. Look [here](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML).
  • Member Avatar for pty
    pty

    Replied To a Post in XHR calls the functions but doesnt return anything as it should.

    Hard to tell what's going on without knowing what your server is doing and that you're sending requests to the port it's listening on. Here's what I'd do, substitute my …
  • Member Avatar for pty
    pty

    Replied To a Post in XHR calls the functions but doesnt return anything as it should.

    Like I said, access your API (even if it is only one function that returns `{"hello": "world"}`) using something less complicated. The tools I mention above are a good start. …
  • Member Avatar for pty
    pty

    Replied To a Post in Wifi Software App

    I'd start by leaning [DD-WRT](http://www.dd-wrt.com), then use that to build a [Captive Portal](https://en.m.wikipedia.org/wiki/Captive_portal). You'll need a [compatible router](https://www.dd-wrt.com/site/support/router-database).
  • Member Avatar for pty
    pty

    Replied To a Post in XHR calls the functions but doesnt return anything as it should.

    Ok, so if you run this with your browser's developer tools open, what errors do you see in the console?
  • Member Avatar for pty
    pty

    Liked / Shared XHR calls the functions but doesnt return anything as it should.

    Hello, the functions are called in the XHR (status 200) but dont return anything as it should,. Even when i put an echo it doesnt return the echo. The path …
  • Member Avatar for pty
    pty

    Gave Reputation to leonardo_4 in Help! Read text file in VB .net compact framework

    if any one still trying to know, in the mobile device there is no C drive, so just write without it on the path. Imports System Imports System.IO Public Class …
  • Member Avatar for pty
    pty

    Replied To a Post in XHR calls the functions but doesnt return anything as it should.

    Your post doesn't make a lot of sense. What functions don't return anything? Where is `ajaxPost` defined? Does your API call actually work? Try accessing your API via another program …
  • Member Avatar for pty
    pty

    Replied To a Post in How to use WHERE and LIKE with a variable

    And the moral of the story is, don't try to `join` tables using manually-entered `string`/`varchar` fields. It just won't work. Some people will enter their name as 'Timothy' in some …
  • Member Avatar for pty
    pty

    Replied To a Post in Need help with my Syntax Highlighting program

    I don't really understand the question, but if you mean you want to display code with syntax highlighting (rather than edit it, in which case rproffitt's answer is correct), then …
  • Member Avatar for pty
    pty

    Replied To a Post in Printing a square using number the user enters, down to 1

    This looked interesting so I had a go. Did it in Ruby so it wouldn't be of use to anyone with Java, C or C++ homework :) puts "enter a …
  • Member Avatar for pty
    pty

    Replied To a Post in table query and lookup of another table in 1 statement?

    It's annoying when people ask a straight up SQL question and wrap everything in `$LANGUAGE`. To cut a long story short, what you need is [a join](https://dev.mysql.com/doc/refman/5.7/en/join.html).
  • Member Avatar for pty
    pty

    Replied To a Post in How to read online text file

    Easy to forget how much power you have with the Unix toolbelt at your fingertips. ![Screen_Shot_2017-08-21_at_15_49_23.png](/attachments/large/0/4ef22f2c98e5999150e2ca7b9f168354.png)
  • Member Avatar for pty
    pty

    Replied To a Post in How do I hide and show 2 different buttons on same form in html template

    Nobody's going to try and decipher/run all that code. What exactly is the problem? Try creating a [JSFiddle](https://jsfiddle.net/) or something.
  • Member Avatar for pty
    pty

    Replied To a Post in please help me out here error in this javascript

    Why are you mixing PHP and Javascript up like that? And why are you using `document.getElementByID`? Also, putting spaces in `id` attributes [is invalid](https://developer.mozilla.org/en/docs/Web/HTML/Global_attributes/id). Clue, just use PHP for this, …
  • Member Avatar for pty
    pty

    Replied To a Post in How To Make Dani Web The Best Forum That Attracts Newbies & Earns Oldbies!

    Still waiting for links UI. For a bit of entertainment I looked up some amazing contributions UniqueIdeaMan has made to the web. Here's a great one: > Problem is, googling …
  • Member Avatar for pty
    pty

    Replied To a Post in FB Messenger supports Markdown

    I guess the beauty of markdown is that they can introduce it without it really affecting people who don't know or care about it. The only markdown directives that might …
  • Member Avatar for pty
    pty

    Replied To a Post in Question Query why not group ?

    As a SQL contractor who comes across computer-generated messes like this rather frequently, I'd like to make a suggestion. Break this up into manageable chunks. Here's your query with syntax …
  • Member Avatar for pty
    pty

    Gave Reputation to happygeek in How To Make Dani Web The Best Forum That Attracts Newbies & Earns Oldbies!

    <removes admin hat> UI constantly accuses others of being intolerant and rude, placing himself on the moral high ground. Yet all too often his true colours, his true intolerance for …
  • Member Avatar for pty
    pty

    Replied To a Post in How To Make Dani Web The Best Forum That Attracts Newbies & Earns Oldbies!

    > Since the odds are against me then how-about I pay you nothing if I lose but you pay me everything of your wealth if you lose ? Can you …
  • Member Avatar for pty
    pty

    Replied To a Post in How To Make Dani Web The Best Forum That Attracts Newbies & Earns Oldbies!

    > I think you misunderstood UI It's not the first time. The general consensus is that UniqueIdeaMan's ideas are indeed unique. Unfortunately they aren't the *good* kind of unique. This …
  • Member Avatar for pty
    pty

    Replied To a Post in Insomnia

    I don't really suffer from insomnia but on occasions when I can't get to sleep listening to an audiobook for a few minutes usually makes me drop off. I think …
  • Member Avatar for pty
    pty

    Replied To a Post in Will self driving cars ever make it?

    The classic examples go [something like this](https://www.scientificamerican.com/article/driverless-cars-will-face-moral-dilemmas/) > A self-driving car carrying a family of four on a rural two-lane highway spots a bouncing ball ahead. As the vehicle approaches …
  • Member Avatar for pty
    pty

    Replied To a Post in Will self driving cars ever make it?

    In a few years it won't be uncommon to see driverless cars, every car company is pouring money into the problem; a mix of new players like Tesla and Google …
  • Member Avatar for pty
    pty

    Replied To a Post in How do I use XLSX file as a database my website?

    If you want to record customers without coding anything I'd just embed a Google form which would be linked to a spreadsheet on Google Drive. Yes, it's not an `.xslx` …
  • Member Avatar for pty
    pty

    Replied To a Post in Looking For Web Proxy Hosts

    UI, I'm still waiting for you to share the details of your browser that is on the verge of setting the world on fire. Please can you post some information …
  • Member Avatar for pty
    pty

    Replied To a Post in server address for https

    I'm no PHP expert but shouldn't you be using [`SERVER_NAME`](http://php.net/manual/en/reserved.variables.server.php), which is set in your webserver config?
  • Member Avatar for pty
    pty

    Replied To a Post in Dani isn't killing DaniWeb with Dazah, she's saving it

    So how come the link is marked as broken in my post? It works just fine. `https://help.qwant.com/help/overview/how-does-qwant-index-the-web/` The button to continue to the page should be more strongly coloured than …
  • Member Avatar for pty
    pty

    Replied To a Post in Dani isn't killing DaniWeb with Dazah, she's saving it

    Qwant appear to have avoided some of the problems of building their own index and spider by [using Bing](https://help.qwant.com/help/overview/how-does-qwant-index-the-web/). Still, it looks like a decent attempt at starting a search …
  • Member Avatar for pty
    pty

    Replied To a Post in Dani isn't killing DaniWeb with Dazah, she's saving it

    > The main question is the amount of work it would take to build your own search engine Building a search engine that works well would be *incredibly complicated*. Having …
  • Member Avatar for pty
    pty

    Replied To a Post in Dani isn't killing DaniWeb with Dazah, she's saving it

    DuckDuckGo was launched in 2008 and is totally unaffiliated with Google. It's a shame Google is so entrenched but DDG is the best option around from a privacy point of …
  • Member Avatar for pty
    pty

    Replied To a Post in Looking For Web Proxy Hosts

    > Because, when I mentioned my browser somewhere (that revolves around my big ideas), one of the major international advertising company (from where the money would be coming from to …
  • Member Avatar for pty
    pty

    Replied To a Post in Table design

    Yes, you can definitely normalise further, like with the `nutrients` approach @diafol suggests, but you need to know the data before making a judgement on whether it's worth it. There …
  • Member Avatar for pty
    pty

    Replied To a Post in Table design

    > Should I turn those into an extra column or should they become seperate tables? They should definitely be stored in a separate table (say, `food_category`) and you should add …

The End.