@hobbit666 can you share the actual site url and we can take a look at the full code?

Posts made by larsen161
-
RE: Dual Content Single HTML
-
RE: ServerBear Performance Comparison of Rackspace, Digital Ocean, Linode and Vultr
have you looked at something like packet.net
-
RE: Order Management System - OMS
@DustinB3403 I've generally just used our suppliers user and approval workflow system for this. Insight, Softcat, CDW all have built in OMS functionality.
If you're not using vendors that have this built in the look at using a simple Google Apps script: http://googleappsdeveloper.blogspot.co.uk/2012/04/approval-workflow-using-apps-script.html?m=1
Or for something prebuilt: https://kissflow.com/butterfly_effect/travel-request-approval-workflow-forms-admin-google-apps/ -
RE: WYSIWYG HTML Editor
@BRRABill I'm using a cloud ide - http://c9.io which has a live view of the code.
My setup is...
source control: bitbucket.com
ide: c9.io
ci: deploybot.com
hosting: aws s3 / cloudfrontWith a single commit from within c9 new code is pushed out to the s3 bucket and cdn cache invalidated.
-
RE: Dual Content Single HTML
You don't even need j 'anything', just some simple css styling
You can see it live in action at: http://smrtfcs.com/lang/<html> <head> <style type="text/css"> .cy > p[lang=en] { display: none; } .en > p[lang=cy] { display: none; } </style> </head> <body class="cy"> <button onclick="document.body.className='en'">English</button> <button onclick="document.body.className='cy'">Welsh</button> <p lang="en">Welcome to Aberdaron we hope you enjoy your visit. To make your visit as convenient as possible we have provided you free access to the internet.</p> <p lang="cy">Croeso i Aberdaron, rydym yn gobeithio y byddwch yn mwynhau eich ymweliad. I wneud eich ymweliad mor gyfleus â phosibl, rydym fel cymuned wedi darparu mynediad am ddim i'r rhyngrwyd i chi.</p> </body> </html>
-
RE: Exporting Google Notes
Just head over to http://takeout.google.com and select the service(s) you want.
Or, select just the ones you want, convert to Google Doc, download in format of choice (docx, odt, rtf, pdf, txt, html, epub)
-
RE: C2: Insanely Affordable x86-64 Servers
This was insanley affordale - I used to run cc2.8xlarge aws instances for hours and it cost me fractions of a penny.
RAM, ECU, Cores, Storage, Bandwith 60.5, 88, 32, 3360GB, 10Gbit/s
-
RE: BRRABill's Field Report With XenServer
@BRRABill said:
OK, next question.
How do I get a file onto my XenServer? Say I wanted to copy something over to it?
2 commands you could use to copy a file over to your xenserver box
# wget https://dl.dropboxusercontent.com/u/1234567/file.txt # scp [email protected]:/location/on-remote-server/file.txt /xenserver/path/
-
RE: Dual Content Single HTML
@hobbit666 said:
Problem is i can't upload any extra files, all i can do is edit the source code of the HTML page.
you could always use a trusty 'ol <iframe> and then use all the json, css, html files you'd like elsewhere. also <object> <embed> is a potential option.
-
RE: Taxes are to high!
@JaredBusch said:
My tax rate (counting healthcare) is something like 35% when I looked at my last paystub for 2015. Refund this will be about $3k because I forgot to change the amounts last fall like I generally do once I have paid in enough to cover my taxes.
@JaredBusch another perk of the uk - no filing of taxes is generally necessary - the PAYE system keeps track of how much you earn and pay as the year goes on.
-
RE: Medical Insurance in the US
@scottalanmiller I don't often look but this is what I based it off of and another via Aviva.
-
RE: Saving a dying server
@scottalanmiller exactly
myself. moving on, so not worrying about trying understand logic in that one
-
RE: Taxes are to high!
@scottalanmiller even back when it was $2:£1 that just doesn't make sense. i'm not sure how any company could have considered that acceptable.
-
RE: Taxes are to high!
@scottalanmiller I didn't say $200k was comparable to £45k. what i'm saying is that someone earning £40k and $40k isn't going to have a standard of living very much different from each other in their respective counties. a £28k role which is the equivalent of $40k would only pay 21% tax - there's not much difference.
-
RE: Taxes are to high!
@Dashrender sure, that's if you're converting like for like currency at an exchange rate today. live here and that isn't the best way to compare what we're discussing. Look at the US and UK minimum wage, the US is only 8% higher. £40k is more similar to $43k.
-
RE: Taxes are to high!
Looking at the UK at a similar £40k salary just 24% tax on that and healthcare is included. sure vat is higher at 20% but it's already calculated into the costs for goods and food is 0 rated along with a bunch of other stuff.
the value I get here for the tax I pay is like I've won the lottery compared to when I was in the us. and saying that, the lottery winnings here are 0 rated too - no taxes to pay if you win it big.
-
RE: Taxes are to high!
@travisdh1 said:
@johnhooks had to bring this up in "that other thread that got out of hand". So I decided to start a thread dedicated to taxes, and what is or is not reasonable.
For the record, I make less than $40k/year currently, have 20.5% taken in deductions, and a 7.5% local sales tax. Also, yes, I'm getting the resume and precis ready for a job hunt.
Does anyone think 28% when making less than 40k is reasonable? (Actually get to spend ~28,800.) That doesn't include the healthcare crazy.
you're paying 20.5% on what you earn and 7.5% on what you spend so you're not at 28% tax with $28.8k to spend. it's $31.8k spendable
-
RE: Medical Insurance in the US
@scottalanmiller said:
There is a reason why travellers plans come in two types: global traveller and global traveller with US. US coverage is the singular country not normally covered by all the international insurance companies.
Although there is a distinction for Worldwide Travel including/excluding the US, Canada or Caribbean Islands the difference in cost for a family of 5 is negligible. £5-30 difference depending on plan options.
I do very much enjoy not having to pay for healthcare and it be included as part of taxes. Private healthcare if I wanted to add it is around £150 extra a month for a family of 5 but we've never really seen the benefit of it when you look at what it includes.
I have worldwide travel coverage that includes the US for about £16/mo along with a bunch of other benefits though a Royalties Gold account at my bank. I think it's also a perk of my current employment package as well so might be double covered. -
RE: Saving a dying server
it's now moving over to AWS where the rest of the companies servers are. this started with one small local project many years back outside of the main dev/r&d team at hq and grew to host more systems for not only our local uk team but those in all our other offices in the us, ru, & il.
Fasthosts are being quite responsive and helpful. This is the latest from them once I said why wasn't this configured with hardware RAID from the start.
"A DS710i will have had raid configured, unless the server is of certain flavours of Ubuntu, which don't support software raid in a stable manner. Your older server is Ubuntu 12.04, which is one of those affected builds.
Your other server has hardware raid configured, I believe.
Based on your screenshot, only one drive was configured at all - /sdb contains no partitions. I assume that this means the performance issues are purely due to issues on /sda. As this contains all of your data and system files, replacing this will require a rebuild of the server. Following that, we can connect the existing disk for data recovery"
-
RE: Saving a dying server
well, well, well....
Looks like when someone said there was only drive on there what was actually meant was only one drive was setup and in use. Another guy has been working on this but I just decided to jump on it and take another look at what is going on.# iostat -x 1 Linux 3.2.0-99-generic (server88-208-204-138.live-servers.net) 09/03/16 _x86_64_ (4 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 4.05 1.77 1.31 46.05 0.00 46.82 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util sda 3.53 20.35 21.25 10.70 1363.54 368.05 108.39 25.83 808.39 105.71 2204.51 28.08 89.73 sdb 0.00 0.00 0.00 0.00 0.01 0.00 9.32 0.00 0.52 0.52 0.00 0.52 0.00 dm-0 0.00 0.00 22.84 18.10 1355.16 320.84 81.86 29.63 723.51 156.72 1438.68 21.91 89.72 # fdisk -l Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0008e4c8 Device Boot Start End Blocks Id System /dev/sda1 * 2048 499711 248832 83 Linux /dev/sda2 499712 8499199 3999744 82 Linux swap / Solaris /dev/sda3 8501246 1953523711 972511233 5 Extended /dev/sda5 8501248 1953523711 972511232 8e Linux LVM Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/sdb doesn't contain a valid partition table Disk /dev/mapper/VolGroup00-LogVol00: 995.8 GB, 995849404416 bytes 255 heads, 63 sectors/track, 121071 cylinders, total 1945018368 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/VolGroup00-LogVol00 doesn't contain a valid partition table