
I have a Docker container with OrbStack that contains a directory repos with a repository app-main and worktrees like app-feature-a to develop in parallel. Configuration is done in order to prevent modification of the container configuration file in the ruing Docker. project/ ├── .devcontainer/ # outside the mount, on purpose │ └── devcontainer.json └── repos/ ├── app-main/ ├── app-feature-a/ └── app-feature-b/ MWE for devcontainer.json : { "name": "myproject", "image": ...
ادامه مطلب
We would like to use Hibeate StatelessSession injected into our Spring Data JPA repositories. Our understanding is this requires HibeateTransactionManager and SharedSessionCreator.createSharedStatelessSession. Our setup is like follows: @Bean public HibeateTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) { var hibeateTransactionManager = new HibeateTransactionManager(entityManagerFactory.unwrap(SessionFactory.class)); retu hiber...
ادامه مطلب
I created a file with one line "bug line", initialized git repository and committed change. Then I added the second line "staged" and staged the change. Then I added the third line "unstaged". How to add a commit changing the first line to "bug line changed" so that I still get the second line as staged change and the third line as unstaged change without merge conflicts?...
ادامه مطلب
I get this error, if I click my script multiple times: Uncaught (in promise) Error: reCAPTCHA has already been rendered in this element. I know, that error is correct, but how can I fix this? I have got a cookie-icon that shows a baer to accept or to reject the recaptcha/form. I hide or show the recaptcha/form onclick, but if the user clicks multiple times the accept button i get this error in console and he can not send the form. Hard to explain here is my code :) Edit: Here is a jsfiddle: ...
ادامه مطلب
I'm writing a query in Oracle SQL. I'm using a count - group by query, for example: select column_a, count(*) from table_1 group by column_a COLUMN_A COUNT(*) value_1 5 value_2 6 value_3 2 (null) 1 Can I write a group by that allows me to get two result rows, one with value_1 and its count, and another with the count of all other values? It would look like this: COLUMN_A COUNT(*) value_1 5 others 9 ...
ادامه مطلب
The following code snipped defines a nested chain of templated C++ classes. The problem I have starts on the third level. The initialization of the three level nested class works well, which can easily checked in a debugger. However, a problem arises when attempting to access the nested class member variables aValue. While the first two levels work well, accessing third level aValue gives me no joy. Any suggestions on how to propagate variable access down the chain? Ideally, is there any iterato...
ادامه مطلب
I am having trouble compiling a C program that uses a shared library. To reduce the problem as much as possible, I am following a tutorialI have two source files, in the same directoryfoo.c:#include <stdio.h> exte void foo(void); void foo(void) { puts("Hello, I am a shared library"); } main.c:#include <stdio.h> int main(void) { puts("This is a shared library test..."); foo(); retu 0; } foo.c compiles to a shared library:gcc -c -Wall -Werror -fpic foo.c g...
ادامه مطلب
When working with keyboard input in a situation like the one shown in the next simplified example: // abc.hpp #pragma once #include <array> // ranges of integer values in the enum could be contiguous or // not, so question is for a general scenario. However if being // a contiguous range of integer values makes things notably // simpler, then certainly it'd be interesting to know about it. enum FileType : int { JSON = 1, YAML = 2, XML = 3 }; constexpr std::array<FileType, 3>...
ادامه مطلب
As the title mentions, after updating Mac to Tahoe 26.6.2, each time I open terminal it says "Failed to locate 'git', requesting installation of command line developer tools." And even when I install the tools, it still doesn't work, and the pop-up keeps popping up each time I run a git command. Some sources I've found say that I need to re-install git (e.g., this Reddit post), but why should I have to re-install git? It was already installed using homebrew, and I don't use Xcode at all. Surely...
ادامه مطلب
امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلب
امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلب
امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلب
امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلب
امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلب
امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلب
امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلب
امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلب
امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلب
امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلب
امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلب