227 karma · joined May 5, 2010 (16y ago) · 41 submissions
Github: https://github.com/am0d
1.
PID Control Challenges(janismac.github.io ↗)
301 points · by a_m0d · 3y ago · 116 comments
2.
Artificial Photosynthesis Advance: Clean Fuel from Sunlight, CO2 and Water(scitechdaily.com ↗)
5 points · by a_m0d · 6y ago · discuss
3.
Tor 0day: Stopping Tor Connections(hackerfactor.com ↗)
227 points · by a_m0d · 6y ago · 88 comments
comment 8y ago · link · parent
comment 11y ago · link · parent
Note that it does require 2 separate steps rather than 1 as you appear to desire, so may not work for you:
IF OBJECT_ID('dbo.dogs', 'U') IS NOT NULL
DROP TABLE dbo.dogs
GO
IF OBJECT_ID('dbo.doghouses', 'U') IS NOT NULL
DROP TABLE dbo.doghouses
GO
CREATE TABLE dogs (
id INTEGER IDENTITY (1, 1) PRIMARY KEY
,name VARCHAR(MAX) NOT NULL
);
-- Now we want to give each dog a doghouse:
CREATE TABLE doghouses (
id INTEGER IDENTITY (1, 1) PRIMARY KEY
,name VARCHAR(MAX) NOT NULL
);
GO
ALTER TABLE dogs ADD doghouse_id INTEGER REFERENCES doghouses (id);
GO
INSERT INTO dogs (name)
VALUES
('Sparky'),
('Spot')
;
DECLARE @DogsAndHouses TABLE (
doghouse_id INT
,name VARCHAR(MAX)
);
INSERT INTO dbo.doghouses (name)
OUTPUT INSERTED.id, INSERTED.name INTO @DogsAndHouses
SELECT
d.name
FROM
dbo.dogs d;
UPDATE d
SET
doghouse_id = dah.doghouse_id
FROM
dogs d
JOIN @DogsAndHouses dah ON d.name = dah.name;
GOcomment 12y ago · link · parent
The test for celiac requires a person to have been eating regular amounts of gluten for 3 months before the test is done. When my wife is in a position such that a crumb of normal bread in her meal can cause her pain afterwards, there is no way she can eat gluten for 3 months in order to get a diagnosis by a doctor. The best she can get now is a statement that she is sensitive to gluten - but that sensitivity is enough that she can't have food cooked in the same pan as your food when you don't give any consideration to her.
So don't say this is "bullshit food intolerances" - just because you don't have to deal with it does not mean that it is not real.
comment 13y ago · link · parent
One major stopping point for us is the fact that on SQL Server we use a Case Insensitive, Accent Insensitive collation. Postgres doesn't support this, and apparently has no plans to.
We have many stored procedures in TSQL which are built around the assumption of CI,AI. Converting these will be a lot of work, but the lack of CI,AI collation would be by far the biggest pain point.
comment 13y ago · link · parent
I always thought the speed limit was there as a speed limit. I've found that in Australia, speed limits are obeyed much more than in North America, where they seem to be suggestions or lower bounds on speed. Many times in Canada I've been travelling in traffic that's doing 30 - 40 kph over the speed limit. That's enough to get your car confiscated in Western Australia!
comment 13y ago · link · parent
- The dropdown menu doesn't work well. It triggers on hover, but trying to do "hoverintent" on the iPad simply fires the click event on the button, causing the menu to appear briefly before the page navigates. - I can't even scroll at all on the demo pages. Dragging the page (to scroll) just drags the whole tab rather than actually scrolling.
comment 13y ago · link · parent
edit: It looks like FF19 is complaining about the content-type: "audio/mpeg" when changing articles. Not sure what one it is using, but it does manage to play the first article only.
comment 13y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
If you’re using a small corpus and long Markov chains, you’ll end up with lots of actual strings from the corpus, and no fake ones. If this happens, experiment with the second parameter to the constructor for the class “MarkovGenerator.”
For the authors you are using, the corpus is too small.
comment 14y ago · link · parent
Rather, they will make the current price the standard for (self-driving cars), and increase the price for (human-driven cars), thereby ensuring more money for themselves.
comment 15y ago · link · parent
comment 15y ago · link · parent
comment 15y ago · link · parent
Or sign up at the Red Cross centre when you're in there to donate blood - they'll take an extra blood sample for testing purposes.
comment 15y ago · link · parent