כדי למנוע מצב של בעיית XY, אולי תכתוב מה בדיוק הצורך שלך, ולא מה אתה מנסה לעשות?
אולי יש פתרונות אחרים שיוכלו להציע לך.
חגי
-
JS קבלת נתונים על תכונות של טקסט מסומן -
JS- שינוי button ל input -
JS קבלת נתונים על תכונות של טקסט מסומן@הפצת-אנקי
אני יכול להציע פיתרון חלופי?getComputedStyle(document.getSelection().baseNode.parentElement)['font-size']אם זה לא פיתרון למקרה שלך, אשמח לנסות לעזור.
פשוט נראה לי שהפיתרון שלך זה לא הכיוון הנכון. -
האם יש תוכנה לתרגום על המסך?@י-פל
איך יכולה להיות תוכנה שהיא לא בחלון נפרד?
ב-QTranslate זה מייצר לך את החלון ליד הטקסט שסימנת


-
האם יש תוכנה לתרגום על המסך?לא הבנתי את הנקודה של הצילום מסך, אבל אני משתמש בתוכנת QTranslate והיא מאוד נוחה.
-
עזרה בהבנת קוד פייתון (NCLS)זה עוזר לך? ביקשתי מCHATGPT להסביר את הקוד ולתרגם אותו לJS
what does this code do?
ncls = NCLS(starts, ends, ids.astype("int64")) starts = np.arange(n) ends = np.arange(1, n+1) ids = starts ids, overlaps = ncls.all_overlaps_both(starts, ends, ids.astype("int64"))This code appears to be using an object of the NCLS class, which stands for "non-contiguous label-set" and is used to efficiently query overlapping intervals in a sequence.
The NCLS object is constructed using three arrays: starts, ends, and ids. These arrays represent the start and end positions of intervals in the sequence, and a unique identifier for each interval.
The all_overlaps_both method of the NCLS object is then called with the same starts, ends, and ids arrays as arguments. This method returns two arrays: ids and overlaps. The ids array is a subset of the input ids array, containing only the identifiers of the intervals that overlap with at least one other interval. The overlaps array is a boolean array of the same length as the input ids array, where True indicates that the corresponding interval overlaps with at least one other interval and False indicates that it does not.
It's worth noting that the input ids array is cast to the int64 data type before being passed to the NCLS object constructor and the all_overlaps_both method. This is likely because the NCLS class and its methods expect integer values as input.
can you convert that to javascript
Sure! Here is a possible implementation of the NCLS class and the all_overlaps_both method in JavaScript:class NCLS { constructor(starts, ends, ids) { // Check that the input arrays have the same length if (starts.length !== ends.length || starts.length !== ids.length) { throw new Error("Input arrays must have the same length"); } this.starts = starts; this.ends = ends; this.ids = ids; } allOverlapsBoth(starts, ends, ids) { // Check that the input arrays have the same length if (starts.length !== ends.length || starts.length !== ids.length) { throw new Error("Input arrays must have the same length"); } const overlaps = new Array(starts.length).fill(false); const overlappingIds = []; for (let i = 0; i < starts.length; i++) { for (let j = 0; j < starts.length; j++) { if (i === j) continue; // Don't compare an interval with itself if (starts[i] < ends[j] && starts[j] < ends[i]) { // The intervals i and j overlap overlaps[i] = true; overlaps[j] = true; if (!overlappingIds.includes(ids[i])) overlappingIds.push(ids[i]); if (!overlappingIds.includes(ids[j])) overlappingIds.push(ids[j]); } } } return { ids: overlappingIds, overlaps }; } } // Example usage: const ncls = new NCLS([0, 5, 10], [5, 10, 15], [1, 2, 3]); const { ids, overlaps } = ncls.allOverlapsBoth([0, 5, 10], [5, 10, 15], [1, 2, 3]); console.log(ids); // [1, 2, 3] console.log(overlaps); // [true, true, true]This implementation creates an NCLS object with three properties: starts, ends, and ids. The allOverlapsBoth method compares each pair of intervals and sets the corresponding element in the overlaps array to true if the intervals overlap. It also adds the identifiers of the overlapping intervals to the overlappingIds array. Finally, the method returns an object with two properties: ids, containing the overlapping identifiers, and overlaps, containing a boolean array indicating which intervals overlap.
-
עזרה בהבנת קוד פייתון (NCLS)@davidnead
אפשר את הקוד המלא? -
בירור על פיתוח תוכנה עבור מוסד ת"ת@A0533057932
כמדומני ששילבתי כמה API של גוגל ביחד, וזה יצר לי את המסלול הכי מומלץ. -
בירור על פיתוח תוכנה עבור מוסד ת"תלגוגל יש API בדיוק בשביל הדברים האלה. אז זה כבר מפשט את הפיתוח משמעותית.
-
מחשב ניידכמדומני שלנתונים האלו, כל מחשב אמור להיות טוב.
לגבי מה שאמרו מעליי, לא נראה לי שאתם צריכים את החווית צפיה הכי טובה, או יכולות עיבוד גבוהות. אז בעיקרון כל מחשב אמור להיות מספיק טוב.אורך החיים של המחשב לא תלוי בחוזק המעבד שלו, או גודל הRAM שלו, במקרה של ספק אפשר לכתוב פה את הדגם שאתם שוקלים לקנות ולשאול אם זה מחשב טוב.
אני באופן אישי משתמש לדברים כאלה בchromebook שקניתי "מחודש" מאוד בזול וזה עובד מצוין. זה בדיוק הדברים עבורם ייעדו את הchromebookים.
-
שיתוף | תוכנת סודוקואני לא מצליח לשכנע את ווינדוס דפנדר שזה תמים, גם אחרי שסימנתי לו allow on device
עריכה: בסוף הצלחתי -
WPF + Entity framework -informationחשבתי שבלייזור נועד לעבוד בסביבת ווב, אבל מסתבר שגם מיקרוסופט בעד להשתמש בו עם web view באפליקציה שולחנית
יש למיקרוסופט עוד משהו לאפליקציות שולחניות (חדש יחסית) שנקרא MAUI, אבל הוא רק שולחני, הוא לא ירוץ בסביבת ווב. אבל הוא נועד לתת אפליקציה נאטיבית עם נראות מודרנית.
-
פריצת נוקיהיש בנוקיה 215 שירים והודעות בלי לשנות כלום במכשיר
ע"ע (יש שם מקום לראות פיצ'רים של הפלאפון)
https://www.gsmarena.com/nokia_215_4g-reviews-10533.phpיותר ספציפית:

-
python@שרה-רחל
א.
תיקון:if __name__=='__main__': print("hello world")ב.
דוגמה פשוטה לדבר:
נניח שmain.py נמצא בתוך חבילה ששמה example

main.py:def example(*args): print(*args) example('hello world'')עכשיו כשאני רוצה לייבא את הפונקציה
exampleבקוד אחר אני עושה ככה:

אוי.. אני רק רציתי את הפונקציה, זה מאוד לא נוח שעכשיו זה גם מריץ לי את הפונקציה
example('hello world')אבל אני כן הייתי רוצה לייצא את החבילה שלי בצורה כזאת שיהיה אפשר להריץ אותה בצורה עצמאית, גם לא בשביל לייצא את הפונקציות.סתם מעניין אותי לדעת, מה זה
__name__?אני אשנה את main.py
def example(*args): print(*args) example(__name__)עכשיו כשאני אייבא את הפונקציה, זה ידפיס לי את
__name__

אהה.. זה השם של החבילה והמודול שלי, אבל מה יקרה אם אני אריץ את הקובץ ישירות עם פייתון?

אם כך זה פשוט
אני רק אבדוק שאני לא מריץ את החבילה ישירות, אני כבר יודע איך עושים את זה:def example(*args): print(*args) if __name__ == '__main__': example(__name__)ועכשיו אבדוק:

אהה יופי, בדיוק מה שרציתי.
-
שינוי DB לפי DB FIRST והגדרת 2 שדות למפתח ראשע אחד@ממ
לשאלה הראשונה, לא אמור להיות הבדל בשמירה בין db first ל-code firstcontext.SaveChanges();לשאלה השניה, אפשר לעשות מפתח ראשי אחד, ולהוסיף עוד שדה אינדקס
https://www.w3schools.com/sql/sql_create_index.asp#:~:text=CREATE UNIQUE INDEX Syntax -
אפשר למחוק קובץ ששותף בטעות ב google spaces ?@אף-אחד-3
אני מנהל של ספייס, ואני לא רואה שום אפשרות מחיקה -
יעוץ לקניית מחשב@hai
אני משתמש בזה בשביל שימושיים ביתיים וזה ממש מצוין
https://www.amazon.com/-/he/Dell-Chromebook-11-Celeron-1-6GHz/dp/B072JVQR31/ref=psdc_13896617011_t3_B08PVX61Q5
(בזמנו זה היה משלוח בחינם, וזה עלה בסה"כ 240₪, עכשיו עם המשלוח זה עולה בערך 250₪)
התקנתי עליו לינוקס (galliumOS) עם ליברה אופיס וזה רץ חלק לפני תקופה התחלתי להשתמש בו עם windows to go וזה גם עובד חלק. (יש שם רק 16GB זיכרון פנימי, זה לא מספיק כדי להתקין ווינדוס)
.
קח בחשבון שלפעמים המחשב מגיע מחובר לMDM, ואתה צריך להתחבר לאינטרנט פרוץ בשביל שזה יתבטל, אז אם אין לך גישה לא תוכל להתקין לינוקס.מנגד, יכול להיות שתרצה להשתמש במערכת המובנית של chromeOS, אפשר להשתמש בgoogle docs\sheets וכד' כמו באופיס גם שם. אבל בשביל להתחבר למשתמש בפעם הראשונה צריך אינטרנט פרוץ, בגלל שאי אפשר להתקין שם תעודה של נטפרי בחלק הזה של המערכת הפעלה, רק על הדפדפן עצמו אפשר.
-
התקנת SWAGGER@ממ
אני באופן אישי מעדיף .net framework בגלל כמה סיבות.
אבל net core נותנת לך לרוץ גם על שרתי לינוקס שהם הרבה יותר זולים ומהירים. גם זה נחשב יותר מודרני, אז אצל מעסיקים\בוחנים זה בונוס.

