Text area with vertical scroll bar Java FXML - javafx

I am trying to define a TextArea with a vertical scroll in my .fxml file. But, unfortunately, in-spite of trying various options, I only get a horizontal scroll bar. I intend to put a text consisting of 3 paragraphs in there.
<TextArea fx:id="legalproseTextArea" editable="false" focusTraversable="false" prefHeight="400.0" prefWidth="400.0" style="overflow:scroll" text="“Transaction” includes a payment, purchase, sale, loan, pledge, gift, transfer, or delivery, and with respect to a financial institution includes a deposit, withdrawal, transfer between accounts, exchange of currency, loan, extension of credit, purchase or sale of any stock, bond, certificate of deposit, or other monetary instrument, use of a safe deposit box, or any other payment, transfer, or delivery by, through, or to a financial institution, by whatever means effected, except that “transaction” shall not include payments to attorneys for legal services." visible="false" GridPane.columnIndex="1" GridPane.columnSpan="4" GridPane.hgrow="ALWAYS" GridPane.rowIndex="19" />
Please help. Thank you.

Related

How to get credit card details of Paypal Recurring payments profile

I am creating a Recurring payment profile using Direct payment(credit card details entered during registration are not stored in database). I want to update/change the bill amount for every bill cycle(because billing is done per user per month).
I am using UpdateRecurringPaymentsProfileDetails API method to change the amount, but the method needs credit card details again(for each time it is called). I am getting the credit card details using GetRecurringPaymentsProfileDetails, but this method just returns the last 4 digits of credit card(and does not return CVV2, but this is not major issue here).
Is there any other option to get the full credit card details(at least credit card number) using Paypal APIs or should I have to store credit card numbers in my database? Any help would be highly appreciated.
It's unlikely that you'll be able to get the full credit card number from PayPal; that's why people use PayPal.
Storing credit card information in your database is a huge liability, and should be avoided if at all possible. Once you start storing that information, your company is responsible for keeping that information secure (and that includes developers). Use another third party component if you must, but don't take on such an enormous liability.
I don't know what company you work for, but that's not a decision that a developer should be making on their own. Entire companies have been shut down for mishandling credit card information. The law around that stuff is extremely murky, and even the smallest mistake can result in massive fines.

Force feed readers to display the body of a post in an RSS 2.0 feed

I have a feed which I'd like to be able to read in a feed reader. It will only display the title and description. Can I change something in the feed or my reader that will allow me to view the body of the posts?
Here's a sample of the feed:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>NarrativeScience</title>
<link>http://www.narrativescience.com</link>
<description>Narrative Science</description>
<language>en</language>
<item>
<title>Kelly Services Earnings Preview</title>
<link>http://www.narrativescience.com </link>
<description>Kelly Services will unveil its latest earnings on Wednesday, August 10.</description>
<category domain="ticker-symbol"> KELYA </category>
<body> <![CDATA[ <p>
Investors are on the edge of their collective seats, hoping that <b>Kelly Services</b> (Nasdaq: KELYA) will top analyst expectations for the fifth consecutive quarter. The company will unveil its latest earnings on Wednesday, August 10. Kelly Services is a global workforce solutions provider operating in all major markets throughout the world. It assigns professional and technical employees in the fields of creative services, education, legal, and health care.
</p><p>
<strong>What analysts say: <br /></strong>
</p><ul><li><b>Buy, sell, or hold?:</b> The majority of analysts back Kelly Services as a buy. But with 60% of analysts rating it a buy, Kelly Services is still below the mean analyst rating of its nearest 10 competitors, which average 76.4% buys. Analysts don't like Kelly Services as much as competitor <b>TrueBlue</b> overall. Eight out of nine analysts rate TrueBlue a buy compared to three of five for Kelly Services. Analysts haven't adjusted their rating of Kelly Services for the past three months. </li><li><b>Revenue Forecasts:</b> On average, analysts predict $1.37 billion in revenue this quarter. That would represent a rise of 13.2% from the year-ago quarter. </li><li><b>Wall Street Earnings Expectations:</b> The average analyst estimate is earnings of 25 cents per share. Estimates range from 20 cents to 29 cents. </li></ul><p>
<strong>What our community says: <br /></strong>The majority of CAPS All Stars see KELYA as a good bet, with 66.7% giving it an "outperform" rating. The majority of the Fools are in agreement with the All Stars as 77.1% give it an "outperform" rating. Fools are bullish on Kelly Services, though the message boards have been quiet lately with only 41 <a href='http://caps.fool.com/Ticker/KELYA.aspx'>posts</a> in the past 30 days. Kelly Services' bearish CAPS rating of one out of five stars falls short of the Fool community sentiment.
</p><p>
<strong>Management: <br /></strong>
</p>Now let's look at how efficient management is at running the business. Traditionally, margins represent the efficiency with which companies capture portions of sales dollars. The following table shows gross, operating, and net margins over the past four quarters.
<table><tr><td><p><b>Quarter</b></p></td><td><p><b>Q1</b></p></td><td><p><b>Q4</b></p></td><td><p><b>Q3</b></p></td><td><p><b>Q2</b></p></td></tr><tr><td><p><b>Gross Margin</b></p></td><td><p>16%</p></td><td><p>16.3%</p></td><td><p>16.1%</p></td><td><p>15.8%</p></td></tr><tr><td><p><b>Operating Margin</b></p></td><td><p>0.1%</p></td><td><p>1.3%</p></td><td><p>1.1%</p></td><td><p>0.7%</p></td></tr><tr><td><p><b>Net Margin</b></p></td><td><p>0.1%</p></td><td><p>1.1%</p></td><td><p>0.7%</p></td><td><p>0.3%</p></td></tr></table>
<p>
One final thing: If you want to keep tabs on Kelly Services movements, and for more analysis on the company, make sure you add it to your Watchlist.
</p><p>
<i>Try any of our Foolish newsletter services <a href='http://www.fool.com/shop/newsletters/index.aspx'>free for 30 days</a>. We Fools may not all hold the same opinions, but we all believe that <a href='http://www.fool.com/shop/newsletters/index.aspx'>considering a diverse range of insights</a> makes us better investors. The Motley Fool has a <a href='http://www.fool.com/Legal/fool-disclosure-policy.aspx'>disclosure policy</a>.</i>
</p> ]]> </body>
<pubDate>2011-08-05 08:09:14.408000</pubDate>
<guid isPermaLink="false">4e3ba52a18567f40380003a2</guid>
</item>
<!-- other items -->
</channel>
</rss>
You have a <body> tag instead of a <description> tag in the item element. There is no <body> tag in RSS 2.0. Both the channel and item elements have description sub-elements. Try changing your <body> tags to <description> tags.
See this for the RSS 2.0 specification.

