Search This Blog

Disclosure

Everything Tech Review is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to products on Amazon.com. Amazon and the Amazon logo are trademarks of Amazon.com, Inc, or its affiliates.

Tuesday, July 26, 2022

Right to Repair for Appliances - Samsung Fridge

We bought a Samsung fridge model: RF060BEAESP and the ice maker has had several issues in addition to the cheap quality plastic shelfs that go on the door... Additionally, every 6 months we need to replace the filter for the ice machine... Which easily costs $30.

Samsung has a site called samsungparts.com which sells replacement parts for their appliances. Unfortunately, some of their prices are absurd. 

Download the manual and quick start guide too!

They have pages full of warnings about operating the fridge... there are certainly parts which require an expert such as the compressor and the power converter... but with that being said there are plenty of simple fixes and repairs that a layman can do. 

They have pages full of warnings about operating the fridge... there are certainly parts which require an expert such as the compressor and the power converter... but with that being said there are plenty of simple fixes and repairs that a layman can do.


In their official manual they recommend that buyers go to their affiliate's site samsungparts.com for replacements or to their local home. While it has a lot of parts and the ones we need... the prices are quite high. 

Water Filter:  DA29-00019A/DA29-00020B for example.

https://www.samsungparts.com/Products/Parts_and_Accessories/PID-DA29-00020B.aspx?oldpart=DA29-00019A&model=RF260BEAESP

Water Filter:  DA29-00019A

Officially this costs $45, there are 3rd party companies which sell similar filters under the same model name but Samsung of course says do not use a competitors product! 
Officially this costs $45, there are 3rd party companies which sell similar filters under the same model name but Samsung of course says do not use a competitors product!

Doing a quick search on walmart.com, I found that you can get a set 3 or even 4 filters for well under the price for a single official one. Now imagine that a 3rd party can supply you with 3/4 compatible filters for around $35.95 that would last you 18 months (assuming you only switch it twice a year) vs the OEM filter for $137.95 for the same 18 month period. Savings of $102 dollars! 


Doing a quick search on walmart.com, I found that you can get a set 3 or even 4 filters for well under the price for a single official one.

Ever wanted to know how to reset the ice maker? Samsung doesn't mention this in the 80 page manual, but after sleuthing online, I was able to find that it is quite simple... Just seems like they hid it from us so we would be forced to call an expensive technician... 
While it isn't in the manual... by doing a google search it came up here

It's a little reset button right under the ice maker, press and hold for up to 10 seconds or until you hear a chime... and the motors turning... if you press it more than once, it will confuse the ice maker and you will end up with an overfull ice bin the next morning. 

It's a little reset button right under the ice maker, press and hold for up to 10 seconds or until you hear a chime... and the motors turning... if you press it more than once, it will confuse the ice maker and you will end up with an overfull ice bin the next morning.

Door Bins: 

DA97-12650A for the right unit model

DA97-12657A for the left unit model

https://www.samsungparts.com/partslist.aspx?Catalog=Parts_and_Accessories&Category=RF260BEAESP


Door Bins:   DA97-12650A for the right unit model  DA97-12657A for the left unit model

The cost for replacing is around $100 per unit, and a fridge normally has 3 on each side... that's a lot of money for a piece of plastic! What they don't warn you about is that you can barely put anything in the drawer without it sliding around and/or cracking the plastic... 

Basically, make sure to not put heavier items in each bin. 

Obviously, I'm not as concerned with replacing this plastic piece with one from another manufacturer as a would be with a water filter. 

Door Bins:   DA97-12650A for the right unit model  DA97-12657A for the left unit model

and don't even ask for a diagram or more detailed information... this is as in depth as the instruction manual goes (80 pages) 

Diagram of a samsung fridge


and if you try clicking "Find Diagram" here, it will result in a page not found error.

and if you try clicking "Find Diagram" here, it will result in a page not found error.

Overall, the fridge isn't Right to Repair friendly and I wouldn't recommend it. If you already own the fridge and live in Israel or outside the US, use this tool to look up replacement parts instead! 






Thank you for reading, please share the article and follow me on twitter for more resources and guides!

What are Template Functions and Classes in C++ and how can I use them?

C++ Project

C++ gave us a new superpower which is generic programming! We an make a class and/or function which can handle any data type a user throws at it. 

Template Classes: 

Note that there are some restrictions to this: you need to always write template <typename  T> before each function (in addition to the top of the file), or template <class T> also works instead. T is an arbitrary type, feel free to rename it with something else but keep it consistent. In addition, C++ handles template classes during the pre-processing stage. This means that we need to put the template class in a header file (.h) in order for it to be recognized and dealt with by the compiler. 

Here is a sample I built which uses the Stack Data Structure implemented via a Linked List. You can also implement a stack in another way such as via an array, for example. 

https://github.com/avipars/CS-Resources/blob/main/cpp_workshop/Stack_Linked_list.h

It is up to the compiler to convert the template to the data type the user/developer wants. 

For example, Vector is an STL container that does in fact use templates! When we call vector<int> data (14,5); , under the hood the vector template class is used, the data type becomes int from T in all the functions and data members. 

