similar to: test for end of file?

Displaying 20 results from an estimated 11000 matches similar to: "test for end of file?"

2010 May 12
1
slot assignment in S4 classes
Hi R friends,   I'm still studying S4 classes and I have a question about slot assignment. Why would I have to use a special setter method [example 2 below] if I can assign data to a slot directly when I call new() [example 1 below]?   ## first way to do it (the idiosyncratic way?) setClass(Class = "TestClass", representation = representation(myDf = "data.frame"))
2011 Aug 25
1
Question about object permanence/marshalling
Hello,   I am trying to write some code that dumps R objects to the harddisk in a binary format so they can be quickly re-used later. Goal is to save time. The objects may be quite large (e.g. classes for a GUI). I was thinking that save() and load() would be suitable for this (until now I only thought it could be used for 'real' data, e.g. matrices, data.frames etc), but I am hoping any
2013 Mar 27
1
Pattern matching repeating digits
'lo, all, Is there some (possibly undocumented?) way that I can pattern-match on a specified number of repeating digits? (Something similar to regular expressions' {}) Here's an example: let's say I have a string of things that need to be done for both extensions 233 and 255. I can either... A) Repeat the exact same code for both extensions, like so: exten =>
2010 Jul 21
1
fix()ing an S4 method
Hi R experts,   The fix() function canbe used to edit normal functions. I would like to know whether it's also possible to use something similar to edit a method of an S4 class. In other words, is there a fix-like function that allows me to edit method definitions without having to go back to the source code?   setGeneric (name="doStuff",def =
2017 Jun 05
2
How the LLVM handle the debug location information of continue keyword and right brace(loop end location)?
If we had a very naïve way of generating IR, in the 'continue' case you would actually see TWO branch instructions: one to implement the 'continue' statement, and one as part of the control flow of the 'for' loop. The branch for the 'continue' statement would have the source location of the 'continue' and the branch for the control-flow of the 'for'
2017 Jun 03
3
How the LLVM handle the debug location information of continue keyword and right brace(loop end location)?
Hi paulr: Thanks for your kindly response. Maybe I don't describe my question cleanly, let me show more information. From my side, I notice that whether we are in the continue keyword mode or we are in the right brace mode, the target of br instruction is the same, i.e. for loop Continue Keyword Mode: ; <label>:6: ; preds = %3 br label
2005 Jan 17
1
transfers with zap channel
Ok, I've seen discussion before on doing transfers (attended and unattended), there seems to be much confusion over it. As things sit, I've been trying (unsuccessfully) to do transfers with a zap channel (analog phone attached to TDM400). I have no idea what I'm missing. My current understanding is that I need to have transfer=yes in zapata.conf, do a flash hook, dial the 2nd
2011 May 09
3
Lua.c32 - user input / scripting
I'm trying to get this bit of code to work with the lua.c32 interpreter: --- sample, the goal is to build a script that will allow me to enter a 4digit mt and load the bios iso accordingly print ("enter machine type :") mt = io.read() print ("you entered...",mt) doStuff() if (mt == "8141") then syslinux.run_command("memdisk
2006 Aug 08
4
Nic’s Magic Models, how about Magic Schema
I side with David when it comes to databases. They suck! Just my own opinion. So what about the people who don''t want to define validations and stuff in the database, but still want to be DRY. I really hate how the schema is separate from my models. I kind of like how Django defines the table attributes in the model. I was think about trying something like that in Rails. You could
2017 Sep 07
5
RFC: Unify debug and optimized variable locations with llvm.dbg.addr [was: DW_OP_LLVM_memory]
I chatted with Chandler in person and came up with what I think is a much simpler design than my previous design in the thread titled "RFC: Introduce DW_OP_LLVM_memory to describe variables in memory with dbg.value". The crux of the problem in that thread is that we need a representation, particularly in the middle-end, to describe a variables address, at a particular program point.
2020 Jan 15
4
Finding callees of a function
I searched the doxygen documentation and could not find a solution to my task: In a ModulePass running at EP_OptimizerLast, if I have a function F like in: bool Foo:runOnModule(Module &M) { LLVMContext &C = M.getContext(); for (auto &F : M) { // magic here if I want to know from which function (callee) each function is called - how can I do this? (so that I e.g. have
2017 Sep 06
2
RFC: Introduce DW_OP_LLVM_memory to describe variables in memory with dbg.value
It's worth remembering that there are two syntactically similar but semantically different kinds of "expression" in DWARF. A DWARF expression computes a value; if the available value is a pointer, you add DW_OP_deref to express the pointed-to value. A DWARF location expression computes a location, and adds various operators to express locations that a (value) expression cannot, such
2017 Jun 11
3
[Bug 1157] New: feature to add
https://bugzilla.netfilter.org/show_bug.cgi?id=1157 Bug ID: 1157 Summary: feature to add Product: nftables Version: unspecified Hardware: x86_64 OS: All Status: NEW Severity: enhancement Priority: P5 Component: nft Assignee: pablo at netfilter.org Reporter: jp.pozzi
2017 Sep 05
7
RFC: Introduce DW_OP_LLVM_memory to describe variables in memory with dbg.value
Debug info today handles two cases reasonably well: 1. At -O0, dbg.declare does a good job describing variables that live at some known stack offset 2. With optimizations, variables promoted to SSA can be described with dbg.value This leaves behind a large hole in our optimized debug info: variables that cannot be promoted, typically because they are address-taken. This is
2005 Dec 11
9
LIKE SQL queries in rails
I''m trying to do something like: SELECT * FROM attachment WHERE filename LIKE ''%whatever%''; so my code is: @search = params[:search] @attachments = Attachment.find(:all, :conditions => ["filename LIKE ''%?%''", @search.to_s]) but that''s converting to: SELECT * FROM attachments WHERE (filename LIKE
2020 Oct 28
3
HLS enabled mounts
Hi Robert, Unfortunately I am not replying to answer your question but to ask a question on pre-roll. I am working on a similar project but still at the configuration stages. For some reason my intro file is not being played. I am also using Icecast 2.4.4 and have four mount points on one relay server. I am trying to use my intro file on only one mount point. I am also doing mp3 not HLS.
2003 Dec 19
2
SSH for OS/390 (ODBC SSH-Tunneling to OS/390)
Hi Martin, my name's Daragh, and I'm a renewal projects architect in the University of Chicago. I saw your name on a listserv - openssh-unix-dev. I was hoping you could lend some insight to a problem we're trying to solve. We are trying to find a way for an Oracle database to connect securely to a mainframe (OS/390 running Model204 DB) through ODBC (Open Database Connection
2020 Oct 27
2
HLS enabled mounts
We use Icecast version 2.4.4 and recently added an intro (preroll) to one of our channels. Although we haven't had any direct complaints, there has been a discussion thread with some of our public radio colleagues getting complaints about users receiving a repeat of the intro many times when their device switches from WiFi to LTE or unstable Internet connections. One of our colleagues
2020 Oct 28
2
HLS enabled mounts
I second that advice. Also when you reference your file in intro do this <intro>/Sonic.mp3 </intro> . As long as it is in the folder you don’t need the whole path. Patricia > On Oct 28, 2020, at 10:08 AM, Robert Fitzpatrick <robert at webtent.org> wrote: > > Mayiani, Martin Martine - mayianmm wrote on 10/27/2020 11:03 PM: >> Hi Robert, >> Unfortunately I
2007 Jan 18
6
Apache 2.2 under CentOS?
We've been going through some growing pains fumbling through porting some custom C modules that used to live under apache 1.3 into the 2.0 spec, even though none of us really considers ourselves a 'C developer'. We've basically got them all working now under the 2.0 API, and the question was posed about whether or not we should consider attempting to upgrade everything to run