Google Maps Store Locator - modify default example - csv

I'm trying to create a store locator based off the static csv example used by Google http://storelocator.googlecode.com/git/examples/panel.html
I have recreated this example on my own server but if I edit the csv file in any way, even if I just remove some of the rows it returns a blank map.
I was hoping I could use this example as a template by replacing the default values in the csv file with my own(http://storelocator.googlecode.com/git/examples/medicare.csv). There is clearly more to it than I assumed and was hoping someone could point me in the right direction in terms of why I can't just edit the fields in the csv with my own values and what else should I be editing?
This is their main page http://storelocator.googlecode.com/git/index.html
I have been searching online for a way to do this and I have now asked this question here as I am struggling to find an answer.

It seems when I opened in excel it was reformatting the csv file and causing it not to work. When I edit the fields from the csv in notepad++ it works. Apologies for the useless question. Thanks Dr Molle for bringing this to my attention.

Related

Chrome extension how to append or edit a csv file on pc

I am able to find some information on how to read a csv file on a computer but is there any way I can modify one? In my chrome extension I need to add data to each row one at a time after scraping some websites. Is there any better way then read csv, store data as variable and rewrite is everytime? This becomes problematic when the file gets large. I am looking for a way to “append ” to a existing file or a work around. Any suggestions appreciated.
Update: From comment I see it is not possible to read from file system. But is there anyway to read from within the extension directory? How should I do so if the csv file is included with in the zip file of the extension? Can I access them somehow? Code snippets would be helpful.
I'm in the middle of creating something which might help you. Right now you can upload the CSV file and append a "modifier". You can adjust the code according to your requirement. Here's the repo https://github.com/amanrOnly/CSV_Modifier

Angular 5 : How to integrate html data (which is a formatted text) in a .docx file?

I'm still a bit newbie in the code game, and i would like some advices from senpai.
Context :
I'm making a angular 5 app which has a form, which is using also QuillJS, a rich text editor for only one question (the previous questions are simple input field for strings or numbers). My goal is to allow my users to download the form and the text from QuillJS they completed, on a .docx file (Word). And of course i'm doing this because i want to keep the formatted text from QuillJs, otherwise i would have just get a good ol' string.
Issue :
The point is, i'm already building a docx file for the first questions of the form and the only method i found for now to put my html string from QuillJs in a Word readable data type, is to use html-docx-js library.
This post even explain how. But, BUT, i don't want to use saveAs function (see the post), that create a file and put the content in it. I want to put the content in the docx file i'm already creating.
So here is my question, how would you, senpai, do it ?
The thing is that i've got a Blob file (cf post), but i don't know how to put it in my docx file. I tried to see if FileReader function could do the job, but well... i don't get how to integrate this special Blob file type (which is : application/vnd.openxmlformats-officedocument.wordprocessingml.document) in the docx file.
Maybe there is another way, i'm open to any suggestions, i don't mind at all to change my way of doing.
Thank you. Save internet, give me a tip.
The official documentation for html-docx-js does not state any other options than the asBlob method. I suggest two options:
Decoding the DOCX:
The Blob filetype is not special. The blob is just binary representation of the docx. I found in SE question that the docs in fact zipped XML document. You could unzip it using JSZip or other JS solution, then read it using FileReader and try to deal with it in a DOM manner. I'm not qualified to go into details how that could work.
Adding HTML to the user input first and then outputting it as a whole
This is changing the way you want to do it. In this way, I would first create formatted HTML with the data you collected in other parts of the questionnaire. Then you append the rich data from the rich editor. At last you take this HTML data and save it into single file using the asBlob function.
The second solution will maybe strip some customization from your original approach, but it seems much faster to implement.

How to convert an excel cell into a HTML file?

I would like to ask for some help (again), here's my context : I'm trying to create an Excel Worksheet that I can add some coordinates and generate an html page with a map using Google Maps API and his markers.
I have successfully created a macro that get the data from my SQL Server and that also create the html structure (tags,header,body,etc.).
Here's my problem : There is a way to create a macro that get the value of my cell (that contains the HTML structure) and transform it into a HTML page? (Also, I have to be able to save this file into a directory, because it will be used by other users)
Thanks in advance!
Your question basically boils down to this... How do I read the value from a cell and save it to a text file? After all, an HTML file is just a text file with the .html file extension.
So, I assume you already know how to read the value of a cell. Now comes the question of how to write that string to a text file, and that part of the question has been answered before, both in MSDN articles that you can find via a Google search, and right here on SO...
https://stackoverflow.com/a/11503299/1246574
Hope this helps. Sometimes solving a seemingly complex problem is about breaking the question into simplified parts.

pasting an excel grid into an HTML form and pasting it back into an excel document

A friend of mine asked me about this 2 weeks ago and I am still trying to think about the best way to solve the problem.
Apparently the users ended up with a system where they get an excel file where they
have to manually fill up a column (I am expecting a lot of data).
the user would have to the grid into an html form
Have the pasted excel rows create rows in the DB
Is there is a clean way to handle this problem? Should he write any client side to format the pasted text or should he handle it on the front end? I also worry about any mistakes made by the user pasting the wrong number of cells.
If you can't get rid of the Excel step, you could write a program that reads that Excel file and store the values in the DB.
I did some Excel processing with Apache POI in Java.

How might I write a program to extract my data from Google Code?

I'm about to start writing a program which will attempt to extract data from a Google Code site so that it may be imported in to another project management site. Specifically, I need to extract the full issue detail from the site (description, comments, and so on).
Unfortunately Google don't provide an API for this, nor do they have an export feature, so to me the only option looks to be extracting the data from the actual HTML (yuck). Does any one have any suggestions on "best practice" from attempting to parse data out of HTML? I'm aware that this is less than ideal, but I don't think I have much choice. Can anyone else think of a better way, or maybe someone else has already done this?
Also, I'm aware of the CSV export feature on the issue page, however this does not give complete data about issues (but could be a useful starting point).
I just finished a program called google-code-export (hosted on Github). This allows you to export your Google Code project to an XML file, for example:
>main.py -p synergy-plus -s 1 -c 1
parse: http://code.google.com/p/synergy-plus/issues/detail?id=1
wrote: synergy-plus_google-code-export.xml
... will create a file named synergy-plus_google-code-export.xml.