-
Posts
285 -
Joined
-
Last visited
Content Type
Forums
News
20th
EduGeek EDIT Conference
Blogs
Everything posted by spadam
-
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
-
OK.. I think I understand better now... Good explanation. On a typical webpage HTML tags are used to 'mark up ' the content, defining what each section of content on the page represents. Most browsers will apply some default styles to various tags to determine how they are displayed. Mostly though CSS is used to control the appearance of the page and of the content on it. There are various ways to include CSS in a page. Usually it is loads from separate files which are hosted on the site but it is also possible to include CSS styles only be within the HTML tags or to include a CSS stylesheet within the HTML of the page. How much control you have over the appearance of your pages on this site will depend on what is permitted by the site. You should probably read a little on CSS stylesheets on the W3C site and then maybe try including some basic CSS on your page to see if it works. From there you could search online for a free ready made page template to see if you can get that looking good but YMMV with this. Does that help at all?
-
I don't understand what you mean by "my package takes control of resizing". My understanding of 'layout' is defining the position and appearance of elements on the page. This would usually be achieved through a combination of HTML and CSS and would include determining the size at which those elements are rendered. Hate to ask this but can you be more specific about what you mean by your package and what it actually does?
-
IF(B1=4,5,IF(B1=44,1,IF(B1=3,6)))
-
Not sure I understand fully but would 3 nested IF statements do what you want?
-
Depends on the person.. Never charge my family or good friends except when I do work for my partners business but they appreciate what I do and that is enough for me
-
[ms office - 2013] Access - ListBox showing records, click to load record
spadam replied to _kstone's topic in Office Software
Just gotten around to looking at this.. Haven't used Access for a few years so got a bit nostalgic for a moment I think you just need to include the ApplicationID as a field in the data source for the form you're trying to open. Once that's there it opens the form filtered to the value selected in the list box. -
Is your template actually a template (.xltx) or just a regular workbook (.xlsx)? If its the latter that'll be it I reckon.
-
[ms office - 2010] Looking for an Access Developer to fix a simple database:
spadam replied to JBE's topic in Office Software
I'll take a look at it if you want. I developed and managed a few Access (2007) databases at my last school so might be able to help. Can you send me a copy of the current database along with your requirements and let me know what version of Access you are using. I'll take a look at what you've got and then we can discuss possible options. I'm based in the Midlands BTW but am comfortable with working remotely. -
One thing to consider is fitting hollow skirting boards and running the cable inside there. That way you can easily move points or add cables over time as needed without completely destroying the walls or flooding.
-
Just wanted to update anyone who might be interested on how things have been going for me since moving from an IT Technician in Education to a programmer working for an NHS hospital 3 months ago... The short answer: Great! There hasn't been a week since I started my new job that my brain hasn't hurt from all the new information that I've been trying to get to grips with. So much new terminology, relating to both tech and health plus the new organisational structure and all the new people. The system I'm working on is not much younger than I am and is a fat client database application - the database is written in a language called Mumps which I hadn't heard of until I started here but I actually quite like now I've got to grips with the basics. Documentation and comments are pretty hard to come by and there are parts of the code that I don't think anyone there fully understands without spending a long time picking it apart first. Probably the biggest change for me has been moving from a position where I was the go to authority on 'anything with a plug' to being the person who always needs help and knows very little. It is great having people that I can talk to face to face on a technical level though. The move has snapped me out of my comfort zone hard and fast which has been difficult at times but overall a very positive thing as I was definitely a little too comfy where I was. I have a much more clearly defined role now too which I find less stressful. I do sometimes miss the level of freedom I had in a school to explore new avenues or innovations but not as much as I thought I might. The money is better too although a chunk of this is eaten up by extra travelling costs - my day is also much longer doe to the extra commute which sometimes puts a strain on things at home. There have been a few (dark) times when I've felt overwhelmed or not capable of reaching a level of competence approaching that of my new colleagues but they are all supportive and ready to offer advice when I ask or when they see I need it and these times have become less frequent as I've slowly developed my skills. So my experience so far has been overwhelmingly positive, long may it continue.
