Can I limit the amount of characters within truncate? It cuts off too much - materialize

JS,
Is there a way I can load text either with truncate or JS but only let through a certain amount of characters? I'm using materializecss truncate but it cuts off way too early. Is there any control when it cuts off?
Thanks.

Related

Core spotlight description get truncated

I have noticed that core spotlight description get truncated even if description character length is under 150.
Apple says : As with titles, long descriptions can also get truncated, so it’s best to limit your description to 300 characters.
I was wondering Why the core spotlight description get truncated even though the character length is less than 150 as Apple recommended to have limit 300.
Appreciate your help.
If I remember correctly, you can manually insert a newline in the title string, and it will use 2 lines, but will not autowrap to the next line without it.
How much truncation will happen depends on various factors, including but not limited to:
the avatar size
the title length
whether its a top hit result or a normal suggestion
Also new line \n doesn't work in Content description. I suggest you can separate different values using | sign. Core light Search result UI is very limited in terms of how much you can customise.

Max Characters VB.Net Control

I'd like to know which VB.net control has more characters. To explain better:
I have a file with 1 million ca characters, well I want to insert all content in a VB.net control, either textbox, richtextbox or labels.
If a control with that huge capacity doesn't exist, is there any way I can set limit max 1 million and display them anyway (e.g. in a textbox)?
Much appreciated your help!
From http://msdn.microsoft.com/en-us/library/system.windows.controls.textbox.maxlength%28v=vs.110%29.aspx
When this property is set to 0, the maximum length of the text that
can be entered in the control is limited only by available memory.

Is there a method to predict the size of a .doc?

I'd like to know if there is a way to predict the size of a .doc based on the number of pages it contains.
I'm trying to form a rough estimate of how much storage space I need when anticipating X number of .doc's of Y page length.
For example: "I need to plan for 100 .DOC files, each being 15 pages in length. These .DOCs will consume roughly _KB of space."
Thanks
Not really. There's too many variables.
For example, a .doc (Word 2003) containing a page of nothing but the character 'a' in one font takes up 37kb, in another the same number of characters takes 32kb, in another 43.
The most practical way would be for you to average the sizes of the sample files, and work off that, but be aware that the smallest change can have rather large effects.

How to simplify big numeric input from user? [Objective C]

I've building a very basic iphone app where the user will be able to enter or select a very large numeric cash value (usually in the thousands or millions).
At the moment I am using a simple text box entry with number pad selected.
I am going to use the example of a Football transfer fee as an analogy.
A transfer fee can be in many millions and I really do not want the user to be mis-typing zero's, or getting frustrated with the number of zero's they have to enter.
In addition, as the text box/numeric cash value is not displayed with any currency formatting it makes it very unintuitive to know just how much you are entering.
In this thread I have a way of displaying big numbers on the screen; you'll also notice the numbers are formatted in chunks (ie: 2.25m, 2m, 7.25m, etc) -- it makes the process more streamlined and is more visually intuitive.
But what I am unsure about is how to make it easy for the user to enter big numbers without typing stupidly long zeros every time.
Possible solution 1 -- Use a UIPickerView with 3+ segments for each of the units.
Problem -- it won't handle smaller numbers properly, also you may get weird looking numbers like 1.15k which although correct is not what I want to display.
Possible solution 2 -- Use a +/- button to allow a user to simply increase/decrease the number by a factor of 250 or 500. This is the simplest answer, but its not as elegant as a UIPickerView
If there is another way to do this, a way to simplify the input of big numeric numbers from a user, I'd be interested.
You could add formatted output right above or below the text field. As they enter numbers, update the formatted field adding currency symbols, commas and decimals. Not the most elegant way to do this, but it would be simple to implement, and intuitive to the user.

fast parse property of flat file source

I am using the flat file source for a large data migration and the source data in the text stream form unlike UI, datetime or sting. The component is not supporting for fast parsing for text stream.
Could I get any ideas to improve fast performance in this scenario.
thanks
prav
As you've seen fast parse does not support strings. It only supports integers, date and time and then with caveats
The first thing I would do is ensure that you're using the smallest data types you can in your flow definition (WSTR rather than NTEXT for example if you're strings < 4000 characters).
This problem has solved by taking DT_STR instead of DT_TEXT by chaning my DB design for better performance issue. I got 1 million rows transfer in 13 sec. Which is required for my business logic.
thanks
prav