Normal view

There are new articles available, click to refresh the page.
Today — 29 March 2024Main stream

**寻求海外合作伙伴**

本公司在多家电商平台经营,主要销售服装鞋帽等日用百货。现正积极寻找海外的合作伙伴,共同开展网店业务。合作伙伴的主要职责将包括产品上架、维护、运营管理以及维护店铺的好评率和信用度。而我们则负责账号的整体运营、销售管理、销售数据汇总、市场调查与分析,以及产品风险的控制,并拟定合理的产品上架计划。
Wechat:Lsh623531043

Lenovo X606F LineageOS 19.0 GSI Upgrade

Hey Everyone,

Just got my hands on an X606F and as usually I could not stand the stock Android 10 OS.

I eventually took a chance and tested flashing the LineageOS 19 GSI from Andy Yan (Android 12), and it worked out extremely well. Everything worked out of the gate, I installed the version with Gapps preloaded and that worked as well. I basically follow this guide, but swapped the custom rom with the one linked below from Andy Yan.

Use this guide...

Read more

Condense rows containing certain, exact substrings

I'm trying to analyze keyword data for phrases that can contain dynamic patterns pertaining to cities, states, etc. Sometimes I'll use a dynamic keyword phrase like "restaurants open near {city} now", where {city} will be replaced by the city of whoever clicks on that keyword, depending on their public IP. The data comes in a CSV with a row for each keyword clicked. If they are static keywords with no brackets, it's easy to pick them out and analyze them. But for dynamic keywords, there's a row for each individual instance of a unique city. So I'll get a row of data pertaining to "restaurants open near Los Angeles now", "restaurants open near New York City now", etc.

I can sort the data alphabetically and get them all in one block, but then I have to manually sum up and average the data across all rows pertaining to that keyword. And I have to do this separately for each dynamic keyword in the data. Here's a fake example of something I might work with.. The ellipses in Column C denote hundreds, maybe thousands of rows of data.

Right now I have a macro that, when I feed it a dynamic keyword, uses FIND and REPLACE to remove the bracketed part of it. Then it loops through every row of data, looking for anything where the resulting string is a substring of that row's keyword phrase. Then it combines all those rows into a single row with the data summed up / averaged as needed.

This works if I'm only using dynamic keywords where the bracketed part is at the start or end of the keyword, and there are no other longer dynamic keywords that have the resulting string as a substring. But if I have data like what's in the example, the macro will have too many incorrect detections so I have to combine the rows manually. Does anyone know of a way to more consistently detect strings of these variable forms?

Do the UI Toolkit has an anchor option?

Hi, I have this UI that shows the character profiles and points at the bottom of the screen. I set the panel settingn to 1920x1080 resolution and scale with screen size. It looks fine with the 16:9 and 1920x1080 aspect ratio but when I change it to 16:10 or 4:3 aspect ratio, the UI is not scale properly. I want the UI to be anchor at the bottom of the screen so that it can be scale with any aspect ratio but I cannot find that option in the UI toolkit. Is there a way to fix this?...

Do the UI Toolkit has an anchor option?

VB.NET how to check if a form already exists?

for a chat client i want to create a new form instance for each user who is writing a private message and check if the user has an open instance already or not before creating an instance.

i tried to check it using dictionary but i could not get it to work..

my code

 `                
                Dim convs As New Dictionary(Of String, String)
                Dim nf As New FrmDialog()


                convs.Add(WritePUser, WritePMessage)
                nf.Show()

                If convs.ContainsKey(WritePUser) Then
                    MsgBox("im already open")
                Else
                    nf.Show()
                End If

`

TEKA SILANG KATA (SIRI 191)

Halaman ini menyediakan permainan teka silang kata dalam bahasa Melayu yang menarik dan mencabar. Teka silang kata merupakan permainan teka teki yang menggunakan huruf-huruf untuk membentuk kata, frasa atau ayat dengan menyenaraikan kata-kata silang dan menegak serta petunjuk jawapannya. Permainan ini menguji pengetahuan bahasa Melayu anda dan meningkatkan perbendaharaan kata. Jom uji minda anda sekarang. ... Read more

The post TEKA SILANG KATA (SIRI 191) appeared first on Utusan Malaysia.

‘A Simple Favor 2’ Adds Allison Janney

Allison Janney is joining the cast of Amazon MGM Studios’ “A Simple Favor 2.” The actor will join returning cast members Blake Lively and Anna Kendrick in the sequel to Paul Feig’s hit 2018 mystery-comedy film. The sequel will follow Stephanie (Kendrick) and Emily (Lively) as they head to the beautiful island of Capri for […]

I'mm currently working on Knapsack and using class but i having a trouble that the variables can not be access(Variables in knapsack class)

This is the full code


using namespace std;

// Knapsack
class Knapsack {
public:
    Knapsack(int capacity, const vector<int>& weights, const vector<int>& values)
        : capacity_(capacity), weights_(weights), values_(values) {}
        
    const std::vector<int>& getWeights() const {
        return weights_;
    }

    const std::vector<int>& getValues() const {
        return values_;
    }

    int getCapacity() const {
        return capacity_;
    }
private:
    int capacity_;
    vector<int> weights_;
    vector<int> values_;
};

i have tried to get variables but it not working the text editor gave me a warning that variables(weight, values and capacity) can not access

        return weights_;
    }

    const std::vector<int>& getValues() const {
        return values_;
    }

    int getCapacity() const {
        return capacity_;
    }````

.NET Core DB vs JSON model design

I'm designing an API with a set of relatively straight-forward models and relationships. Lots of the documentation and examples I can find seem to suggest designing a single model that acts both as the DB model and the JSON model. At first this seemed ideal to reduce the volume of code. However with a simple relationship there seems to be difficulties having a single model cover the needs of both the DB model and the JSON model. And I'm not against duplicating, but that seems to result in repetitive field-copying where I'm sure there's a better way.

Consider a table of tracks that each contains a list of track points.

public class Track
{
   [Key]
   [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
   public long Id { get; set; }

   public ICollection<TrackPoint> Points { get; }
}

public class TrackPoint
{
   [Key]
   [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
   public long Id { get; set; }

   public long TrackId { get; set; }
   public required virtual Track Track { get; set; }

   public required double Latitude { get; set; }
   public required double Longitude { get; set; }
}

This design suffices for the creation of the desired database tables. However, when posting a list of track points for creation, I don't need or want to supply track data within each track point. I have a track id defined in the endpoint: /track/44/points. However, because the DB definition requires a track for integrity constraints, the controller complains when posting the JSON content without a Track property defined.

{
   points: [{
      latitude: 1.0,
      longitude: 1.0
   }]
}

I can obviously create a new TrackPointDTO model with the TrackPoint DB relation fields removed (or use inheritance to avoid re-defining the same fields), but then my controller has to copy all the fields from the de-serialized TrackPointDTO object into a newly created TrackPoint object.

Ultimately I'm wondering if there's a cleaner way to stay within a single model that supports DB and constraint definitions as well as JSON transfer definitions. I recognize that the problem is that I want to both require the Track property for a DB model and allow it to be null for the JSON model which is an obvious conflict. I'm just wondering if the only solution is duplication and property copying.

Extract filepaths of .MP4 files in subfolders of main folder to textfile

I am on Mac. I want to use terminal or something to extract the filepaths of the .MP4 files within a folder with multiple levels of subfolders. I have a main folder that has subfolders. Each subfolder has its own subfolders. Eventually in this line, there are .MP4 files. I want a text file with the filepath of each .MP4 file, preferably with commas or semicolons between. Can you help me?

I looked into a few options, but they were either for Windows or not that helpful. The dir command in Windows seemed relevant perhaps.

Media community pays tribute to late Ahmad Rejal for years of dedication

KUALA LUMPUR: Members of the media industry came together on Friday (March 29) to show their appreciation and respect for the late Datuk Ahmad Rejal Arbee Mohamed Isa Arbee for his lifelong commitment and contributions to the field of journalism. Read full story

❌
❌