Questions tagged [truncated]

1

votes
0

answer
143

Views

JDBC treat warnings as error on data truncation

I have a MySQL table with three fields: fname varchar(20) ftype varchar(10) value varchar(30) as you can see 'value' is a varchar, but I use it to store differente kind of value (entered by users), so I can do: UPDATE table SET value = 1 + value WHERE ftype='COUNTER'; it works as intended,...
moretti.fabio
1

votes
1

answer
36

Views

psycopg2 rounds my float in SELECT statement

I'm writing a quick script to retrieve values from my database using psycopg2. Everything seemed to work fine until I verified the values in my output. I was astonished to realise they were rounded up. I double-checked the values stored and they are correct. So why it this query cursor = connection....
Julien Renggli
1

votes
0

answer
24

Views

Python 3 - how to write CSV rows to text files without truncating middle columns?

I am loading a csv into a dataframe and writing each row of the dataframe to a separate text file using the following code: b = pd.read_csv('my.csv', delimiter=',', encoding='UTF-8') b = b.replace(np.nan,'',regex=True) pd.set_option('display.max_colwidth', -1) pd.set_option('display.max_columns',...
emsox
1

votes
2

answer
959

Views

boost memorybuffer and char array

I'm currently unpacking one of blizzard's .mpq file for reading. For accessing the unpacked char buffer, I'm using a boost::interprocess::stream::memorybuffer. Because .mpq files have a chunked structure always beginning with a version header (usually 12 bytes, see http://wiki.devklog.net/index.php?...
banana
1

votes
1

answer
852

Views

How to pipe mailx Headers to external File. Always getting truncated

if the subject of a mail is a little longer then it is not possible to pipe it to any command or external file without getting truncated. Why? And how do you do it correctly? Example: mail -H -f mbox shows several mails. Everything looks OK. O 3 [email protected] Tue May 31 13:39 22/596 This is a v...
user777946
1

votes
1

answer
418

Views

DBX Truncates SQL Error to 256 Characters

I'm using Delphi-XE2 Enterprise, SQLServer 2008 R2 on Windows Server 2008 R2. When a SQL error is raised, the DataSnap server captures it and returns it to the client application. This all works, except the error message it truncated to 256 characters. A stack track of the DataSnap server when the...
James L.
1

votes
1

answer
1.2k

Views

statement . executeUpdate gives date truncated for column X at row 1 error

I'm working on a java project that tries to insert data into a mysql database through an tsv infile. When running this program it gives me the following error: Exception in thread 'main' java.sql.SQLException: Data truncated for column 'Services' at row 1 at com.mysql.jdbc.SQLError.createSQLExcep...
user1298232
0

votes
0

answer
17

Views

String or binary data would be truncated for SQL function

I have a SQL function which returns an error when column is passed. It throws an error String or binary data would be truncated. I have tried changing the length in function but no luck. Please assist. The function checks if column contains Japanese numbers which are stored in another table. I have...
vijay damale
1

votes
2

answer
2.1k

Views

strip_tags truncating JSON

I have a JSON Response like this: { 'id':'2461', 'name':'GEORGIA INSTITUTE OF
Kevin Rave
1

votes
2

answer
355

Views

red5 1.0.1 : truncated recorded stream .flv.ser : Error -18 truncated box

I've recorded streams using streamPublishStart callback with Red5 streaming server. It works. But a few times, the internet connection fall down in the publisher side. Then, in the streams directory, I have got a .flv.ser file. It's not playable. I've tried to repair/fix it with all software that pr...
bobKado
1

votes
1

answer
147

Views

Sql server : xml truncated while querying in php

While querying a xml data from SQL server database, it returns a truncated xml. $db = DB::get(); $db->exec('SET ANSI_NULLS ON'); $db->exec('SET ANSI_PADDING ON'); $db->exec('SET ANSI_WARNINGS ON'); $db->exec('SET ARITHABORT ON'); $db->exec('SET CONCAT_NULL_YIELDS_NULL ON'); $db->exec('SET NUMERIC_RO...
Menencia
1

votes
1

answer
287

Views

JAXB Marshalling an Object truncates the result string if too many items in object

I currently have this: JAXBContext jaxbContext = JAXBContext.newInstance(javaObject.getClass()); Marshaller jaxbMarshaller = jaxbContext.createMarshaller(); jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); StringWriter stringWriter = new StringWriter(); jaxbMarshaller.marshal(java...
user3245150
1

votes
1

answer
101

Views

Bluetooth binary communication losed bytes

I work on a bluetooth communication between samsung Galaxy tab and a custom device. On the custom device there is a PIC32 (Microchip) and a bluetooth RN-42. The communication between the PIC and RN-42 is serial (UART). When I use text protocol all is working fine but with binary protocol the frame s...
Franck M
1

votes
2

answer
120

Views

Why do these functions truncate the return value?

Beware there be Homework below. Edits: Took out useless information. So obviously this is a homework assignment everything seems correct besides the calculations inside my functions. How do I return a non truncated value? float hat(float weight, float height) { return (weight/height)*2.9; } float ja...
Rekumaru
1

votes
1

answer
71

Views

Wrong answer in rtmvnorm() in R while sampling truncated normal

I am unable to find why I am not getting the right correlation structure after sampling. I am using the rtmvnorm in R from tmvtnorm package. I am using example 1 provided in the pdf for the section of this function. sigma cov2cor(sigma) # [,1] [,2] #[1,] 1.0000000 0.5773503 #[2,] 0....
vivek
1

votes
1

answer
0

Views

INSERT statement conflicted with the CHECK constraint (Inserting into table problem)

I'm working on a database and have a check constraint set for the phone number. But i have problem while inputting the phone number. I tried inserting the phone number without the '' but still did not work create table CustomerDetails.Clients ( Client_ID int primary key identity (100, 10), Company_...
Shayooluwah
1

votes
1

answer
0

Views

Truncated tab bar in Qt

On this site there is a picture with two 'tab-systems'. I would like to have the second one, which is described as 'A truncated tab bar shown in the Plastique widget style.' There you have arrows, which allow you to slide through the tabs. I have implented a 'tab-system' which looks like this: QTa...
buddy
1

votes
1

answer
953

Views

Listview item text truncated after itemssource change

I have WPF ListView and MVVM. ListView is a part of simple parent-child structure. Parent is also ListView control. When I change selected item in parent control, ItemsSource for child control is updated. If, for example, in first ItemsSource the longest text of the items contains 5 characters, afte...
Aleksandar
1

votes
3

answer
3.8k

Views

mysql error 1292 when using cast in update statement

The below statement returns 'Error Code: 1292. Truncated incorrect INTEGER value: '95.00' 1.132 sec ' update new2006 set new2006.emp=cast(emp as unsigned) where IsNum(emp)=0; But if I use the below statement, I can get result 95 successfully. select cast(emp as unsigned) from new2006 where IsNum(e...
Chine
1

votes
2

answer
864

Views

MS SQL Server 2008R2 : How to retrieve the content of a large text column?

I had a table with a column named xml_cache, containing large number of characters up to 80,000. The column is declared as nvarchar(max). I had problem retrieving the content of this column using SQL Management Studio SELECT [xml_cache], * FROM [dbo].[NZF_topic] AS nt WHERE nt.id LIKE '%nzf_1609%'...
Dio Phung
1

votes
2

answer
668

Views

Which distributions are supported by truncdist package of R ?

Various functions in the truncdist package require a parameter 'spec'. What are the distributions supported by the functions? I mean for a normal distributin we can type spec = 'norm' (given in the example). But, what about other distributions ? What I have to type in spec for other distributions/w...
boral
1

votes
1

answer
130

Views

Uploading files with urlencode, urlopen - text truncated unless post.read() is called after?

I'm experiencing some really strange behavior, and I'm hoping someone can explain to me what's going on. I've been over the official Python documentation and don't see anything that explains what I'm seeing - if I missed something, please point it out for me. I have a (large) python script that tak...
Locane
1

votes
2

answer
31

Views

Handling huge numbers of Relations in Parse

Im currently using a table ViewedPosts to link my Users and BlogPosts. As I dont need any of the extra data, and as an experiment on optimisation and bandwidth usage, I'd like to move this to a Relation column. This relation column could become very large, lets say MILLIONS of relations. Lets say I...
JackalopeZero
-1

votes
0

answer
26

Views

'strncat' output may be truncated

I know the title is clear and I know there is a way to prevent that compiler error by redefine the line of code. But my line of code is already well formed to prepare buffer overruns like RedHats's description in there developers blog enter link description here following the experience of the US-Ce...
David
1

votes
1

answer
875

Views

Twitter API Truncating Tweet by Adding URL

I'm trying to get tweets from twitter using tweepy but I keep getting truncated tweets. I understand that twitter automatically truncates tweets if the RT is added to the front making it too long so in that case you would use the retweeted_status element to get the original text. My problem is that...
Riley White
1

votes
2

answer
2.6k

Views

Request paramter value is truncated to first part when it contains spaces

I have a strange issue with dropdown boxes in jsp/servlet. Here it is... values displayed are: BI Sholingar BI Mahindra City BI Sanand Rolltec_DTA Aztec Auto Ltd BI Gurgoan and here is how I try to read it in servlet. String locclasses = req.getParameter('locdropdown'); System.out.println(locclasse...
narayanan
0

votes
0

answer
10

Views

How to collect a minimum debug data from a truncated core of Linux C program? with or without GDB?

How to collect a minimum debug data from a truncated core of Linux C program? I tried some hours to reproduce the segmentation-fault signal with the same program but I did not succed. I only succeded to get it once. I don't know how to extract a minimum information with gdb. I thougth I was experien...
K. PANIK
19

votes
6

answer
15.8k

Views

How can I get the full string of PHP’s getTraceAsString()?

I'm using getTraceAsString() to get a stack trace but the string is being truncated for some reason. Example, an exception is thrown and I log the string using: catch (SoapFault $e) { error_log( $e->getTraceAsString() ) } The string thats prints out is: #0 C:\Somedirectory\Somedirectory\Somedirector...
User
4

votes
1

answer
1.8k

Views

How to prevent truncating of string in unit test python

I am doing a unit test in python for my program and I would like to do an assertEquals test. My code looks something like this: class UnitTest(unittest.TestCase): def test_parser(self): self.assertEquals(parser,'some long string', 'String is not equal') However, as my string is too long, i got somet...
decemberrobot
5

votes
2

answer
187

Views

`Math.trunc` vs `|0` vs `<<0` vs `>>0` vs `&-1` vs `^0`

I have just found that in ES6 there's a new math method: Math.trunc. I have read its description in MDN article, and it sounds like using |0. Moreover, 0, &-1, ^0 also do similar things (thanks @kojiro & @Bergi). After some tests, it seems that the only differences are: Math.trunc returns -0 with nu...
Oriol
4

votes
1

answer
1.1k

Views

wpf datepicker shows truncated month

This doesn't seem to always be the case, but often the datepicker month label is truncated when expanded to select dates : (while the datepicker is inserted in a grid with '*' space). Has anyone encountered this as well ? If so how can we solve this issue ? EDIT 13/07/2011 : sample xaml From : EDI...
fabien
4

votes
2

answer
190

Views

Truncating 64-bit IEEE doubles to 61-bits in a safe fashion

I am developing a programming language, September, which uses a tagged variant type as its main value type. 3 bits are used for the type (integer, string, object, exception, etc.), and 61 bits are used for the actual value (the actual integer, pointer to the object, etc.). Soon, it will be time to a...
Jakub Wasilewski
22

votes
2

answer
19.5k

Views

Google Chart Tools truncating y axis labels

Working with a Google bar chart, here is what I got: Here my custom options var options = { width: 500, height: 240, legend : 'none', vAxis:{title:'Answers',textStyle:{color: '#005500',fontSize: '12', paddingRight: '100',marginRight: '100'}}, hAxis: { title: 'Percentage', textStyle: { color: '#00550...
Junior M
3

votes
1

answer
1.6k

Views

Project Euler #6 Two codes, different answers ONLY for big inputs. Why?

Here are two codes for solving problem 6 in project euler: Why do they give similar answers until I make the number larger? (100,000) The sum of the squares of the first ten natural numbers is, 12 + 22 + ... + 102 = 385 The square of the sum of the first ten natural numbers is, (1 + 2 + ... + 10)2...
COOLBEANS
1

votes
1

answer
1k

Views

Android gets HTTPS page truncated

I am fetching a web page on Android using HTTPS (ignoring the certificate as it is both self-signed and outdated, as seen here - don't ask, it's not my server :)). I've defined my public class MyHttpClient extends DefaultHttpClient { public MyHttpClient() { super(); final HttpParams params = getPar...
Marco83
30

votes
2

answer
21.8k

Views

list output truncated - How to expand listed variables with str() in R

I have a data.frame df with 600+ variables. I'm writing a function that automates the creation of columns and need to visually check them once. The str function provides a good summary: str(df) 'data.frame': 29 obs. of 602 variables: $ uniqueSessionsIni: POSIXct, format: '2015-01-05 15:00:00' '...
jpinelo
3

votes
3

answer
94

Views

How do you isolate the digits following a decimal in R?

For example: I have the number 123.456 and want to return 456. The function trunc() basically isolates (truncates) the numbers before the decimal. Is there a function to isolate just the digits after the decimal? Two follow-up questions: Is there a way to do this without writing out the regex? What...
theforestecologist
1

votes
2

answer
7.7k

Views

Relocation Truncated to Fit error in NASM x86_64

I'm using a computer with an Intel Core 2 CPU and 2GB of RAM. The SO is Ubuntu 9.04. When I try to compile this code: ;programma per la simulazione di un terminale su PC, ottenuto utilizzando l'8250 ;in condizione di loopback , cioè Tx=Rx section .code64 section .data TXDATA EQU 03F8H ;TRASMETTITO...
Stefano
4

votes
3

answer
12.3k

Views

Trouble with GROUP_CONCAT and Longtext in MySQL

The SQL... UPDATE Threads t SET t.Content = ( SELECT GROUP_CONCAT(a.Content ORDER BY a.PageID SEPARATOR '') FROM MSarticlepages a WHERE a.ArticleID = t.MSthreadID GROUP BY a.ArticleID ) As you can see it takes all of an article's pages (which are each stored as longtext in separate rows) and GROUP...
Iwasakabukiman
3

votes
1

answer
175

Views

Generate data from truncated normal distribution with exact mean and sd in R

I struggle with the following task: I need to generate data from a truncated normal distribution. The sample mean and standard deviation should match exactly those specified in the population. This is what I have so far: mean
Lion Behrens

View additional questions