Normal view

There are new articles available, click to refresh the page.
Before yesterdayMain stream

Gayle King STUNS as ‘Sports Illustrated’ Swimsuit Model at 69: Nice!

Gayle King is a Sports Illustrated swimsuit model.

In 2023, American icon and notorious GMILF Martha Stewart graced the cover of Sports Illustrated at 82.

Legendary journalist Gayle King is 69 (nice) years old.

And now, it’s her turn to thirst trap Sports Illustrated readers.

Gayle King attends the Met Gala in May of 2024.
Gayle King attends The 2024 Met Gala Celebrating “Sleeping Beauties: Reawakening Fashion” at The Metropolitan Museum of Art on May 06, 2024. (Photo Credit: Dimitrios Kambouris/Getty Images for The Met Museum/Vogue)

Congratulations to ‘Sports Illustrated’ swimsuit model Gayle King!

Beloved journalist Gayle King was among four women whom Sports Illustrated selected to appear on the cover of an upcoming Sports Illustrated issue.

The 69-year-old CBS New anchor stands out from the others in two ways.

Chrissy Teigen, Hunter McGrady, and Kate Upton are the other three. All three are experienced models. And all three are Millennials, with Teigen being the eldest at 38 … meaning that King was Kate Upton’s age when Teigen was born.

Hello, cover girl!@DrewBarrymore, @helloross, @TonyDokoupil and @NateBurleson react to @GayleKing’s @SI_Swimsuit cover: “It is a moment of true empowerment.” pic.twitter.com/AaPg8bQOC8

— CBS Mornings (@CBSMornings) May 14, 2024

Let’s be clear, King absolutely belongs on this Sports Illustrated cover.

She always looks beautiful. As a news anchor, her sense of style is arguably a key part of her job.

But in these photos, as you can see, she looks jaw-droppingly hot in her various bathing suits.

Gayle King looks hot!

However, she has also chosen tasteful and even age-appropriate swimwear in which to model, accented with jewelry.

In other words, these aren’t standard pinups. In 2024, there are swimsuit pinups of most ages and all genders.

King has transformed herself into a posing, smiling work of art. She just also happens to be flaunting her radiant skin and her fantastic figure in the process.

Gayle King in early April of 2024.
Gayle King attends MoMA’s 2024 Black Arts Council Benefit at the Museum of Modern Art on April 04, 2024. (Photo Credit: Michael Loccisano/Getty Images)

Being a Sports Illustrated swimsuit model means pretty much infinite bragging rights. Especially as part of an all-star ensemble like Gayle King, Chrissy Teigen, Hunter McGrady, and Kate Upton.

However, the famous news anchor has been downright modest about it. During CBS Mornings on Tuesday, May 14, she admitted that she felt stunned and unworthy when the magazine offered her the role.

Fortunately, no one else sees it that way. Her fellow anchors quickly emphasized that her inclusion is not only positive in a society that punishes women for turning 25 (it’s not just Leonardo DiCaprio, folks), but that she’s more than hot enough to hold her own.

On May 17, when the Sports Illustrated issue goes public, the world can see that for themselves. Hopefully, Gayle King will see that, too.

Gayle King STUNS as ‘Sports Illustrated’ Swimsuit Model at 69: Nice! was originally published on The Hollywood Gossip.

How to Implement Deep Linking in Angular for iOS without Extension (.json) in URL Access?

I'm working on implementing deep linking in my Angular application for Flutter iOS, but I'm facing two main challenges. Firstly, I'm unable to access a JSON file without the .json extension. Secondly, I'm unsure how to properly set up deep linking in Angular for iOS. Can anyone provide guidance on resolving these issues?

Issues:

  • Accessing JSON file without .json extension: When attempting to access a JSON file without the .json extension in Angular, I'm encountering server configuration issues or Angular's default behavior. How can I resolve this?

  • Deep Linking in Angular for iOS: I need assistance in setting up deep linking in my Angular application specifically for iOS. What steps are involved in implementing this?

For more info I need to be make it below like

https://docs.flutter.dev/cookbook/navigation/set-up-universal-links#apple-app-site-association

Isu Musang King: Semua pihak perlu hormati keputusan mahkamah – Sultan Pahang

KUANTAN: Sultan Pahang, Al-Sultan Abdullah Ri’ayatuddin Al-Mustafa Billah Shah menitahkan semua pihak agar menghormati keputusan Mahkamah Tinggi Kuantan yang menolak permohonan pekebun durian Musang King di Raub untuk mendapatkan kebenaran semakan kehakiman bagi notis pengosongan tanah yang dikeluarkan kerajaan Pahang sebelum ini. Al-Sultan Abdullah bertitah, baginda mengambil maklum keputusan Mahkamah Tinggi Kuantan berkenaan permohonan semakan… ... Read more