Note that if you have vector<int> and vector<float> in the same main.cpp file, it will work perfectly fine. For every different data type used, the template generates a new class to handle it. This also means that if we modify the vector<int> array, it doesn't change the vector<float> array. In addition, all the data members are kept separate to each respective type. 

In the following example, you can see that we can make a less-generic template given a specific type. This can come in handy if we have a generic template function or class but want to handle a given data type differently. In this case, the compiler will try to first go to the specific implementation (if it exists) before defaulting to the generic one. 

#include<iostream>

using namespace std;

template<class Type>

class A{

Type a;

public:

A(Type a);

};

template<>A<float>::A(float a){

    a=12.5;

    cout<<a<<endl;

}

//template for int type specific

template<>A<int>::A(int a){

    a=8;

    cout<<a<<endl;

}

template<class Type>A<Type>::A(Type a1){

this->a=a1;

cout<<a<<endl;

}

int main(){

int a=2;

float b=3.5;

double c=7.5;

A<int>ob1(a);

A<float>ob2(b);

A<double>ob3(c);

    return 0;

}

//output: 8

//12.5

//7.5

In this case, we provided a specific template for int and float values, but not double. So the compiler correctly used our specific functions for int and float... but the generic function for double. 

Template Functions:

In your main.cpp file, you can also have template functions! In addition, they can have multiple parameters. It comes in handy if you want to save on writing code to handle all the different possible types that would need a swap function. They operate similarly to template classes...

template <typename A> //swap should occur between two variables of the same type

void swap(A &a, A &b) //by reference so that we actually modify the variables

{

    A temp = a;

    a = b;

    b = temp;

}

template <class A,class B> //in this case we can accept two different types

double test(A x,B y){ //i decided to return a double to have the most accurate result, but you can return type A or B as well

    return (x+y)/2;

}

int main(){ //main function to test the actual template implementation

    int a = 1;

    int b = 2;

    swap(a, b); //now we call it with 2 ints

    cout << a << " " << b << endl;

    cout << "test" << endl;

    double d1 = 1.0;

    int d2 = 2.0;

    cout << test<double,int>(d1,d2) << endl;

    return 0; }


Thank you for reading, please share the article and follow me on twitter for more resources and guides!

Sunday, July 24, 2022

How to get your site noticed and indexed by search engines!

Search Engine

Search Engine - Dall-E

 First, make sure to register for Google Search Console, Bing Webmaster Tools, and Yandex Webmaster as the domain admin. There are some other search engine portals such as Baidu and Petal which might be worthwhile adding... but certainly not necessary. Also note that if you live outside of the Great Firewall of China, you might have difficulty signing up. 

Make sure to add a property for all your domains and subdomains as well as the http and https version of you site. Next, also add www. and the non-www version of your site. This way, you can ensure that all variants of your site are known to the search engine crawlers. 

You should also redirect to https whenever possible and chose either www or the non-www variant to be the standard/default going forward. You should also be able to indicate that in the search console of google, bing, yandex, etc. That should bring you to 4 different versions of your website (from 1). 

Google obviously is the largest search engine, While Bing is trailing, they also operate the backend for the Yahoo search engine... and it's managed in their same portal. Yandex is popular in Eastern Europe, while I have heard that DuckDuckGo uses Yandex and Bing as partners.. so getting your site on those webmaster portals won't hurt. Brave Search currently isn't letting webmasters submit links... 

Each site will require some form of confirmation that you do in fact own the domain name. Sometimes, they want you to add a DNS entry, add a meta tag to your html page, or upload a file to your domain with a long string of text... 

I prefer usually via the meta html tag or DNS record. Note that some of these cover the whole domain and others just count for the subdomain and even the current page. I know that google will remove your site form the console if you remove the verification method after being approved. 

Once you confirm ownership, make sure to get your sitemap file recognized. You should make it in your main directory like this:  example.com/sitemap.xml. Then on each webmaster portal, there will be a section to link to your sitemap. If you use blogger, they have some special sitemaps which are generally accepted too (as well as RSS Feeds):

example.com/atom.xml?redirect=false&start-index=1&max-results=500

If your site is static, and you don't want to have to manually add links to your sitemap... there are a few actions on github which might do the job such as this

Next, check your robots.txt file (should be in your main directory - example.com/robots.txt) and make sure it's not going to block the indexing bots from webpages or directories  you want to appear in search results. You can also reference your sitemap here! If you do not have a robots.txt file, now is the time to create one

Don't forget to add this to the end with your domain and sitemap link (everything in bold): 

Sitemap: https://www.example.com/sitemap.xml

This allows the search engine web-crawlers easy access to your important pages! 

If you use images, make sure to add a descriptive alt tag which helps for both accessibility and SEO! 

Backlinks are also super important, it tells these search engines that your site is useful and reputable. Make sure to get your link on other sites legitimately, maybe by offering to guest post or if you have a profile... there might be a field to let you link to your site etc. 

For starters, try submitting your relevant links to subreddits, hackernews, indiehackers, pinterest boards, etc. 

Thank you for reading, please share the article and follow me on twitter for more resources and guides!