|
Well technically, that includes you and me, doesn't it? We orbit the sun via a complex interaction with the spinning Earth ... given that "orbit" is defined as:
Quote: ... the curved path, usually elliptical, described by a planet, satellite, spaceship, etc., around a celestial body, such as the sun.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
So, you're suggesting we're all Moonies.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
Lunatics!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
A Small Solar System Body (SSSB) has an orbit centred on the Sun. A natural satellite (such as the Moon) has an orbit centred on a planet, dwarf planet, or SSSB. We have no orbit independent of the Earth, therefore we fall into neither category - from the astronomical perspective, we are merely parts of the Earth.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
|
It is now what is called a trojan satellite.
It orbits the same orbit as earth at its Lagrange point. (which is one of two spots a planet's orbital can share. Either ahead or behind of the planet.)
|
|
|
|
|
Except that JWST is orbiting L2, which is 1.5 million kilometers straight out from the Earth with the Earth directly between it and the Sun. I thought the Trojan points were specifically the two stable L points at +/- 60 degrees from the planetary body.
|
|
|
|
|
Woo hoo! More to learn! Thanks for the pointer!
|
|
|
|
|
You are quite right. Originally Trojan Points were defined as being L4 and L5 of the Jupiter solar orbit, but later came to be adopted for all planet/sun configurations at the L4 and L5 points. Thus, the JWST is not a Trojan.
|
|
|
|
|
|
Container with a point to make (6)
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Container with a point to make (6)
Container = Crate
with a point = E
CREATE
|
|
|
|
|
Well done David YAUT
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Parse error: syntax error, unexpected variable "$query" in C:\xampp\htdocs\sys\functions.php on line 10
here is the code -
<?php
function check_login($con)
{
if(isset($_SESSION['user_id']))
{
$id = $_SESSION["user_id"]
$query = "select * from users where user_id = '$id' limit 1";
$result = mysqli_query($con,$query);
if($result && mysqli_num_rows($result) > 0)
{
$user_data = mysqli_fetch_assoc($result);
return $user_data;
}
}
}
|
|
|
|
|
You should read the posting rules, the top entry in this list. You could read there that this is the wrong place for your question.
|
|
|
|
|
This forum is the wrong place to post this, as it says at the top of the page.
The right place is here: Ask a Question[^]
And don't do SQL like that: Never concatenate strings to build a SQL command. It leaves you wide open to accidental or deliberate SQL Injection attack which can destroy your entire database. Always use Parameterized queries instead.
When you concatenate strings, you cause problems because SQL receives commands like:
SELECT * FROM MyTable WHERE StreetAddress = 'Baker's Wood' The quote the user added terminates the string as far as SQL is concerned and you get problems. But it could be worse. If I come along and type this instead: "x';DROP TABLE MyTable;--" Then SQL receives a very different command:
SELECT * FROM MyTable WHERE StreetAddress = 'x';DROP TABLE MyTable; Which SQL sees as three separate commands:
SELECT * FROM MyTable WHERE StreetAddress = 'x'; A perfectly valid SELECT
DROP TABLE MyTable; A perfectly valid "delete the table" command
And everything else is a comment.
So it does: selects any matching rows, deletes the table from the DB, and ignores anything else.
So ALWAYS use parameterized queries! Or be prepared to restore your DB from backup frequently. You do take backups regularly, don't you?
But to be honest, the problem you have noticed is pretty trivial to fix: what should a line end with in PHP?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
You don't wipe an entire database for a fine.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
How is it possible to discuss such matters without a link to Bobby Tables[^]?
Sure, it has been referenced in numerous earlier threads. That is because it has been equally relevant to numerous earlier threads. As well as to this one.
|
|
|
|
|
While XKCD is right, and spot on (and generally Randal is very good at science stuff) it is a cartoon. So those who have never explored the internet other than FarceBook and Twatter - which includes most students - can easily assume that it's a joke. Which it is, but they don't see the levels of reality behind the joke. Omitting Bobby Tables was a deliberate choice to not have the "less experienced" reader disregard it as humour.
Since most of 'em don't read past the first sentence of any reply that doesn't start with "here's code you can hand in as your own homework" anyway, it's probably a moot point. But still, we try ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
Ref: The Lounge[^]
And: The Lounge[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I know nothing about PHP, but aren't you missing a terminating ";" after your $id assignment?
(and I won't get into what others have pointed out already, including the posting rules...)
|
|
|
|
|
I got a 14 inches windows tablet, and it just hit me this morning that I could take note with it!
(well, it just hit me yesterday that I could do the same with my eInk tablet! ^^)
Anyway, any app recommendation for taking notes?
(I mean using the pen to write or doodle, not the keyboard to type)
EDIT
Just tried OneNote.. it ain't too bad!
modified 24-Jan-22 20:31pm.
|
|
|
|
|
I used to use Microsoft OneNote for my handwritten notes but then I was forced to stop using Microsoft Windows (had to convert to Linux) and there is no OneNote here with handwriting capabilities.
So I search for long and now I have been using Stylus Labs Write[^] for years (on both Linux and android).
The good:
- it works in Windows, Linux, mac, IOS and Android
- has pressure sensitivity if your pen supports it (on any OS)
- the file format is just a HTML file with one SVG per page so it is easy to convert to another program if it ever gets to that point
The bad:
- it only supports pen input, you can not even write text with the keyboard
- no fancy functionality like OCR (but with such open file format you can always use an external program to scan the SVGs)
- they do not update it very often (but I never had an error while using it)
- not open source (if you are a purist)
If you intend to use it on multiple devices like I do, it is just a matter of syncing the folder throughout your devices taking care that the sync completes before you edit any file on another device since the program is not "sync aware". Personally, I have it syncing to my private nextcloud server.
|
|
|
|