-
Posts
285 -
Joined
-
Last visited
Reputation
415 ExcellentAbout spadam

Personal Information
-
Biography
Computing happens
-
Occupation
ICT Technician
-
Location
West Midlands
-
I don't understand enough about version numbers to explain the different numbers but if all you need to do is handle the 00 case I suggest using a simple function to compare versions may be a reasonably robust workaround. I don't write Powershell but something like the following: function Different-Versions($v1, $v2){ $different = $FALSE $list1 = $v1.split(".") $list2 = $v2.split(".") if ($list1.Length -ne $list2.Length){ $different = $TRUE } For($i=0;$i -lt $list1.length; $i++){ if([int]$list1[$i] -ne [int]$list2[$i]){ $different = $TRUE } } Return $different } Different-Versions "1.3.00.28779" "1.3.0.28779" Different-Versions "1.3.0.28779" "1.3.0.287790" Different-Versions "1.3.0.28779" "01.03.00.028779" N.B My limited testing suggests comparing each piece as an integer will effectively ignore any leading zeros in any part of the version number - I think that's ok for this.
-
Nice addition.. Stick border-radius: 25px; on those divs and it's almost the real thing!
-
Sorry, just stumbled across this before turning in and thought I'd chip in. Webman's solution is a good one with a few nice features but your first attempt was actually pretty close to a minimalist solution. Just do away with the for loop in the function that changes the image and it should behave more as you expect (i.e. only advance the image one stage each time the function is called). Here's an example of something similar that you can play with: Cycle /div> <br /> var stages = [<br /> 'red','orange','green'<br /> ];<br /> var current_stage = 0;<br /> var panel = document.getElementById('panel');<br /> function cycle(){<br /> if(current_stage >= stages.length) current_stage = 0;<br /> panel.style.background = stages[current_stage];<br /> current_stage++;<br /> setTimeout(cycle, 1000);<br /> }<br />
-
Synology. I bought a DS414 4ish years ago and it's one of the best purchases I've ever made. The UI is awesome. Really simple and intuitive to set up and manage and loads of extra features if you want to use them or just have a play around.
-
Only just seen this but looks pretty good fun... 1 down, 24 to go. Thanks.
-
Dan.. Looking at your script I think the reason it's behaving how it is is because you need a closing brace after the lines if (!inputs.job.isAnalysisComplete) { return; The closing brace immediately before the function matchesAny declaration should then be deleted so that the braces still balance. At present the logic to convert jobs to greyscale is all inside the block of the if (!inputs.job.isAnalysisComplete) condition so is all ignored when the script is executed. Please wrap your code in [/code ] tags in future to preserve formatting - It makes it much easier to read.
-
It didn't what?? Copy anything? Copy correctly? Stop the lagging? Something else? Are there any formulas in the file that might be poorly written and so causing the slowdown? I'm really down to guesswork now without any specific details or actual data to work with. Sorry.
-
Ok.. so the issue is with the file then.. could be that it's corrupt. Does it run any VBA code? Have you tried creating a new file and copying across the data? If you can post the file that might help us
-
I don't understand.. are you saying the problem occurs when this file is opened by any user on any PC. Or just for the one user?
-
Depends not only on the data but also on who will be expected to use and maintain it, what their skills / knowledge are, how much training/support will be available... Hard to give a definitive answer based on the information available. May also want to consider a simple webapp. I would say not to worry too much about having to backtrack.. If it turns out the original approach was unsuitable you'll have learnt a lot from the experience and v2 will be all the better for it
-
Can you post your code? Don't even know what language you're working in yet.
-
Genius knowledge probably not required for this so don't worry - It's pretty straightforward. The easiest way to 'remember' information such as this between page loads is to save a cookie containing the information to the user's computer. You can then read the value of this cookie when the page next loads. In you case, whenever the user clicks your button you could run some Javascript to save the state of the feed to a cookie. When your page loads run some Javascript to read this cookie if it exists and set the initial state of the feed accordingly. I assume you are already using JS to toggle the display of the feed so it should be simple enough to include code to write the cookie within this. Rather than just give you the code, try working through this tutorial JavaScript Cookies which starts from the very basics which will probably be more useful to you than just copying some code across. If you're still struggling paste what code you have written and I'll try to help more - Sound fair?
- 1 reply
-
- 1
-
-
I think it depends on your template as to how this works... You can enable the print button to show for articles within Joomla which when clicked should only print the article rather than the entire page. Otherwise you can add a CSS stylesheet with media="print" attribute and within this stylesheet set display:none for all the elements you want to hide
-
Just a guess really, hard to test on my phone, but it looks to me like your code is trying to access an attribute of the record node. The record node has no attributes so it returns null. Try something like Node.item["Forename"] instead. Check the api to see the properties and methods available.
-
£3000... That had better be one hell of a webcam