The post Isu Musang King: Semua pihak perlu hormati keputusan mahkamah – Sultan Pahang appeared first on Utusan Malaysia.

PostgreSql Row-Level Locks

I am trying to understand Postgresql Row-Level Locks could someone help me understand when to use each type of lock.

     FOR UPDATE; FOR NO KEY UPDATE; FOR SHARE; FOR KEY SHARE;

I tried to go over the documentation but still, I couldn't understand the difference and didn't know when to use what and how does it make a difference.

I am expecting someone could help me understand the use case of each lock and give me clarity on when to choose each.

Cannot connect to running Docker container from locally run Golang

I have a container running on my local with

docker run \
    --publish 8081:8081 \
    --publish 10250-10255:10250-10255 \
    --interactive \
    --tty \
    mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest   

I am able to run in Chrome just fine, https://localhost:8081/etc/etc.

However I must now write a Go program to make an API call to the running container. I get:

Post "https://172.17.0.2:8081/dbs": dial tcp 172.17.0.2:8081: connect: no route to host

Am I missing something here, do I need to further expose the ports?

package main

import (
    "context"
    "log"
    "github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos"
)

func main() {
    const (
        cosmosDbEndpoint = "https://localhost:8081/"
        cosmosDbKey = "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="
        dbname = "db5"
    )
    cred, err := azcosmos.NewKeyCredential(cosmosDbKey)
    handle(err)
    client, err := azcosmos.NewClientWithKey(cosmosDbEndpoint, cred, nil)
    handle(err)
    databaseProperties := azcosmos.DatabaseProperties{ID: dbname}
    _, err = client.CreateDatabase(context.Background(), databaseProperties, nil)
    handle(err)
}

Tried running

set http_proxy=
set https_proxy=

Note that you have to import a cert as in curl -k https://localhost:8081/_explorer/emulator.pem > ~/emulatorcert.crt then for example in Mac go to the keychain, add the cert, and trust it

How to prevent the duplicate result from previous frame in python object tracking

Currently, I work on Object detection, tracking and counting and I want to store the result from object detection ,tracking, and counting and whenever the vehicle cross the line, the result always give me duplicate. how can i prevent that

and here for the camera code

class Camera(BaseCamera): """ OpenCV video stream """ video_source = 0 start, end = Point(0, 500), Point(1280, 500) detector = Detector() tracker = ByteTrack() line_zone = LineZone(start=start, end=end) annotator = LineZoneAnnotator()

def __init__(self, enable_detection: bool = False):
    video_source = os.environ.get("VIDEO_SOURCE")
    try:
        video_source = int(video_source)
    except Exception as exp:    # pylint: disable=broad-except
        if not video_source:
            raise EnvironmentError("Cannot open the video source!") from exp
    finally:
        Camera.set_video_source(video_source)
    super().__init__()
    self.enable_detection = enable_detection

@staticmethod
def set_video_source(source):
    """Set video source"""
    Camera.video_source = source

@classmethod
def frames(cls):
    """
    Get video frame
    """
    camera = cv2.VideoCapture(Camera.video_source)
    if not camera.isOpened():
        raise RuntimeError("Could not start camera.")

    while True:
        # read current frame
        ret, img = camera.read()

        # Loop back
        if not ret:
            camera.set(cv2.CAP_PROP_POS_FRAMES, 0)
            continue

        # Object detection
        results = cls.detector(image=img)
        selected_classes = [ 2, 3]

        tensorflow_results = results.detections
        cls.annotator.annotate(img, cls.line_zone)
        if not tensorflow_results:
            yield cv2.imencode(".jpg", img)[1].tobytes()
            continue

        detections = Detections.from_tensorflow(tensorflow_results=tensorflow_results)

        detections = cls.tracker.update_with_detections(detections=detections)
        detections = detections[np.isin(detections.class_id, selected_classes)]
        
        result=cls.line_zone.trigger(detections)
        if type(result)!=type(None) and len(result)>=3:

            print(result[2])
            
        img = visualize(image=img, detections=detections)

        # encode as a jpeg image and return it
        yield cv2.imencode(".jpg", img)[1].tobytes()

Java reworked 'FTP' File Transfer with Ascii and Binary

I'm having to implement a basic file transfer system in Java, one that accepts commands from the client. Unfortunately, the class this was for has so far been more about networking concepts as opposed to code, so I am struggling a bit with the proper way to go about it. For any kind enough to help, if there's a good guide or documentation somewhere as to how to do this I would be eternally grateful.

The current issue I am running into right now is that sometimes after I download or upload a file, it won't let me put any more input and the client is essentially frozen. I believe it to be the server and client getting out of sync, but I have no clue where.

I'm aware that this code is an absolute mess so if there's a guide already written or an example somewhere on how to properly do it you can just point me there instead of having to strain your eyes understanding all this spaghetti.

Client Side:

import java.io.*;
import java.net.*;

public class FTPClient {
   
    public static void main(String[] args) {
        String serverAddress = "localhost"; 
        int portNumber = 8888; 
        

        try (
            Socket socket = new Socket(serverAddress, portNumber);
            BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
            BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in))
        ) {
            // Handle server's initial welcome message or prompt
            System.out.println(in.readLine());  // Read and display the "Please enter your username:" message

            // Send username and handle response
            String username = stdIn.readLine();
            out.println(username);
            System.out.println(in.readLine());  // Read and display the "Please enter your password:" message

            // Send password and check for authentication
            String password = stdIn.readLine();
            out.println(password);

            String serverResponse = in.readLine();
            if (!serverResponse.startsWith("230")) {
                System.out.println("Authentication failed: " + serverResponse);
                return;
            }

            System.out.println("Authentication successful. Enter commands:");

            // Handle commands
            String userInput;
            while ((userInput = stdIn.readLine()) != null) {
                if (userInput.equalsIgnoreCase("QUIT")) {
                    out.println("QUIT");
                    System.out.println("Quitting...");
                    break;
                } else if (userInput.equalsIgnoreCase("LIST")) {
                    out.println("LIST");
                    String response;
                    while (!(response = in.readLine()).equals("226 Directory listing complete")) {
                        System.out.println(response);
                    }
                } else if (userInput.startsWith("DOWNLOAD ")) {
                    String fileName = userInput.substring(9); // Extracting filename from the command
                    receiveFile(fileName, socket);
                } else if (userInput.startsWith("UPLOAD ")) {
                    String fileName = userInput.substring(7); // Extracting filename from the command
                    sendFile(fileName, socket, in);
                } else {
                    System.out.println("Server response: " + in.readLine());
                }
            }
        } catch (UnknownHostException e) {
            System.err.println("Unknown host: " + serverAddress);
        } catch (IOException e) {
            System.err.println("Error connecting to server: " + e.getMessage());
        }
    }

    private static void sendFile(String fileName, Socket socket, BufferedReader in) {
        try {
            File file = new File(fileName);
            if (file.exists()) {
                PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
                out.println("UPLOAD " + fileName);
                FileInputStream fis = new FileInputStream(file);
                BufferedInputStream bis = new BufferedInputStream(fis);

                byte[] buffer = new byte[4096];
                int bytesRead;
                while ((bytesRead = bis.read(buffer)) != -1) {
                    socket.getOutputStream().write(buffer, 0, bytesRead);
                }
                bis.close();    
                fis.close();


                out.println("226 Transfer complete.");
                System.out.println("File uploaded successfully");
               
                
            } else {
                System.out.println("File not found.");
            }
        } catch (IOException e) {
            System.err.println("Error sending file: " + e.getMessage());
        }
    }

    private static void receiveFile(String fileName, Socket socket) {
        try {
            PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
            out.println("DOWNLOAD " + fileName);
            FileOutputStream fos = new FileOutputStream(fileName);
            BufferedOutputStream bos = new BufferedOutputStream(fos);
            
            byte[] buffer = new byte[4096];
            int bytesRead;
            while ((bytesRead = socket.getInputStream().read(buffer)) != -1) {
                bos.write(buffer, 0, bytesRead);
                if (bytesRead < 4096) {
                    break;
                }
                
            }
            bos.close();
            fos.close();
            
            
            
            System.out.println("File downloaded successfully");
        } catch (IOException e) {
            System.err.println("Error receiving file: " + e.getMessage());
        }
    }
}

And this is the server side:

import java.io.*;
import java.net.*;
import java.nio.file.*;

public class FTPServer {
    private static final String ROOT_DIRECTORY = "C:\\Users\\pokem\\Documents\\CSCI 361\\Server Side"; // Directory where files are stored

    public static void main(String[] args) {
        int portNumber = 8888; 

        try (ServerSocket serverSocket = new ServerSocket(portNumber)) {
            System.out.println("Server started. Waiting for clients...");

            while (true) {
                Socket clientSocket = serverSocket.accept();
                System.out.println("Client connected: " + clientSocket);

                // Handle each client in a separate thread
                new ClientHandler(clientSocket).start();
            }
        } catch (IOException e) {
            System.err.println("Error in server: " + e.getMessage());
        }
    }

    static class ClientHandler extends Thread {
        private Socket clientSocket;
        private PrintWriter out;
        private BufferedReader in;
        private boolean authenticated = false;

