โŒ

Normal view

There are new articles available, click to refresh the page.
Yesterday โ€” 4 June 2024Main stream

the initial Hermes On Sale sketches of the dress

sensed that its back in the way I see people dress but I live in California so its a little bit different than in New York, she explained. And I know s love perfumes, adds. It a timeless silhouette that set the tone for almost every she attended since. accessories were just as impressive as the rest of her awe inspiring outfit. Here we can come across a navy gabardine jacket with an elongated collar, hanging next hermesshoeser.com to a pair of white jeans with scalloped edges, and a soft navy blouse. The founder also flexed her purse a limited edition monogrammed satchel bag made of fur. Styled by the actor wore a look fresh off the runway and fresh out of the ground. Yes, she divorced and she smarts when she learns her ex husband, Daniel, might marry his younger girlfriend, Eva, but also reveals that she bristled against the traditional roles of wife and mother before their split. Anecdotally speaking, college aged women also seemed particularly fond of it around this time myself mercifully excluded.

In Milan, paired Intrecciato leather pouches with netted woven totes, and stacked clutches in varying sizes, colors, and textures on top of each other for added dimension. Murray who won an Emmy for his portrayal of the erratic in the first, Hawaii set installment of White critically lauded satire, and recently dazzled aunces in The Last of Us has joined the ensemble, alongside Triangle of Sadness breakout actor. This is not only my favorite photo of the year, it also very likely my all time favorite street style photo by. When the moved from Germany to San Francisco in, Nina closed up shop and adapted to her new environment. Another is the heiress and paradigm of chic Millicent Rogers; the traces of scent left on her Schiaparelli dress have also been documented and are available for the visitor to sniff. After all, it fashion alone that brought conversations about gender and sexuality to the forefront in the last decade, but it certainly gave some people a good place to start.

Options in classic black are timeless, of course, with styles from to making for easy summer dressing. It week three of the 2024 Houston Livestock Show and, and deep in the underbelly of NRG Stadium, Bernard Bun B Freeman is in his dressing room. The box was the size of a small house, he joked, and we had not tested the lights. Secondhand isn't sexy. Several of the jackets were informed by designs Marlene rich commissioned from one model the top hat, white waistcoat, and black tails the actress wore in the famous nightclub scene from. Keeping your specific skin concerns in mind when buying makeup makes all the difference especially as you age. The name is associated with corse try, and the initial Hermes On Sale sketches of the dress started with a strong lacing idea enclosing the corseted body, tightening it at the top, and opening the volume of the dress at the bottom. We oursees are transformed from spectators into active participants, Bolton added, following his detailed explanations of the many scientific processes and data that were an intricate part in making the exhibition come to life especially through the use of new AI technology.

Laravel Markdown email

I am using Laravel markdown to send email to users.

The problem I am facing is when I tried to embed some HTML block inside an email.

I need to send HTML block in email, because I want to tell them know how to setup widget into their website.

If the HTML block is present, it is not rendered correctly.

How can I solve this?

:::Sample code:::

//Mailable class:

$greeting = Hi User;

$content = "
<div id="mainDiv" data-widget="main" data-code="{{$code}}"></div>
<script type="text/javascript" src="http://domain/js/main.js"></script>";

return (new MailMessage())
            ->subject($subject)
            ->markdown('email', [
                'greeting' => $greeting,
                'content' => $content
            ]);

//Template for email
@component('mail::message')
{{ $greeting }}

{!! $content !!}

How does division by zero works in C++?

#include <iostream>
using namespace std;
int main() 
{
    cout << "main started";
    int a = 10, b = 0;
    cout << a/b;
    cout << "main ending";
}

The above written C++ code is not printing anything on online compiler when run on "OnlineGDB" with C++ 20 vesion.

But the same program when run on g++-14 compiler from homebrew it produces main started0main ending

I am not getting why?

Inside a semiconductor โ€˜clean roomโ€™ at Japanโ€™s top university

To study semiconductors at Japanโ€™s top university, first you need the right clothes โ€“ protective overalls, shoe covers, plastic gloves and a lightweight balaclava to keep your hair out of the way. Read full story

This picture taken on May 1, 2024 shows Tokyo University PhD student Kei Misumi (L) working in a clean room at Tokyo University in Tokyo. โ€” AFP Relaxnews

how to get my chat bot to remember custom responses in discord then put it in intents.json python

