Displaying 20 results from an estimated 100000 matches similar to: "How to parse a global variable trough the views?"
2006 Apr 03
1
has_many :trough with 2x the same table
I have a site where Users can become Friends with other Users. I used to do this with a habtm, but of course I want to stay up-to-date and convert this to a has_many :trough. Unfortunately I can''t get it to work.. the documentation on this feature is a bit sparse at the moment.
This is my old habtm:
has_and_belongs_to_many :friends, :join_table => ''user_friends'',
2004 Feb 19
1
samba share trough dos
Hello!
I'm having trouble to access a Samba share trough ms-dos.
I'm using NU2 network boot disk, wich loads ndis drivers ms-dos prompt.
So that after that I can do a net use to a share and load an disk image
with Ghost.
The problem is that i passed from a windows to unix - samba share and
i'm not capable of connecting to it.
Mapping the share trough Windows XP is no problem.
Can
2016 Aug 04
0
Can't connect trough SSH to a new fresh CentOS 7 minimal server
A few things you might try:
1. Verify ssh is listening:
netstat -antp | grep :22 | grep -i listen
2. Verify you can ssh locally:
ssh localhost
3. Try to telnet to ssh port:
telnet <ipaddr> 22
4. run nmap against the ipaddress to verify port 22 is seen.
Hope this helps.
Regards,
Monty
On 08/04/2016 06:36 PM, reynierpm at gmail.com wrote:
> I have installed a new CentOS 7
2005 Dec 02
0
iproute balancing trough virtual NIC
Hi,
i need to setup a equalized route like this:
# ip route add default scope global equalize nexthop via xx.xx.5.254
dev eth1 nexthop via xx.xx.5.254 dev eth2
The problem i''m having is that i need to use virtual interfaces too.
Example (something like that):
ip route add default scope global equalize nexthop via xx.xx.5.254
dev eth1 nexthop via xx.xx.5.254 dev eth2 \
nexthop
2004 Apr 20
0
Fax can't pass trough alaw
Hi,
We have a e405p with a external Euro-isdn PRI-ISDN net interface from Telco
connected. We tried to send a fax to another machine with a TDM400P. We use
IAX2 with G711-alaw codec. Both fax machines connect, but have error in
transfer. We use asterisk CVS-02/01/04. Which can be the problem ?. What can
I do to find the problem ?
Thanks.
Regards,
Pedro
2015 Mar 15
0
centos 7 database access only possible trough localhost and not IP
Hi Robert,
I have almost no experience with CentOS 7(still using CentOS 6). However, I
recommed the following checks:
1. Check that PostgreSQL is listening on 0.0.0.0 (all ip addresses) and not
127.0.0.1. To check, you can use the command:
netstat -tuplan
If PostgreSQL is listening only on 127.0.0.1, you'll never be able to
connect to it from the network. You'll have to change the
2016 Aug 04
3
Can't connect trough SSH to a new fresh CentOS 7 minimal server
I have installed a new CentOS 7 minimal virtual machine in Vmware
Workstation. I have disabled the firewall by running:
*systemctl disable firewalld* => this one for disable it permanently (I
don't need it since it's a VM for development)
*systemctl stop firewalld* => this one for stop the service
I have set SELinux to be permissive.
SSH is up and running as the output from:
2009 Sep 30
1
I can acces my pop3 account but I can't send an email trough smtp
Dear my friends....
I use OpenSuSE 11.1, KMail and DoveCot version:
"
sussy:/etc/ssl/certs # dovecot --version
1.1.7
".
This is the configuration of my DoveCot:
"
sussy:/etc/ssl/certs # dovecot -n
# 1.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.27.29-0.1-default i686 openSUSE 11.1 (i586)
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot.log
protocols: imap imaps pop3
2017 Oct 20
0
Wine release 2.0.3
The Wine maintenance release 2.0.3 is now available.
What's new in this release (see below for details):
- Various bug fixes
- FreeType 2.8.1 compatibility fixes
The source is available from the following locations:
http://dl.winehq.org/wine/source/2.0/wine-2.0.3.tar.xz
http://mirrors.ibiblio.org/wine/source/2.0/wine-2.0.3.tar.xz
Binary packages for various distributions will be
2015 Mar 15
4
centos 7 database access only possible trough localhost and not IP
Hi there and hello to everybody,
I am all new to centos but I have good experience working with ubuntu and suse.
We are moving a an elderly SuSe box to a virtual machine running centos 7.
Now I experience the following problem.
I can only access postgres using localhost as host. If I use the IP address
(even 127.0.0.1).
I found a similar problem when accessing the
2010 Feb 02
2
Subset and plot
Here is a runable program. When I plot Day and Wgt, it graphs all the data
points. All I need is daily.sub1 plotted. I also need each "Tanks" to have
its own col or pch. When I run it with the line with pch, it gives me
nothing.
rm(list=ls())
Trial<-rep(c(1,2),each=12)
Tanks=rep(c("a3","a4","c4","h4"),each=3,2)
Day=rep(c(1:12),2)
2012 Dec 12
0
[LLVMdev] how to execute a *.ll with a thread_local global variable?
hi guys,
i wrote a small program that can load the *.ll file, parse it and execute
it.
but there is a thread_local global variable.
during execution, it says:
Cannot allocate thread local storage on this arch!
UNREACHABLE executed at /root/llvm/lib/Target/X86/X86JITInfo.cpp:585!.
it seems that i did not initialize the executionEngine right or i shouldnot
use InitializeNativeTarget()?
i
2010 Feb 02
1
Subset and point plot
OK, I need help plotting. I have column headings of Day, Wgt, Foodin, Rep,
Grp and Tanks. Rep=c(1,2,3) and Tanks=c(a1,a2,a3,a4,a5,a6,
c1,c2,c3,c4,c5,c6, h1,h2,h3,h4,h5,h6).
I created a subset where I only would like Rep=2, and Tanks=c(a4,c4,h4) and
would like to graph (points) of Wgt and Day. I would think that I only need
3 colors, but when I run with only 3, only 2 lines show up. When I add
2006 Aug 08
0
Using class or global variable in rails - Are there any threading issues or race conditions?
Hi All
I am newbie to Rails.. and I am trying to invoke a third party webservice
using SOAP::RPC::Driver object. Now I can''t store that in session (it throws
TypeError) so the next best thing (on the suggestion by Ola
from this mailing list) I am storing it in Class variable or I can
store this rpc_driver object in global variable.
In brief my concerns are related to race conditions that
2018 May 07
1
Global Variable Initialization via Internal Function
Hello,
I'm trying to figure out how to initialize global variables via LLVM IR and
I found that clang creates a internal function to initialize global
variables if initialization values are not constants.
*Do we really need to create an internal function for complex global
variable initializations during variable declaration? Can't we create
instructions in global scope?*
Example Simple
2005 Feb 27
1
dialout with PPP on ISDN to an ISP
Hello my name is Ilija Poznic and I have a problem.
My configuration is
1. Digium TDM4000P with one FXS.
2. AVM Fritz ISDN adapter (configured with capi).
When I connect to my ISP and then start *. Asterisks is registering me to SIP
provider iconnect. After that I can call international call trough VoIP.
My problem is that I want to dialout to ISP only when I have a international
call.
2005 Nov 15
3
Defining a variable in the environment and using it in controllers and views
Hi,
I wanted to define a global variable in environment.rb like this:
@pagemeta = {:title => ''Default page title'',
:description => ''Default page description'',
:keywords => ''Default page keywords''}
And then, in a controller, override one or several of its values (like
@pagemeta[:title] =
2012 Dec 03
0
Nested ANCOVA question
Hello R experts,
I have having a difficult time figuring out how to perform and interpret an ANCOVA of my nested experimental data and would love any suggestions that you might have.
Here is the deal:
1) I have twelve tanks of fish (1-12), each with a bunch of fish in them
2) I have three treatments (1-3); 4 tanks per treatment. (each tank only has one treatment applied to it)
3) I sampled
2008 Dec 08
3
Database calls in my views?
I am working on re-factoring my admittedly ambitious employee
management Rails app that I created for work. The good news is, my
first major version went over like a dream(With no small amount of
thanks due to the community and the support)! All of the functionality
the bosses dreamed of! The bad news? It''s REALLY SLOW. So I rolled up
my sleeves and have been working on some re-writes
2008 Apr 25
9
dd trough scp with tar
Hi,
first i will explain my experiment :
We have ESX server running virtual machines .We want to migrate to XEN. As i
did not found any tool for transfering ESX to for example real server, or
better to XEN --> please correct me if i am wrong , i found following
approach :
i will inside virtual machine on ESX boot from Live-CD of CentOS , using dd
i will transfer images trought scp to CentOs