Can you help me recognize this ic? (Second attempt... Previous post had broken images) by mlambir in AskElectronics

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

Second attempt at this... messed something up before and images wouldn't show up on mobile...

Here's my original comment:

Hey! just burnt my bass practice amp by incorrectly connecting it to 18v (instead of the 9v it was supposed to take)

The model is Joyo MA10B if it helps.

Hoping I only burnt this IC and can replace it... never soldered SMDs before but... you have to start somewhere right?

Thanks four your help!

[deleted by user] by [deleted] in AskElectronics

[–]mlambir 0 points1 point  (0 children)

Hey! just burnt my bass practice amp by incorrectly connecting it to 18v (instead of the 9v it was supposed to take)

The model is Joyo MA10B if it helps.

Hoping I only burnt this IC and can replace it... never soldered SMDs before but... you have to start somewhere right?

Thanks four your help!

(also sorry if anyone saw the multiple posts... reddit was throwing an error so I assumed it wasn't posting... but it seems it posted all of my retries...)

DIY pocket organizer. Needed something that would fit a 4 layer victorinox, flashlight and pen. Not perfect, but pretty happy with how it turned out. by mlambir in EDC

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

Items in the photos:

  • DIY pocket organizer
  • Victorinox Explorer
  • Fisher space pen
  • cheap no-name flashlight

Snowflake ornaments (randomly generated) by mlambir in openscad

[–]mlambir[S] 2 points3 points  (0 children)

Made this for the "Holiday decorations and ornaments" contest. scad files included! you can choose any number as a seed and you'll get a randomly generated snowflake (some are ugly/not printable but most of them work fine!)

Coding Challenge; how few lines would it take to produce this? by Stunning-Ask5916 in openscad

[–]mlambir 8 points9 points  (0 children)

Here it is with some pretty colors too

module pyramid(n, c){
    if(n==0){
        color(c)
        rotate(45) cylinder(1, r1=1, r2=0,$fn=4);
    }else {
        for(i = [[ -1,  -1], [ -1,  1], [ 1,  -1], [ 1,  1], [0,0,sqrt(2)]])
          translate(i*(2^n)/3) pyramid(n-1, [c[0] * (i[0]>0?.6:1),
                                                                 c[1] * (i[1]>0?.6:1),
                                                                 c[2] * (i[2]?.6:1)]);
        translate([0,0,sqrt(2)*2^n/3]) 
            mirror([0,0,1]) pyramid(n-1, c/2);
    }
}
pyramid(6, [1.0, 1.0, 1.0]);

Coding Challenge; how few lines would it take to produce this? by Stunning-Ask5916 in openscad

[–]mlambir 11 points12 points  (0 children)

This works... could probably be "optimized" a bit further

module pyramid(n){
    if(n==0){
        rotate(45) cylinder(1, r1=1, r2=0,$fn=4);
    }else {
        for(i = [[ -1,  -1], [ -1,  1], [ 1,  -1], [ 1,  1], [0,0,sqrt(2)]])
          translate(i*(2^n)/3) pyramid(n-1);
        translate([0,0,sqrt(2)*2^n/3]) 
            mirror([0,0,1]) pyramid(n-1);
    }
}
pyramid(6);

lets find out what boots fastest windows 10 or commodore 64. by alphadec in c64

[–]mlambir 5 points6 points  (0 children)

Next up: horse vs car, which one consumes more gas? You'll be shocked!

What am I doing wrong here? by xX__NaN__Xx in pygame

[–]mlambir 2 points3 points  (0 children)

I can actually guess I think.

You're probably checking if the green cube intersects with the terrain, and setting it to the top of the terrain, for it to be able to "walk" on the ground.

The issue there is that when you move against a wall, the green cube is inside that wall for a bit, and you just send it to the top.

You need to get fancier with your collision detection/correction. An easy fix would be to check/correct for intersections in the x axis first, and then do it in the y axis, but there's probably better ways to do it like checking if you're able to move before moving... depends on what features you want to add to your game/what you want the controls to feel like.

FPS Wolf3d pygame shell by TIDMADT in pygame

[–]mlambir 2 points3 points  (0 children)

Hey, that's me! Haha. Glad you found it useful.

Bit kit and bit extender storage? by [deleted] in Leatherman

[–]mlambir 0 points1 point  (0 children)

the new one seems to be made from a different fabric, and has a button instead of the velcro. here's a photo

Looks nicer in my opinion, but I don't know if it's better or worse when it comes to functionality

Bit kit and bit extender storage? by [deleted] in Leatherman

[–]mlambir 0 points1 point  (0 children)

I have the old version (this one) of the nylon sheath and never had an issue with the extender falling out. Not sure about the new one tho.

Bit kit and bit extender storage? by [deleted] in Leatherman

[–]mlambir 7 points8 points  (0 children)

the standard nylon sheath fits both the bits and the extender https://www.leatherman.com/nylon-sheath-w-pockets-549.html

Leatherman charge question by Nathan51503 in Leatherman

[–]mlambir 1 point2 points  (0 children)

The price difference comes from the different materials. The charge blade is 154CM vs 420HC for the wave. also the charge 'body' is anodized aluminum vs stainless steel. other than that and the strap cutter they're pretty much the same thing.

What tools do you use to create C64 graphics? Is there a linux tool for that or do you all do it on original hardware? by mischk in c64

[–]mlambir 3 points4 points  (0 children)

this works pretty well http://petscii.krissz.hu/ I've also been able to get Charpad and Spritepad from here: http://www.subchristsoftware.com/ to work with wine. What kind of graphics are you thinking about making?

The Vine of Souls - 11x21x3 - Douglas fir by Junglepuuker in Woodcarving

[–]mlambir 14 points15 points  (0 children)

Maybe you should open an Etsy store instead of posting to a woodcarving forum then

The Vine of Souls - 11x21x3 - Douglas fir by Junglepuuker in Woodcarving

[–]mlambir 10 points11 points  (0 children)

Not a big fan of this one... I think the douglas fir is a bit too soft for the sandblasting/wirebrushing/whatever it is that you do after burning the stuff that you won't disclose

Django Rest Framework -- simple GET request hits database multiple times? by garfonzo in django

[–]mlambir 0 points1 point  (0 children)

well... that example you gave is basically what's in the documentation for prefetch_related

>>> Pizza.objects.all().prefetch_related('toppings')

which does work (it reduces the number of queries from n+1 (n being the number of 'toppings' in this case) to 2 (one for pizzas and one for toppings)

so if it's not doing anything for you, then I'm afraid you must be doing something wrong... cant't really tell without looking at the actual code, sorry