search for: _of

Displaying 20 results from an estimated 25 matches for "_of".

Did you mean: _f
2017 Nov 20
7
[PATCH 0/2] libopusfile int64 overflows
Just an attempt to avoid overflows with an explicit check, I don't know if there's a better way to identify corrupt input here. James Zern (2): op_pcm_seek: fix int64 overflow op_fetch_and_process_page: fix int64 overflow src/opusfile.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) -- 2.15.0.448.gf294e3d99a-goog
2008 May 15
0
partial_updates feature in rails 2.1, failing to save because of validate_presence _of on other attributes in the table
...=> #<User id: 1, screen_name: "vince888", password: "vince888", email: "vince-wop0JeY5JKhWk0Htik3J/w@public.gmane.org", created_at: "2008-05-15 12:35:12", updated_at: "2008-05-15 13:03:38", authorization_token: nil> >> @user.spec.city_of_birth => "Wichita" >> @user.spec.city_of_birth = ''Charleston'' => "Charleston" >> @user.spec.changes => {"city_of_birth"=>["Wichita", "Charleston"]} >> @user.spec.save => false...
2006 Sep 27
2
how to get the message from validates_presence_of
hi, I''ve a model with validates_*_of statements, but I have no idea how to get the :message back, anyone has a clue? Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" grou...
2006 May 31
2
follow-up
Hi, I've been able to get the data _of every individual_ into a graph (there are 16 lines), but I have a few more questions... How do I neatly get the average weights of each group (PC3/CO, PC3/FO, FADU/CO and FADU/FO) and make a graph of four lines. How do I exclude the first column (which is each animal's internal description) - t...
2017 Dec 07
2
[PATCH 0/2] libopusfile int64 overflows
On Tue, Nov 28, 2017 at 3:22 PM, James Zern <jzern at google.com> wrote: > On Mon, Nov 20, 2017 at 1:07 PM, James Zern <jzern at google.com> wrote: >> Just an attempt to avoid overflows with an explicit check, I don't know if >> there's a better way to identify corrupt input here. >> >> James Zern (2): >> op_pcm_seek: fix int64 overflow
2017 Dec 07
1
[PATCH 0/2] libopusfile int64 overflows
...il due to local trouble with my mail server. I could pull the > patches from the list archive, however. Thanks for the reports. > Thanks for recovering them and having a look. I updated both patches. > For the first patch: > >> @@ -2605,7 +2605,11 @@ int op_pcm_seek(OggOpusFile *_of,ogg_int64_t >> _pcm_offset){ >> would be better just to do a full seek.*/ >> if(OP_LIKELY(!op_granpos_diff(&diff,gp,pcm_start))){ >> ogg_int64_t discard_count; >> - discard_count=_pcm_offset-diff; >> + /*Check for overf...
2017 Dec 07
0
[PATCH 0/2] libopusfile int64 overflows
...Sorry, I can't reply to the original patches because I didn't actually get that e-mail due to local trouble with my mail server. I could pull the patches from the list archive, however. Thanks for the reports. For the first patch: > @@ -2605,7 +2605,11 @@ int op_pcm_seek(OggOpusFile *_of,ogg_int64_t _pcm_offset){ > would be better just to do a full seek.*/ > if(OP_LIKELY(!op_granpos_diff(&diff,gp,pcm_start))){ > ogg_int64_t discard_count; > - discard_count=_pcm_offset-diff; > + /*Check for overflow.*/ > + if(diff&...
2017 Jul 10
1
Help documentation of "The Studentized range Distribution"
...rence between two standard normals, and yes: We get our old friend 1.96 from > qtukey(.95,2,df=Inf)/sqrt(2) [1] 1.959964 It is less than fortunate that the help file speaks of "sample size for range". It is marginally defensible, because it is about the standardized range of a sample _of means_, but it is likely to confuse the actual reader into believing that it has to do with the sample size for each mean. -pd > On 10 Jul 2017, at 05:04 , Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: > > We cannot help you understand what you are doing if you do not show u...
2016 Nov 27
0
ifelse() woes ... can we agree on a ifelse2() ?
...mail/r-devel/2016-September/073136.html), ifelse(condition, a, b) > returns a vector of the length of 'condition', even if 'a' or 'b' is longer. That is indeed (almost) the documented behaviour. The documented behaviour is slightly more complex; '... returns a value _of the same shape_ as 'test''. IN principle, test can be a matrix, for example. > A concrete version of 'ifelse2' that starts the result from 'yes': > .. still a bit disappointed that nobody has taken a look ... I took a look. The idea leaves (at least) me very unea...
2007 Sep 22
1
R Extensions: Hyperlinking a pdf (not generated by Sweave/not a vignette) from a .Rd file
When constructing an R extension, how can a hyperlink from an .Rd file to a pdf (not generated by Sweave, so not a vignette) located in the inst/doc folder be constructed? Bill Morphet ATK, Space Launch Systems Postflight Evaluation Eng [[alternative HTML version deleted]]
2007 Dec 08
0
uploading printer driver using APW changes printer share name
...V] description:[\\server\UREW-EDV,,Netzwerkdrucker-EDV] comment:[Netzwerkdrucker-EDV] Next step is uploading a driver using APW: http://samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#id388469 This works fine, but afterwards the name of the printer is changed to the name _of the driver_ (in this case from "UREW-EDV" to "hp LaserJet 1320 PCL 6"): rpcclient $> enumprinters flags:[0x800000] name:[\\server\hp LaserJet 1320 PCL 6] <- ??? description:[\\server\hp LaserJet 1320 PCL 6,hp LaserJet 1320 PCL 6,Netzwerkdrucker-EDV] comment:[Netzwerkd...
2001 Jun 04
1
Encoding speed reports (was: Choosing a processor)
> Standard oggenc settings: > 16bit stereo 44.1kHz, 128kbps. > > > The settings don't affect encoding speed much, really. > > > And _of course_ it's stereo; Vorbis is a music codec If it is mainly a music codec, is there something else I should be using for simple speach recording. I want to record and compress lecture notes. This would of course be mono and as low a bit rate as possible. Quality isn't important as long...
2015 Mar 21
0
use xmm intrinsics for lrintf() with mingw-w64
...#include <string.h> #include <math.h> - +#if (defined(__GNUC__) && defined(_WIN64)) +#include <xmmintrin.h> +#endif #include "opusfile.h" /*This implementation is largely based off of libvorbisfile. @@ -2961,8 +2963,11 @@ int op_read_float_stereo(OggOpusFile *_of,float *_pcm,int _buf_size){ #else -# if defined(OP_HAVE_LRINTF) -# include <math.h> +# if (defined(__GNUC__) && defined(_WIN64)) + static __inline long int op_float2int(float _x) { + return _mm_cvtss_si32(_mm_load_ss(&_x)); + } +# elif defined(OP_HAVE_LRINTF) # define o...
2017 Nov 20
0
[PATCH 1/2] op_pcm_seek: fix int64 overflow
check for overflow with a negative diff --- src/opusfile.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/opusfile.c b/src/opusfile.c index 72f1272..df326af 100644 --- a/src/opusfile.c +++ b/src/opusfile.c @@ -2605,7 +2605,11 @@ int op_pcm_seek(OggOpusFile *_of,ogg_int64_t _pcm_offset){ would be better just to do a full seek.*/ if(OP_LIKELY(!op_granpos_diff(&diff,gp,pcm_start))){ ogg_int64_t discard_count; - discard_count=_pcm_offset-diff; + /*Check for overflow.*/ + if(diff<0&&OP_UNLIKELY(OP_I...
2017 Nov 20
0
[PATCH 2/2] op_fetch_and_process_page: fix int64 overflow
...overflow with a negative diff --- src/opusfile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/opusfile.c b/src/opusfile.c index df326af..2bef277 100644 --- a/src/opusfile.c +++ b/src/opusfile.c @@ -2078,7 +2078,10 @@ static int op_fetch_and_process_page(OggOpusFile *_of, &&OP_LIKELY(diff<total_duration)){ cur_packet_gp=prev_packet_gp; for(pi=0;pi<op_count;pi++){ - diff=durations[pi]-diff; + /*Check for overflow.*/ + if(diff<0&&OP_UNLIKELY(OP_INT64_MAX+diff<durations[pi])){...
2012 Nov 28
2
Plot with residuals in mgcv
Hi, I am using the mgcv package (version 1.7-22.) running the model works fine, but when I want to have a plot with residuals I get an error. fit29<-gam(IV~s(G3)+s(V3)+factor(AAR)+s(D3)+s(RUTE,bs="re"),data=subsf,gamma=1.4,method="ML") plot(fit29,residuals=T) Error in X[, first:last] %*% object$coefficients[first:last] : non-conformable arguments does some one know
2010 Mar 03
1
Change current plot window size. Or - saving/loading current device plotting history
Hello dear R-help members, Very soon I am to give a lecture on R. And in that lecture I intend to move between: par(mfrow = c(1,1)) to par(mfrow = c(1,2)) back and forth. I anticipate this will damage the image proportions and will force me to resize the window. So far I have found it is possible to close the window and then reopen it (bigger/smaller) by using: dev.off()dev.new(width=5,
2017 Jul 10
0
Help documentation of "The Studentized range Distribution"
We cannot help you understand what you are doing if you do not show us what you are doing. Here are some discussions about how to communicate questions about R [1][2][3]. [1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example [2] http://adv-r.had.co.nz/Reproducibility.html [3] https://cran.r-project.org/web/packages/reprex/index.html -- Sent from my phone.
2017 Jul 06
2
Help documentation of "The Studentized range Distribution"
Dear all, I wanted to compare Bonferroni vs TukeyHSD correction over a range of groups and group sizes, and wanted to use the function qtukey. In the help documentation it says qtukey(p, nmeans, df, nranges = 1, lower.tail = TRUE, log.p = FALSE) Arguments q vector of quantiles. p vector of probabilities. nmeans sample size for range (same for each group). df degrees of freedom for s (see
2018 Aug 06
2
vctrs: a type system for the tidyverse
...this foundation, vctrs expands in a few different ways: - To consider the ?type? of a data frame, and what the common type of two data frames should be. This leads to a natural implementation of `vec_rbind()` which includes all columns that appear in any input. - To create a new ?list\_of? type, a list where every element is of fixed type (enforced by `[<-`, `[[<-`, and `$<-`) - To think a little about the ?shape? of a vector, and to consider recycling as part of the type system. (This thinking is not yet fully fleshed out) Thanks for making it to the bottom...