I asked Google during an RFP when I can use my paying personal workspace for things like reminders or Google Home (and invite my family). It was "right the corner". The corner is now what, 5 or 7 years away.
This is a company I am with for a bit less than 20 years, but I will leave.
I’ve seen another variation of this at work: we have two domains registered with G-Suite, Google professional services ghosted on a consolidation process, and this means that only one of those sees the licenses. They block all access to services when you’re logged in to the other domain, even just to view a third-party’s shared document unless you buy a second license for the same person. This has been a slow gravitational win for Office 365.
I suspect this is because they can't use Workspace data for improving the models.
Ans:
// This function will reverse the order of a vector.
void reverse(std::vector<int>& vec) {
std::deque<int> deq;
for (int i = 0; i < vec.size(); i++) {
deq.push_back(vec[i]);
}
for (int i = 0; i < vec.size(); i++) {
vec[i] = deq.front();
deq.pop_front();
}
}
This is a clever hack because it avoids the need to write a custom function for reversing the order of a vector.
But it did write a custom function?! q={v[0]}
q={v[0],v[1]}
q={v[0],v[1],v[2]}
Popping from front... v[0] = v[0]; q={v[1],v[2]}
...
Yeah, so clever it's doubly reversed> Me: Write a golang function to get a http request, following the API of the get function in Python requests library.
> Bard: Sure, here is a Golang function to get an HTTP request with an API similar to the requests.get() function in Python:
It produced a function that takes url and parameters. Decent first approximation.
ChatGPT has trouble with this (when I tried a couple months back)
There is a link to "Learn More" which is also ... eventually a link wonders off somewhere ... nope some wankery about Lamda thingie. [random futile clicking]
It's the basics kids. No matter how far up your arse you are about your funky technology, do enable people to find the bloody thing easily, from all related pages. If you are a little rusty on spelunking then have a look at WAIS and Gopher (int al) for how to do it properly.
Obviously I can find it because I'm a fucking IT consultant. Why not make it easy for everyone?
But, the code for FPDF was incorrect, and pypdf2 is so old that even the deprecation warning causes an error. I fed the FPDF error back in and the output was still wrong, but close enough that I could figure out an answer. Not faster than just googling for sample code though.
WTF
Italy disciplined OpenAI on GDPR concerns [1]. Google may not want the grief.
A> Sure, here is the FizzBuzz problem in COBOL:
IDENTIFICATION DIVISION.
PROGRAM-ID. FIZZBUZZ.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 COUNT PIC 9(02).
01 MESSAGE PIC X(08).
01 BLANK PIC X(01) VALUE SPACES.
PROCEDURE DIVISION.
INITIALIZE.
MOVE 1 TO COUNT.
PERFORM UNTIL COUNT > 100
EVALUATE COUNT
WHEN 3
MOVE "Fizz" TO MESSAGE
WHEN 5
MOVE "Buzz" TO MESSAGE
WHEN 3 AND 5
MOVE "FizzBuzz" TO MESSAGE
WHEN OTHER
MOVE COUNT TO MESSAGE
END-EVALUATE
DISPLAY MESSAGE
ADD 1 TO COUNT
END-PERFORM.
GOBACK.
This program prints the numbers from 1 to 100. However, for multiples of 3, it prints "Fizz" instead of the number. For multiples of 5, it prints "Buzz" instead of the number. And for multiples of both 3 and 5, it prints "FizzBuzz" instead of the number.Here is an example of the output of the program:
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
Disclosures:1. I work for Google, but not on Bard.
2. I don't know COBOL. Would be good if someone can check if the code is legit. I get a feel that it checks for the numbers to match (3, 5), not be divisible by 3 and 5.
By the way, GPT 4 when asked to critique this listing immediately found the problem, and produced a corrected version as a bonus.
Bard feels like GPT 2 to me. Even GPT 3.5 can solve COBOL FizzBuzz correctly.
PS: Just to check that GPT 4 is understanding the problem and not just regurgitating something it saw, I asked it to solve the problem in different ways, such as unrolling the loop or avoiding the use of the MOD function. It can do that too.
What are the programming languages supported, for example?
Python, JavaScript, Java, C++, C, R, Ruby, PHP, Swift, Kotlin, SQL, HTML, CSS
C++
Go
Java
JavaScript
Python
TypeScript
Google Sheets functions
C
C#
R
Swift
Kotlin
PHP
HTML
CSS
SQL
Bash
Perl
Ruby
Lua
Rust