hello am trying to get my discord bot to remeber what its learned after i shut it down but each time i boot it up again to test it forget everything its learned heres the code

import discord
from discord.ext import commands
import json
import asyncio
import random

# Load intents from intents.json
with open('intents.json', 'r') as intents_file:
    intents_data = json.load(intents_file)
    intents = intents_data.get('intents', [])

# Load custom responses from custom_responses.json
try:
    with open('custom_responses.json', 'r') as custom_responses_file:
        custom_responses = json.load(custom_responses_file)
except FileNotFoundError:
    custom_responses = {}  # Initialize an empty dictionary if the file doesn't exist

# Initialize the bot
bot = commands.Bot(command_prefix='!', intents=discord.Intents.all())


@bot.event
async def on_ready():
    print(f'Logged in as {bot.user.name} ({bot.user.id})')


@bot.event
async def on_message(message):
    if message.author.bot:
        return  # Ignore messages from other bots

    # Check for custom responses first
    if message.content.lower() in custom_responses:
        await message.channel.send(custom_responses[message.content.lower()])
    else:
        # If no custom response, check predefined intents
        for intent in intents:
            if any(pattern.lower() in message.content.lower() for pattern in intent['patterns']):
                response = random.choice(intent['responses'])
            `your text`    await message.channel.send(response)
                break
        else:
            await message.channel.send("I'm not sure how to respond. Could you provide a custom response?")

    await bot.process_commands(message)


@bot.command()
async def learn(ctx, *, response: str):
    """
    Command to add a custom response.
    Usage: !learn <user_input> <custom_response>
    Example: !learn favorite_color Blue
    """
    user_input, custom_response = response.split(maxsplit=1)
    custom_responses[user_input.lower()] = custom_response
    await ctx.send(f"Learned: '{user_input}' -> '{custom_response}'")


@bot.event
async def on_disconnect():
    # Save custom responses to custom_responses.json when the bot disconnects
    with open('custom_responses.json', 'w') as custom_responses_file:
        json.dump(custom_responses, custom_responses_file, indent=4)


print("Bot is starting...")
loop = asyncio.get_event_loop()
loop.run_until_complete(bot.start('TOKEN'))

then you got the custom_responses.json

{ "user_input_1": "custom_response_1", "user_input_2": "custom_response_2" }

then the intents.json

