Top Tweets for #userProfile
انسب حل لك انك تاخذ ملف حفظ 100% مختم و تنقله للعبه
و تلعب الاضافه بعدها
دور على ملف حفظ للعبه و يكون 100%
طريقة التركيب 👇
1️⃣ اشتري اللعبة على الـ PC أول شيء وافتحها مرة عشان ينشئ مجلد الحفظ
2️⃣ روح للمسار
`%USERPROFILE%\AppData\LocalLow\Team Cherry\Hollow Knight Silksong\`
3️⃣ حط ملف الـ user1.dat (أو غيره) داخل مجلد رقم الـ Steam حقك
4️⃣ وقف الـ Steam Cloud قبلها عشان ما يكتب فوقه
ماهو Frontend Architecture (بنية واجهات المستخدم)؟
في بعض المشاريع مطور الفرونت اند يضع كل شيء (تصميم الأزرار، جلب البيانات من الخادم، التحقق من المدخلات، وتنسيق الألوان) داخل ملف واحد كبير مثلاً: UserProfile.jsx.
لكن الكود سيكون
Name things like you’ll forget them tomorrow
Bad: $d, $tmp, $data2
Good: $userProfile, $invoiceTotal, $isLoggedIn
If you need a comment to explain a variable name, the name is wrong.
What’s the worst variable name you’ve seen in the wild?
Name things like you’ll forget them tomorrow
Bad: $d, $tmp, $data2
Good: $userProfile, $invoiceTotal, $isLoggedIn
If you need a comment to explain a variable name, the name is wrong.
What’s the worst variable name you’ve seen in the wild?

Answer: Anyone can edit any profile.
The account constraint on "profile" only checks that it is mutable (#[account(mut)]). It never verifies that the signer actually owns this profile. Any wallet can call this instruction with any profile account and overwrite the name.
This is one of the most common Solana vulnerabilities: missing owner/authority checks.
Fix: Add a has_one or constraint check:
#[derive(Accounts)]
pub struct UpdateProfile<'info> {
#[account(mut, has_one = authority)]
pub profile: Account<'info, UserProfile>,
pub authority: Signer<'info>,
}
The has_one = authority constraint tells Anchor to verify that profile.authority matches the authority account's public key. Without this, your program is essentially an open write endpoint.
This is the Solana equivalent of broken access control.
In 2022 and 2023, multiple DeFi protocols lost funds because of missing signer or owner checks in their Anchor programs.
Reviewing a Solana Anchor program.
This instruction updates a user profile:
pub fn update_profile(ctx: Context<UpdateProfile>, new_name: String) -> Result<()> {
let profile = &mut ctx.accounts.profile;
https://t.co/0xjL8C4o6E = new_name;
Ok(())
}
#[derive(Accounts)]
pub struct UpdateProfile<'info> {
#[account(mut)]
pub profile: Account<'info, UserProfile>,
pub signer: Signer<'info>,
}
What is wrong here?
#solana #broken #access #control #security
Day 98: Full feature audit, documentation, mobile parity improvements & new screens! 📋🚀
Today's highlights:
✓ Created Comprehensive Feature Documentation (FEATURES.md):
- Full audit of every feature across backend, web, and mobile
- Documented all 100+ API endpoints with methods and routes
- Feature parity matrix showing web vs mobile coverage
- Categorized: Auth, Discovery, Reviews, Dishes, Favorites, Leaderboard, Claims, Subscriptions, Credits, Orgs, Notifications, Admin, Uploads, Webhooks, Analytics
- Data model reference with all enums and key models
- Tech stack documentation for all three platforms
✓ Rebuilt Mobile HomeScreen (native HomeScreen.tsx):
- Replaced generic "SaaS Boilerplate" with TrustFlavor branded home
- Red hero header with app branding
- Quick action grid: Discover, Favorites, Leaderboard, My Reviews
- Horizontal scroll of Top Rated restaurants with rank badges (#1, #2...)
- Horizontal scroll of Trending restaurants
- Browse by Cuisine section with emoji chips (Momo, Dal Bhat, Newari, etc.)
- Loads real data from getTopRatedRestaurants + getTrendingRestaurants APIs
✓ Added Advanced Filters to Mobile Discover (native DiscoverScreen.tsx):
- Expandable filter panel with filter count badge
- Price Range filter: Budget, Moderate, Premium, Luxury
- Amenities filter: WiFi, Parking, Outdoor, Delivery, Takeout, Live Music
- Sort options: Top Rated, Most Reviewed, Newest, A-Z
- Toggle amenity chips with multi-select
- All filters pass to getRestaurants API
✓ Built UserProfileScreen for Mobile (native UserProfileScreen.tsx):
- New screen showing public user profiles
- Avatar with initials fallback, user name, level badge
- Member since date display
- Stats row: Reviews, Avg Rating, Helpful votes, Favorites
- User badge pills with colored backgrounds
- Paginated review list with restaurant thumbnails
- Tap review to navigate to restaurant detail
- Load more reviews button with pagination
- Wired into App.tsx navigation with navigateToProfile()
✓ Rebuilt Mobile DashboardScreen (native DashboardScreen.tsx):
- Replaced generic "SaaS app" with real TrustFlavor dashboard
- Real-time stats: My Reviews, Favorites, Unread Notifications, Credits
- Loads actual data from API (credits, unread count, favorites, reviews)
- Quick action rows: Discover, Leaderboard, Settings
- Account info card with name and email
- Pull-to-refresh to reload all stats
- Sign out button with TrustFlavor styling
✓ Added Cuisine Filter to Top-Rated Page (web top-rated/page.tsx):
- New cuisine dropdown filter alongside existing city filter
- 12 cuisine options: Momo, Dal Bhat, Newari, Thakali, Cafe, etc.
- Client-side filtering on loaded data for instant response
- Combined city + cuisine filtering
✓ Updated App.tsx Navigation:
- Imported and wired UserProfileScreen
- Added profileUserId state for profile navigation
- navigateToProfile() function for screen transitions
- user-profile case in getCurrentScreen switch
New files: 2 (FEATURES.md, UserProfileScreen.tsx) | Updated files: 5 | Features: 6
Full platform audit complete — every feature documented, mobile catching up to web! 📋🇳🇵
#buildinpublic #saas #nepal #trustflavor
One fun thing i did with https://t.co/hlNrcdLbra :
If you directly use the url to see a profile, for example
https://t.co/CyUZ6O5OVz
Githero checks whether that is a valid github-profile by downloading the profiles avatar.
If the github-user exists, show a "unclaimed" userprofile
And if the avatar doesn't exist, that means that there is no github profile with that username, and therefore, we show a 404-page.
Try it yourself =)
How to make Claude remember your entire codebase
The biggest frustration with AI coding: "Why doesn't it remember what we just built?"
Context is everything. Here's how to manage it:
THE PROBLEM
Claude doesn't actually forget. It has a context window. Everything you've said, every file you've shared, every response it gave - all of that fills the window. When it's full, old stuff falls out.
So when Claude "forgets" your auth system exists, it's because 47 messages of debugging pushed it out of memory.
THE FIXES
1. Create a https://t.co/4Cd3uTqZw7 (if it doesn't exist already) file in your root directory. This is your project's brain. Include: what the app does in 2 sentences, tech stack, file structure overview, key architectural decisions, naming conventions you're using. Claude reads this automatically. Update it as you build.
2. Create a docs folder with mini-docs for complex features. Auth flow. Database schema. API routes. When you need Claude to work on auth, paste the auth doc. Now it has full context without you explaining from scratch.
3. Start new conversations strategically. Don't use one eternal chat. When you finish a major feature, start fresh. Paste your https://t.co/4Cd3uTqZw7. Paste relevant docs. Clean context beats cluttered context.
4. Name everything consistently. If your user profile component is called UserProfile, never call it "the profile component" or "that user thing we made." Consistent naming helps Claude map references to actual code.
5. When context is fading, do a checkpoint. "Let's pause. Summarize what we've built so far, the current file structure, and what's left to do." Save that summary. Paste it when starting fresh.
6. Use the /add-dir command. Point Claude at the directories it needs to understand. Don't just describe your code, let Claude read it directly.
7. For large features, write a mini-spec first. "Before we build the payment system, write a brief technical spec: what files we'll create, what existing files we'll modify, what the data flow looks like." Now you have a doc you can reference throughout.
8. Keep a https://t.co/1ruAJgur6r file. Every time you make an architectural choice, log it. "Using Supabase instead of Firebase because X." "Storing images in R2 because Y." When Claude suggests something contradictory later, paste the relevant decision.
9. Paste file contents, not descriptions. "Here's the current auth.ts file: [paste]" beats "remember that auth file we made?" Claude works better with actual code than references to code.
10. Use @filename references. When you mention specific files, use the actual filename. "@components/Button.tsx needs a loading state." Claude tracks these better than vague references.
THE MENTAL MODEL
Think of Claude like a brilliant contractor with amnesia. Every morning they forget yesterday's work. Your job is to leave good notes.
https://t.co/4Cd3uTqZw7 is the project overview they read first.
The docs folder is detailed blueprints.
Pasting code is showing them the actual site.
The builders who complain about AI forgetting things are the ones who don't document.
Day 19 of building with Django.
I added a proper UserProfile model that stores full name, phone number and avatar, and made sure it stays synced with Django’s default User model.

Day 18 of building with Django.
Busy day, but I kept the streak alive!
- Added forgot password on the login page
- Using Django’s built-in email for now (SMTP tomorrow)
- Set up URLs for my reset-password templates
Free stuffs everywhere in Django
Hold me accountable 👨🏽💻♾️

或者:
1. 打开命令提示符 (CMD):
2. 在开始菜单搜索 cmd,然后右键点击“命令提示符”,选择“以管理员身份运行”。
定位到安装程序目录:
使用 cd 命令切换到 comet_installer_latest.exe 文件所在的文件夹。例如,如果文件在桌面上,可能需要输入(请替换成您的实际路径): cd %USERPROFILE%\Desktop
设置临时环境变量并启动程序:
在 Windows CMD 中,你需要使用 set 命令,并且这些变量只在当前这个 CMD 窗口中生效。
set http_proxy=http://127.0.0.1:7890
set https_proxy=http://127.0.0.1:7890
3. 设置完后,直接输入程序名来启动它:
comet_installer_latest.exe

More 👇🏻
Booleans → start with is, has, can → isLoggedIn, hasAccess, canEdit.
Avoid vague names → data, info; use descriptive names → userProfile, orderList.
Database Names → snake_case : user_profiles, order_items
Avoid abbreviations → usrCnt → userCount.
Stick to one naming convention per project.
🚨Naming Conventions in Programming
1. Variables: camelCase → userName, totalCount.
2. Functions: camelCase → getUserData(), sendEmail().
3. Classes: PascalCase → UserService, OrderManager.
4. Constants: UPPER_SNAKE_CASE → MAX_RETRY, API_TIMEOUT.
5. File Names: lowercase-with-dashes → user-service.js, https://t.co/SrTYZtGdn9
Naming things right is 80% of writing clean code.
When databases start growing huge, two terms come up a lot: partitioning and sharding. They sound similar but aren’t the same.
Partitioning means splitting a dataset into smaller, logical parts.
•Vertical partitioning: split by columns. A Users table might become UserProfile (name, email) and UserSecurity (password, 2FA).
•Horizontal partitioning: split by rows. Users A–M in one partition, N–Z in another. Each partition has the same schema but holds a subset of rows.
Partitioning improves manageability and query performance, because the system can target a subset of data instead of scanning everything.
Sharding is a specific case of horizontal partitioning that distributes data across multiple servers. Each shard is independent and stores part of the dataset.
Example: users with IDs 1–1,000,000 live on one shard, 1,000,001–2,000,000 on another. Together, the shards form the complete database.
So the distinction is simple: partitioning organizes data into logical pieces, sharding spreads those pieces across machines.
Partitioning helps with performance and structure, sharding makes true horizontal scaling possible.
That’s why large-scale systems rely on sharding once a single machine isn’t enough.
When databases start growing huge, two terms come up a lot: partitioning and sharding. They sound similar but aren’t the same.
Partitioning means splitting a dataset into smaller, logical parts.
•Vertical partitioning: split by columns. A Users table might become UserProfile (name, email) and UserSecurity (password, 2FA).
•Horizontal partitioning: split by rows. Users A–M in one partition, N–Z in another. Each partition has the same schema but holds a subset of rows.
Partitioning improves manageability and query performance, because the system can target a subset of data instead of scanning everything.
Sharding is a specific case of horizontal partitioning that distributes data across multiple servers. Each shard is independent and stores part of the dataset.
Example: users with IDs 1–1,000,000 live on one shard, 1,000,001–2,000,000 on another. Together, the shards form the complete database.
So the distinction is simple: partitioning organizes data into logical pieces, sharding spreads those pieces across machines.
Partitioning helps with performance and structure, sharding makes true horizontal scaling possible.
That’s why large-scale systems rely on sharding once a single machine isn’t enough.
React is evolving fast.
If you’re building apps in 2025, here are 7 questions every React dev should be able to answer :
Let’s go 👇
>> What are Server Components in React?
- They let you offload rendering to the server → smaller bundles, faster apps.
- Great for performance, but tricky with interactivity.
>> What’s the difference between useMemo and useCallback?
- useMemo → memoizes values
- useCallback → memoizes functions
- Use them to avoid unnecessary re-renders.
>> How do you manage state in large apps?
- Local → useState, useReducer
- Global → Context, Redux Toolkit, Zustand
- Server state → React Query / SWR
⚡ Pro tip: Don’t overuse Context, it can hurt performance.
>> How does React handle Suspense for data fetching?
- Suspense lets components “wait” for async data before rendering.
Example:
<Suspense fallback={<Loader />}>
<UserProfile />
</Suspense>
>> How do you optimize React performance?
- Use React.memo to skip re-renders
- Code split with lazy
- Batch state updates
- Avoid prop drilling
- Performance is 80% about avoiding wasted renders.
>> What are some common React rendering pitfalls?
- Passing new inline functions → causes re-renders
- Unnecessary context updates
- Missing dependency arrays in hooks
>> How do you structure a scalable React project?
- Group by feature, not file type
- Keep UI (components) separate from logic (hooks/services)
>> These 7 questions aren’t just for interviews.
>> They’re the foundations for building scalable, maintainable React apps in 2025.

Django User Models: A Complete Guide
Django comes with a built-in User model that includes essential fields and methods for authentication and user management. Here are the default fields provided:
username
first_name
last_name
email
password
groups
user_permissions
is_staff
is_active
is_superuser
last_login
date_joined
However, in real-world applications, you often need to customize the user model to fit your project requirements. Django provides two main approaches:
---
✅ 1. Extending the Built-in User Model
If you only need to add extra fields (like phone number, profile picture, address) without altering the authentication logic, extending the default model is the best option.
How?
Create a new model (e.g., UserProfile)
Use a One-to-One relationship with the built-in User model using OneToOneField
Example:
from django.db import models
from django.contrib.auth.models import User
class UserProfile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
mobile = models.CharField(max_length=15, blank=True)
def __str__(self):
return self.user.username
Steps:
1. Create a new app (e.g., user_profile)
2. Add the app in INSTALLED_APPS
3. Add UserProfile model in https://t.co/R7PgAOSkng
4. Register the model in https://t.co/kMLbhm6w2s
5. Run migrations and check in Django Admin
---
✅ 2. Substituting the User Model
If you need a fully customized user model (e.g., remove first_name, add mobile, change login credentials), you should substitute the built-in model.
Django provides two base classes for this:
AbstractUser → Easier, includes standard fields
AbstractBaseUser → Minimal, requires more implementation but maximum flexibility
Example using AbstractUser:
from django.db import models
from django.contrib.auth.models import AbstractUser
class CustomUser(AbstractUser):
mobile = models.CharField(max_length=15, blank=True)
class Meta(AbstractUser.Meta):
db_table = 'custom_user'
Steps:
1. Create a new app (e.g., user_model)
2. Set AUTH_USER_MODEL = 'user_model.CustomUser' in https://t.co/iMcWu35KCr
3. Register the model in https://t.co/kMLbhm6w2s
4. Run migrations and create a superuser
---
✅ Which Approach Should You Choose?
Extend the User Model if you just need extra profile fields
Substitute the User Model if you want full control over user attributes and authentication logic
---
💡 Tip: Decide early! Changing the user model after the first migration can be complex.

Use descriptive variable names in React.js! `const el` is cryptic. `const userProfileElement` is clear. Better readability = easier debugging and collaboration. #reactjs #javascript #codingtips
随着 AI 辅助编码逐渐普及开来,很多前端开发者会面临一个问题:如何让 AI 更好地帮我完成页面的编码工作?
这不仅仅是 prompt 怎么写的问题,更深层次的挑战在于:你项目的前端架构是否足够“AI 友好”。换句话说,AI 想要帮你写页面、改组件、生成接口调用,前提是它必须“看得懂”你当前的项目结构、组件语义、数据流动方式。否则,AI 生成的代码往往只能是“猜个大概”,难以真正落地。
以我使用 v0 来生成组件为例,我通常会在 prompt 中补充一句:「组件与数据解耦,数据通过 props 传递」。这样可以让生成的组件保持更高的灵活性与可复用性,不直接依赖具体的数据源或硬编码的内容。
当我们希望 AI 修改这些组件,或者基于已有组件进行拓展时,良好的结构化设计能够帮助 AI 准确识别组件边界、职责与依赖,避免误改数据结构,也更便于组合、扩展和测试。
因此,如果我们希望 AI 真正成为前端开发中的强力助手,就需要从工程实践出发,构建一套层次清晰、语义明确、数据流可追踪的前端架构体系,使项目具备天然的“AI 可协作性”。。
那么,该如何打造一套“AI 友好”的前端架构体系呢?我们不妨从前端开发者的日常开发流程出发,逐步拆解。
从前端开发者的开发流程来看, 通常分为两步:业务组件开发, 以及页面对接与接口联调。这里, 我们以Next.js项目为例。
首先是业务组件开发,重点是构建好可复用的组件资产,让页面搭建变得模块化、积木化。
组件划分为两层:最底层是基础组件层,通常来源于 UI 库(如 shadcn-ui),例如 Button、Input、Card 等。它们被归纳在 components/ui/ 目录,构成了整个设计体系的“原子单位”。
在基础组件之上,我们再封装业务组件,放在 components/business/ 中。这些组件通常具备特定的业务语义,例如 ProductCard、UserProfileHeader 等。它们在样式、交互与业务行为之间达成了平衡,同时因为语义清晰,也方便 AI 理解其用途,并在需要时快速推荐或复用。这里建议,组件需要具备明确的职责边界和设计文档,支持 Storybook 等方式进行可视化管理与文档输出。
在真实的工程中, 很多开发者容易在开发业务组件时不做解耦,业务组件里耦合了很多Store数据。这样的话当我们使用AI辅助编码时, 其实就需要输入更多的上下文提示, 同时也会消耗更多的token。因此,尽量保持组件的纯粹性,把数据逻辑上移,是让 AI 更高效协同的重要一步。
组件完成后,进入页面对接与接口联调阶段。这个阶段的关键,不在于写页面本身,而在于如何将组件、数据和服务解耦、抽象、组合起来。
首先构建API 请求服务层,在 app/services/ 目录中统一封装所有接口调用逻辑。每个 API 函数都带有严格的类型注解和参数/响应模型定义,这些结构化信息不仅帮助开发者写代码,也让 AI 更容易生成 Mock 数据、自动生成测试用例,甚至帮助理解接口用途。
接下来是 Store 层,它是每个页面的数据代理人。它统一管理页面所需的远程数据获取、状态缓存、预处理逻辑,并对外暴露清晰的 hooks 接口(如 useProductList、useUserProfile 等)。这一层位于 app/***/store/ 目录下,目的是在“数据”和“页面”之间增加一个可测试、可替换、可文档化的中间层。
最后是页面本身。每个页面文件组织在 app/***/page.tsx 中,只关心组件渲染和数据拼装,它们不做逻辑判断,也不操作数据结构。如果页面逻辑过重,建议拆为更细粒度的容器组件。这样的设计可以让 AI 轻松地从页面文件中识别页面结构、组件使用方式与布局意图,有助于实现自动化 UI 生成、内容摘要提取等能力。
更重要的是,这种结构使得数据的流动路径是完全可预测的: API 服务层 → Store 层 → 页面层 → 业务组件层 → 基础组件层。
在实践中,这样的架构带来了极强的可扩展性。例如,我们可以自动生成页面文档、组件使用手册,甚至借助 AI 生成完整的原型页,只要我们为组件和数据层打好语义锚点,AI 就能参与到页面生成与迭代之中, 成为真正的协作者而非“生成器”。
总结来说,AI 友好的前端架构不是重新发明一套开发体系,而是在现有组件化理念上,进一步强化结构的语义性与解耦性。让每个层级都承担单一责任,并以统一、透明的方式连接上下游。这样,我们不仅提高了开发者的协作效率,也为 AI 的深度参与扫清了路障。

Is it just me or do you find doing version control for jupiter notebooks difficult?
What's your preferred way of handling it, assume that you are working across 3 colab userprofiles, 2 local device, all having diff python versions... am I missing something obvious here?
Big thanks to @TheBlockLisboa for inviting me to speak at their Thursday weekly event! #web3 #startups #userprofile #productmarketfit #interviews #userrecruitment https://t.co/FlKYhkHQge
Daily UI | Day 7: Settings
Para este día decidí diseñar la interfaz de settings de la página de perfil de usuario que diseñé en el reto de ayer.
Puedes ver la interfaz en Figma.
https://t.co/AcmLOwH5BS
#DailyUI #dailyui007 #ui #ux #uiux #uiuxdesign #userprofile #settings

Daily UI | Day 6: User Profile
He diseñado una página de perfil de usuario para una aplicación de red social de fotógrafos.
Puedes ver la interfaz en Figma.
https://t.co/zeeaWXk3NN
#DailyUI #dailyui006 #ui #ux #uiux #uiuxdesign #userprofile


Anche noi designer facciamo gli identikit 🧐🔎
#gruppotrentasei #designdrivencompany #servicedesigntool #percapirci #userprofile #humancentereddesign

I usually find it hard to manage expectations around what outputs the research will deliver. So I started to develop this model. https://t.co/f67mGs7rkW
#ux #UserExperience #persona #userprofile #userresearch #jobstobedone #uxresearch #uxdesign
#DailyUI #006 Finished design User Profile for @Daily_UI
#uidesign #100daychallenge #userinterface #webdesign #UserProfile

Last Seen Hashtags on Sotwe
tarimanasai
Seen from United Kingdom
PitchingFactory
Seen from Venezuela
MonMeilleurSouvenirAveclOM
Seen from United Kingdom
LolaMarois
Seen from France
ShemaleCumShotDuringAnalFuck
Seen from Korea
SeemaSastry
scribaverse
Seen from United Kingdom
사까시
Seen from Korea
COSMOS_WORLD_TOUR_IN_BANGKOK_DAY1
品质男装
Most Popular Users

Elon Musk 
@elonmusk
239.3M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers


