        public ClientHandler(Socket socket) {
            this.clientSocket = socket;
            try {
                out = new PrintWriter(clientSocket.getOutputStream(), true);
                in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

        @Override
        public void run() {
            try {
                // Authentication
                authenticate();
                if (!authenticated) {
                    clientSocket.close();
                    return;
                }

                // Main loop for handling client commands
                String inputLine;
                while ((inputLine = in.readLine()) != null) {
                    if (inputLine.equalsIgnoreCase("QUIT")) {
                        System.out.println("Client disconnected: " + clientSocket);
                        break;
                    } else if (inputLine.equalsIgnoreCase("LIST")) {
                        listFiles();
                    } else if (inputLine.startsWith("DOWNLOAD ")) {
                        String fileName = inputLine.substring(9); // Extracting filename from the command
                        sendFile(fileName);
                    } else if (inputLine.startsWith("UPLOAD ")) {
                        String fileName = inputLine.substring(7); // Extracting filename from the command
                        receiveFile(fileName, in);
                    } else {
                        out.println("500 Invalid command.");
                    }
                }
            } catch (IOException e) {
                System.err.println("Error handling client: " + e.getMessage());
            }
        }

        private void authenticate() throws IOException {
            out.println("Please enter your username:");
            String username = in.readLine();
            out.println("Please enter your password:");
            String password = in.readLine();
            authenticated = authenticateUser(username, password);
            if (authenticated) {
                out.println("230 Authentication successful. Welcome " + username + "!");
            } else {
                out.println("530 Authentication failed. Disconnecting...");
            }
        }

        private boolean authenticateUser(String username, String password) {
            // Simulated authentication - just a placeholder
            return username.equals("admin") && password.equals("admin123");
        }

        private void listFiles() {
            try {
                File directory = new File(ROOT_DIRECTORY);
                File[] files = directory.listFiles();
                if (files != null) {
                    for (File file : files) {
                        if (file.isFile()) {
                            out.println(file.getName());
                        }
                    }
                }
                out.println("226 Directory listing complete");
            } catch (Exception e) {
                out.println("550 Error listing directory");
            }
        }

        private void sendFile(String fileName) {
            try {
                File file = new File(ROOT_DIRECTORY + File.separator + fileName);
                if (file.exists()) {
                    FileInputStream fis = new FileInputStream(file);
                    BufferedInputStream bis = new BufferedInputStream(fis);
                    
                    byte[] buffer = new byte[4096];
                    int bytesRead;
                    while ((bytesRead = bis.read(buffer)) != -1) {
                        clientSocket.getOutputStream().write(buffer, 0, bytesRead);
                    }
                    bis.close();
                    fis.close();
                    
                    System.out.println("File sent: " + fileName);
                    out.println("226 Transfer complete.");
                    
                } else {
                    out.println("550 File not found.");
                }
            } catch (IOException e) {
                out.println("550 Error sending file");
            }
        }

        private void receiveFile(String fileName, BufferedReader in) {
            try {
                FileOutputStream fos = new FileOutputStream(fileName);
                BufferedOutputStream bos = new BufferedOutputStream(fos);

                byte[] buffer = new byte[4096];
                int bytesRead;

                while ((bytesRead = clientSocket.getInputStream().read(buffer)) != -1) {
                    bos.write(buffer, 0, bytesRead);
                    if (new String(buffer, 0, bytesRead).trim().equals("226 Transfer complete.")) {
                        break;
                    }
                }
                bos.close();
                fos.close();
                System.out.println("File received: " + fileName);
                
            } catch (IOException e) {
                out.println("550 Error receiving file");
            }
        }
    }
}

How to redirect to Play store using App Links if app not installed in Android?

I am using the concept of deep linking in my app & have to integrate deep linking tool without any pricing. for this i am using App links in Android and successfully able to integrate it as well when i share the link from my app its working fine it goes to the destination in app

but problem is when a user is not having app installed this link is opening through phone's browser and error is displayed of not found but i want to go to the play store if app is not installed. what approach should i try.

or please suggest any free 3rd party tool to implement the same functionality

Thanks in advance!!

Upgrading Glory Star Nebula 21.5" Tablet to basic Android Rom

I just bought an Echelon spin bike and it came with a Glory Star Nebula 21.5" (glorystartouch.com/product/Kiosk-Tablet/NEB-215) The specs are on that page. It runs android 7.1.2 and uses a kiosk lock ap called STAROS

I am able to get to the main program and sideload most anything.

Tap at the bottom right corner 5 times, password is either "0000" or "1085"

I've installed Nova Launcher which helps, but most apps I have installed need a newer version. I have not been able to get play...

Read more
❌
❌