{ "intents": [

    {
        "tag": "google",
        "patterns": [
            "google",
            "search",
            "internet"
        ],
        "responses": [
            "https://www.youtube.com/watch?v=dQw4w9WgXcQ&pp=ygUXbmV2ZXIgZ29ubmEgZ2l2ZSB5b3UgdXA%3D"
        ]
    },
    {
        "tag": "greeting",
        "patterns": [
            "Hi there",
            "How are you",
            "Is anyone there?",
            "Hey",
            "Hola",
            "Hello",
            "Good day",
            "Namaste",
            "yo"
        ],
        "responses": [
            "Hello",
            "Good to see you again",
            "Hi there, how can I help?"
        ],
        "context": [
            ""
        ]
    }

etc

any help would be helpful to me thanks you for you time as well

i want it to remember what you tell it like if you say !learn cat cat is good next time you boot it you say cat i want it to say cat is good

What is the member name of value stored in an Rc<T> pointer?

I am reviewing the implementation of Deref for Rust, and was curious as to what is the member name that is returned in the call to fn deref(&self) for Rc<T>:

impl<T> Deref for Rc<T> {
    type Target = T;
    fn deref(&self) -> &T {
        &self.<Rc member name>
    }
}

What is "Rc member name"?

I looked here but was unable to locate it.

CPP Help: MOVE CTOR NOT getting hit

I'd like to ask for your help. I am new in this and I can't get to make MOVE ctor work.

My move CTOR is not getting hit for some reason I dont understand.

Please help me.

Thank you so much in advance.

#include<iostream>
class DynamicInt
{

public:
DynamicInt()
: intPtr{ new int {0} }
{
}

DynamicInt(int value)
: intPtr{ new int { value } }
{
std::cout << "one parameter ctor" << std::endl;
}

~DynamicInt()
{
delete intPtr;
std::cout << "Destructed." << std::endl;
}

// COPY CTOR
DynamicInt(const DynamicInt& other)
: intPtr{ new int { other.GetValue() } }
{
std::cout << "copy CTOR\n";
}

// MOVE CTOR -->>>> NOT GETTING HIT !!!!! :(
DynamicInt(DynamicInt&& other) noexcept
: intPtr { other.intPtr }
{
std::cout << "move con called. \n";
other.intPtr = nullptr;
}

private:

int* intPtr;
};

DynamicInt ConstructorDynamicInt(int val) 
{
    DynamicInt dInt{ val };

    return dInt;
}

int main()
{
    DynamicInt intCOne = ConstructorDynamicInt(20);// should trigger either MOVE or COPY constructor
    std::cout << intCOne.GetValue() << std::endl;
}

I've already tried searching in google.Still wouldn't work. From someone else's setup (saw on video), the same exact code works.

Haven't rooted in a while, kick me in the right direction?

I haven't rooted for a few years now, was happily using my 5a with A11 until it decided to brick itself a few weeks ago like the 5a's apparently like to do, bad soldering I guess. โ€Œ Of course Google knew about this but informed no one. โ€Œ Oh well, at least they were kind enough to replace it with a 6a, i guess, but would not let me put a deposit for advance replacement and pay for overnight shipping, instead made me wait 2 damn weeks for standard~ replacement. โ€Œ What a bunch of jerks. โ€Œ This...

Read more

Feeding my smartphone-camera with content from Obs Studio

I am looking for a skilled developer who can feed the native camera of my Android smartphone with content (images or videos ) from OBS studio . Protocols like RTMP or WHIP can be used.

Content Type:
- The project involves feeding images or videos from Obs studio into the camera.

Ideal skills and experience for the job:
- Proficiency in OBS Studio and camera setup.
- Strong knowledge of image formats and how to feed them into the camera.
- Experience in live streaming and understanding of...

Read more

(International) Terminology Question

What do you call the white line on the outer edge of the road when there is no kerb? (leftpond: curb)
I know what I (and my firefighting colleagues) call it, but I'm interested in the wider world's usage.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

Can't recovery postgrsqldb ( template1" user:"postgres" failed to start in 90 second )

everyone ,

Can someone help me to fix this issue :

ERROR: recovery is checking if postmaster is started DETAIL: postmaster on hostname:"postgresqldb02" database:"template1" user:"postgres" failed to start in 90 second.

node_id | hostname | port | status | pg_status | lb_weight | role | pg_role | select_cnt | load_balance_node | replication_delay | replication_state | replication_sync_state | last_status_change ---------+----------------+------+--------+-----------+-----------+---------+---------+------------+-------------------+-------------------+-------------------+------------------------+--------------------- 0 | postgresqldb01 | 5432 | up | up | 0.500000 | primary | primary | 52 | true | 0 | | | 2024-06-03 09:05:36 1 | postgresqldb02 | 5432 | down | down | 0.500000 | standby | unknown | 0 | false | 0 | streaming | async | 2024-06-03 09:03:58 (2 rows)

(END)

==> Postgresqldb 02 log;

-rw-r----- 1 postgres adm 10019 Jun 4 01:49 postgresql-12-main.log root@postgresqldb02:/var/log/postgresql# cat postgresql-12-main.log 2024-06-03 09:33:19.390 UTC [52442] LOG: starting PostgreSQL 12.19 (Ubuntu 12.19-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0, 64-bit 2024-06-03 09:33:19.390 UTC [52442] LOG: listening on IPv4 address "127.0.0.1", port 5432 2024-06-03 09:33:19.393 UTC [52442] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2024-06-03 09:33:19.423 UTC [52443] LOG: database system was interrupted; last known up at 2024-06-03 09:33:18 UTC Permission denied, please try again. Permission denied, please try again. postgres@postgresqldb01: Permission denied (publickey,password). 2024-06-03 09:33:19.532 UTC [52443] LOG: entering standby mode Permission denied, please try again. Permission denied, please try again. postgres@postgresqldb01: Permission denied (publickey,password). 2024-06-03 09:33:19.608 UTC [52443] LOG: redo starts at 0/2C000028 2024-06-03 09:33:19.611 UTC [52443] LOG: consistent recovery state reached at 0/2C000100 2024-06-03 09:33:19.611 UTC [52442] LOG: database system is ready to accept read only connections Permission denied, please try again.

Can someone help me to resovle to recovery postgresql

โŒ
โŒ