Change product currency and price in ubercart-based drupal with variable price

I run a donation site in Drupal, that soon needs to expand to another country, and will need to support not only switch of language, but also currency. The thing is, users donate money to charity in their own currency, and this needs to be summed up to a total amount of donations shown to the current user in their own currency.
A fundraiser is an ubercart product that users "buy" at a variable price, thus making a donation. I am creating a custom Donation node with each ubercart purchase containing CCK fields such as the amount donated.
So what I need to allow is this:
A user makes a donation in, say, Euro, EUR
Another user makes a donation in Danish Kroner, DKK
A third user views the site in US locale and should see all the donations converted to USD based off of the exchange rate at the time of donation for all the donations.
And it gets a little more difficult: We are using the UC variable price module to allow users to donate any amount they see fit.
So can this be accomplished using Drupal and Ubercart, and if so, how?
I am afraid that you will end up writing your own plug-in to convert currencies.
The problem with the conversion is, this is something that changes but you already realized this. The only source of exchange rates I know is Oanda and they seem to have their own Data Feed.
Unfortunately, I cannot tell if you would be allowed to use it for free, I believe it would be good to ask them.

Is there a third-party business card designer widget for a website?

I am a part-time IT worker for a university print shop. Over the years my predecessor and I have created a very simple, custom ASP.NET website to allow employees to submit print orders, which we then process and deliver.
We have long allowed employees to order business cards, but we only let them enter a few fields - their name, phone number, fax number, etc. - which we then print out on a common stock. But my boss would now like to offer employees more customization, from uploading a photo of themselves to include on the business card, to adding an optional message at the bottom of the card which the employee could customize by entering the text, the font, the color, and so on.
This is a bit beyond my skillset. Are there any out of the box third-party products we could buy (or that may be freeware) that would provide a rich design experience? Ideally the customer would have a rich canvas like with Vistaprint.com or any other sort of commercial, direct to consumer, online business card company.
Out of curiosity, why not get in touch with the computer engineering department? One of my biggest gripes about my college experience was never getting any hands-on experience (that is, until senior-year when they threw us into a real-world project using Java and a few other languages that we were never taught.) This project is not difficult at all, and I suspect that they could get it done in about a month's time.
They should be able to produce something that not only allows the user to use a custom image, but they could also allow users to move the Name, Address, etc. anywhere on the card, etc.

Is it viable to use Drupal/Ubercart for an international store? Do any payment gateways support it?

I am picking tools to use for an international store. Company sells training and products in North America, Europe and a few other places. The existing store in the United States (Drupal/Ubercart/Authorize.net) works great and serves all their needs.
Displaying product prices in different currencies are relatively easy to set up, and you can display the correct currency symbols and values depending on where services are rendered, where people want to ship to, etc (useful modules include uc_multiple_currency, uc_multiprice, uc_cck_currency).
Are there viable Ubercart solutions to sell to other international markets using the same storefront? It is possible for any user to buy services/products through the US store, but paying in USD for a service offered in e.g. the Netherlands, when dealing with people based in the Netherlands is not acceptable.
The only payment gateway I could find that would accept payment in multiple currencies is Paypal. However, I am looking for a solution that would accept credit cards from international users and charge them in the correct currency. Authorize.net works great - will accept cards from anywhere and process them, but all transactions is in USD. It would be extremely problematic to charge someone €250 on the site and their final charge (after currency conversion) being e.g. €250.65 or something like it because of a delayed conversion.
Numerous people have asked this question, with very few useful insights and solutions (see for example here, here, and here, which presents a workaround-ish way of doing things).
To be clear: Displaying prices in different currencies is easy. How can I bill credit cards internationally using the correct currency through a gateway that supports it, without having to do conversions?
I have been through the same thing recently, but ended up making my own module to do the price handling. If it's done right, the prices will be displayed correct, even for order total etc. (See the hook_uc_price_handler)
This means that you will need to do two things to handle your problem.
Make sure the order only contain 1 currency, so you don't have one item costing €100 and another costing $100 (what would the total of that order be?) You could handle this by doing currency conversion if you wanted to, I believe that is how one of the modules you listed works.
When the payment is processed you need to send the correct currency to the payment provider. This already needs to be done in most cases as payment providers usually are able to collect in various currencies. Since most do the payment process via a hidden form that redirects or a inline form with hidden fields, you should be able to use hook_form_alter to set the currency to what you want. Depending on the payment module, this may be hard or easy.

Resources