Displaying 20 results from an estimated 2319 matches for "countries".
2008 May 17
5
Help needed
Hi All,
I am new to rspec and it seems that I don''t understand some basics.
I need to have a XML import which should parse through XML data
and saves all that in various mysql tables. The XML part works just
fine and I can test this with rspec. However when I try to execute
it "should find country object for DE" do
I get an error. @user.country is a one-to-many relation in
2013 Jan 10
1
Segmentation fault after upgrading from asterisk-10.5.0 to asterisk-11.1.2
After upgrading from asterisk-10.5.0 to asterisk-11.1.2, I am getting a Segmentation fault.
[root at localhost asterisk-11.1.2]# asterisk -vvvvvvc
Asterisk 11.1.2, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components
2004 Jan 17
4
Asterisk Indications
Hi,
Just wondering if someone could better explain how the indications.conf file
actually affects Asterisk?
I am using a Cisco 7940 from my Asterisk system, and have set in
indications.conf "country=au" thinking that this would make the
dialtones/call progress sound like the familiar Australian tones?
However when I call another extension on my system, it still sounds
2006 Feb 03
3
My associations are coming out nil.
...got a fairly simple system with a table for my Users that
includes a CountryId field which looks up to the CountryId field of my
Country table. What I would like to happen is for my Rails
application, which contains models for both User and Country, to be
able to draw the dropdown list of available countries on the edit
page, like it does in all the tutorials.
My model classes look like this:
class User < ActiveRecord::Base
belongs_to :country, :foreign_key => "CountryId"
set_primary_key "userId"
end
and
class Country < ActiveRecord::Base
has_many :user
set_...
2006 Apr 20
3
Asterisk Won't start after SVN Trunk Update
Hi:
I deleted old modules in /usr/lib/asterisk/modules
before make install. I built zaptel and libpri before
asterisk. Modprobe zaptel and modprobe -v wctdm
executed witiout complaint. Starting asterisk
produced the output below with several warnings and a
failure. Can someone help, please. I double-spaced
the warnings in the text below. The first warning is
about music on
2006 Jan 27
3
OT?: International number parsing
...the same country?
I already have the table of country and city codes built.
Are there holes in this theory;
1. Starting after the international dialing code, find the longest match
for country code.
2. Starting after the country code from step 1, find the longest match
for city code within that countries table of city codes.
3. The rest is the local number.
Are there known exceptions?
Am I reinventing the wheel rather than finding the right already
existing resource?
2007 Nov 13
8
acts_as_ferret : cannot use a customized Analyzer (as indicated in the AdvancedUsageNotes)
Hi all,
I cannot make aaf (rev. 220) use my custom analyzer, despite following the
indications @
http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage
To pinpoint the problem, I created a model + a simple analyzer with 2 stop
words : "fax" and "gsm".
test 1 : model.rebuild_index + model.find_by_contents("fax") # fax is a
stop
2018 Feb 03
2
find unique and summerize
Hi all,
I have a data set need to be summarized by unique ID (count and sum of a
variable)
A unique individual ID (country name Abbreviation followed by an integer
numbers) may have observation in several countries. Then the ID was
changed by adding the country code as a prefix and new ID was constructed
or recorded like (country code, + the original unique ID Example
original ID "CAN1540164" , if this ID has an observation in CANADA then
the ID was changed to "1CAN1540164". Fro...
2012 Nov 17
2
Help needed for error in foreign key validation
I have two models bank and country. User should only associate a Bank with
a country id present in the country table and I put validates presence of
country to enforce it but i get error mysql2::Error: Unknown column
''countries.bank_id'' in ''where clause'': SELECT `countries`.* FROM
`countries` WHERE `countries`.`bank_id` = 17 LIMIT 1 when updating the bank
table
Can you tell me how to fix the issue? If I remove the
validates_presence_of :country I get a database error as expected when i...
2007 May 15
5
Rspec + Oracle
Hi all.
Does anybody use Rspec with Oracle? I have RoR app + Oracle DB. I use
Rspec 0.9.4.
I have installed Rspec plugin and generated spec for model Country.
If I use "@countries = Country.new" in my spec I get
"ArgumentError in ''Country should be valid''
block not supplied
/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/kernel.rb:
12:in `describe''"
"@countries = Country.find(:first)&quo...
2008 Apr 10
3
option_groups_from_collection_for_select with a ActiveRecord::Base single object
...for_select with two tables/objects.
How could it be done with one?
Example that almost works:
I have a form to enter address from both the United States and Canada.
It has the following:
====new.html.erb====
<%= select_tag(
:state,
option_groups_from_collection_for_select(
State.countries,
:country,
:country,
"id",
"id")) %>
=================
I have a migration with all the states/provinces I need.
==== 001_create_states.rb====
class CreateStates < ActiveRecord::Migration
def self.up
create_table :states do |t|
t.string :na...
2004 Sep 23
10
MFC/R2
Hi all,
I have begun the release of my MFC/R2 protocol software. At
http://www.opencall.org/installing-mfcr2.html there are instructions for
installing what I have released so far. This is the MFC/R2 protocol
software, and a test program. The software to interface Asterisk to the
MFC/R2 code will be released shortly. It used to work, but it hasn't
been touched for
2006 Jul 28
3
Forms: handle foreign keys (AssociationTypeMismatch)
Hi all
I tried and tried and tried, but I still fail in creating a form with
proper validation and stuff for foreign keys... So I''d really like to
get some help here.
I''m creating a booking site for DJ''s, and for every booking one can
choose one of different countries:
class Booking < ActiveRecord::Base
validates_presence_of :country_id
validates_numericality_of :country_id # Necessary? Correct???
belongs_to :country,
:dependent => true
end
class Country < ActiveRecord::Base
has_many :countries
end
Now I have created a scaffo...
2005 Mar 03
5
country/city codes
Some country codes are three digits long. Some are two.
e.g. UK 44 , Bermuda 441
Does anyone know a formula for determining which part of a dialled number is the country code and city code ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050303/facb2a2d/attachment.htm
2018 Feb 03
0
find unique and summerize
...ps,
Rui Barradas
On 2/3/2018 3:00 AM, Val wrote:
> Hi all,
>
> I have a data set need to be summarized by unique ID (count and sum of a
> variable)
> A unique individual ID (country name Abbreviation followed by an integer
> numbers) may have observation in several countries. Then the ID was
> changed by adding the country code as a prefix and new ID was constructed
> or recorded like (country code, + the original unique ID Example
> original ID "CAN1540164" , if this ID has an observation in CANADA then
> the ID was changed to "1CAN...
2018 Feb 03
2
find unique and summerize
...this table to excel file?
I used this
tbl1 <- table(Country, IDNum)
tbl2=addmargins(tbl1)
write.xlsx(tbl2,"tt1.xlsx"),sheetName="summary", row.names=FALSE)
The above did not give me that table.
2. I want select those unique Ids that do have records in all countries.
From the above data set, this ID "FIN1540166" should be excluded from
the summary table and the table looks like as follow
IDNum
Country 1 33 358 44 Sum
CAN1540164 47 141 248 90 526
USA1540165 290 757 321 171 1539
Sum 337 898 5...
2006 Mar 13
2
Unknown signalling method 'pri_cpe'
Anyone have any idea what this is talking about.
Here is my zapata.conf
[channels]
switchtype=5ess
signalling=pri_cpe
echocancel=yes
echocancelwhenbridged=yes
echotraining=400
callerid=asreceived
group=1
context=default
musiconhold=default
faxdetect=incoming
channel => 1-23
Here is my zaptel.conf
span=1,1,0,esf,b8zs
bchan=1-23 # set this to 1-15,17-31 for E1
dchan=24 # set this to 16 for
2018 Jan 23
1
Scraping from different level URLs website
I am doing a research on World Bank (WB) projects on developing countries. To do so, I am scraping their website in order to collect the data I am interested in.
The structure of the webpage I want to scrape is the following:
1. List of countries the list of all countries in which WB has developed projects<http://projects.worldbank.org/country?lang=en...
2016 Dec 10
6
failing to start asterisk on centos7
ive installed asterisk but below is what am getting proces gets
killed.please help
[root at localhost sounds]# asterisk -vvvvc
Asterisk 13.13.1, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
details.
This is free software, with components licensed under
2006 Apr 26
0
Help! * Won't Start after SVN Trunk Update - SuSE 10
Hi:
I deleted old modules in /usr/lib/asterisk/modules
before make install. I built zaptel and libpri before
asterisk. Modprobe zaptel and modprobe -v wctdm
executed witiout complaint. Also, ztcfg shows 4
channels configured, as it should. Starting asterisk
produced the output below with several warnings and a
failure. Can someone help, please. I double-spaced
the warnings in