Previewing RestructuredText with firefox while editing in vim - ruby-on-rails

I want to use vim to edit restructured tex and see the result in the firefox. I found this posting http://www.zopyx.com/blog/editing-restructuredtext-with-vim which shows the way. It works but every time it opens a new instance of firefox. I want it to open only one instance of it not several tabs of it.
Here is the code:
:com RP :exec "Vst html" | w! /tmp/test.html | :q | !firefox /tmp/test.html
Could you help me to change the above code to achieve what I want.
thanks,
Ahmet

Enter about-config in the address bar and write newwindow in the Filter bar.
Set the browser.link.open_newwindow value to 1.
Now Firefox will open /tmp/test.html in the last visited tab.

Related

Jquery Select2 multiselect with Dragon NaturallySpeaking

I have implemented a select2 multiselect for list of states in a application, and it works fine using typing the state names. But with Dragon NaturallySpeaking software if you speak in select2 to select a state, it only show the last char of what you spoke and do not autosearch, you have to press space to see the whole text and then press backspace to start the search, looks like some event does not fire when you speak than type. Not sure if there is any solution that I can try. I have tried to fire the change event manually.. but not working !
Since the select2 box is not Select and Say, you probably need to dictate into the dictation box and transfer it over. Or, write a script to take in the dictation, convert it to what you need, and then paste it to clipboard. Then go over to box and paste from clipboard. Let us know what worked . . .
I have added a check if the selected element class is select2-search__field then I trigger a $(activeElement).trigger('change') in that element. that seems doing the job

Atom html snippets not working

I have been pulling my hair out trying to finds a solution to this problem.
I start typing <a then press ctrl-enter to open up the available snippets.
I would then be provided with just a list of tags (with the red V icon at the left), I was expecting to see a list of snippets (green right pointing arrow) that could be selected and would auto complete the tag and closing tag.
The same functionality as seen on this blog post (HTML Paragraph) http://blog.atom.io/2015/05/15/new-autocomplete.html
It is my understanding that autocomplete-plus has snippets from autocomplete-HTML, auto-complete-CSS, autocomplete-atom-API, and autocomplete-snippets. And that these are all now bundled by default into the atom.
I have read many blogs and GitHub issues trying to find a solution and none have worked. my snippets.cson is empty (Ignoring comments)and it is my understanding that they are for custom snippets. I do not want custom snippets at the moment, I just want the defaults which are advertised on the autocomplete plus docs
Has anybody else had this issue or would know solutions?
Each Atom snipped has a specific prefix, in case of the <a> tag it is just a (without the < character), so typing atab pastes the snippet body tag.

Using Hyperlink Type ReportExecution in JasperReports Server

All I want to do is create a Drill down report from say report "one" to report "two"
I can't find ANY documentation or examples on how to use Hyperlink Type ReportExecution for JasperReports Server
It all seems straight forward but it doesn't work (parameters aren't sent through)
HOW ITS CURRENTLY SETUP:
Target is set to "Self"
Type is set to "ReportExecution"
In reference tab I have correct link (it links to drill-down report successfully)
"./flow.html?_flowId=viewReportFlow&reportUnit=%2FNWU%2FStudentInformation%2FCurriculumManagement%2FAPQIBI005drill"
Anchor and page tab is empty (have no Idea what to put here since I cant find any Docs on it)
Link parameters have values in that should work but aren't (double checked everything here many times)
campusAndFaculty | $P{campusAndFaculty}
campus | $F{cn_campusname.cn_campusid}
Tooltip Tab is empty
What am I doing wrong? Why aren't the params being sent through?
NOTE:
Using JasperReports Server Pro 5.0.1 &
Using iReport 5.0.0
I also know of the sample report (/Reports/Samples/Employee List report.), but our server doesn't have any sample reports
Remove the link from your Reference tab. On the Link parameters tab, add a parameter named
_report
and set the expression for _report to reflect the path to the target report:
"/reports/myFolder/myReport"
Remember to include the quotation marks.
Also, it would seem that the Jaspersoft document site is down at the moment, but for future reference you can access the iReport guide here:
http://community.jaspersoft.com/documentation?version=7114

can I force Outlook 2007 rule to print first page only?

I have set up a rule to quite simply print out an email when received from a certain address (Amazon sales) - The idea being that as orders come in, they are auto printed and waiting to be packed.
However the amazon emails require 2 pages.
under the Rules menu in Outlook, the option is simply "Print" but no further print preferences are available.
Is there a way to get it to print the first page only? a script possibly?
No, Outlook Object Model does not porvide any fine controls over the print functionality. As a workaround, you can export the message as a DOC file (MailItem.saveAs), then programmatically load it in Word and use the Word Obejct Model to print it.

Moodle - Quotes and Backslashes when submitting

I have a sinister problem in one Moodle 1.9.9+ server.
On the startup page (logged in or not), I have the Summary, and if I make a link with the HTML Editor, it makes correctly, but when I submit, the link becomes with some backslashes. See my examples above:
1) On the HTML Editor, I write a text: http://www.example.com
2) Choose the link button
3) In the field "URL" I repeated the URL: http://www.example.com
4) Click on OK button.
5) Click on Save Changes button.
And in the summary, the link is shown as: http://www.example.com
and when I click him the browser goes to http://mymoodledomain.com/\"http://www.example.com\"
If I reedit the same Summary and simply press Save Changes, the link becomes with more backslashes:
http://mymoodledomain.com/\"\\\"http://www.example.com\\\"\"
And again:
http://mymoodledomain.com/\"\\\"\\\\\\\"http://www.example.com\\\\\\\"\\\"\"
I don't know what are happening with my Moodle, or my PHP.
I've tried to disable the magic_quotes_gpc, and them defined the constant MOODLE_SANE_INPUT with some value, but works parcially, because the same problem occurs too with Front Page Settings, and disabling the magic_quotes and enabling the constant, for this case not works. If I've a title with quotes, on each submit more backslashes are saved, for example:
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"example\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
Please guys, I need to solve this problem more quickly is possible.
Any sugestions?
Tks for all.
I've encountered the problem and solved it. Was on PostgreSQL.
The 9.1 version becomes with 2 options enabled by default, and the 8.3 was off. These options are called "standard_conforming_strings" and "escape_string_warning" and are encountered on postgresql.conf.
When enabled, these options saves an escape for an escape char, that comes of PHP by the "magic_quotes_gpc" resource when submitting a form.
Tks for all!

Resources