Tuesday, 12 February 2019

firefox - Where is this error coming from

I work for a video hosting and delivery company. We supply our clients an iframe to embed our player (Flash or HTML5 based on detection) in their sites.


I have a customer with issues and I can not get to the bottom of an issue he is having. When his browser (Chrome/FF/IE) renders this page:


I sometimes see this error (which is not from us) in place of our player: enter image description here


The misspelling leads me to wonder if he has some malware is preventing our Flash player from loading. The attempts to load the player all fail with ERR_CONNECTION_TIMED_OUT


Any ideas?

printing - How can I print Excel spreadsheet files automatically?


My company has computer-generated reports that come out as Excel spreadsheets which are emailed to the Billing Department. They would like these reports to be automatically printed as they are received.


I already found a program that will automatically download email attachments, called Mail Attachment Downloader.


Now ideally, I would want a program which will:



  1. Scan a chosen folder for new XLS spreadsheets that are downloaded.

  2. Print them out.

  3. Get rid of them (preferably by moving them to a different folder).


I know I can just write a batch file to take care of #3; and #1 isn't really necessary. I could just have a program run at a certain time to automatically print out any files it sees, then follow it with a batch file to move the files somewhere else. But finding a program that will automatically print Excel spreadsheets has proven to be difficult.


I have seen some Excel macros that automatically print a spreadsheet, but I want it to automatically open them and print them all by itself.


One of the challenges I'm up against is the Billing Department doesn't have Microsoft Excel yet. In the very near future, they will have a computer with Excel 2010, but for now it just has LibreOffice.



Answer



I used AutoIt to make a script that opens Excel, opens the only file (which begins with "elec") in a specified folder (which begins with "viat"), prints it, closes Excel, then runs a batch file to archive the file it just printed.


Here is the code of the AutoIt script file. I was banging my head on this for a while until I discovered that I needed the Sleep commands to make it work properly.


Run("C:\Program Files (x86)\Microsoft Office\Office14\Excel.exe")
WinWaitActive("Microsoft Excel")
Send("^o")
WinWaitActive("Open")
ControlClick("Open", "", 1148)
Send("c:\viat{DOWN}{ENTER}")
Sleep(1000)
Send("elec")
Sleep(1000)
Send("{DOWN}{ENTER}")
WinWaitActive("Microsoft Excel")
Send("^p")
Sleep(1000)
Send("{ENTER}")
Sleep(1000)
WinClose("Microsoft Excel")
Sleep(1000)
Run(""C:\Users\Chris\Documents\ViaTrack Archives\archiver.bat"")

And here is the code of archiver.bat:


move "C:\ViaTrack Reports\*.*" "C:\Users\Chris\Documents\ViaTrack Archives"

It's extremely simplistic coding, but it gets the job done. The main drawback of this script is that it will cause Excel to throw an error if the file does not exist in the folder. However, it is scheduled to run about an hour after the file is normally emailed to me, to allow for any unexpected delays.


The file is normally emailed at 5:40 AM every weekday. Historically, it's never arrived later than 5:45. Mail Attachment Downloader is set up to check for new attachments every 15 minutes.


It worked just fine this morning. The Billing Department Manager was happy to come in and find that her report was waiting for her on the printer, and she didn't have to print it out herself.


worksheet function - Excel Table lookup on Column/Row and rounding values up


in the example below I want to be able to type the width and drop in the two relevant fields and have the price value returned in the Price box. I have tried various combinations of VLOOKUP, INDEX and MATCH with some success provided the width and height value match exactly. But I can't seem to get it working correctly when the width and drop entries are arbitrary. I need both these values to round up to the next value in the table if they don't match exactly what is in the table. Can anyone help with the correct formula please?


Example



Answer



MATCH will return where the value greater than or equal and less then the next. You want the other way around. You will need an array formula:


=INDEX($B$2:$P$22,MATCH(MIN(IF($A$2:$A$22>=$T$2,$A$2:$A$22)),$A$2:$A$22,0),MATCH(MIN(IF($B$1:$P$1>=$S$2,$B$1:$P$1)),$B$1:$P$1,0))

Being an array formula it must be confirmed with Ctrl-Shift-Enter, Instead of Enter when exiting edit mode.


It will now find the location where each of the two values are greater than or equal to the values provided.


enter image description here


filenames - How to configure folder name case sensitivity in Windows 7?

I need to create files named abc.txt and ABC.txt. By default, Windows 7 will not allow this. Somebody please help me to solve.


NB: nfsadmin is not working in my system.

microsoft excel - Summing multiple cells that match row AND column criteria?


I've been given a file with 2 years worth of dates as column headers and sales info below. There's also a column that contains Year data. I'm trying to sort by both Year and Day of the Week. I'm about 4 hours in, and can't seem to solve this one, so any help would be greatly appreciated! I know I could filter by year, sum the columns, and HLOOKUP each day of the week -- I just figured there's a way to do this with an array formula that would simplify things.



Answer



You can usually use SUMPRODUCT for this - I'm not quite clear on the criteria for you but generically you can use this setup


=SUMPRODUCT((A2:A10=Z1)*(B1:J1=Z2),B2:J10)


where A2:A10 are the row labels, B1:J1 column headers and B2:J10 the data. Note the data range must be the same width as the column headers and same height as the row labels


Z1 and Z2 contain the criteria - you can use cell refs or put the criteria directly in the formula


If you can't adjust that then post back with more details


context menu - Windows 7 'All Programs' folders self-close on right-click

Odd issue on my Windows 7 Professional (32-bit) system.


If I click on the Start 'orb' then navigate to 'All Programs', then navigate to any of the folders that appear at the bottom of the list (like Accessories) and left-click, the folder contents expand with no issue. If I right-click, the context menu appears for half-a-second or so, then the popup goes away and the entire start menu dismisses.


I'm not sure how to debug this issue - I'm considering using Autoruns to try and disable things hooked into the shell one-by-one. Is there a way to use a tool like Process Explorer to narrow down the process that's actually dismissing the menus?

audio - Windows 7 laptop's volume with headphones way too loud

I have two headphones, neither has any amps or volume control, and both have the same problem with this computer. I normally have the volume on 10%, and that is optimal. I'm still very afraid that someday it will be at 100% and i'll accidentally have my headphones on.


I tested how loud it is at maximum volume -- it's earsplittingly loud! In fact, it's so loud that if I lay the headphones down on the table, I can listen to a song perfectly clearly from meters away.


Is there any way to make the volume control more safe for the ears?

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...