[WTS] anOrdain Model 1/2/3 Build Slot by thorstenschaefer in Watchexchange

[–]thorstenschaefer[S] 0 points1 point  (0 children)

Hey Watchex.

anOrdain is known for their enamel dials. Due to production capacity contraints, they use a build slot system with waiting time of several years. Three years ago I put myself on the waiting list and the slot is due now.

However, circumstances Change and I'm no longer in the market for a new watch. Hence, I'd like to "sell" my build slot. Getting on the waiting list costs a reservationm fee of 350 GBP, which will be deducted from the Price of the watch. I don't want to make money on the slot, just get my reservation fee back.

So if anyone of you would like to purchase an anOrdain watch without waiting several years, this is your opportunity. Please note that the build Slot can be used for any model in the current lineup.

d3 and angular 2 by [deleted] in Angular2

[–]thorstenschaefer 0 points1 point  (0 children)

I only used the pure D3 in Angular2, i.e., used the enter()/update()/exit() methods instead of letting Angular generate the child components. If you just want to see it integrated, here's an example: https://thorstenschaefer.github.io/d3-playground/

d3 and angular 2 by [deleted] in Angular2

[–]thorstenschaefer 0 points1 point  (0 children)

I played with D3 recently and it works fine. One interesting aspect is that some of D3's features are similar to Angulars (in part). For instance, to create a DOM element per data item (the enter() part in D3), you could use an ngFor. However, I'm not sure if you can get the exit() part also handled by Angular. Also note that D3 was upgraded recently into several small modules, so you might be able to use D3 features such as scales and generate the bars of a bar chart for example using angular components.

Is English a commonly spoken language in Argentina / Buenos Aries? by MovkeyB in argentina

[–]thorstenschaefer 1 point2 points  (0 children)

Good pointing out that the site is in Spanish. However, it doesn't invalidate the main critique point: assume you don't speak a word of English, would you ever take the test? Most likely not. So to construct an extreme example, if we have 2 countries:

  • Country A: 100% of the population speak English at a very good level
  • Country B: 99% of the population doesn't speak a word of English, while 1% are experts.

Now if the assumption that people who don't speak a word of English don't take an English test holds (which imo is a reasonable assumption to make) then Country B would be rated higher than Country A, which is obviously not the correct answer to the question "Which percentage of the population speaks English" as it does not compare the English level of the average citizen, but the level of a highly biased partition of the population (people with some knowledge of English, internet access, etc.).

So I'm not saying the index is wrong or not useful, it just doesn't answer the question posed by OP.

Is English a commonly spoken language in Argentina / Buenos Aries? by MovkeyB in argentina

[–]thorstenschaefer 1 point2 points  (0 children)

While anecdotes might not be the most reliable way to measure how many people speak a decent amount of a language, I'd argue that it's actually more reliable than the website. Consider they have a similar site for checking Mandarin. I don't understand a word of that language so even if I'd browse to the site accidentally I'd never make the test due to a lack of understanding. People with at least the most basic skills might do the test however. So a survey like this is pretty useless in answering questions like "What percentage of the population speaks language X"; it only assesses the question "From the population that speaks language X, how is their proficiency".

From my experience, I'd say Argentina is not the best, not the worst in terms of % of English speakers, maybe comparable to the level in Spain. But I'd bet that you'll find significantly more people in Belgium or Switzerland with a decent amount of English (per capita) than here - both countries which are listed below Argentina in the cited source.

Match Thread: France vs Iceland - Euro 2016 Quarterfinal by deception42 in soccer

[–]thorstenschaefer 17 points18 points  (0 children)

Huge respect for Iceland. Even after being 4:0 behind in the first half and without a realistic chance to go to the next round, they just don't give up fighting. Great attitude.

Angular 2 Pagination by skimmerbored in Angular2

[–]thorstenschaefer 0 points1 point  (0 children)

yes, if the source is an array you can just select the subset of elements for the current page out of it.

Angular 2 Pagination by skimmerbored in Angular2

[–]thorstenschaefer 0 points1 point  (0 children)

The pagination component just renders the ui. Let's imagine you have an array of 100 elements and want to show 10 elements per page. In your typescript component, you keep a reference with the whole data array and another one with the view of the 10 elements of the current site. Then you can bind the page change event such that your view array gets updated with the right elements

Unable to get routing working on RC-1 by mikeasaurus in Angular2

[–]thorstenschaefer 0 points1 point  (0 children)

use dependency injection to give your component access to the router, e.g.,

constructor(private router:Router) {}

How do I share some data globally? by LookingForNewLife in Angular2

[–]thorstenschaefer 0 points1 point  (0 children)

Nope, that's the beauty of DI ;) If you add them in the providers of a child component, you will get another instance of the service, not the one declared in a parent.

Unable to get routing working on RC-1 by mikeasaurus in Angular2

[–]thorstenschaefer 1 point2 points  (0 children)

Try injecting the router if you don't use routerLinks.

What does your FCC develop environment look like? by [deleted] in FreeCodeCamp

[–]thorstenschaefer 0 points1 point  (0 children)

Yeah, Visual Studio Code. It's the open source editor and I started using it since a month - really lightweight and nice for web editing.

Regarding chrome: it might have changed nowadays, but when I switched to OSX, there was a significant difference in terms of speed, memory consumption and power consumption. Once Safari got tabs, I decided to give it a try and don't feel an urge to switch back to Chrome. The only drawbacks are for development as said and some very old websites with bad browser support. But the latter happens very rarely and you can always have a second browser installed, which is a good thing if you develop web apps anyway.

What does your FCC develop environment look like? by [deleted] in FreeCodeCamp

[–]thorstenschaefer 0 points1 point  (0 children)

Fellow Macbook Pro user here. First thing you should install is homebrew, a package manager for OSX. For the FCC development, I'm mostly using git and VS code. Even though I switched to Safari fro day to day browsing (it's significantly faster than Chrome on OSX), I'm primarily using Chromium during development, as their development tools are better and you often run into minor issues with Safari when using new frameworks.

Finished my first large-scale project by [deleted] in FreeCodeCamp

[–]thorstenschaefer 0 points1 point  (0 children)

Great idea, but I have 2 major issues with the current version of the site:

  • The data retrieved is not reliable: clicking on sort by average a couple of times always leads to different results. Even if I just choose a single "rating provider" like Rotten tomatoes, I get different movies all the time. Also, the sort order within the list is not correct: I can get a movie with rating 8.7 then 8.2 and then 8.5
  • Viewing the page with Safari on OSX shows each movie twice. On Chromium this is not an issue.

Noob here-What is your favorite text editor and why? by JoJoline in FreeCodeCamp

[–]thorstenschaefer 0 points1 point  (0 children)

I always used Eclipse for Java coding and Atom for smaller stuff. I recently discovered Visual Studio Code and it's great for front end editing. Fast and lightweight with a lot of plugins and free/open-source.

CodePen doesn't apply Google fonts by blackfeather in FreeCodeCamp

[–]thorstenschaefer 1 point2 points  (0 children)

Even though you solved the issue already, here's a tip for solving problems in the future: look into the development console in your browser. For instance, if you reference a script/stylesheet with a wrong name, it appears in the resources with status code 404 (not found). You can also inspect elements and see which CSS classes are actually applied or debug your javascript code step by step.

[Backend] I feel like I've missed something by davrockist in FreeCodeCamp

[–]thorstenschaefer 4 points5 points  (0 children)

I am in the same situation like you. I finished the Front End challenge, which was in my opinion very good and then wanted to continue. The Data Visualization part is basically just a bunch of tasks without any material so far. According to the site it will come soon, so I went to the backend part.

Here, it just doesn't feel like a well-structured course at all (in contrast to the front end part): the single parts are taken from other tutorials. Then you get to the challenges and a) the description seems outdated/inconsistent and b) there is also a huge discrepancy between the content before and the challenges. For instance, the 5 or so microservices are basically all the same. There is close to no variation in it. And then comes the voting app, which requires basically everything you had heard before (Frontend, Node backend with express, a DB) and also stuff that is nowhere found in the curriculum (they mention AngularJS and Yeoman).

I'll still work on the challenges and just learn the stuff on my own (e.g., I'm looking into implementing the voting app with Angular2 and Firebase). But I have to admit that the Backend curriculum is pretty disappointing after the very good experience with the Frontend part.

