I gave it two tries, GPT-4 was much better in both cases. Tried with two Leetcode questions. It came back with an empty response for one, and provided a worse code (O(n2) solutions when it can be done with linear time) for the other one.
GPT-4 on the other hand provided a good answer for both questions. Also I guess the UI is buggy w.r.t code formatting, it things the following line is a code and switches to a code block.
```
You are given an array prices where prices[i] is the price of a given stock on the ith day.
```
The only downside for GPT-4 for me right now, is its slowness.
GPT-4 has ingested all of Leetcode, you can literally just type "leetcode 100 python" and it will regurgitate a response for you.
Only exception I found is with some of the Leetcode Premium questions, you might have to actually type in the problem statement, but it's still very likely that multiple solutions have been ingested from GitHub and elsewhere.
I suggest you try enabling "Ignore search results" from the model dropdown for these types of questions. The web results can be distracting for the model for Leetcode-type questions.
I see you've had to suggest this a few times in this thread, and in my experience I would agree with the suggestion. I wonder if you can have a simple gpt model decide automatically when ignoring search results would improve the result and do it automatically.
```
It seems like you want to find the maximum profit that can be achieved by buying and selling stocks, with the constraint that you can only make at most two transactions. Is that correct?
Could you please provide some example input and output to help me better understand your requirements?
```
I also tried a more basic prompt, but the output is not what I'd consider good code.
Can you maybe share some examples where we can see how it exceeds GPT-4's capabilities? Thanks!
In my own RAG implementations in the industrial sector, I've found it effective to first have the AI decide whether it needs to search at all. If it doesn't, the answers are much better.
Just tried a few languages and there seems to be a problem with German speech to text. When I say "Hallo" it just thinks I said "Untertitel der Amara.org-Community" :-)
English and Spanish seemed to be functioning OK though, but I really wanted to test my German.
Thanks for the comment. Sometimes if you toggle the microphone quickly without saying anything, it will halucinate something. If you could, is there any chance you could try again in German and let me know if it's still not working?
No, still not working. Also tried a bunch of other languages and they all seemed to work except Turkish, which also spits out something related to subtitles...
I seem to recall that hijacking the back button goes back to the 1990's. I suspect some of the ways in which it was done (like with naive redirects) probably don't work today, but the annoying effect has been there for eons.
I don't think you are. I think early versions of the problem happened because the website did a redirect: x.y.com/ would sand you to w.y.com/ and your browser would stupidly remember that as a user navigation. Your back button from w.y.com would take you to x.y.com, which would perpetrate the redirect. The fix for that is not to enter redirects into the back history, only user-initiated navigations.
Congrats, very well done! What was the laser doing the cutting and engraving?
I loved the video format, reminded me of the Primitive Technology channel where he just gets out of the way and lets the work itself (plus closed captions) do all the talking.
That's why I just middle click to open everything on a new tab nowadays. Back button still works 90% of the times, but when it's hijacked it's incredibly annoying, and I have plenty of monitor width for the tabs.
Longpress on iOS Safari gives you a menu that lets you open a link in the background, which is essentially open in a new tab. I use it all the time, e.g to work through the HN front page selecting some comment pages to read later
I wish I could say thanks, but when I tried it out just now, I realised that I have seen it many times — trouble is, it's labelled in my mind as "that annoying popup I keep triggering by accident, how do I disable it?"
Still, have a metaphorical cookie: even though I don't like the thing, sharing knowledge kindly is always good :)
If nothing else, now you know what behavior was triggering the thing you don't like. Maybe now you can start to make it only happen deliberately, which might make it less annoying.
Another dark pattern is hijacking back to move you to the 'front page' of the site. Like twitter, get linked to a tweet and then the back button takes you to your feed, which absolutely nobody requested.
I'm surprised to see this from Instructables (Autodesk). If you right-click the back button you'll see that it did four redirects and you can click the 5th to get back.
Single page apps don't require a frontend router and the same can be achieved by unconditionally sending a redirect from the server side for any request as long as you also hook into the "beforeunload" event in the browser.
We were looking for something that felt approachable and fun, magical but not mysterious. After trying a bunch of different things, this is where we landed.
> So if you’re writing code and are trying to use the time 00:00:00 to represent “no time”, you will be wrong in these countries.
Well, obviously using `00:00:00` as no-time is a terrible idea, but isn't that statement just wrong? If it's used to represent no-time, it would actually have a very low chance of doing what it's supposed to do in those countries, but fail all the time at all other time zones.
FogBugz calculated “daily task” times based on the site’s time zone. If this was set to a timeline like Chile, the daily tasks processor would crash in a loop, until the next day, which did have a 00:00:00. This caused horrible alerts to plague the systems engineer on call.
As a speaker of fairly standard British English, I would say they are homophones; I tried but couldn't find any natural way in which I could pronounce them differently.
They are identical. I think he was making a distinction between {week, weak} on one hand and {wick} on the other (but I was also initially confused by the way he put it). This is a big hurdle for native Spanish speakers as well, because i in Spanish is always pronounced as "ee". There seem to be a lot of embarrassing word pairs around these vowels; sheet, beach, etc.
GPT-4 on the other hand provided a good answer for both questions. Also I guess the UI is buggy w.r.t code formatting, it things the following line is a code and switches to a code block.
``` You are given an array prices where prices[i] is the price of a given stock on the ith day. ```
The only downside for GPT-4 for me right now, is its slowness.