When your coworkers tell you, on your first day on the job, what a company you've just started working for, believe them.
Sorry, this one I do not get....
AFAIR the Mylex weren't so bad (a.k.a. top of the morning, the others are far worse!) then.
/having to cope with <business process from yesteryear>: umm.. I don't know where you earning the spread on your bread but exactly this "old" shite is my job 'cos the young'uns seem to break everything else every quarter and the one left with the shovel is always me.
Windows: see above postings
Linux: same, just more difficulties
I'm quite sure one can overcome this shite with the "correct" incantation of dpkg | apt | whateverthefuck to get a working combo of [driver + tools + cuda-toolkit] but then you're still stuck with an outdated version of torch.
This merge is just an INSERT OR REPLACE of other databases.
Just don't try to compare [any database] with MSSQL (or any database with any database, same difference); they seem to behave the same way until they aren't.
The table is somehow messed up, but the fact it comes messed up on restoring from a backup bothers me.
That might be a different topic altogether: restore from the same backup or from one "just ..minutes later.. where the content of this table could be different?
Merge IME seems to be a solution looking for a problem (https://www.mssqltips.com/sqlservertip/3074/use-caution-with-sql-servers-merge-statement/), the umpteen times where I thought "hey that is exactly what I'm looking for!" it either simply didn't work (cause: most likely me) or could not work (e.g. need to audit ..action.. somewhere and one can't simply fire "exec createAudit @blah=blubb, @frob = bar" inline) and so on.
just don't. "use a cursor and have funget fucked somewhere else"
Summary: good catch, these errors are the hardest to squash.
This begs the question:
Should I feel glad that somebodystill doesn't know what Kubernetes actually does?
quoth reddit: "..and at this point I'm afraid to ask.."
Edit: I can't even run a Docker-container more complex than the "Hello, World" one a.k.a. "don't want to 'yos why should I?
Our ..Enterprise..-Vendor supplies two or three .dockerfiles (sp?) but after questioning them why these don't work and -after insisting they show me a live demo how "it must be done / installed 'cos obviously I'm too dumb to click next->next->next->" and them failing gloriously with the same errors in their own environment -
..well: [there's your problem.jpg]
You mean put a dummy rollback at the beginning … we can try. It's a copy, so it has no uptime to worry about.
No. At some time in the future this will run against PROD and -depending on your usecase- this might require downtime + it is "hands off 'cos it's done by admin".
If I read this correctly at the moment it's 50:50 (3 "good / upgradeable" snapshots, 3 are bad) but now my question is:
even when your upgrade-script doesn't use any cursors -> what about already existing DB-Triggers which could step/fall over their toes?
/disable all triggers on the DB -> run scripts -> enable all triggers might fix this but also can open a completely different can of worms. but hey, on a snapshot: why not?
-> just remember to really really check everything afterwards; ask me why I know this.
Anyway: I would open up to admin re "we've got no clue what is going on here so please make sure that your backups are working & be prepared to restore if..."
Of course you always can pad it with/blame Azure ("three snapshots from the same time -> NOK, all others OK so duh...") but still...
Look in the SQL Server Profiler. Run a trace and it should show you what's going on.
Maybe. Depending on how much is going on here + Profiler-Settings you either drown in line noise, see nothing of consequence or the Profiler barfs out after 10mins.
IDK: is it even possible to run a Profiler against Azure? All my MSSQL-DBs are onPrem and ...
Because whoever designed the EFI command line made it some abomination combining cmd.exe with BSD-isms or something. The syntax and commands are dumb.
Oh yes. When bcdedit.exe feels nicer than everything efibootmgr offers:
But hey, at least it's not the grub command line.
Try to find & install a GUI for Grub, I dare you.
I sometimes miss the halcyone days where one could write a lilo.conf by memory with en-US as active charset on a DE-keyboard...
/forgetting to run
/sbin/lilo
afterwards: not so much.
Although I have managed to boot an OS from the command line the experience was... special.
War story from yesteryear:
had to P2V SCO OpenServer 5.x (+ somePatches running a Progress 9.x-DB /w Patches) from a PentiumPro 180 to a -then recent- ESX / Xeon.
Difficulty: the old machine had a Mylex ..whatever.. 960 comes to mind (EISA) as boot-disk, the oldest available SCSI-Controller on ESX was a NCRxxx or something which SCO 5.x didn't recognize.
Solution:
Boot VM from SCO-Install-Disk#1
..load driver..-Option or something
Insert ..driver-disk.. from a SCO 6.x (or later) -> magic incantations -> driver loads, disks available (!yay!)
-> Minimal 5.x-install (base OS, Network, telnet; nothing else)
whip up two shell-scripts (basically tar cv... | netcat on the old machine and netcat | tar x .. on the new one) which copied everything except /[b|r]oot over
some more magic incantations re printers
reboot + test: success & open a beer or five ;-)
Basically https://aplawrence.com/scofaq/ saved the bacon.
I never found out how to prevent the NIC-crash after ~30 days uptime (up, no errors but nothing got transmitted any more) but a cron-scheduled reboot every 3rd sunday at 0400 "fixed" that too.
".. a wrapper script that finds which are new, concatenates them, wraps them .."
are you quite sure that if you use a different -working- snapshot this thing picks up the same scripts?
-) some trigger on some_Table which causes a loop?
e.g. script#123:
declare myCur cursor for select ...
open myCur
fetch next from myCur into...
while @@fetch_status = 0 begin
--some doing here which causes the _cursor_ to re-run (*)
fetch next from myCur into...
end
Anyways: I do not think that this has something to do with Azure but with some fuckery within this one Snapshot.
Therefore my advice (c) some random guy via Internet:
-) re-test with as many snapshots as possible, if it runs fine except with this one...
-) depending on your downtime-window / script-runtimehave PROD-Admin run this thing with
Windows:
474.64-quadro-rtx-desktop-notebook-win10-win11-64bit-international-dch-whql.exe from @Tsaukpaetra 's link above refuses with...
Basically it says:
-) This NVIDIA driver isn't compatible with this version of Windows.
-) The graphics-driver could not find compatible hardware
(Q: which one is it now? but let's not digress...)
Next: Reinstall Linux (e.g. download Ubuntu 20.04 since this is the latest one supported from @Tsaukpaetra 's links above. Let's not fuck this up/overcomplicate with Linux Mint <blech> is Ubuntu <blah> since NV does quite the job here already...)
.. this will take a minute or ten .., schaumermal, dann sehnwirschon.
@Tsaukpaetra
sorry for the delay, the aforementioned "festivities" (haha but this is a completely different matter, let's just say that dementia -FatherInLaw, not me ..yet..- ain't fun...)
Anyhoo: thankyou for your research, i absolutely will give this a whirl or five, Win & Lin both.
All the best for 2024 & THX again
PS: of course I do trust people from more than some rando popups from Edge, why do you ask?
I've never directly attempted to use CUDA directly. But on my machine I did the Easy Diffusion thing and it has mostly been user error after that part.
Having downloaded <link> this raises the question:
do you do actually click "of course, install this shite!" on every popup Windows decides to pop?
/just asking 'cos the warnings my fresh installed W10 somewhat scared me (Edge -> do you really?... -> explorer: do you really ...)
Update 2023-12-22: "Windows 10 with cuda_10.1.105_win10_network.exe" worked
-> used the "quick install"-Option
Samples seem to work,
ex: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite
dir *.exe
-> all exe except "busgrind.exe" report "pass or show some output"
--> busgrind.exe complains re VCOMP110.DLL not found
Difficulty: this Dell machine is quite old and ED can't do much about <fucking Nvidia barfs around all over the place>
NB: had a HP Workstation Z or something with a "not that old GPU" a few days ago to play around with it: "just worked" but sadly this box got reclaimed for some reasons (need the memory-sticks mumblemumble somesuch) and ... :-(
Edit: oh.. OH. ED on Windows just might do something more than git <whatever> + python & pip whatever...
The 10.2 Cuda-Toolkit mentioned on <top> definitely doesn't work with <OOB-Window-Drivers>; since some googling found me the odd hint about "use 10.1 'cos ..." I removed that shite, removed <Windows-Drivers> and dared meself to run cuda_10.1.105_win10_network.exe
/will refrain to post URLs for now 'cos the Interweb is already full of "this & that & ..nothing.. & 2 years later: 'solved it, kthxbye!'" and I always wanted to do this too
.plan: I'm trying to set up a Dell Precision M6700 / GPU: Nvidia Quadro K4000M in a way which allows me to give pytorch (easyDiffusion, the odd LM from huggingface etc) a whirl.
but.. I find I'm having quite a hard time to find the ..sweet spot.. re OS <version> + Nvidia-Driver <version> + nvdia-toolkit <version> (=nvcc & whateverthefuck) + pytorch <version> [+ dependencies].
Either pytorch complains 'cos <driver> is too old or <something> complains because <driver> doesn't match nvcc or python is too old or (worst case) the recommended driver causes X to crash.
Windows <?Version?> I haven't tried yet but I'm not that optimistic.
What does say about this endeavour?
[ ] scrap the Dell, it's too old for this
[ ] try a -> b -> c
[ ] buy a Jetson, it's the same shite/hassle but one can spend some bucks
[ ] ..?..
Edit#1: since the Linux-install is b0rked anyways and installing Windows afterwardws will fuck up UEFI/Boot for sure I decided to pave the box and restarted with W10 Pro.
Base Install (+ powershell: Get-AppxPackage | Remove-Appxpackage to get rid of the cruft, nothing else)
-> Windows reports "Nvidia Driver 382" (Add/Remove Programs)
-> compmgmt.msc -> Devices -> ... -> Nvidia K4000M shows: 22.21.14.8216
How does one find the "correct" CUDA-Package for this?
.. is it 10.2, 10.1, <latest> (which I know that it doesn't work).. hmm
updated one of the linux-boxes here @home right now:
huh: mokutil, whatsit?
man mokutil
hmm, let's scroll down, there has to be a description or somesuch?
ahh, now this clears any open questions, right? right?
Doing IT-related shite for 20+ years now but only recently I've come to appreciate https://de.wikipedia.org/wiki/Blinkenlights_(Jargon) which might also be read as "It just works, don't ask why because it might stop and then it's your fault" as my go-to mantra.
/self-rating: 3/10, am not that proficient in [swearing in English]
//let's try that in my native language: was zum hupenden Fick bringt mir eine manpage für [frotz] wenn da nur aufgelistet wird welche Parameter [frotz] denn akzeptiert aber nirgendwo auch nur ansatzweise der größere Kontext angesprochen wird?
Gegenbeispiel:
man fstab
.. das ist bei einem "Kaltstart" immer noch ziemlich viel ..Gibberish.. aber zumindest ist mehr zu sehen / lesen als ein simpler dump der erkannten / möglichen Parameter und man kann sich weiterhangeln wenn man denn will.
per-requisites: windows only + GUI only, no custom clipboard-thingies; vi + vim-ports are out.
Question:
have you ever seen an ..editor.. (Windows-Textbox (single- / multiline) embedded in <App>, Editor (notepad.exe), grown up Editor (notepad++), something else (SSMS, VS Code, VS 20xx,...)) which behaves thusly:
-) type something (say: la la la)
-) select something else (other App, Start -> run -> ..., same window/textbox, whatever... say: foo bar baz) + CTRL + C
-) select la la la from before via SHIFT + <CURSOR> or <Mouse> or whatever
-) hit SHIFT + DEL
-) hit SHIFT + INS
What gets INSerted?
( ) la la la
( ) foo bar baz
With one exception all combos I've tried (see above) SHIFT + INSert results in "la la la" since this is the last selected text I've CUTed into the clipboard and I'm PASTing this now.
<Vendor enters the chat>: not so fast... SHIFT + INS will INSert "foo bar baz"
Difficulty: Vendor only does this via "Application_via_Website", not via FatClient / .exe.
Am I missing something fundamental here, e.g.
"SHIFT + DEL was always intended to just DEL (we silently ignore SHIFT) and our Website -at long last- behaves as it should be(tm), just ignore FatClient since it'll be EOLed very soon now" (haha, lol)
or is this a bug?
NB: I think it's a bug because if I paste 5 paragraphs from lipsum.com into their multiline-textbox DEL behaves differently depending on where the cursor is (blank line: BACKSPACE, somewhere in a line: DEL...);
doesn't matter if "direct" or "sanitizing possible shenanigans via notepad.exe before" but it's always good to get a second opinion or five.
Seeing it's monday and <somebody> had to clean up the fallout of <something @customer> went worng yesterday which in turn caused >27K undeliverable emails which our trusty email-in tried to process into an incident (..don't ask..), neither the loop -which was still running today at ~05:30 am- nor the attempted processing on our side -email gets converted into either a new ticket or a diary-entry to an existing one, plus subject-blacklisting depending on ...- was my fault but somehow I am still the guilty one...
to clarify:
#1) Pie-Chart: "open thingies within the last month"
-> pie is shown and displays "404 / User XYZ; 201 / User ABC and so on"
#2 doubleclick on -say- the 404-Pie -> <LIST>
-> either we stay within <chart-tool> oder we already call out to <enterprise> here (former preferred 'cos the client will most likely shit it's pants..)
#3 doubleclick on <list entry> -> call out to "out shitty API to open <thingy> in <FatClient>"
all of the above happens within <fat client>, e.g. call to <pretty_chart_site> runs as Embedded IE within the <Fat Client>
/don't ask about EOL of IE/Embedded, I got "we're looking into it, W11 isn't in our "List of supported Clients" anyway, so there..." as response...
<Enterprise> is our daily driver and while it allows some (say 1 in 100) nice charts, nine times out of ten they don't cut it (too many bars -> labels are unreadable 'cos they get cut down to A.XX.., no mouseOver-Display and so on)
Therefore I'm on the hunt for a replacement, since it's <Enterprise> my options are quite limited and I'm looking for:
-) "nice chart" backed by <Database>
->e.g. "Number of <thingies> per <user>
-) Drilldown
-> show all <thingies> for <doubleclicked_user>
-) <list of <thingies>
-> doubleclick must be configurable to call httqs://someserver/api/open/<thingy>
My Google-Fu sadly has failed, it seems there are n+1 packages to create really pretty charts but
I was not able to determine how to react on a click, e.g. drilldown (more details -> show <thingy>)
Since my google-fu refuses to deliver and CBA to <register yadda yadda etc> allow me to drop this question to the trusty people:
Is it posible to display <some> stats from the admin-panel without authentication?
e.g. "Top Blocked Domains" from <your_pi_hole>/admin/index (a.k.a. 'Dashboard') should be visible when one opens <your_pi_hole>/admin or somesuch.
To clarify:
Without logging in:
is there some way to also display <this> somewhere below / insteadOf / whatever ...?
/whatever the fuck wants to chat with deepl.com, IknowItsLame-junior of course declines any knowledge about this but ,,, (cue haha,,,)
Whatever you buy, consider spending some additional $currency, run a pi-hole and point your device's DNS to it.
Seriously, you can thank me later if you really must (-8
Anyway: if you just want a ..dumb.. display: simply don't connect your new TV to anything networky -> done.
/LG <somethingmumble, <2 years old> here, since I'm using Netflix "no network" isn't really an option and I simply trust my pi-hole to "protect" me from ads since I CBA to plonk a sniffer before it and analyze the traffic.
Definitely better than the ML-Demo from Visual Studio.
I gave this thing a wirl some weeks ago, e.g. the basic hello-world-ml-example from the tmeplates (the one with a two column-textfile from twitter or somesuch: someblah blah<delim>good|bad...)
Wasn't terribly impressed:
good -> good
bad -> bad
not good -> bad
not bad -> bad
Since our <Product with Enterprise in it's name> was announced to implement AI/ML in the next major release (Q2/2022) and there's not even an EA-Build available yet yours truly expects some material worthy for this site.
QA-Session with the Devs:
<and here blahblah blah>
Q from me: how will we handle "bad learning" (think Amazon, buy somethingy once and get spammed the next decade)
A: umm, good question. next?
Apologies for abandonig this thread last week, other needs said "me me me!" (a.k.a. ran out of beer and got somewhat distracted with "oh my aren't you a precioussss bottlessss of Drambuieses!" and -to add insult to injury- somebody got caughtaccosted by TheWife and .. you know what happened afterwards... (*)
Anyway, back on topic:
the thing truly driving me crazy (OCD? / muscle memory?) is that the ..taskbar-shuffle.. seems to depend on the how one starts <app>
e.g. (please bear with ASCII-Art, CBA to spin up a VM just to get some screenshots again) and let's treat [n] vs [n*] as [Icon] vs [ExpandedIcon]
<nothing> is running; Startbutton | Chrome | Shell | Firefox, let's call them [0] | [1] | [2] | [3]
If I fire up FF first, nothing else open it looks -again- like this, allow me a single screenshot:
If one dares to start Chrome (FF: public shite like TDWTF, Chrome: 'things that matter') then I would expect something like this:
[0] | [1*] | [2] | [3*]
and NOT this:
Chinese proverb from "Sam Ting JustTheOtherwayAround" if I fire up shell first and then Chrome (FF was/is still open!) it should look like this:
[0] | [1*] | [2*] | [3*] and not like this:
This really really bugs me and I'm quite willing/ready to pick up / carry on the torch -for this part, mind you!- the staff that Blakey (the fucker, I hate him/her for forcing me to get my daily rant/swearword-fix elsewhere) dropped quite some ago, beautiful cunt s/he was/is )
That being said: I believe that I've tried all possible mutations of aformentioned "Settings" with no visible change of behavior (and therefore agreee that Linux is TheShite, except that Windows shits even more if one allows it to (**)) and beg you to try/repro/faff-around-whateverthefuck and report back to me how to change this behavior.
(*) had to do shit like clearing the dishwasher, take out the trash, mind the cat-litterbox and so on, not what some otherperverts! people might think
(**) just in yesterday from <customer>: "applying all <needed|required> Windows-Updates on TEST-Server took > 10 hours last week and therefore we cannot apply these at PROD during our usual maintenance-window next thursday. We want to move to <friday> with 'sign-off OK|NOK' therefore required during the weekend 'cos if not we will roll back on sunday; veto anyone?" ?
/might be useful to comment that the last >10 years WU never caused any troubles with our software (-> contains "Enterprise" in <Name>, !911!) but their shite just gets worse...
That being said, thoughts from my beloved -People?
@boomzilla
one would ass-u-me that my and your settings...
(thinking that your enabled "Cycle through tasks with..." | my disabled "Zwischen laufenden Programmen ohne...") does not matter
are identical.
True, I haven't mentioned that I already found these and toggled them all -> no change.
What I did NOT is: logging out / reboot 'cos it "should" not be necessary" (I did try that for the first 5 changes or somesuch, these were -I think, lost track somewhere, so who knows?- visible immediately and that gets old quite fast if you consider the number of possible combinations.
Just to be sure: does your desktop behave someway ..different..?
/some weeks ago...
... the triple-boot-box (1) in my man-cave was running too smoothly and yours truly was somewhat bored I decided to add a fourth one.
Viola: enter KDE Neon / neon.kde.org!
After some faffing around e.g. en-|disabled <effects> 'cos I either could not stand want /moi was perfectly happy.
BUT: but today my <hopefully minor> OCD | <somewhat strong> muscle memory woke up and since it has been seen it cannae be unseen and therefore bugs me like crazy.
Consider the ..taskbar.. / bottom of the screen:
-) the "dotty thing" on the left is KDEs 'Start Menu'-Button (to use Windows-Lingo and allow me to continue this)
-) Chrome-Shortcut
-) Konsole-Shortcut (=Shell)
-) Firefox-Shortcut (now "expanded" / "running" since I'm writing this post, without any open apps it looks the same but "just as wide as the icon")
.. all seems to be well, nice and fine but...
now I decide to open a shell and the taskbar looks thusly:
-> notice the modified placement of <Shell>, swapped from "Chrome | Shell | Firefox (expanded)" to "Chrome | Firefox(expanded) | Shell (expanded)"
.. now /moi dares to fire up chrome (hey the box has 8GB of memory, should be able to without bogging down too much...):
-> the "let's do another re-shuffle of the taskbar 'cos " drives me crazy and and please allow me to ask the trusty -community whether it's possible to configure/change this behaviour.
PS: don't ask why the screenshots have a different heigth/width, CBA to investigate, maybe it's just in the preview; I'm somewhat really surprised that 'Shutter' removes itself from the taskbar as soon one attempts to take a screenshot, wow!
Any idea which <incantation> is needed to stop this?
-> I'm perfectly fine with either
(preferred) "the shortcuts stay where they are, running apps line up on the right, if possible "grouped", e.g. <Chrome Icon> | <Konsole Icon> | <FF-Icon> |+ [ FF [1..n], Konsole [1..n])]
or
"expand shortcuts as needed" e.g.
<Chrome Icon> [..instances..] | <Konsole Icon [..instances..] | <FF-Icon> [..instances..]
(1) W10 + LinuxCNC to drive the mill + Mint<20.something> for faffin' around with the two 3D-Printers also crowding the cave
Any ideas?
PS: on reviewing this before submitting I'm not quite sure how Mint 20 behaves but I'm quite confident that it's not doing any re-shuffle.
@iKnowItsLame The problem is, you're basing the condition to bold a row against the same index in the unfiltered data, not against the filter data in the grid. Your dataView.getItemMetadata function should be:
dataView.getItemMetadata = function (row) {
if (dataView.getLength() === 0)
return null;
var item = dataView.getItem(row); **//<- THIS is the trick, my code used "data[row];"**
var cssClasses = [];
if (item.percentComplete > 50 || item.percentComplete < 10) {
cssClasses.push("bold-row");
}
if (cssClasses.length > 0) {
var classes = cssClasses.join(" ");
return { cssClasses: classes };
}
return null;
};
my pain in the arse is this:
readonly SlickGrid with some bells and whistles (sorting, column_headers with search, heavy formatting on cells and rows, etc)
added some shite re "handle filtering" and all was well.. until somebody noticed that the css applied per row seems to be stick ..sticky.., e.g.:
If one applies "1" as filter to column "% complete":
-> Task 2 -which was shown as bold in the unfiltered grid is now "not bold" and it seems to me that <whatever slickgrid does here> is ..sticky.. and does not reflect any changes caused by applying <column-filter>
Basically my question is: how does one re-apply row-based formatting if <grid> changes 'cos column-filters were applied?
Repro if a kind|curious mind has an itch to scratch (/meesa too dumb for fiddle, remenber):
-) download & unzip a file from https://github.com/6pac/SlickGrid/releases, anything recent should work (includes...), I'm using 2.4.14 here.
-) plonk into ../examples and run it
NOTE: the data shown in <grid> is random!
my humble repro-thingy in all it's glory, focus was to include everything within a single file:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="shortcut icon" type="image/ico" href="favicon.ico" />
<title>SlickGrid example: Optimizing DataView</title>
<link rel="stylesheet" href="../slick.grid.css" type="text/css"/>
<link rel="stylesheet" href="../css/smoothness/jquery-ui-1.11.3.custom.css" type="text/css"/>
<link rel="stylesheet" href="../controls/slick.pager.css" type="text/css"/>
<link rel="stylesheet" href="examples.css" type="text/css"/>
<style>
.cell-title {
font-weight: bold;
}
.bold-row {
font-weight: 800;
color: black;
}
</style>
</head>
<body>
<div style="position:relative">
<div style="width:600px;">
<div class="grid-header" style="width:100%">
<label>SlickGrid</label>
</div>
<div id="myGrid" style="width:100%;height:500px;"></div>
<div id="pager" style="width:100%;height:20px;"></div>
</div>
<div class="options-panel">
<p>Original: example-optimizing-dataview.html</p>
</div>
</div>
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../lib/jquery-ui-1.11.3.min.js"></script>
<script src="../lib/jquery.event.drag-2.3.0.js"></script>
<script src="../slick.core.js"></script>
<script src="../slick.formatters.js"></script>
<script src="../slick.grid.js"></script>
<script src="../slick.dataview.js"></script>
<script src="../plugins/slick.rowselectionmodel.js"></script>
<script>
var dataView;
var grid;
var data = [];
var gridFilters = [];
var columns = [
{id: "sel", name: "#", field: "num", behavior: "select", cssClass: "cell-selection", width: 40, resizable: false, selectable: false },
{id: "title", name: "Title", field: "title", width: 120, minWidth: 120},
{id: "duration", name: "Duration", field: "duration"},
{id: "%", name: "% Complete", field: "percentComplete", width: 80, resizable: false /*, formatter: Slick.Formatters.PercentCompleteBar*/},
{id: "start", name: "Start", field: "start", minWidth: 60},
{id: "finish", name: "Finish", field: "finish", minWidth: 60},
{id: "effort-driven", name: "Effort Driven", width: 80, minWidth: 20, maxWidth: 80, cssClass: "cell-effort-driven", field: "effortDriven", formatter: Slick.Formatters.Checkmark}
];
var options = {
multiColumnSort: true,
numberedMultiColumnSort: true,
tristateMultiColumnSort: true,
sortColNumberInSeparateSpan: true,
explicitInitialization: true,
showHeaderRow: true,
headerRowHeight: 25,
rowHeight: 25
/* ORI
editable: false,
enableAddRow: false,
enableCellNavigation: true
*/
};
var percentCompleteThreshold = 0;
var prevPercentCompleteThreshold = 0;
var h_runfilters = null;
function myFilter(item, args) {
for (var columnId in gridFilters) {
if (columnId !== undefined && gridFilters[columnId] !== "") {
var c = grid.getColumns()[grid.getColumnIndex(columnId)];
var cellValue = "" + item[c.field];
var searchFor = gridFilters[columnId];
if (cellValue === "" || cellValue == null) {
return false;
}
if ($.isNumeric(searchFor) === false) {
searchFor = searchFor.toLowerCase();
}
if ($.isNumeric(cellValue) === false) {
cellValue = cellValue.toLowerCase();
}
// handling of dates etc omitted!
if (cellValue.indexOf(searchFor) < 0) {
console.log("exit");
return false;
}
}
}
return true;
}
function DataItem(i) {
this.num = i;
this.id = "id_" + i;
this.percentComplete = Math.round(Math.random() * 100);
this.effortDriven = (i % 5 == 0);
this.start = "01/01/2009";
this.finish = "01/05/2009";
this.title = "Task " + i;
this.duration = "5 days";
}
$(function () {
// prepare the data
for (var i = 0; i < 50; i++) {
data[i] = new DataItem(i);
}
dataView = new Slick.Data.DataView({ inlineFilters: true });
dataView.getItemMetadata = function (row) {
if (data.length === 0)
return null;
var item = data[row];
var cssClasses = [];
if (item.percentComplete > 50 || item.percentComplete < 10) {
cssClasses.push("bold-row");
}
if (cssClasses.length > 0) {
var classes = cssClasses.join(" ");
return { cssClasses: classes };
}
return null;
};
grid = new Slick.Grid("#myGrid", dataView, columns, options);
grid.setSelectionModel(new Slick.RowSelectionModel());
grid.onHeaderRowCellRendered.subscribe(function (e, args) {
if (args.column.id !== "rowCounter" && args.column.id !== "priority") {
$(args.node).empty();
$("<input type='text' class='slick-headerrow-input'>")
.data("columnId", args.column.id)
.val(gridFilters[args.column.id])
.appendTo(args.node);
}
});
$(grid.getHeaderRow()).on("change keyup", ":input", function (e) {
var columnId = $(this).data("columnId");
if (columnId != null) {
gridFilters[columnId] = $.trim($(this).val());
dataView.refresh();
}
});
// wire up model events to drive the grid
dataView.onRowCountChanged.subscribe(function (e, args) {
grid.updateRowCount();
grid.render();
});
dataView.onRowsChanged.subscribe(function (e, args) {
grid.invalidateRows(args.rows);
grid.render();
});
// initialize the model after all the events have been hooked up
grid.init();
dataView.beginUpdate();
dataView.setItems(data);
dataView.setFilter(myFilter);
dataView.setFilterArgs(0);
dataView.endUpdate();
})
</script>
</body>
</html>
@Vixen as an european I just hope nobody says 'stable genius' in approximation of "four more years" but let's try to not derail this thread at the second post, huh?
Why is it that one can search for -say- IknowItsLame on Google and gets umpteen hits but has to register/login to search for sameself string here?
/not that it concerns me that much since this alias gets used just here but the AI-fearing tinfoil-hats might want to know, especially 'cos the trifecta of this thread could be completed really soon now with ... May you come to the attention of those in authority.
@ben_lubar is always good.
/not google but ... bug-report for <Enterprise product>:
Logged: 2017-08-xx against v13.0.x
<... time passes ...>
2019-12-xx: "CLOSED: Fixed in v16.x"
@Tsaukpaetra either that or simply use an AC-unit which does not suffer do this.
AFAIR the company involved said ".. we've never done a serverroom-AC before.." or some shite in that direction. (in Jeremy Clarksons voice: 'How hard can it be?")
This one 'special' unit got replaced four times already, seems to be ..err.. stable now. knocks on wood
this https://www.reddit.com/r/talesfromtechsupport/comments/ef28p8/of_remodeling/
(TL;DR: after some other shenanigans the AC blew cold air at the hot side of the rack) made me remember the one quite cold monday when /me opened the door to the server-room to swap the backup-tapes and walked into a >40°C hothouse.
... oh ... (scramble etc)
to spare y'all the giddy expectations: the <expert> (?HPC?) responsible for sizing this AC-unit (separate from the rest of the building, also designed by said expert) did not consider that a server-room requires AC 24 x 7 x 52 and it is not to shut down the unit because it's fucking cold (below -17°) outside to prevent some-damage-or-other to the AC, bursting pipes and such.
: this happened ~2015 and not some 13 years ago
Thanks, Greta.
/me thinks
Anyway: all the best & may the be strong with you in 2020.
Will definitely follow up on this, feels like trying to stab into your own eye with a 0.4mm needle (hot optional) while in the dark and wearing boxing gloves (c: