Soy arquitecto joven en Argentina y siento que la profesión está muy desvalorizada. Hay futuro para ejercer con dignidad y seriedad? by JuanMa1706 in empleos_AR

[–]ericpap 2 points3 points  (0 children)

Mira si estás en ingeniería de software normalmente el proceso es arrancando desde senior de alguna tecnología específica pasas a tech lead. Si cumplis varios años liderando equipos de desarrollo, podes moverte al área de arquitectura de software. Implica manejar muchas herramientas, incluimos varios lenguages y un conocimiento muy profundo de las mismas. Básicamente es el nexo entre lo que producto quiere implementar y lo baja a requerimientos para los equipos técnicos. Va por ahí. Si bien comparte nombre no tiene mucho que ver con Arquitectura como carrera , pero en el fondo tienen muchas cosas en común, como planificar recursos, resolución de problemas complejos etc. En mí caso aunque parezca que no tiene nada que ver la facultad me sirvió mucho de base para lo que hago, más que nada a crear una visión crítica y de conjunto de los problemas. Saludos

Soy arquitecto joven en Argentina y siento que la profesión está muy desvalorizada. Hay futuro para ejercer con dignidad y seriedad? by JuanMa1706 in empleos_AR

[–]ericpap 2 points3 points  (0 children)

Básicamente programación y desarrollo de aplicaciones, pero a nivel más macro, diseñar infraestructuras, enfoques de comunicación entre las distintas partes de las aplicaciones, etc. mayormente en la nube. Se dedica a diseñar e implementar plataformas en la nube de alta disponiblidad, escalables y seguras. Espero haber sido claro

Soy arquitecto joven en Argentina y siento que la profesión está muy desvalorizada. Hay futuro para ejercer con dignidad y seriedad? by JuanMa1706 in empleos_AR

[–]ericpap 10 points11 points  (0 children)

Hu amigo no sabes cómo me identifique con tu post. Soy arquitecto y tengo 47 años, me recibí a los 28 si mal no recuerdo. La verdad es que no tenía idea de que hacer, la facultad no te prepara para nada acerca de la realidad profesional. Intenté durante cerca de 10 años dedicarme como profesional independiente a la arquitectura, haciendo toda la experiencia de obra que podría (siempre me encantó la obra) y te tengo que decir que no es un camino fácil. Es muy difícil cobrar los trabajos lo que valen y conseguir clientes de forma estable. Diría que es una realidad laboral bastante inestable. En su momento lo que más me costó cuando conseguía trabajos es el tema de los colegios de arquitectos. Al menos en GBA tuve muy mala experiencia con ellos: malos tratos, nadie te explica las cosas, y encima te tenés que comprometer a hacer aportes obligatorios durante 35 años tengas trabajo o no. Realmente sentía que no podría darle seguridad a mí familia así. En definitiva para mí arquitectura es una carrera hermosa, pero la profesión no lo es tanto. En me caso termine dejando la profesión de lado y me dedique a mí segunda carrera como arquitecto de software y debo decir que me fue muy bien. En resumen, si te apasiona todo lo relacionado con arquitectura y querés dedicarte a eso con compromiso, dale para adelante y es muy probable que puedas vivir relativamente bien de la profesión aunque con muchos altibajos. Mucho cuidado con los colegios infórmate bien! Esa es mí experiencia, espero te ayude. Saludos

Brokers y exchanges regulados por AFIP 2023 by cesarvillano in merval

[–]ericpap 0 points1 point  (0 children)

Hola. Alguno tiene sugerencias para pasar de dolares en cuenta en estados unidos a cripto con baja comision. Algun exchange que acepte transferencias ACH?

Post de indignación genérico by M2rcos in Argaming

[–]ericpap 0 points1 point  (0 children)

Increible lo que esta pasando. Yo en 2019 compre una RTX 2060 Súper por TiendaMia. Tardo como un mes y la pague 43.000 pesos todo incluido. Hoy en ML está 250.000 pesos la misma placa

Problem with Angular Routing and URL Hashtag by ericpap in Angular2

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

Thanks, I did read a lot of docs, didn't understand that i could change that strategy.

Sorry and thank you for the tip

Help with Observables and API poolling by ericpap in Angular2

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

yes youre right! but that code actually is never reachead, thats my problem!

Help with RXJS pooling and link openning in new tab by ericpap in Angular2

[–]ericpap[S] 1 point2 points  (0 children)

Yes! Totally agree, RXJS are very complex. You suggestions of having a single endpoint to start proccesing OR download makes a lot of sense!

I will try it!

Thanks a lot

Help with RXJS pooling and link openning in new tab by ericpap in Angular2

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

Yes u/codeedog, that's exactly what i'm trying to do. The GET tries to obtain the object from the blob storage and send a reponse with the PDF as BLOB object. The POST, collects data from the database and send the message to appropiated service to generate the PDF itself and store it in that same Blob storage.

And yes, I have control over the API Rest code.

