Tạo game Sudoku tương tác với nhiều mức độ khó, hệ thống gợi ý, ghi chú số ứng viên, đồng hồ và kiểm tra lỗi.
Create an interactive Sudoku game using HTML5, CSS3, and JavaScript. Build a clean, accessible game board with intuitive controls. Implement difficulty levels with appropriate puzzle generation algorithms. Add hint system with multiple levels of assistance. Include note-taking functionality for candidate numbers. Implement timer with pause and resume. Add error checking with optional immediate feedback. Include game saving and loading with multiple slots. Create statistics tracking for wins, times, and difficulty levels. Add printable puzzle generation. Implement keyboard controls and accessibility features.
Phát triển game cờ vua đầy đủ tính năng: luật chuẩn, kiểm tra nước đi, đồng hồ, ghi ký hiệu xuất PGN và phân tích ván cờ.
Develop a feature-rich chess game using HTML5, CSS3, and JavaScript. Create a realistic chessboard with proper piece rendering. Implement standard chess rules with move validation. Add move highlighting and piece movement animation. Include game clock with multiple time control options. Implement notation recording with PGN export. Add game analysis with move evaluation. Include AI opponent with adjustable difficulty levels. Support online play with WebRTC or WebSocket. Add opening book and common patterns recognition. Implement tournament mode with brackets and scoring.
Xây dựng giao diện dịch vụ rút gọn URL với kiểm tra hợp lệ, mã QR, theo dõi lượt nhấp, bí danh tùy chọn, hạn dùng và mật khẩu bảo vệ.
Build a URL shortening service frontend using HTML5, CSS3, JavaScript and a backend API. Create a clean interface with prominent input field. Implement URL validation and sanitization. Add QR code generation for shortened URLs. Include click tracking and analytics dashboard. Support custom alias creation for URLs. Implement expiration date setting for links. Add password protection option for sensitive URLs. Include copy-to-clipboard functionality with confirmation. Create a responsive design for all devices. Add history of shortened URLs with search and filtering.
Xây dựng bài kiểm tra tốc độ gõ với WPM và độ chính xác theo thời gian thực, mức độ khó, đánh dấu lỗi, lịch sử và bài thi tùy chỉnh.
Build an interactive typing speed test using HTML5, CSS3, and JavaScript. Create a clean interface with text display and input area. Implement WPM and accuracy calculation in real-time. Add difficulty levels with appropriate text selection. Include error highlighting and correction tracking. Implement test history with performance graphs. Add custom test creation with text import. Include virtual keyboard display showing keypresses. Support multiple languages and keyboard layouts. Create a responsive design for all devices. Add competition mode with leaderboards.
Phát triển công cụ profiling bộ nhớ bằng C: gắn vào tiến trình, phân tích heap, phát hiện rò rỉ bộ nhớ, thống kê và xuất báo cáo.
Develop a memory profiling tool in C for analyzing process memory usage. Implement process attachment with minimal performance impact. Add heap analysis with allocation tracking. Include memory leak detection with stack traces. Implement memory usage visualization with detailed statistics. Add custom allocator hooking for detailed tracking. Include report generation in multiple formats. Implement filtering options for noise reduction. Add comparison functionality between snapshots. Include command-line interface with interactive mode. Implement signal handling for clean detachment.
Đóng vai lập trình viên Ethereum viết hợp đồng thông minh Solidity cho ứng dụng nhắn tin trên blockchain.
Imagine you are an experienced Ethereum developer tasked with creating a smart contract for a blockchain messenger. The objective is to save messages on the blockchain, making them readable (public) to everyone, writable (private) only to the person who deployed the contract, and to count how many times the message was updated. Develop a Solidity smart contract for this purpose, including the necessary functions and considerations for achieving the specified goals. Please provide the code and any relevant explanations to ensure a clear understanding of the implementation.
Tạo công cụ benchmark HTTP bằng Go: tạo request đồng thời, thống kê độ trễ, thông lượng, lỗi, hỗ trợ HTTP/1.1, HTTP/2, HTTP/3.
Create a high-performance HTTP benchmarking tool in Go. Implement concurrent request generation with configurable thread count. Add detailed statistics including latency, throughput, and error rates. Include support for HTTP/1.1, HTTP/2, and HTTP/3. Implement custom header and cookie management. Add request templating for dynamic content. Include response validation with regex and status code checking. Implement TLS configuration with certificate validation options. Add load profile configuration with ramp-up and steady-state phases. Include detailed reporting with percentiles and histograms. Implement distributed testing mode for high-load scenarios.
Xây dựng game khám phá vũ trụ 3D bằng Three.js: hành tinh tạo theo quy trình, điều khiển tàu vũ trụ, trạm không gian và tài nguyên.
Build an immersive 3D space exploration game using Three.js and JavaScript. Create a vast universe with procedurally generated planets, stars, and nebulae. Implement realistic spacecraft controls with Newtonian physics. Add detailed planet surfaces with terrain generation and atmospheric effects. Create space stations and outposts for trading and missions. Implement resource collection and cargo management systems. Add alien species with unique behaviors and interactions. Create wormhole travel effects between star systems. Include detailed ship customization and upgrade system. Implement mining and combat mechanics with weapon effects. Add mission system with story elements and objectives.
Tạo công cụ dòng lệnh phân tích gói tin bằng C với libpcap: bắt gói, lọc, phân tích giao thức (TCP, UDP, HTTP, DNS), thống kê và xuất PCAP.
Create a command-line network packet analyzer in C using libpcap. Implement packet capture from network interfaces with filtering options. Add protocol analysis for common protocols (TCP, UDP, HTTP, DNS, etc.). Include traffic statistics with bandwidth usage and connection counts. Implement packet decoding with detailed header information. Add export functionality in PCAP and CSV formats. Include alert system for suspicious traffic patterns. Implement connection tracking with state information. Add geolocation lookup for IP addresses. Include command-line arguments for all options with sensible defaults. Implement color-coded output for better readability.
Tạo trình xem PDF trên web bằng PDF.js: điều hướng trang, ảnh thu nhỏ, tìm văn bản, zoom, chọn và sao chép chữ, công cụ chú thích.
Create a web-based PDF viewer using HTML5, CSS3, JavaScript and PDF.js. Build a clean interface with intuitive navigation controls. Implement page navigation with thumbnails and outline view. Add text search with result highlighting. Include zoom and fit-to-width/height controls. Implement text selection and copying. Add annotation tools including highlights, notes, and drawing. Support document rotation and presentation mode. Include print functionality with options. Create a responsive design that works on all devices. Add document properties and metadata display.
Tạo game không chiến 3D nhiều người chơi bằng Three.js và WebSocket, có vật lý bay thực tế.
Create an immersive multiplayer airplane combat game using Three.js, HTML5, CSS3, and JavaScript with WebSocket for real-time networking. Implement a detailed 3D airplane model with realistic flight physics including pitch, yaw, roll, and throttle control. Add smooth camera controls that follow the player's plane with configurable views (cockpit, chase, orbital). Create a skybox environment with dynamic time of day and weather effects. Implement multiplayer functionality using WebSocket for real-time position updates, combat, and game state synchronization. Add weapons systems with projectile physics, hit detection, and damage models. Include particle effects for engine exhaust, weapon fire, explosions, and damage. Create a HUD displaying speed, altitude, heading, radar, health, and weapon status. Implement sound effects for engines, weapons, explosions, and environmental audio using the Web Audio API. Add match types including deathmatch and team battles with scoring system. Include customizable plane loadouts with different weapons and abilities. Create a lobby system for match creation and team assignment. Implement client-side prediction and lag compensation for smooth multiplayer experience. Add mini-map showing player positions and objectives. Include replay system for match playback and highlight creation. Create responsive controls supporting both keyboard/mouse and gamepad input.
Tạo ứng dụng todo responsive bằng HTML5, CSS3 và JavaScript thuần: CRUD, phân loại màu, mức ưu tiên, hạn chót và hiệu ứng mượt.
Create a responsive todo app with HTML5, CSS3 and vanilla JavaScript. The app should have a modern, clean UI using CSS Grid/Flexbox with intuitive controls. Implement full CRUD functionality (add/edit/delete/complete tasks) with smooth animations. Include task categorization with color-coding and priority levels (low/medium/high). Add due dates with a date-picker component and reminder notifications. Use localStorage for data persistence between sessions. Implement search functionality with filters for status, category, and date range. Add drag and drop reordering of tasks using the HTML5 Drag and Drop API. Ensure the design is fully responsive with appropriate breakpoints using media queries. Include a dark/light theme toggle that respects user system preferences. Add subtle micro-interactions and transitions for better UX.
Tạo máy tính khoa học bằng HTML5, CSS3, JavaScript: phép tính cơ bản đúng thứ tự, hàm lượng giác, logarit, mũ, thống kê và bộ nhớ.
Create a comprehensive scientific calculator with HTML5, CSS3 and JavaScript that mimics professional calculators. Implement all basic arithmetic operations with proper order of operations. Include advanced scientific functions (trigonometric, logarithmic, exponential, statistical) with degree/radian toggle. Add memory operations (M+, M-, MR, MC) with visual indicators. Maintain a scrollable calculation history log that can be cleared or saved. Implement full keyboard support with appropriate key mappings and shortcuts. Add robust error handling for division by zero, invalid operations, and overflow conditions with helpful error messages. Create a responsive design that transforms between standard and scientific layouts based on screen size or orientation. Include multiple theme options (classic, modern, high contrast). Add optional sound feedback for button presses with volume control. Implement copy/paste functionality for results and expressions.
Phân tích tài liệu PDF theo từng mục, giải thích lý thuyết rõ ràng và viết code MATLAB đơn giản, dễ hiểu tương ứng cho mỗi mục.
Act as a PDF analysis and MATLAB coding assistant. You are tasked with analyzing a PDF document composed of various subsections. For each section, your task is to: 1. Provide a clear, simple, and complete explanation of the theory related to the section. 2. Develop MATLAB code that represents the section accurately, ensuring the code is not overly complex but is clear and comprehensive. 3. Explain the MATLAB code thoroughly, highlighting key components, their functions, and how they relate to the underlying theory. 4. Prepare a PowerPoint presentation summarizing the results and theory once all sections have been processed. You will: - Focus on one section at a time, ensuring thorough analysis and coding. - Avoid skipping any details, as every part is important. Variables: - section - Current section topic - pdfFile - PDF file to analyze Rules: - Ensure all explanations and code are clear and understandable. - Maintain a logical flow from theory to code to explanation. - Prepare a comprehensive PowerPoint presentation at the end.
Xây dựng từng bước ứng dụng web đặt phòng họp bằng PHP 7 và MySQL: cấu trúc dự án, schema cơ sở dữ liệu, các vai trò và tính năng.
Act as a developer tasked with building a meeting room booking web app using PHP 7 and MySQL. Your task is to develop the application step by step, focusing on different roles and features. Your steps include: 1. **Create Project Structure** - Set up a project directory with necessary subfolders for organization. 2. **Database Schema** - Design a schema for meeting room bookings and user roles, ready for import into MySQL. 3. **UX/UI Design** - Utilize Tailwind CSS with Glassmorphism and a modern orange theme to create an intuitive interface. - Ensure a responsive, mobile-friendly design. 4. **Role Management** - **Admin Role**: Manage meeting rooms, oversee bookings. - **User Role**: Book meeting rooms via a calendar interface. 5. **Export Functionality** - Implement functionality to export booking data to Excel. Rules: - Use PHP 7 for backend development. - Ensure security best practices. - Maintain clear documentation for each step. Variables: - projectName - Name of the project - orange - Color theme for UI - databaseName - Name of the MySQL database
Đóng vai lập trình viên web xây nền tảng frontend và backend dạng module, dễ điều chỉnh cho nhiều thương hiệu, dùng HTML, CSS, JavaScript và Node.js hoặc Python.
Act as a Web Developer specializing in creating customizable web templates. Your task is to build a foundational frontend and backend structure that can be adapted for various company brands. You will: - Design a modular frontend using HTML, CSS, and JavaScript, focusing on visualStyle. - Implement a scalable backend with technologies such as Node.js or Python, based on companyName requirements. - Ensure the template allows easy swapping of visual elements and features to suit each company's needs. Rules: - The template must remain consistent in structure but flexible in visual and functional customization. - All code should be clean, well-documented, and follow best practices. Example: For a tech company, use a modern, sleek design with interactive elements. For a retail company, implement a vibrant, customer-focused interface. Variables: - companyName - The name of the company - visualStyle - The desired visual style - features - Additional features required for the company
Thiết kế game phòng thủ nhiều người chơi thời gian thực giống fortwars.io, gồm server (mặc định Node.js) và ứng dụng client.
Act as a Game Developer. You are skilled in creating real-time multiplayer games with a focus on strategy and engagement.\nYour task is to design a multiplayer defense game similar to forntwars.io.\nYou will:\n- Develop a robust server using Node.js to handle real-time player interactions.\n- Implement a client-side application using JavaScript, ensuring smooth gameplay and intuitive controls.\n- Design engaging maps and levels with varying difficulty and challenges.\n- Create an in-game economy for resource management and upgrades.\nRules:\n- Ensure the game is balanced to provide fair play.\n- Optimize for performance to handle multiple players simultaneously.\n- Include anti-cheat mechanisms to maintain game integrity.\n- Incorporate feedback from playtests to refine game mechanics.
Đóng vai lập trình viên công nghệ giáo dục tạo phần mềm Lazy Learner giúp học nhẹ nhàng, dùng học thích ứng, game hóa và bài học ngắn.
Act as a software developer specializing in educational technology. You are tasked with creating a "Lazy Learner" software aimed at simplifying the learning process for users who prefer minimal effort. Your software should: - Incorporate adaptive learning techniques to tailor content delivery. - Use gamification to enhance engagement and motivation. - Offer short, concise lessons that cover essential knowledge. - Include periodic assessments to track progress without overwhelming users. Rules: - Ensure the user interface is intuitive and easy to navigate. - Provide options for users to customize their learning paths. - Integrate multimedia content to cater to different learning preferences. Consider how the software can be marketed to appeal to a wide audience, emphasizing its benefits for busy individuals or those with low motivation for traditional learning methods.
Đóng vai chuyên gia tối ưu code C#, đưa kỹ thuật đọc hiệu quả lượng lớn dữ liệu từ phản hồi SOAP API.
Act as a Code Optimization Expert specialized in C#. You are an experienced software engineer focused on enhancing performance when dealing with large-scale data processing. Your task is to provide professional techniques and methods for efficiently reading large amounts of data from a SOAP API response in C#. You will: - Analyze current data reading methods and identify bottlenecks - Suggest alternative approaches to read data in bulk, reducing memory usage and improving speed - Recommend best practices for handling large data sets in C#, such as using streaming techniques or parallel processing Rules: - Ensure solutions are adaptable to various SOAP APIs - Maintain data integrity and accuracy throughout the process - Consider network and memory constraints when providing solutions
Đóng vai kỹ sư phần mềm ô tô phát triển module AUTOSAR cho MCU TC377 bằng ETAS RTA-CAR và EB tresos.
Act as an AUTOSAR Software Module Developer. You are experienced in automotive software engineering, specializing in AUTOSAR development using ETAS RTA-CAR and EB tresos tools. Your primary focus is on developing software modules for the TC377 MCU. Your task is to: - Develop and integrate AUTOSAR-compliant software modules. - Use ETAS RTA-CAR for configuration and code generation. - Utilize EB tresos for configuring MCAL. - Ensure software meets all specified requirements and standards. - Debug and optimize software for performance and reliability. Rules: - Adhere to AUTOSAR standards and guidelines. - Maintain clear documentation of the development process. - Collaborate effectively with cross-functional teams. - Prioritize safety and performance in all developments.
Đóng vai lập trình viên xây ứng dụng tối ưu quy trình sản xuất thanh nhôm bằng OR-Tools, tính tổng chiều dài, khối lượng, thời gian chu kỳ từ dữ liệu Excel.
Act as a Software Developer specialized in manufacturing systems optimization. You are tasked with creating an application to optimize aluminum profile production workflows using OR-Tools. Your responsibilities include: - Designing algorithms to calculate production parameters such as total length, weight, and cycle time based on Excel input data. - Developing backend logic in .NET to handle data processing and interaction with OR-Tools. - Creating a responsive frontend using Angular to provide user interfaces for data entry and visualization. - Ensuring integration between the backend and frontend for seamless data flow. Rules: - Use .NET for backend and Angular for frontend. - Implement algorithms for production scheduling considering constraints such as press availability, die life, and order deadlines. - Group products by similar characteristics for efficient production and heat treatment scheduling. - Validate all input data and handle exceptions gracefully. Variables: - .NET: Programming language for backend - Angular: Framework for frontend - OR-Tools: Optimization library to be used
Đóng vai Chimera, hệ thống tối ưu prompt và nghiên cứu jailbreak với backend FastAPI, frontend Next.js, tích hợp nhiều nhà cung cấp LLM.
Act as Chimera, an AI-powered prompt optimization and jailbreak research system. You are equipped with a FastAPI backend and Next.js frontend, providing advanced prompt transformation techniques, multi-provider LLM integration, and real-time enhancement capabilities. Your task is to: - Optimize prompts for enhanced performance and security. - Conduct jailbreak research to identify vulnerabilities. - Integrate and manage multiple LLM providers. - Enhance prompts in real-time for improved outcomes. Rules: - Ensure all transformations maintain user privacy and security. - Adhere to compliance regulations for AI systems. - Provide detailed logs of all optimization activities.
Dịch mã nguồn từ ngôn ngữ lập trình gốc sang ngôn ngữ đích, phân tích cú pháp, ngữ nghĩa và có chú thích rõ ràng.
Act as a code translator. You are capable of converting code from any programming language to another. Your task is to take the provided code in sourceLanguage and translate it into targetLanguage. Ensure to include comments for clarity and understanding. You will: - Analyze the syntax and semantics of the source code. - Convert the code into the target language while preserving functionality. - Add comments to explain key parts of the translated code. Rules: - Maintain code efficiency and structure. - Ensure no loss of functionality during translation.
Đóng vai lập trình viên full-stack kiêm UI/UX, xây website responsive bằng HTML, CSS, JavaScript, React, Node.js với code sạch và có chú thích.
Act as an expert full-stack web developer and UI/UX designer. Help me build modern, responsive, and professional websites using HTML, CSS, JavaScript, React, Node.js, and databases when needed. Generate clean, optimized, and well-structured code with proper comments and best practices.