Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Roni Rolle Laukkarinen boosted
Ana Tudor 🐯
@anatudor@mastodon.social  ·  activity timestamp 2 days ago

I am begging you, please don't split your heading into two separate `h2` elements with an `img` in between just to have the image in between your heading words.

This is what subgrid was made for!

#CSS #layout #cssLayout #code #coding #web #dev #webDev #webDevelopment

HTML:

```
<!-- ❌ DON'T DO THIS 🚫 -->
<section>
  <h2>Classic</h2>
  <img src='classic-bar.png' alt=''/>
  <h2>Flavour</h2>
</section>

<!-- ✅ DO THIS ✅ -->
<section>
  <h2>
    <span>Classic</span>
    <span>Flavour</span>
  </h2>
  <img src='classic-bar.png' alt='the classic chocolate bar'/>
</section>
```

CSS:

```
section, h2 { display: grid }

section { grid-template-rows: repeat(3, auto) }

h2 {
  grid-area: 1/ 1/ span 3;
  grid-template-rows: subgrid;
  
  span:last-child { grid-row: 3 }
}

img { grid-area: 2/ 1 }
```
HTML: ``` <!-- ❌ DON'T DO THIS 🚫 --> <section> <h2>Classic</h2> <img src='classic-bar.png' alt=''/> <h2>Flavour</h2> </section> <!-- ✅ DO THIS ✅ --> <section> <h2> <span>Classic</span> <span>Flavour</span> </h2> <img src='classic-bar.png' alt='the classic chocolate bar'/> </section> ``` CSS: ``` section, h2 { display: grid } section { grid-template-rows: repeat(3, auto) } h2 { grid-area: 1/ 1/ span 3; grid-template-rows: subgrid; span:last-child { grid-row: 3 } } img { grid-area: 2/ 1 } ```
HTML: ``` <!-- ❌ DON'T DO THIS 🚫 --> <section> <h2>Classic</h2> <img src='classic-bar.png' alt=''/> <h2>Flavour</h2> </section> <!-- ✅ DO THIS ✅ --> <section> <h2> <span>Classic</span> <span>Flavour</span> </h2> <img src='classic-bar.png' alt='the classic chocolate bar'/> </section> ``` CSS: ``` section, h2 { display: grid } section { grid-template-rows: repeat(3, auto) } h2 { grid-area: 1/ 1/ span 3; grid-template-rows: subgrid; span:last-child { grid-row: 3 } } img { grid-area: 2/ 1 } ```
  • Copy link
  • Flag this post
  • Block
Ana Tudor 🐯
@anatudor@mastodon.social  ·  activity timestamp 2 days ago

I am begging you, please don't split your heading into two separate `h2` elements with an `img` in between just to have the image in between your heading words.

This is what subgrid was made for!

#CSS #layout #cssLayout #code #coding #web #dev #webDev #webDevelopment

HTML:

```
<!-- ❌ DON'T DO THIS 🚫 -->
<section>
  <h2>Classic</h2>
  <img src='classic-bar.png' alt=''/>
  <h2>Flavour</h2>
</section>

<!-- ✅ DO THIS ✅ -->
<section>
  <h2>
    <span>Classic</span>
    <span>Flavour</span>
  </h2>
  <img src='classic-bar.png' alt='the classic chocolate bar'/>
</section>
```

CSS:

```
section, h2 { display: grid }

section { grid-template-rows: repeat(3, auto) }

h2 {
  grid-area: 1/ 1/ span 3;
  grid-template-rows: subgrid;
  
  span:last-child { grid-row: 3 }
}

img { grid-area: 2/ 1 }
```
HTML: ``` <!-- ❌ DON'T DO THIS 🚫 --> <section> <h2>Classic</h2> <img src='classic-bar.png' alt=''/> <h2>Flavour</h2> </section> <!-- ✅ DO THIS ✅ --> <section> <h2> <span>Classic</span> <span>Flavour</span> </h2> <img src='classic-bar.png' alt='the classic chocolate bar'/> </section> ``` CSS: ``` section, h2 { display: grid } section { grid-template-rows: repeat(3, auto) } h2 { grid-area: 1/ 1/ span 3; grid-template-rows: subgrid; span:last-child { grid-row: 3 } } img { grid-area: 2/ 1 } ```
HTML: ``` <!-- ❌ DON'T DO THIS 🚫 --> <section> <h2>Classic</h2> <img src='classic-bar.png' alt=''/> <h2>Flavour</h2> </section> <!-- ✅ DO THIS ✅ --> <section> <h2> <span>Classic</span> <span>Flavour</span> </h2> <img src='classic-bar.png' alt='the classic chocolate bar'/> </section> ``` CSS: ``` section, h2 { display: grid } section { grid-template-rows: repeat(3, auto) } h2 { grid-area: 1/ 1/ span 3; grid-template-rows: subgrid; span:last-child { grid-row: 3 } } img { grid-area: 2/ 1 } ```
  • Copy link
  • Flag this post
  • Block
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 6 days ago

Encore – Type-safe back end framework that generates infra from code

https://github.com/encoredev/encore

#HackerNews #Encore #TypeSafe #Framework #Infra #Code #Generation #Backend

  • Copy link
  • Flag this post
  • Block
Konstantin 🔭 boosted
Veronica Olsen 🏳️‍🌈🇳🇴🌻
@veronica@mastodon.online  ·  activity timestamp last week

So, why shouldn't a prompt accept "aye", "sure", "yeah", "yup", "ok", or "why not" as valid inputs? 😁

Writing some helper tooling for work ...

#Python #Code

A function that takes a question string as input, and generates a user prompt that asks for the standard "y" or "yes" response, but also accepts "aye", "sure", "yeah", "yup", "ok", and "why not" as valid affirmative answers.
A function that takes a question string as input, and generates a user prompt that asks for the standard "y" or "yes" response, but also accepts "aye", "sure", "yeah", "yup", "ok", and "why not" as valid affirmative answers.
A function that takes a question string as input, and generates a user prompt that asks for the standard "y" or "yes" response, but also accepts "aye", "sure", "yeah", "yup", "ok", and "why not" as valid affirmative answers.
  • Copy link
  • Flag this post
  • Block
Veronica Olsen 🏳️‍🌈🇳🇴🌻
@veronica@mastodon.online  ·  activity timestamp last week

So, why shouldn't a prompt accept "aye", "sure", "yeah", "yup", "ok", or "why not" as valid inputs? 😁

Writing some helper tooling for work ...

#Python #Code

A function that takes a question string as input, and generates a user prompt that asks for the standard "y" or "yes" response, but also accepts "aye", "sure", "yeah", "yup", "ok", and "why not" as valid affirmative answers.
A function that takes a question string as input, and generates a user prompt that asks for the standard "y" or "yes" response, but also accepts "aye", "sure", "yeah", "yup", "ok", and "why not" as valid affirmative answers.
A function that takes a question string as input, and generates a user prompt that asks for the standard "y" or "yes" response, but also accepts "aye", "sure", "yeah", "yup", "ok", and "why not" as valid affirmative answers.
  • Copy link
  • Flag this post
  • Block
𝓼𝓮𝓻𝓪𝓹𝓪𝓽𝓱【ツ】☮(📍🇺🇸) and 5 others boosted
Natasha Jay 🇪🇺
@Natasha_Jay@tech.lgbt  ·  activity timestamp last week

We have been trying to replace coders with some technology since at least COBOL.

https://www.commitstrip.com/en/2016/08/25/a-very-comprehensive-and-precise-spec/

#Code #Coding

A cartoon of two programmers talking over coffee :

Programmer 1 - Some day we won't even need coders any more. We'll be able to just write the specification and the program will write itself

Programmer 2 - Oh wow, you're right! We'll be able to write a comprehensive and precise spec and bam, we won't need programmers any more!

1 - Exactly!

2 - And do you know the industry term for a project specification that is comprehensive and precise enough to generate a program?

1 - Uh... no....

2 - Code. It's called code

CommitStrip.com
A cartoon of two programmers talking over coffee : Programmer 1 - Some day we won't even need coders any more. We'll be able to just write the specification and the program will write itself Programmer 2 - Oh wow, you're right! We'll be able to write a comprehensive and precise spec and bam, we won't need programmers any more! 1 - Exactly! 2 - And do you know the industry term for a project specification that is comprehensive and precise enough to generate a program? 1 - Uh... no.... 2 - Code. It's called code CommitStrip.com
A cartoon of two programmers talking over coffee : Programmer 1 - Some day we won't even need coders any more. We'll be able to just write the specification and the program will write itself Programmer 2 - Oh wow, you're right! We'll be able to write a comprehensive and precise spec and bam, we won't need programmers any more! 1 - Exactly! 2 - And do you know the industry term for a project specification that is comprehensive and precise enough to generate a program? 1 - Uh... no.... 2 - Code. It's called code CommitStrip.com
  • Copy link
  • Flag this post
  • Block
Natasha Jay 🇪🇺
@Natasha_Jay@tech.lgbt  ·  activity timestamp last week

We have been trying to replace coders with some technology since at least COBOL.

https://www.commitstrip.com/en/2016/08/25/a-very-comprehensive-and-precise-spec/

#Code #Coding

A cartoon of two programmers talking over coffee :

Programmer 1 - Some day we won't even need coders any more. We'll be able to just write the specification and the program will write itself

Programmer 2 - Oh wow, you're right! We'll be able to write a comprehensive and precise spec and bam, we won't need programmers any more!

1 - Exactly!

2 - And do you know the industry term for a project specification that is comprehensive and precise enough to generate a program?

1 - Uh... no....

2 - Code. It's called code

CommitStrip.com
A cartoon of two programmers talking over coffee : Programmer 1 - Some day we won't even need coders any more. We'll be able to just write the specification and the program will write itself Programmer 2 - Oh wow, you're right! We'll be able to write a comprehensive and precise spec and bam, we won't need programmers any more! 1 - Exactly! 2 - And do you know the industry term for a project specification that is comprehensive and precise enough to generate a program? 1 - Uh... no.... 2 - Code. It's called code CommitStrip.com
A cartoon of two programmers talking over coffee : Programmer 1 - Some day we won't even need coders any more. We'll be able to just write the specification and the program will write itself Programmer 2 - Oh wow, you're right! We'll be able to write a comprehensive and precise spec and bam, we won't need programmers any more! 1 - Exactly! 2 - And do you know the industry term for a project specification that is comprehensive and precise enough to generate a program? 1 - Uh... no.... 2 - Code. It's called code CommitStrip.com
  • Copy link
  • Flag this post
  • Block
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 2 weeks ago

Cerebras Code now supports GLM 4.6 at 1000 tokens/sec

https://www.cerebras.ai/code

#HackerNews #Cerebras #Code #GLM46 #AItech #1000tokens #sec

Cerebras

Cerebras is the go-to platform for fast and effortless AI training. Learn more at cerebras.ai.
  • Copy link
  • Flag this post
  • Block
Tim (Wadhwa-)Brown :donor:
@timb_machine@infosec.exchange  ·  activity timestamp 2 weeks ago

Interesting Git repos of the week:

Strategy:

* https://github.com/joshua-m-connors/cyber-incident-mcmc-pymc - risk quantification

Standards:

* https://github.com/silpertan/FreeBFD - F/OSS implementation of BFD

Detection:

* https://github.com/splunk/attack_data - sample attack data from Splunk
* https://github.com/center-for-threat-informed-defense/attack-workbench-frontend - @mitreattack's workbench
* https://github.com/Cloud-Architekt/AzureAD-Attack-Defense - attack and defence for AzureAD
* https://github.com/da667/iot-hunter - @da_667's spool of https://github.com/EmergingThreats/iot-hunter

Bugs:

* https://github.com/0xDamian/CVE-2018-9995-rs - Rust PoC for CVE-2018-9995

Exploitation:

* https://github.com/glynx/peas - access Exchange via ActiveSync
* https://github.com/RedTeamPentesting/pretender - are you the AiTM?
* https://github.com/7hePr0fess0r/ADCSDevilCOM - abusing ADCS
* https://github.com/cstromblad/png_stego - there's a stego in my PNG
* https://github.com/Kevin-Robertson/Powermad - PowerShell tools for attacking MachineAccountQuota and DNS
* https://github.com/dirkjanm/PrivExchange - @dirkjanm does more AD crimes

Hard hacks:

* https://github.com/exploits-forsale/collateral-damage - Xbox kernel exploit
* https://github.com/timb-machine-mirrors/TheOfficialFloW-ExploitNetControlImpl.java - PS4 kernel exploit
* https://github.com/codetiger/VacuumRobot - how to hack a cleaner

Hardening:

* https://github.com/aliasgherman/huwXMLparser - parsing Huawei configs
* https://github.com/ruboarm/Ericsson-XML-Dump-Parser - parsing Ericsson configs

Nerd:

* https://github.com/richlowe/arm64-gate - @richlowe seeks to get Illumos on ARM64

#security, #code, #research

  • Copy link
  • Flag this post
  • Block
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 2 weeks ago

Codemaps: Understand Code, Before You Vibe It

https://cognition.ai/blog/codemaps

#HackerNews #Codemaps #Code #Understanding #Vibe #AI #Tools #HackerNews

Cognition

Cognition | Codemaps: Understand Code, Before You Vibe It

Codemaps is meant to offer a shared understanding of a system between humans and AI, enabling your AI to teach you about the code you are looking at quickly and elegantly. A codemap can be generated about any system or snippet to illuminate its code paths, helping users learn and recall. Codemaps allows AI to be a partner that explains code in an accurate and consistent way, rather than generating tons of inscrutable slop.
  • Copy link
  • Flag this post
  • Block
Tim W RESISTS boosted
Boston Code Camp
@boscc@techhub.social  ·  activity timestamp 3 weeks ago

Registration is now open for Boston Code Camp, the legendary free developer's conference coming up on November 22 in Burlington, MA. Check out the site for a full list of sessions an speakers. Click the green "Attend!" button to register! https://www.bostoncodecamp.com/CC39/info - see you there! #boston #code #software #development #conference

  • Copy link
  • Flag this post
  • Block
Boston Code Camp
@boscc@techhub.social  ·  activity timestamp 3 weeks ago

Registration is now open for Boston Code Camp, the legendary free developer's conference coming up on November 22 in Burlington, MA. Check out the site for a full list of sessions an speakers. Click the green "Attend!" button to register! https://www.bostoncodecamp.com/CC39/info - see you there! #boston #code #software #development #conference

  • Copy link
  • Flag this post
  • Block
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 3 weeks ago

How I use every Claude Code feature

https://blog.sshh.io/p/how-i-use-every-claude-code-feature

#HackerNews #How #I #use #every #Claude #Code #feature #ClaudeCode #Features #Productivity #Tips #Tech #Blog #AI #Tools

How I Use Every Claude Code Feature

A brain dump of all the ways I've been using Claude Code.
  • Copy link
  • Flag this post
  • Block
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 3 weeks ago

Why write code if the LLM can just do the thing? (web app experiment)

https://github.com/samrolken/nokode

#HackerNews #Why #write #code #if #the #LLM #can #just #do #the #thing? #(web #app #experiment) #https://github.com/samrolken/nokode

codeautomation #AIexperiments #webdevelopment #LLMinnovation #no-code

  • Copy link
  • Flag this post
  • Block
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 3 weeks ago

How I stopped worrying and started loving the Assembly

https://medium.com/@jonas.eschenburg/how-i-stopped-worrying-and-started-loving-the-assembly-4fd00e786c60

#HackerNews #How #I #stopped #worrying #and #started #loving #the #Assembly #Assembly #Programming #Love #for #Code #Tech #Journey

Medium

How I stopped worrying and started loving the Assembly

Or why robots are playing DOOM now
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login