Community Member
Member Avatar
pty 280 Replied To a Post in Looking For Web Proxy Hosts
Topic by UI in Web Development
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 or I won't be able to remove you from the "bullshitting timewaster" category that you are currently a member of. Reply by pty
Member Avatar
pty 280 Replied To a Post in server address for https
Topic by idaryl in Programming
php
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? Reply by pty
Member Avatar
Featured pty 280 Replied To a Post in Dani isn't killing DaniWeb with Dazah, she's saving it
Topic by happygeek in DaniWeb Community Feedback
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 the 'go back' button, too. Without having full trust in the 'is the link dead' checker, it's probably what most … Reply by pty
Member Avatar
Featured pty 280 Replied To a Post in Dani isn't killing DaniWeb with Dazah, she's saving it
Topic by happygeek in DaniWeb Community Feedback
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 business and I wish them luck. Reply by pty
Member Avatar
Featured pty 280 Replied To a Post in Dani isn't killing DaniWeb with Dazah, she's saving it
Topic by happygeek in DaniWeb Community Feedback
> 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 it index a decent enough chunk of the web to be useful would be *incredibly expensive*. Getting people to actually … Reply by pty
Member Avatar
Featured pty 280 Replied To a Post in Dani isn't killing DaniWeb with Dazah, she's saving it
Topic by happygeek in DaniWeb Community Feedback
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 view, results are of a decent quality and the UI is sensible and familiar. Reply by pty
Member Avatar
pty 280 Replied To a Post in Looking For Web Proxy Hosts
Topic by UI in Web Development
> 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 the browser users) read the concept and told me not to go ahead publicising it anymore unless they get back … Reply by pty
Member Avatar
Featured pty 280 Replied To a Post in Table design
Topic by ddanbe in Web Development
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 are advantages and disadvantages in cases like that. Reply by pty
Member Avatar
Featured pty 280 Replied To a Post in Table design
Topic by ddanbe in Web Development
> 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 an appropriately-named foreign key to the table you posted (let's called that `food`).

In SQL, you'd use a statement like … Reply by pty
Member Avatar
Topic by shantuli in Software Development
On another note, this is where the StackOverflow 'style' of questions and answers, with plenty of non-nonsense moderators, works well.

Homework questions like this are good for nothing. If the student can't be bothered to formulate a sensible question they are weakening whatever community is left and making it *more … Reply by pty
Member Avatar
Topic by shantuli in Software Development
Grade F: rahul_63 Reply by pty
Member Avatar
pty 280 Replied To a Post in Watermark
Topic by davy_yg in Web Development
For every image you want to store a separate watermarked version of that image. So, you need a 'task' that runs per upload. For your already-uploaded images you need to also be able to run that task.

In Rails, let's say you have a class called `Image` with method `generate_watermark` … Reply by pty
Member Avatar
pty 280 Replied To a Post in Watermark
Topic by davy_yg in Web Development
Quite an easy process. Just create a semitransparent watermark, find an image, add the watermark to your image and voila, you're done! Reply by pty
Member Avatar
pty 280 Replied To a Post in What To Download Today From Youtube ?
Topic by UI in Community Center
> Back in 2012, I once built a .exe bot that finds you WP blogs that still have their commenting section open and then posts your comment.

Well done, your posting bot has obviously evolved to posting to forums and ever since you added the `Rambling::Bullshit` module and pointed it … Reply by pty
Member Avatar
pty 280 Gave Reputation to tarun_6 -5 in How to store multiple check boxes in html
Topic by tarun_6 in Web Development
How to write the code to save the check box Reply by tarun_6
Member Avatar
pty 280 Replied To a Post in How to store multiple check boxes in html
Topic by tarun_6 in Web Development
I'd start by learning Java. Then SQL. When you've learned Java and SQL, then learn HTML. Now you've mastered those relatively simple subjects, just learn all of the glue that connects them together. Once you've done that, it's quite simple:

Your attendence is probably represented by a join table; a … Reply by pty
Member Avatar
Topic by Xin_1 in Databases
You can't create a table if a something with the same name already exists. If you have created it in error and it doesn't contain any important data, drop it.

drop table PO;

Now your `create table PO ...` command should work. Reply by pty
Member Avatar
Featured pty 280 Replied To a Post in FINDSTR returns whole line data
Topic by DeanMSands3 in Microsoft Windows
Nope, `FINDSTR` only returns whole matching lines. You're best creating something in Powershell to return only what you want. Reply by pty
Member Avatar
pty 280 Replied To a Post in Computer Language
Topic by Plinth in Community Center
[Meet Alice](http://www.atarimagazines.com/v6n2/Alice.html). Reply by pty
Member Avatar
pty 280 Replied To a Post in Computer Language
Topic by Plinth in Community Center
If you're teaching someone C# as their first language, Visual Studio makes sense - it's an excellent environment all round and providing everyone's using Windows it makes sense to use it.

For people new to programming, though, I'd start with something more expressive. Incidentally, omni-completion (aka intellisense) has been present … Reply by pty
Member Avatar
Featured pty 280 Replied To a Post in SQL Query to group and rank
Topic by Seef_1 in Web Development
Unfortunately, MySQL doesn't support [Window Functions](https://www.postgresql.org/docs/9.6/static/tutorial-window.html), which make this type of query much simpler:

select rank(), pos, performance, wind, athlete
over (
partition by athlete, wind
order by pos, performance
) Reply by pty
Member Avatar
pty 280 Replied To a Post in Computer Language
Topic by Plinth in Community Center
Another advantage of Python (and other interpreted languages) is that you can learn the syntax much more quickly and easily while using a [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop). For those who don't know, you can just type in code and it evaluates it and prints the result:


>>> colours = ["red", "yellow", "pink", "green"] … Reply by pty
Member Avatar
pty 280 Replied To a Post in Computer Language
Topic by Plinth in Community Center
Python is a solid first choice, it's really easy to get up and running, it's very sensibly designed and has plenty of libraries to choose from when you start doing more advanced things. Reply by pty
Member Avatar
pty 280 Replied To a Post in Connecting a mobile app to a MySQL database
Topic by spades0001 in Mobile Development
To cut a long story short, you don't want to connect to the database directly, you want to build an API that sits in-between. Let the API service talk to the database and communicate with the API via HTTP calls or some other protocol. Reply by pty
Member Avatar
Featured pty 280 Replied To a Post in Ruby/Watir - <Main> undefined local variable or method
Topic by mattyd in Web Development
The problem looks like it's the quote symbol on your require line, `require ‘watir’`.

In Ruby, this *needs* to be either a standard `'` or `"` pairing. If you really want to you can use [percent string syntax](https://ruby-doc.org/core-2.4.0/doc/syntax/literals_rdoc.html#label-Percent+Strings), in the`require %q{watir}` style, but in more than 14 years of Ruby … Reply by pty
Member Avatar
Hello- How to gain visitors for Tech support website? Please suggest some authentic method to gain huge traffic. First Post in Topic by microsoft_1 in Digital Marketing
seo
Member Avatar
Topic by microsoft_1 in Digital Marketing
seo
I'd start by getting someone who speaks native English to proof-read your text. I'd also drop the name Microsoft from your company name, it's likely to make potential customers think you're a scam outfit. Get rid of the obviously fake customer reviews and dodgy stock photos.

Think about what you … Reply by pty
Member Avatar
pty 280 Replied To a Post in HTML5 and using tables as borders
Topic by phantom1000000 in Web Development
Using tables for borders like that is no longer required, it's very brittle (as you've found out) and unnecessarily fiddly.

Drop shadows can be implemented with a single line of CSS:

.card.login-form {
margin-top: 8rem;
box-shadow: 6px 6px 66px 6px rgba(0,0,0,0.39);
}

Here's how your login form would look using … Reply by pty
Member Avatar
Featured pty 280 Replied To a Post in Private message notifications handled by Dazah
Topic by Dani in DaniWeb Community Feedback
I don't envy the task ahead of you Dani. There just isn't the enthusiasm there once was.

Tech support has largely been supplanted by stackoverflow, the social/discussion aspect by Reddit, Facebook, etc.

Maybe putting DW on ice and concentrating on Dazah making inroads into its intended market is best. The … Reply by pty
Member Avatar
Topic by Adam_35 in Software Development
You could always switch to a language where indexing starts at `1`. FORTRAN, Lua, Pascal and Smalltalk to name a few. Reply by pty