Friday, December 17, 2021
Monday, December 06, 2021
Regularization
Regularization is symptomatic remedy for overfitting. But it does not solve the real problem. The real problem is we should not trust our loss function that much.
Wednesday, December 01, 2021
Click to listen
Run following command in js console if you want make web sites audible with a click
document.getElementsByTagName("p")].map(p => p.addEventListener('click', e => speechSynthesis.speak(new SpeechSynthesisUtterance(e.srcElement.innerText)), true))
Sunday, November 28, 2021
Web storage
One of the interesting capability of javascript is, it allows you to store data on client side. The only thing you need to do is storing your data in key value-string pairs.
localStorage.setItem('key',JSON.stringify({"data":"object"}));
The limitation however is the size is 5mb at most.
Tuesday, November 16, 2021
Time Zones
Our parents were arranging their schedule according to sunrise and sunset. They are still consistent in their habit. However, in our generation we are unable to sleep before 12pm for most of the time. Thus, we don't need to arrage the time according to sunset and sunrise. Instead whole world could be in single time zone say GMT +0. In this case we don't need to convert our time information while communicating. For example it would be 16 pm for everywhere whether it is sunset or sunrise. I will not change time zone if I travel. The time is the same time and actually absolute value does not matter.
Sunday, November 14, 2021
A linear regression on Turkish Lira
I have used two pieces of linear regression breaking at the point of govermental change. Clearly there is a huge slope difference between two eras.
https://github.com/halidziya/turkish_lira
Thursday, September 23, 2021
Saturday, August 14, 2021
Wednesday, August 04, 2021
Set custom debugger for python
You can set PYTHONBREAKPOINT to set behaviour of breakpoint function. For example ipdb.set_trace.
More Info
Thursday, July 22, 2021
Computational Complexity
Even that the speed of a program is fast enough production it may not be fasy enough for experimentation. Because, you may need to many trials before settling the final configuration.
Friday, July 09, 2021
Blogger Phone App
Even that web interfaces are universal, still dedicated phone app from blogger makes it easy to post from phone.
Wednesday, July 07, 2021
x.99
We see x.99 prices everywhere. It is hacking human perception. Everybody does it does not mean that it is fair. I got an idea to develop a chrome extension that shows prices with x.99 by adding 1 cent on it.
Saturday, June 19, 2021
C vs C++
Supposedly compatible to languages create problems in some cases. Recently I have faced cmath and stdlib do not work with each other. The compiler creates all sorts of strange errors.
Tuesday, June 01, 2021
Atan Sozler
Paslayan demir is tutmaz
Katlari diken, gulmeyi sever
Demleye demleye gel, olur
Balik yiyen bastan asagi kokar
Her et kusbasi yenmez
Yorgunsan yere ayagini uzat
Kupun darsa, sirke satma
Sakla zamani, kiymetli her ani
Katlari diken, gulmeyi sever
Demleye demleye gel, olur
Balik yiyen bastan asagi kokar
Her et kusbasi yenmez
Yorgunsan yere ayagini uzat
Kupun darsa, sirke satma
Sakla zamani, kiymetli her ani
Friday, May 21, 2021
Git recover lost rebase
1. git reflog
First identify the lost commit
2. git diff master commithash --name-only
Check the differences in the files
3. git checkout commithash filepath
Pick the one that you need
Sunday, May 09, 2021
Get Json of Django Object
I found unnecessarily difficult to get json from django model object. Here is my simple solution to get that done.
def get_json_object(obj, fields): return {f:obj.__dict__[f] for f in fields}
Friday, May 07, 2021
Thursday, April 08, 2021
No Real Style Transfer
Neural Networks are used to produce style transfer. But discrete structures are more difficult to generate. Here is my example. Does it resemble any picture to you?
Monday, February 15, 2021
Django + NGINX + USWGI
I was using "app" in the config, that was the reason why it did not work. Now converting to "application" it works.
module=mysite.wsgi:application
Sunday, January 31, 2021
Subscribe to:
Posts (Atom)
AI
Despite the benefits of AI we are starving for humanity.
-
It is difficult to create robot that cleans our arbitrary dirty dishes. However , if we put some digital information on dishes (special des...
-
Our parents were arranging their schedule according to sunrise and sunset. They are still consistent in their habit. However, in our generat...
-
Robot Particles Display: Current display devices can show any image for a very cheap price. But it will be very intresting if someone tr...