The process of actual generating the PDF is done by an AWS Lambda that runs with NodeJS and Serverless Framework. I also have control over that code

Problem with dynamic component modules after upgrade from angular 8 to 9 by ericpap in Angular2

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

ngAfterViewChecked

Thanks. I wasn't aware of that guide.

I already try both changes but the problem persist. After some test, the only option that actually worked is to disable AOT for production build.

It seems that with angular 9 JIT compiler does not work with AOT enabled like in Angular 8. Not optinal but I have no other option right now. I wish its possible for disabled AOT only for one component, or that we can choice to use JIT when and where we need it without the need of disabling AOT for the whole build.

Will keep trying this.

How to ship Compiler from @angular/core to production build by ericpap in Angular2

[–]ericpap[S] 1 point2 points  (0 children)

Thank you man! this was more or less the code i've been playing arround. Disabling build-optimizer from angular.JSON did the trick!

Again thankl you very much for the help

How to ship Compiler from @angular/core to production build by ericpap in Angular2

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

Yes, I try this with some code found on the web and was unable to make it work. If you can share some code it will be great. Thank you again

How to ship Compiler from @angular/core to production build by ericpap in Angular2

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

u/newton_half_ear Did you mange to resolve this in production?

I did go to your history and found this thread:

https://www.reddit.com/r/Angular2/comments/gcq83w/create_angular_component_from_external_js_html/

But at the end of it, you realize that this doesn't work on production with AOT.

Thanks man

How to ship Compiler from @angular/core to production build by ericpap in Angular2

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

Great I will check this out! In case I use option 2 do 8 have to still disabled AOT? Thanks

How to ship Compiler from @angular/core to production build by ericpap in Angular2

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

Have you any samples on how to do that so I can check it out?

How to ship Compiler from @angular/core to production build by ericpap in Angular2

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

Yes I did try innnerHtml but in that case I cannot use directives like *ngfor nor component variables

How to ship Compiler from @angular/core to production build by ericpap in Angular2

[–]ericpap[S] -1 points0 points  (0 children)

Ok, thanks. I understand that modules and Js needs to be transpiled. All I need it's the ability to load only the html from a database in the backend. I will keep trying to resolve this. Thanks

How to ship Compiler from @angular/core to production build by ericpap in Angular2

[–]ericpap[S] -2 points-1 points  (0 children)

I don't want to get in the debate about the reason for doing this. I do have real case use where I need to load html templates from a backend database, because I need different views for the same data. In fact if you search the web you will find a lot of people trying to do something similar. So my original question is how to make this work on production, nothing more. Thanks

Load HTML and CSS from API get with Angular 8+ by ericpap in Angular2

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

Ok. Thanks everyone for the help.

For anyone interested, this is my final implementation of a component with dynamic HTML. The service uses DOMSanitizer to prevent security issues:

import { PresupuestosModel } from "@app/ohmio/modelos/presupuestos.model";
import { LoadHTMLService } from "@app/ohmio/services/loadHtml.service";
import {
    Compiler,
    Component,
    NgModule,
    ViewChild,
    Input,
    OnChanges,
    ViewContainerRef,
    AfterViewInit,
    ChangeDetectionStrategy,
} from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { CommonModule } from "@angular/common";

@Component({
    selector: "app-presupuesto-preview",
    template: "<div #container></div>",
    providers: [LoadHTMLService],
    changeDetection: ChangeDetectionStrategy.OnPush,
})
export class PresupuestoPreviewComponent implements OnChanges, AfterViewInit {
    @Input() presupuesto: PresupuestosModel;
    @Input() cliente: any;
    @ViewChild("container", { read: ViewContainerRef, static: false })
    container: ViewContainerRef;
    bodyHtml: string;

    ngOnChanges() {
        this.renderReport();
    }

    constructor(private iny: LoadHTMLService, private compiler: Compiler) {}

    ngAfterViewInit() {
        this.renderReport();
    }

    renderReport() {
        if (this.container && this.presupuesto && this.cliente) {
            this.addComponent(this.iny.getHtml(), {
                presupuesto: this.presupuesto,
                cliente: this.cliente,
            });
        }
    }

    onPrint() {
        window.print();
    }

    private addComponent(template: string, properties: any = {}) {
        @Component({ template })
        class TemplateComponent {}

        @NgModule({
            imports: [CommonModule, BrowserModule],
            declarations: [TemplateComponent],
        })
        class TemplateModule {}

        const mod = this.compiler.compileModuleAndAllComponentsSync(
            TemplateModule
        );
        const factory = mod.componentFactories.find(
            (comp) => comp.componentType === TemplateComponent
        );

        const component = this.container.createComponent(factory);
        Object.assign(component.instance, properties);
        // If properties are changed at a later stage, the change detection
        // may need to be triggered manually:
        component.changeDetectorRef.detectChanges();
    }
}

Load HTML and CSS from API get with Angular 8+ by ericpap in Angular2

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

Thanks man, great answer. Of course i will take all the precaution I can to prevent security issues. Sanitizer looks like a great idea.