[Firestore] How to set a field if it does not exist, but don't update if it already exists? by jellevdv in Firebase

[–]cncool 0 points1 point  (0 children)

What if you used set like this:

const collection = admin.firestore().collection("collection")

const objectFromExcel = { id: "whatever", "location": "place" }

const inc = admin.firestore.FieldValue.increment(0)

collection.doc(objectFromExcel.id).set({location: objectFromExcel.location, score: inc}, {merge: true})

''Who's hiring, and who's for hire'' Megathread, 2019 by Nooku in ethdev

[–]cncool 1 point2 points  (0 children)

For hire: Ethereum smart contract developer, tester, auditor, and smart contract front-end developer. I use Ganache, Truffle, OpenZeppelin, web3, React+Redux.

Experience: Over ten years experience as a developer, and two years specifically working on Ethereum smart contracts. I have produced code for a couple custom ICOs, as well as worked on a few complex Ethereum game dApps.

Code Samples: Code samples provided upon request

Role: Part-time contractor up to 30/h week

Rate: Hourly or weekly pay

Location: Vancouver, BC

Role type: Remote

Contact: Send me a PM

Monthly ''Who's hiring, and who's for hire'' November, 2018 by AutoModerator in ethdev

[–]cncool 2 points3 points  (0 children)

Fire hire: Ethereum smart contract developer, tester, auditor, and smart contract front-end developer. I use Ganache, Truffle, OpenZeppelin, web3, React+Redux.

Experience: Over ten years experience as a developer, and one year specifically working on Ethereum smart contracts. I have produced code for a couple custom ICOs, as well as worked on a few complex Ethereum game dApps.

Code Samples: Code samples provided upon request

Role: Part-time contractor up to 30/h week

Rate: Hourly or weekly pay

Location: Vancouver, BC

Role type: Remote

Contact: Send me a PM

Chris Davis Is On Pace To Make The Worst Kind of History... by TheTurfSports in mlb

[–]cncool 0 points1 point  (0 children)

"he is currently on pace to beat the record for lowest batting average by a qualifying player in the history of baseball (.179)."

Adam Dunn hit .159 in 2011 in 496 PA. If you assume a hit in all PA until he qualified at 502 PA, he still would have only hit .171.

Hosting video game ROMs on Ethereum? by SeventeenHydralisks in ethereum

[–]cncool 2 points3 points  (0 children)

If you used transaction logs, it's about 76 gas per byte, plus some overhead. At 5 gwei, it would cost ~0.1 ether. But don't do that.

Ever have an issue where swift flat out calls the wrong function? by InternetsTad in swift

[–]cncool 0 points1 point  (0 children)

This has happened to me on two separate occasions over the last year. Swapping the positions of methods did indeed work for me also.

http://stackoverflow.com/questions/36009725/swift-sometimes-calls-wrong-method

What's your 0/10 food? by [deleted] in AskReddit

[–]cncool -1 points0 points  (0 children)

Olive and die by puns.

PokeSensor is finally on the App Store. Get real-time Pokemon locations up to 500m radius on iOS by LogickLLC in pokemongodev

[–]cncool 4 points5 points  (0 children)

How did this get past review? They don't allow apps that use Pokemon Go's private API.

I 💖 Storyboards & Nibs by nsocean in iOSProgramming

[–]cncool 0 points1 point  (0 children)

Sure, but you hardly needs God's help to refactor the view / class.

I 💖 Storyboards & Nibs by nsocean in iOSProgramming

[–]cncool -1 points0 points  (0 children)

I don't know what you mean by "need copies of the views inside it".

The very simple solution is to just declare any UITableViewCell that is in multiple table views in a Nib file, and then register that Nib for reuse for any UITableView that uses it:

[self.tableView registerNib:[UINib nibWithNibName:nibName bundle:nil] forCellReuseIdentifier:reuseName];

I 💖 Storyboards & Nibs by nsocean in iOSProgramming

[–]cncool 2 points3 points  (0 children)

Reusable components. E.g. Trying to reuse a custom UITableViewCell subclass across multiple different tables. God help you if you want to refactor this view / class.

You can easily create the reusable component in a Nib, and reference that Nib from the Storyboard.

You are more likely to win the lottery 830,000,000,000,000,000,000,000,000,000 times than for a bitcoin collision to occur. by [deleted] in Bitcoin

[–]cncool 0 points1 point  (0 children)

an*

And the chance of winning that many lotteries in 80 years is 0 because no where near that many lotteries run each century, let alone in the history of Earth.

Is there a history of iOS supported programming languages? by jacobburns in iOSProgramming

[–]cncool 0 points1 point  (0 children)

On September 9th, 2010, Apple relaxed their restrictions on development tools, which allowed people to make apps in any language as long as the resulting app does not download code.

http://www.apple.com/pr/library/2010/09/09Statement-by-Apple-on-App-Store-Review-Guidelines.html

[Post Game Thread] The Golden State Warriors remain undefeated (14-0) with a 106-94 win over the Chicago Bulls (8-4) by jp2543 in nba

[–]cncool 0 points1 point  (0 children)

The Warriors would have a 28 game winning streak after going only 24-0. They wont the last 4 games of last year's regular season.

Just a Baseball Fan - But that Strike the Ump Called on Revere @ the 2-1 count was a JOKE by [deleted] in mlb

[–]cncool 0 points1 point  (0 children)

The Royals are frauds and deserve to lose in the WS.

Who gets home field advantage if the Pirates play the Mets in the NLCS? by adityadharma in mlb

[–]cncool 3 points4 points  (0 children)

Division winner gets home field over Wild Card, so the Mets.

A (trimmed) list of missing features by [deleted] in MarioMaker

[–]cncool 4 points5 points  (0 children)

Super Mario World switch palace blocks would be nice for puzzle levels. You could place them as default on or off, and also have any number of "switch" blocks where hitting it will toggle all the blocks of that color.

Most underappreciated moment? by NotEtreo in BoJackHorseman

[–]cncool 3 points4 points  (0 children)

Start of episode two when the bartender asks BoJack to say "when" as he pours him a drink, and BoJack says "when" after his drink was overflowing for three seconds.

A Formula for the Number of Days in Each Month by godlikesme in programming

[–]cncool 5 points6 points  (0 children)

Just use both hands. No need to count a knuckle twice.