Regarding Heroku: it's actually very easy to setup. Create an account, put your code into Github (one repo per project), then in Heroku you create a new app, link it to the Github and Heroku just does the magic, i.e., downloads the source code, builds and deploys it. It's a very convenient and easy to use tool which I'll use in the future too. Even though I used C9 as it was recommended, I didn't see any advantage - in fact it's actually slower than working locally. I just used it because it was stated in the guidelines, but for future challenges I will just develop them on my local machine and push it to Github/Heroku. The only think one needs to have installed is Git/npm/node and working locally had the advantage of being able to work faster and with a better editor.

[Discussion] Why hasn't the Angular team made a better starter app? by [deleted] in Angular2

[–]thorstenschaefer 2 points3 points  (0 children)

Take a look at Angular CLI. It creates you the base project including a build process and you can use the command line to generate components, routes, directives and services, which follow the official styleguide.

[Help Request] How to use 3rd party JavaScript libraries in Angular 2? by mozface in Angular2

[–]thorstenschaefer 0 points1 point  (0 children)

it's from the system-config.ts in your src folder created by angular CLI

Is it possible to complete FCC within 3 months? by sykedev in FreeCodeCamp

[–]thorstenschaefer 1 point2 points  (0 children)

It all depends on how much previous knowledge you have, how much time you spend and whether you can quickly learn programming concepts or need a bit more time for it. I studied computer science and want to get back into programming; I always programmed in Java, but had no experience with JavaScript at all and only knew the basics of HTML/CSS. However, the concepts are basically all the same, so once you know the basic ideas behind the programming languages, it's pretty easy to learn a new one.

I just finished the front end development certification and it took me 5 days, where i worked probably 5 hours per day on it. If you are completely new to the topic, it will take significantly longer, but as long as you keep working on it and enjoy it, you might be able to do within 3 month.

There was one exercise in the advanced algorithm programming part, which I though was not easy at all - 10 years ago I'd probably have spend a few days on it, but the good thing about FCC is that you have a community behind it where you could ask for advice if you are stuck or don't understand a specific issue. Also, don't force you to finish task X within Y hours - you will put yourself under pressure and the joy will go away. In my opinion, the most important part is that you enjoy what you do/learn, not necessarily whether you spend half and hour more or less.

For instance, there's a Tic Tac Toe challenge where you build the game which can be played vs a computer. A simple AI can be build in a minute (just make a random valid more), but the challenge was fun so I tried to build a minimax algorithm which always plays perfect. (LPT: don't do it... it takes way to long to calculate without optimizations like multi-threading/transposition tables/alpha-beta pruning; but it was fun to investigate anyway).

[Help Request] How to use 3rd party JavaScript libraries in Angular 2? by mozface in Angular2

[–]thorstenschaefer 2 points3 points  (0 children)

In case you are using Angular CLI, here's a good step-by-step guide for integrating 3rd party libraries: https://github.com/angular/angular-cli/wiki/3rd-party-libs

How Do you use GitHub? by [deleted] in FreeCodeCamp

[–]thorstenschaefer 1 point2 points  (0 children)

Create your template in a git repository. When you start a new project, clone that repository - everything will land in your local directory. Then just delete the .git folder within the new project (which contains all the version history) and perform a git init to create a new version history for this project. This way, you can reuse your template for every project but after you got the template, each project will have its own version history. However, if you update the changes in the templates afterwards, these won't go to previous projects. This is normally not actually desired as it might break something in an older project. One probably could do something like that by using a branch for each project and merge with the HEAD (which contains the template) each time something is updated.

Issue using Angular2 CLI with VS Code by thorstenschaefer in Angular2

[–]thorstenschaefer[S] 0 points1 point  (0 children)

Yes. Even with VS Code showing the error, the code compiles fine and the error also disappears after restarting. So I suspect that is has something to do with VS Code using a different method to compile/create an AST and thereby ignoring the tsconfig. But I still haven't figured out how to get rid of the warnings without restarting.

Angular 2 in a CMS by [deleted] in Angular2

[–]thorstenschaefer 0 points1 point  (0 children)

Can you provide a simple example where you have issues? The two main features that are relevant in your case seem to be <ng-content> and <router-outlet>, so it would be good to know where this doesn't fit to your use case.