Try to change the type of scheduler. There are many available in Pytorch.
Otherwise try to change the number of classes nc=7 directly in the configuration file defined at DEFAULT_CFG_PATH.
You cannot remove the iOS keyboard accessory bar in a normal React web app.
It’s controlled by iOS, not the browser, and can't be hidden with CSS or JavaScript.
Only possible in a native iOS app, not on the web.
Thank you very much for the answers. I suspected that it can't be done as I expected. I have probably been ruined by C++.
You should mention your target OS in the question.
Linux: compute a single hash for a given folder & contents? could be a candidate for a duplicate, if you're looking for a Linux solution.
I am using Array Networks Load Balancer in front of two Apache web servers (RHEL 8, Apache 2.4.62).
My issue is: Apache access logs only show the Load Balancer IP, not the real public client IP.
What I need:
I want Apache access logs to store the actual client’s public IP, not the LB’s IP.
What I have tried:
Enabled mod_remoteip in Apache
Added this configuration:
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy <LB_IP>
LogFormat "%a %l %u %t \"%r\" %>s %b" combined
Restarted Apache
I also used tcpdump and I see packets coming from the LB, but everything is in hex format because traffic is HTTPS (port 443).
I am not sure whether the Array LB is actually inserting the X-Forwarded-For header or not, and Apache still logs only the LB IP.
Installation process most probably stops at Reinitializing system properties message because pingDS has no enough free disk space. IT requires almost 6GBs of free disk space. You can find relevant error message regarding this at the ldap-access.audit.json file.
If you want a clean code.
list1 = [1, 2, 3]
list2 = [2, 3, 4]
list3 = [4, 5]
merged = list(set(list1 + list2 + list3))
print(merged)
// Result -> [1, 2, 3, 4, 5]
Actually, what solved my problem was this script:
# Put Azure CLI path before /mingw64/bin
export PATH="/c/Program Files (x86)/Microsoft SDKs/Azure/CLI2/wbin:$PATH"
Do not use
ini_set('memory_limit', '-1');
on a production server.
It means that PHP can "eat" all available memory on a server. It can be handy for testing/debugging apps but it should NOT be used on production servers.
Editing php.ini file should be sufficient. Also do not forget to restart PHP.
You may fetch offsets for all topics with
kafka-get-offsets --bootstrap-server <SERVER>:9092
or for specific topic with
kafka-get-offsets --bootstrap-server <SERVER>:9092 --topic <TOPIC>
I am facing the similar issue when animation width - 'auto' on animate the animation jitters a little bit at the end of exit.
<motion.div
style={{ justifyContent: 'flex-end' }}
className="flex items-center gap-4 bg-background backdrop-blur-2xl border rounded-full p-2 origin-right h-9"
>
<AnimatePresence mode='wait'>
{isActive && (
<motion.div
layout
layoutId='item'
initial={{ width: 0, opacity: 0, filter: 'blur(2px)' }}
animate={{ width: 'auto', opacity: 1, filter: 'blur(0px)' }}
exit={{ width: 0, opacity: 0, filter: 'blur(2px)' }}
transition={{
duration: 0.3,
ease: 'easeInOut',
delayChildren:0.1
}}
style={{ transformOrigin: 'right'
}}
className="overflow-hidden relative"
>
<div className='flex items-center gap-4'>
<NavigationItem text="Home" href="/" />
<NavigationItem text="Documentation" href="/docs" />
</div>
</motion.div>
)}
</AnimatePresence>
<Menu
animate={isActive == true ? true : false}
className="w-5 h-5 flex-shrink-0"
onClick={() => setIsActive(!isActive)}
/>
</motion.div>
You cannot categorize anything just on the name, unless the name contains some word(s) that hints at the category.
Not with an MSI. The MSIEXEC process will not allow this UI element through. The best that you can do is to write a string to the log with the same information.
I think approach 1 should work with a small tweak:
The problem is caused by the mismatching bookmark-names. Since you create a bookmark named "event", the workflow engine is waiting for a stimulus with that name. So, if you change
var stimulus = "myevent";
to
var stimulus = "event";
this should be fixed.
In my case, it was solved when I upgraded toolVersion in:
jacoco {
toolVersion = "0.8.13"
}
If speed and low overhead are high on your list, Tuskr is definitely worth shortlisting.
Out of the tools you mentioned, it has been the snappiest in real usage for me. The run logs load quickly even for longer suites, and the UI stays responsive without the “TestRail lag” effect. The test case structure is clean enough that you can onboard people without a long setup phase, but it still supports linking runs to builds or tickets in a way that feels natural instead of bolted on.
Just add a trailling slash when you are doing a PUT request otherwise it will redirect you and make it a GET request
here is my modest proposal gist.github.com/bd77ca6679bc3b2aad8009b4077b5902.git it contains two classes that rotate and compress CompressedTimedRotatingFileHandler and CompressedRotatingFileHandler
I see this issue thats why making a plugin called "Post Title Trimer", so you can use it. https://wordpress.org/plugins/cpt-post-title-trimer/ here's plugin link.
@CoderForHire Thank you for the security reminder - you're absolutely right! I'm already getting the UserId from the server-side JWT token via IHttpContextAccessor, never from client input. That was a concern I had from the beginning.
and your question: "What would you use the navigation entities for?"
The user information (CreatedBy/ModifiedBy names) is displayed in:
+product detail pages - showing "Created by John Doe on 2024-01-15"
+admin audit logs - tracking who made changes
+history/activity feeds - "Product 'iPhone 15' was updated by Jane Smith"
so yes, I do need to display this information, but not on every query - only on detail views and admin pages, given that:
+I only need this info for detail views (not list views)
+my current approach with separate queries is working fine in production
+the BaseEntity pattern is already established in my codebase
I think I'll stick with my current approach (Option 2) - querying users separately when needed. The extra 1-2 queries for detail views seem acceptable compared to adding navigation properties to every entity that inherits BaseEntity.
I traced the issue to an outdated version of styled-components that wasn’t compatible with React 19. After upgrading it to the latest version, everything worked again.
For context: I upgraded to React 19 first while still on React Native 0.77 (which was using React 18), before moving up to a newer React Native version. I’ll double-check the rest of the dependencies for React 19 compatibility as well.
try : CH34xFIX fix this error (Permission 13) : https://github.com/Cyrillinux/esptool/releases/download/packages/CH34xFIX.zip
Good luck
Cyril
I'm not a PDF specialist and I work with "client goods".
We are required to have this type of form and I would have liked to inject data into it from my application, rather than filling it out manually. However, the signature part prevents me from automatically filling out XDP section B.
I suspected cheating. THERE WAS SO MUCH MORE! The Barry Cyber Investigations saved my future. Really. F all those people who tried to gaslight me and tell me why I shouldn’t hire someone to make sure I wasn’t lying to myself. He certainly was. Now I am in a better place. Take your power back people. I 1000% recommend. Wish I had made the call sooner. Contact Danny via email using InfoATthebarrycyberinvestigationsDOTcom or via WhatsApp at +1(814) 488-3301
There's a removal notice here for WebSphere Liberty, which is built from Open Liberty so the same applies: https://www.ibm.com/docs/en/was-liberty/nd?topic=liberty-removal-notices#rwlp_remfeat__29001_se8
With a more detailed explanation here: https://community.ibm.com/community/user/blogs/macdara-butler/2025/11/13/liberty-java-8-support which says:
The final Java 8 release of Liberty has been changed to 28.0.0.12, with iFixes provided until December 2030.
29.0.0.1 will be the first release of Liberty to not support Java SE 8, as noted in the Liberty Removal Notices.
There is a 29.0.0.1 in the "End of Open Liberty support" for version 8 at https://openliberty.io/docs/latest/java-se.html#supported
Does that mean January 2029?
https://www.ibm.com/docs/en/was-liberty/base?topic=liberty-removal-notices#rwlp_remfeat__29001_se8 <- we see in the Java SE 21 entry that "29.0.0.10" means October 2029, so yes.
You can hide access to the organisation settings by adding users to the Project-Scoped-User group. Needs to be enabled as a preview feature. See the section "Restrict user visibility to organization and project information" at the following link
Custom parameter groups and root user with grant privilegese works also for me.
mysql -h ***.rds.amazonaws.com \
-u root -p \
--ssl-mode=REQUIRED \
--default-character-set=utf8mb4 \
database < /tmp/backup.sql
in my case my new resources same sames names like existing ones
if it you case too, just try to use resources without custom names or first find the old ones and remove them if possible
flutter pub cache clean
flutter clean
flutter run
groupValue is not actually used inside the _buildRadioButton widget.
onChanged is passed because it’s needed for the InkWell tap handling — I’m using InkWell to keep the current UI design and control the tap area.
You could calculate the value of P where V next changes, and just check if you're less than that.
It turned out that when in full debug mode, FastMM never releases the used memory back to the OS. The memory is released back into the unallocated memory pool and re-used internally (by your program) when needed, but never back to Windows.
Source of information: https://www.youtube.com/watch?v=204qa4wVR2I
Also an issue in slightly old browsers as this feature was added to browsers in 2023 or there around: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers#browser_compatibility
Legacy version of pdfjs fixes this, so use that or require newer browser versions.
I was able to solve the issue using following lines of code -
Using apostrophe!
Please note - I still use Robot Framework SSH Library.
All this code is running from a .robot file and executes on a remote machine with a SSH connection open!
${part1} = Set Variable py ""${remote_file_full_path}
${part2} = Set Variable --id 11064 --output C:\\Sandeep\\process_output.txt""
${part3} = Catenate ${part1} ${part2}
${status}= Execute Command ${part3} return_stderr=True return_stdout=True
thanks!
I don't know whether your SDK is a dynamic library or a static library. If it is a static library, you can use addresses to filter the addresses in the crash stack. If it is a dynamic library, you can filter by image name. As for the initialization location you mentioned, it can definitely be initiated in the API of your SDK. If your API is not called, there is no need to worry about crashes occurring inside your SDK at all.
View = A live camera feed (always shows current scene)
Materialized View = A photo (shows the scene at the time it was taken, updated occasionally)
I got the solution for the above problem just force install the numpy version 1.24.4, restart the kernel and it works well.
The manual dark mode toggle allows users to switch between light and dark themes, while by default, the website automatically follows the system’s color scheme for seamless user experience.
why are you passing onChanged and groupValue to _buildRadioButton?
add to .zsh file these:
typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=0
typeset -g POWERLEVEL9K_DIR_SHORTEN_STRATEGY=none
How it will solve my problem? I expect to pass the string to a method it may either hex code string or named color string and it should return the color.
In my case this error is resolved by setting the startup project in the solution to the API project.
Just an additional note: In https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-4.0-Configuration-Changelog I see spring.thymeleaf.enabled as removed with "No longer required.".
From my own experience, modern lightweight tools usually feel much smoother than traditional ones like TestRail when accessing logs. I haven’t used Tuskr extensively, but Quase’s UI and run-log loading have typically been quick for small QA teams. It also helps that you can link results to tickets without heavy setup. If your priority is minimal maintenance and fast execution workflows, tools built for smaller teams tend to perform better long-term.
I've sorted this out. See the comment in https://github.com/spring-projects/spring-boot/issues/48280#issuecomment-3575462316
Thank you very much, woxxom, for your always knowledgeable answers.
Can you predict that navigation will occur from the content script and wake up the background script by sending a message? This will require you to run a content script in arguably every web page and frame, so it will consume megabytes for users with many tabs which is much more wasteful than keeping the background script alive.
Hmm, that gives me an idea. In fact, clicks on such intercepted URLs only occur on pages of the same domain, and I already insert a content script into all pages of such domains for other reasons. So I could simply send heartbeat messages from the content scripts to the background script to keep it alive only when pages from such domains are open, and the background script could then go inactive when no such pages are open. In this case, I can register the listener asynchronously only for the relevant URLs. That should work and be a reasonable compromise, right?
I see a similar use case in WECG suggestion #908, so it would make sense to open an issue there
I don't think it's quite the same issue. It addresses other issues that I also have/had, such as that there are no DNR events in no-dev mode, which I think is another major shortcoming, or that I didn't want the ERR_BLOCKED_BY_CLIENT error page to be displayed when a request is blocked. The browser should just do nothing.
I ended up using the redirect rule to redirect requests to a public 204 ‘no content’ endpoint for the ‘block’ and listening for the onHeadersReceived event for that redirect URL to be notified when a ‘block’ occurred. It’s again a hack, but it works...
but many important use cases have been crippled or completely destroyed for years going forward until a better alternative is devised in the API, if ever.
Hope dies last...
我也遇到的同样的问题,datagrip无法连接postgresql 报错提示【ERROR: units "epoch" not supported在位置:referenced column: startup_time.】
The latest version supported by pygame is Python 3.13, so the best way is to install Python 3.13 or earlier versions.
The error "ModuleNotFoundError: No module named 'setuptools._distutils.msvccompiler'" occurred here, which is for Python 3.13 for windows.
If you must use Python 3.14, you can try to compile code with a lower version of the setuptools, as the latest version of setuptools has already deprecated distutlis.
One more thing not mentioned here before - Windows 11 has "Smart App Control", starting from 22H2. If enabled, app may just fail to load unsigned DLLs and you will get "Part of this app has been blocked" notification from Windows.
You can build your output payload up to the 6mb limit, any log records after that you can reingest into the kinesis stream.
Issue is resolved after using quarkus.rest.fail-on-duplicate=false configuration suggested by @geonand.
Thank you for the help.
Check this url for more information https://github.com/quarkusio/quarkus/issues/51203
Add below code to the end of .p10k.zsh.
# Force p10k dir segment to display full $PWD instead of ~
function prompt_dir() {
p10k segment -i '' -t "$PWD"
}
In my case it's work with opening wamp\alias\phpmyadmin.conf file and increase same time there like php.ini
max_execution_time = 259200
max_input_time = 259200
memory_limit = 1000M
upload_max_filesize = 750M
post_max_size = 750M
What I understood is that you are trying to switch off gradient checkpointing, which is fine if you have enough GPU memory.
TO achieve this, before you define the training configs of the Trainer class, use the prepare_model_for_kbit_training() method.
The way you do this is below:
model = prepare_model_for_kbit_training(model, use_gradient_checkpointing=False)
This does not work for me. I have .NET SDK 8 and want to install dotnet-ef 9.0.10. According to Microsoft (learn.microsoft.com/en-us/ef/core/miscellaneous/platforms) this should be compatible.
I’m experiencing the same issue. I recommend creating a corresponding report in Google’s official Issue Tracker and following up there for better tracking.
Please explain the broader context here; for example, by "ingredient" do you mean literally something for a food-recipe, or is that a more abstract term for a component part of your system? (And if so, then please tell us what your system actually does).
Also, please edit your post to include the full definitions of createDomainObject, InventoryItemKind, DomainTypes, NamedCoreModel, CoreModel, IsPerishable, and IsIngredient.
除了配置firebase,还需要到https://console.cloud.google.com/apis/credentials?project=xxxx 上配置你这个项目,获取的就不会是null了,记得还需要配置。
location /__/auth {
proxy_pass https://<project>.firebaseapp.com;
}
It didn't work for me. I completely delete my ios folder and recreate it again
Is this solution viable? I cannot achieve the required result using this approach. The FontFamily object for WPF is successfully created, however, when I apply the font to a control, the text rendering does not change.
Add a strong default password using the
OPENSEARCH_INITIAL_ADMIN_PASSWORD
environment variable.
There is no default admin password set: https://opensearch.org/blog/replacing-default-admin-credentials/
Ben from the future:
The underline is finally here! November 2025. That must have been an impossible feature to implement.
We have encountered the same issue that you described:
ExternalPurchaseCustomLink.token(for:) returns nil on one TestFlight device (while isEligible == true) — other device gets SERVICES token
Could you please let us know how you resolved it and what the underlying cause was?
For context, we are working in React Native.
Thanks for the advice!
The goal was to make pinch-to-zoom enlarge everything (text included) while keeping the layout reflowed, so users with poor vision could see all content at once without horizontal scrolling. But I get now that changing native pinch behavior—especially for accessibility—can cause more harm than good
Found a way to avoid this issue. Using SQL format as input data type works (instead of DICT or CSV)
new update now use
@react-native-documents/picker
for migrate to a new package i recommend this article
https://medium.com/@anazrasak/file-upload-with-react-native-document-picker-updated-how-to-use-the-new-package-45d4a4302b56
Good luck
I think @Dan Guzman is right.
The NCI_UNQ_001_PO_Concept_Status index on the Orders table is ready and active, so it has protected your data from duplication.
The error message "Cannot insert duplicate key row in object 'dbo.Orders' ..." means that you tried to insert data into the Orders table from somewhere and this index did not allow it - very correctly. So, look for duplication in the source table.
in fiber framework simply
c.ClearCookie()
My end goal is I wanted is the transparent overlay should move like user can customise according to their need like make it small or big and how its working when user move the container left it gets small and when right it gets large in width and same for up and down
Great insights in this article!
It made me think about measuring human performance beyond traditional analytics.
I recently tried a simple reaction time test online, and it was surprisingly accurate: https://reactfasttest.com/
Could be a fun way to complement performance tracking.
Did you try doing as it said and padding the audio with at least 100ms of silence (preferably more, around 1 second)? Also, how long are your files? Whisper doesn't work so great on shorter files
you are not far off at all.
here's a how to, with code examples: https://levelup.gitconnected.com/the-easiest-way-to-keep-ngrx-state-after-refresh-rehydrate-it-from-localstorage-8cd23b547aac?sk=ae2bd92d71ec3d45736ca05aa8107c66
UPLOAD_FOLDER='app/static/uploads/profiles'
allowed_extensions={'png','jpg','jpeg','gif','webp'}
def allowed_file(filename):
return '.' in filename and \
filename.rsplit('.',1)[1].lower() in allowed_extensions
I just had this issue and password was too long. Informix 14.10.FC10W2X7
Windows ODBC Informix Driver: 4.10.FC8DE.
20 char causing issues
In my case, with Enterprise (not Enterprise Plus), I have seen the following:
Tier upgrade: db-f1-micro -> db-g1-small
Update timings in the GCP UI (matching the Terraform resource apply time): 5:30 minutes.
Observed downtime in the application: 1:10 minutes (from around 3 minutes after the start, until 1 minute before the end).
devenv /resetuserdata
Alternatively to NASM you can try my assembly tutorial. You will need a plain-text editor and €ASM (no linker is neccessary) and you can create programs for 16, 32 or 64-bit Windows and Linux.
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir "bcrypt>=4.3.0"
try to install this version
*) Option 1 API (best method). *) Option 2 Common Database like server client.
The solution is to remove the annotation on the implementation (Defined Locally) and just to keep the annotation on method signature in interface (Defined in Hierarchy). Now, it is only executing once.
The issue is dependent on the audio hardware and, more specifically, its driver.The "mute" function is implemented differently by the audio driver on different systems.
To fix this, replace the generic Microsoft driver with the official one from your laptop's manufacturer. This driver is designed for your specific hardware and is much more likely to implement muting in a way that allows loopback capture to work.
You're using v4.4. That's very old. Check with 8.0
After inspecting an element, the $0 shortcut refers to it:
foo = $0
''' I just fixed this in my own code base. I've already wasted too much of my life trying to paste code without my entire post becoming a code box, so stackoverflow doesn't get an explanation. Ask ChatGPT I guess.'''
from dataclasses import dataclass
# Parent code
@dataclass
class _Parent:
name: str
age: int
def print_name(self):
print(self.name)
def print_age(self):
print(self.age)
def print_id(self):
print(f'The Name is {self.name} and {self.name} is {self.age} year old')
@dataclass
class Parent(_Parent):
ugly: bool = False
@dataclass
class _Child(_Parent):
school: str
@dataclass
class Child(Parent, _Child):
ugly: bool = True
jack = Parent('jack snr', 32, ugly=True)
jack_son = Child('jack jnr', 12, school = 'havard', ugly=True)
jack.print_id()
jack_son.print_id()
RSS does not have an official list of allowed HTML tags. Only properly formatted XML is required by the RSS specification; HTML can be included as escaped text or CDATA inside <description> or content:encoded.
For me, it worked by deleting the .sql file and recreate it then past the code and build solution.
You can share Power Apps Component Library using PowerShell as mentioned in this page:
Example:
Set-AdminPowerAppRoleAssignment -PrincipalType Group -PrincipalObjectId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -RoleName CanEdit -AppName yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy -EnvironmentName zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
Command details explained in this page:
You might want to share it with CanView privilege instead of CanEdit to prevent others messing up your library.
Power Apps for PowerShell modules installation guide:
I tried with Admin IAM (which has Programmatic Access) and it worked first go:
Perhaps check there is actually a network problem or you've setup access permissions to restrict mp3 & mp4s? or some other permission issue?
I would like assistance with this. Aurora has worked fine on most previous occasions, but it's now behaving as you've described. guess as to my cause: i have a tor browser open, among others. (Cannot close it at the moment.) offering in case this provides some insight into something that people's various programs might functionally have in common.
[edit: typo]
You could also do this using Power Query which is included within Excel
Go to the run script in your xcode and in your shell after the build just add your --dart-define like below.
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build --dart-define-from-file=env/config.json
Somehow it happens to me right now. I'm using VS Code (v1.106.2) + SQL Server extension (ms-mssql.mssql / v1.37.0). I figured the issue is that once you save the query script into a file, all the DB buttons will disappear. So it's likely an issue of the extension. Make sense?
The version of the VSCode is:
Version: 1.106.2 (Universal)
Commit: 1e3c50d64110be466c0b4a45222e81d2c9352888
Date: 2025-11-19T16:56:50.023Z (6 days ago)
Electron: 37.7.0
ElectronBuildId: 12781156
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0
For those that have tried all the methods (vercel.json, options allowlist under vercel deployment protection) and still unable to resolve. Another possible reason is due to vercel authentication under deployment protection. Turning it off solve my issue, still trying to figure out the proper way to have it on and make it work.
This ones a bit tricky since you have to run it like this:
uv run --with-requirements <script> python -m pdb <script>
I have a bash function for the same:
function uvpdb() {
command uv run --with-requirements "${1}" python -m pdb "${1}"
}
You need a "staging area"; or staging database; that is neither "A" or "B". You have a transaction that needs to "credit" inventory and "debit" the recipient; once the transaction is "approved" (and "posted"). At which time, stock could have been depleted (for whatever reason) before the transaction is approved (necessitating a roll-back versus a commit).
Yo he encontrado el siguiente código algo mejor si quiere añadir fecha y si el autor es más largo de ancho que el sidebar ensi, hará que no se solape la segunda linea de autor con la fecha (ya que saltará a la segunda línea el autor)
setTimeout(function(){
var au = document.querySelector("p.authors, h4.author");
var dt = document.querySelector("p.date, h4.date");
var sb = document.querySelector("#toc");
if (!sb) sb = document.querySelector(".toc-wrapper");
if (sb && (au || dt)) {
var footer = document.createElement("div");
$(footer).css({
position: 'absolute',
bottom: '20px',
left: '20px',
right: '20px',
width: 'auto'
});
sb.appendChild(footer);
if (au) {
$(au).appendTo(footer);
$(au).css({
position: 'static',
marginBottom: '5px',
fontWeight: 'bold',
lineHeight: '1.2',
color: 'inherit'
});
}
if (dt) {
$(dt).appendTo(footer);
$(dt).css({
position: 'static',
fontSize: '0.85em',
opacity: '0.7',
marginTop: '0',
color: 'inherit'
});
}
}
}, 500);
checkout the CQRS pacakage from NestJS, inside check Sagas/Event handlers. If you want to decouple your system Event Driven Architechture is the way
There You go everone it might work everyday :)
remember you need to get the attched the file together in code
function clock(){
'use strict';
var date = new Date();
var hours = date.getHours();
//if(hours<10) hours = "0" +hours;
var minutes = date.getMinutes();
//if(minutes<10) minutes = "0" +minutes;
var seconds = date.getSeconds();
//if(seconds<10) seconds = "0" +seconds;
var midday;
hours = updateTime(hours);
minutes = updateTime(minutes);
seconds = updateTime(seconds);
//var name = "Your Alias or name :)";
midday = (hours >=12) ? "PM" : "AM";
document.getElementById("clock").innerHTML = hours + ":" + minutes + ":" + seconds + midday;
var time = setTimeout(function(){
clock();
}, 1000);
//Good morning, afternoon, evening
if(hours < 12){
var greeting = "Good Morning!" + name;
}
if(hours >= 12 && hours <= 18){
var greeting = "Good Afternoon!" + name;
}
if(hours >= 18 && hours <=24){
var greeting = "Good Evening!" + name;
}
document.getElementById("greeting").innerHTML = greeting;
}
function updateTime(K){
if(K < 10){
return "0" + K
}else{
return K;
}
}
clock();
@Pham even with DDD, still the problem exists. The user will use the interface with UI applications as well so that needs to be shared, the model is inevitable for the backend. The DTO is required for validations etc, It can be done with an interface in the controller but there cannot be validations attached.
Now If I have to add/remove/update any property. I have to touch 3 files, The interface, model and the DTO