Saturday, November 4, 2023

AI: Detecting phone number and email in messages

In e-commerce applications operating on a marketplace model, a significant challenge is the exchange of phone numbers and email addresses through messages between vendors and customers. This allows them to bypass the platform, resulting in a loss of commission revenue for the site. Users may employ inventive methods to evade standard detection algorithms that rely on regular expressions, such as spelling out numbers, e.g. "fivethreetwo" instead of "532". To develop a comprehensive list of such techniques, you could prompt ChatGPT with: 'I have a webpage with a messaging feature. I want to prevent the inclusion of phone numbers and emails in messages. What are some ways users might try to circumvent my safeguards?'

Thursday, April 13, 2023

Adventures with chatGPT

Recently I came across a surprising result with a short C++ code and asked GPT4 for guidance, it performed well:

Me: On visual studio 2022, when building in debug x86, why is the variable "a" printed as strange values like 4294967296 in the following c++ code: 

#include <stdio.h>
int main() {
    for (unsigned long long i = 0; i < 5; i++) {
        unsigned long long a = i;
        printf("i = %u, a = %llu\n", i, a);
    }
    getchar();
    return 0;
}

Thursday, March 23, 2023

Why are your grades important?

Below is the formula used by TÜBİTAK to rank and filter job applicants before an interview:

If the score that comes out of this equation is less than 3.2, you will not even be considered. 

Let's say your Turkish university exam rank was 50000. Than you would have to have a CGPA of at least 3.2 - 10000 / 50000 = 3.0 (75%). Otherwise it won't matter how good you are in other aspects. The lower your university entrance rank, the higher your CGPA has to be. If on the other hand your rank was 500, you wouldn't need to worry about CGPA because 10000/500 = 20 which satisfies this criteria more than enough. As you can see, the university entrance exam rank has the greatest effect. However, that stage is long past for most of you, so now you should concentrate on your CGPA.

If your score is above 3.2, you are added to the the ranking list. For example, if five people are to be hired, typically the top 4×5 = 20 applicants (ranked by their scores) are selected for interviews. If, let's say, your score is 3.3 but there are more than 20 people with higher scores, you will still not be called for an interview.

If you make it to the shortlist, you move on to the interview stage, where your engineering and communication skills become more important than your CGPA. But to get the opportunity to demonstrate your skills, you need good grades.

To maximize your chances of getting job interviews, keep your CGPA above 3.0, preferably 3.5.