[Bug 1442568] Re: Docker causes a segfault when starting containers

2016-04-25 Thread Jordon Bedwell
The duplicate link has been removed.

** This bug is no longer a duplicate of private bug 1441038

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1442568

Title:
  Docker causes a segfault when starting containers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aufs-tools/+bug/1442568/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Desktop-packages] [Bug 1560589] [NEW] Bogus alignment i915_bpo

2016-03-22 Thread Jordon Bedwell
Public bug reported:

When using Intel Skylake Graphics the dmesg logs send the message
"i915_bpo :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus
alignment" every couple of minutes.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: xserver-xorg-video-intel 2:2.99.917+git20160218-1ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Mar 22 12:24:21 2016
InstallationDate: Installed on 2016-03-14 (8 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307)
SourcePackage: xserver-xorg-video-intel
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: linux-lts-xenial (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug xenial

** Package changed: xserver-xorg-video-intel (Ubuntu) => linux-lts-
xenial (Ubuntu)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xserver-xorg-video-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1560589

Title:
  Bogus alignment i915_bpo

Status in linux-lts-xenial package in Ubuntu:
  New

Bug description:
  When using Intel Skylake Graphics the dmesg logs send the message
  "i915_bpo :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus
  alignment" every couple of minutes.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: xserver-xorg-video-intel 2:2.99.917+git20160218-1ubuntu3
  ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
  Uname: Linux 4.4.0-15-generic x86_64
  ApportVersion: 2.20-0ubuntu3
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue Mar 22 12:24:21 2016
  InstallationDate: Installed on 2016-03-14 (8 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307)
  SourcePackage: xserver-xorg-video-intel
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-lts-xenial/+bug/1560589/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 1560589] [NEW] Bogus alignment i915_bpo

2016-03-22 Thread Jordon Bedwell
Public bug reported:

When using Intel Skylake Graphics the dmesg logs send the message
"i915_bpo :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus
alignment" every couple of minutes.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: xserver-xorg-video-intel 2:2.99.917+git20160218-1ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Mar 22 12:24:21 2016
InstallationDate: Installed on 2016-03-14 (8 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307)
SourcePackage: xserver-xorg-video-intel
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: linux-lts-xenial (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug xenial

** Package changed: xserver-xorg-video-intel (Ubuntu) => linux-lts-
xenial (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xserver-xorg-video-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1560589

Title:
  Bogus alignment i915_bpo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-lts-xenial/+bug/1560589/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Bug 1560589] [NEW] Bogus alignment i915_bpo

2016-03-22 Thread Jordon Bedwell
Public bug reported:

When using Intel Skylake Graphics the dmesg logs send the message
"i915_bpo :00:02.0: BAR 6: [??? 0x flags 0x2] has bogus
alignment" every couple of minutes.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: xserver-xorg-video-intel 2:2.99.917+git20160218-1ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Mar 22 12:24:21 2016
InstallationDate: Installed on 2016-03-14 (8 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307)
SourcePackage: xserver-xorg-video-intel
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: linux-lts-xenial (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug xenial

** Package changed: xserver-xorg-video-intel (Ubuntu) => linux-lts-
xenial (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1560589

Title:
  Bogus alignment i915_bpo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-lts-xenial/+bug/1560589/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1560587] [NEW] Redshift-GTK segfaults after opening and closing.

2016-03-22 Thread Jordon Bedwell
Public bug reported:

After leaving redshift-gtk open for an extended period and then opening
info it displays no info.  After closing and reopening (or trying to)
redshift-gtk will segfault because of GTK3.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: redshift-gtk 1.10-5ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Mar 22 12:14:21 2016
InstallationDate: Installed on 2016-03-14 (8 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307)
PackageArchitecture: all
SourcePackage: redshift
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: redshift (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1560587

Title:
  Redshift-GTK segfaults after opening and closing.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/redshift/+bug/1560587/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1560029] [NEW] Context and File menus show up under the video making them non-visible.

2016-03-21 Thread Jordon Bedwell
Public bug reported:

When playing any type of video on an Skylake CPU with Intel graphics
(open-source) with or without acceleration VLC (and many othe
applications) show the context and file menus under the video making
them invisible to the user even though technically they are there
just under the video.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: vlc 2.2.2-4
ProcVersionSignature: Ubuntu 4.4.0-14.30-generic 4.4.5
Uname: Linux 4.4.0-14-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Mar 21 08:13:17 2016
InstallationDate: Installed on 2016-03-14 (7 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307)
SourcePackage: vlc
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: vlc (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1560029

Title:
  Context and File menus show up under the video making them non-
  visible.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1560029/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1521173] Re: AER: Corrected error received: id=00e0

2016-03-11 Thread Jordon Bedwell
I still get this problem in Xenial as well... randomly but it happens.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1521173

Title:
  AER: Corrected error received: id=00e0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1521173/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Kernel-packages] [Bug 1521173] Re: AER: Corrected error received: id=00e0

2016-03-11 Thread Jordon Bedwell
I still get this problem in Xenial as well... randomly but it happens.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1521173

Title:
  AER: Corrected error received: id=00e0

Status in linux package in Ubuntu:
  Triaged
Status in linux source package in Xenial:
  Triaged

Bug description:
  My dmesg gets completely spammed with the following messages appearing
  over and over again. It stops after one s3 cycle; it only happens
  after reboot.

  [ 5315.986588] pcieport :00:1c.0: AER: Corrected error received: id=00e0
  [ 5315.987249] pcieport :00:1c.0: can't find device of ID00e0
  [ 5315.995632] pcieport :00:1c.0: AER: Corrected error received: id=00e0
  [ 5315.995664] pcieport :00:1c.0: PCIe Bus Error: severity=Corrected, 
type=Physical Layer, id=00e0(Receiver ID)
  [ 5315.995674] pcieport :00:1c.0:   device [8086:9d14] error 
status/mask=0001/2000
  [ 5315.995683] pcieport :00:1c.0:[ 0] Receiver Error
  [ 5316.002772] pcieport :00:1c.0: AER: Corrected error received: id=00e0
  [ 5316.002811] pcieport :00:1c.0: PCIe Bus Error: severity=Corrected, 
type=Physical Layer, id=00e0(Receiver ID)
  [ 5316.002826] pcieport :00:1c.0:   device [8086:9d14] error 
status/mask=0001/2000
  [ 5316.002838] pcieport :00:1c.0:[ 0] Receiver Error
  [ 5316.009926] pcieport :00:1c.0: AER: Corrected error received: id=00e0
  [ 5316.009964] pcieport :00:1c.0: PCIe Bus Error: severity=Corrected, 
type=Physical Layer, id=00e0(Receiver ID)
  [ 5316.009979] pcieport :00:1c.0:   device [8086:9d14] error 
status/mask=0001/2000
  [ 5316.009991] pcieport :00:1c.0:[ 0] Receiver Error

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.2.0-19-generic 4.2.0-19.23 [modified: 
boot/vmlinuz-4.2.0-19-generic]
  ProcVersionSignature: Ubuntu 4.2.0-19.23-generic 4.2.6
  Uname: Linux 4.2.0-19-generic x86_64
  ApportVersion: 2.19.2-0ubuntu8
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/pcmC0D0c:   david  1502 F...m pulseaudio
   /dev/snd/controlC0:  david  1502 F pulseaudio
  CurrentDesktop: Unity
  Date: Mon Nov 30 13:19:00 2015
  EcryptfsInUse: Yes
  HibernationDevice: RESUME=UUID=fe528b90-b4eb-4a20-82bd-6a03b79cfb14
  InstallationDate: Installed on 2015-11-28 (2 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20151127)
  MachineType: Dell Inc. Inspiron 13-7359
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-19-generic.efi.signed 
root=UUID=94d54f88-5d18-4e2b-960a-8717d6e618bb ro noprompt persistent quiet 
splash vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-4.2.0-19-generic N/A
   linux-backports-modules-4.2.0-19-generic  N/A
   linux-firmware1.153
  SourcePackage: linux
  UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 08/07/2015
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: 01.00.00
  dmi.board.name: 0NT3WX
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A00
  dmi.chassis.type: 9
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvr01.00.00:bd08/07/2015:svnDellInc.:pnInspiron13-7359:pvr:rvnDellInc.:rn0NT3WX:rvrA00:cvnDellInc.:ct9:cvr:
  dmi.product.name: Inspiron 13-7359
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1521173/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Bug 1306901] Re: jitsi crashes when receiving a call

2014-12-20 Thread Jordon Bedwell
It should be noted that the link above my comment that claims that it's
stable download, it's not stable, and 2.5 has lots of UI issues on
Ubuntu which have not been addressed (as of my last testing) so be
prepared if you plan to use 2.5.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1306901

Title:
  jitsi crashes when receiving a call

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/jitsi/+bug/1306901/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1325708] Re: Error in `/usr/sbin/gpartedbin': malloc(): smallbin double linked list corrupted: 0x000000000107d210

2014-06-20 Thread Jordon Bedwell
I mean parted* sorry.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1325708

Title:
  Error in `/usr/sbin/gpartedbin': malloc(): smallbin double linked list
  corrupted: 0x0107d210

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/1325708/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1325708] Re: Error in `/usr/sbin/gpartedbin': malloc(): smallbin double linked list corrupted: 0x000000000107d210

2014-06-20 Thread Jordon Bedwell
This error is actually caused by libparted even though it claims to
originate from gparted as the same error can happen in fat32.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1325708

Title:
  Error in `/usr/sbin/gpartedbin': malloc(): smallbin double linked list
  corrupted: 0x0107d210

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/1325708/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1314964] [NEW] vlc 100% cpu usage when file doesn't exist

2014-05-01 Thread Jordon Bedwell
Public bug reported:

When opening VLC from the command line and being unable to find the file
VLC will consume 100% of the CPU usage and retry-reopening it over and
over again consuming 100% of the CPU.  This can be replicated on Ubuntu
14.04.


---
VLC media player 2.1.2 Rincewind (revision 2.1.2-0-ga4c4876)
VLC version 2.1.2 Rincewind (2.1.2-0-ga4c4876)
Compiled by buildd on orlo.buildd (Mar 24 2014 06:18:54)
Compiler: gcc version 4.8.2 (Ubuntu 4.8.2-17ubuntu1)
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by the VideoLAN team; see the AUTHORS file.

** Affects: vlc (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1314964

Title:
  vlc 100% cpu usage when file doesn't exist

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1314964/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1314964] Re: vlc 100% cpu usage when file doesn't exist

2014-05-01 Thread Jordon Bedwell
ii  libvlc5   2.1.2-2build2 
amd64multimedia player and streamer library
ii  libvlccore7   2.1.2-2build2 
amd64base library for VLC and its modules
ii  phonon-backend-vlc:amd64  0.7.1-1ubuntu3
amd64Phonon VLC backend
ii  vlc   2.1.2-2build2 
amd64multimedia player and streamer
ii  vlc-data  2.1.2-2build2 
all  Common data for VLC
ii  vlc-nox   2.1.2-2build2 
amd64multimedia player and streamer (without X support)


Maybe it's related to my SSD and the fact it can go a million miles an hour?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1314964

Title:
  vlc 100% cpu usage when file doesn't exist

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1314964/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1314964] Re: vlc 100% cpu usage when file doesn't exist

2014-05-01 Thread Jordon Bedwell
Indeed it looks to be related to the repeat feature as that fixed it,
but I don't know if that is expected behavior as software should behave
and this doesn't seem like behaving, could this behavior not be adjusted
so that if it detects a single file with a missing over and over again
it does not consume the all the CPU and instead just stops?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1314964

Title:
  vlc 100% cpu usage when file doesn't exist

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1314964/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1314964] Re: vlc 100% cpu usage when file doesn't exist

2014-05-01 Thread Jordon Bedwell
Fair enough, I can actually agree with that logic.

** Changed in: vlc (Ubuntu)
   Status: New = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1314964

Title:
  vlc 100% cpu usage when file doesn't exist

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1314964/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Rails] upload multiple images with paperclip in rails 4?

2014-04-29 Thread Jordon Bedwell
On Tue, Apr 29, 2014 at 1:20 AM, Mateus Couto mat...@gmail.com wrote:
 C'mon, mate.
 Have you at least tried to google it?
 Apparently no.
 I'll give you a hand with that
 http://bit.ly/1mUetID

Less time being an asshat and more time learning what the word help
means.  And yes, I will admit by all technicality you did help but
by all semantics you did not help by the standards of which make you a
human.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnz_W330GKkqWsXAtywJHs1roPHM2CfbD0Gr%2BisjPfT_OA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] JRuby + Rails 4 + Mongoid version incompatibility Performance issues

2014-04-22 Thread Jordon Bedwell
On Tue, Apr 22, 2014 at 12:20 PM, Carlos Figueiredo
carlos.figueired...@gmail.com wrote:
 Mongoid only supports jruby on ruby-1.9 mode... I'm not sure if monoid-4.x
 already supports jruby running on ruby-2.0 compatibility mode.

If it doesn't work in 2.0 mode that's a problem with jRuby, not with
Mongoid so make sure to cross post tickets to both of them.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnx9s4k6UyPHLy7BcLL9twmWVHaaLopR9ZurMT%2BvBR9G5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] JRuby + Rails 4 + Mongoid version incompatibility Performance issues

2014-04-22 Thread Jordon Bedwell
On Tue, Apr 22, 2014 at 12:33 PM, Carlos Figueiredo
carlos.figueired...@gmail.com wrote:
 jruby on ruby 2.0 mode works with rails 4.x without problems...

 i just said that mongoid does not support jruby on ruby-2.0 mode yet... they
 only test on jruby 1.7.9 with ruby-1.9.3 mode

 So... if you open tickets, make sure to open on mongoid repo and for the
 supported version of jruby... or at least ask them for support ruby-2.0 mode
 for jruby

Let me reiterate since obviously I wasn't clear enough... If there is
a problem running Mongoid on jRuby, you need to also file the ticket
with jRuby and let them know, because jRuby strives to match MRI 1:1,
which means that if it works in Ruby 2.0.0 and not in jRuby 2.0 mode
then you need to let them know so they can sort it out.  Your lack of
wanting to file tickets in a cross-pollinating way like that is why
stupid silly mismatch feature bugs slip through and don't get noticed
until somebody does do that.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnx_G3QiwQNY7RvQL1yKTCsCJqctQV7JHQyE2D-NEJjLPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Custom schema_migrations table name

2014-04-21 Thread Jordon Bedwell
On Mon, Apr 21, 2014 at 4:37 PM, Tommaso Visconti
tommaso.visco...@gmail.com wrote:
 hi sandip, thanks for the answer, but the problem isn't using different
 tables, but avoid using the same schema_migrations table automatically
 generated by rails. I need to use the same database to share most tables,
 but different apps have some tables which should be shared so every app has
 its migrations, which causes a lot of problems because all the apps use the
 schema_migrations table

If you have to do things in such a chaotic and unorganized way with
multiple apps then get clever and just include all migrations from all
other apps in the other apps and flag them with comments at the top
that state they are there to keep schema_migrations happy, you don't
need the models at all and rails will detect the tables already exist
and the migrations have already ran and not run them.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwOKBw5t8at%2BEUPq4qyqcKSz0S7D8hMFnBRZYVU3j4mEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: Configure restful web service in rails

2014-04-16 Thread Jordon Bedwell
On Wed, Apr 16, 2014 at 8:55 AM, Robert Walker li...@ruby-forum.com wrote:
 Colin Law wrote in post #1143272:
 On 16 April 2014 13:34, prabhu pradeep.achut...@gmail.com wrote:
 Hi,

 I am trying to create a Rest web service in my rails application. I need to
 configure urls for it as below.


 localhost:3000/book/book_id/new/param1/param2/param3/param4/...

 That might be better as book/id/new?param1=..param2=.. etc.
 What is that url supposed to do?  If it makes a new book then why have
 you got an id?

 As Colin noted, if this is intended to create a new book then it seems
 more logical to me to send this as a POST with the parameters in the
 body of the request (either supplied as form data or JSON) and not in
 the GET style of appending the parameters to the URI.

One should not accept JSON input outside of a API interface built with
REST semantics because then you are just muddying the waters and
enforcing multiple types for something that is probably purely for
HTML and doesn't even need a secondary type.  It's a bad idea to
combine your API REST and REST interfaces for HTML into the same
endpoints.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzaHkespzKfuDZLZziYX-sybgNR5Pww1o8xAMqS3EzZRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Rails 4 Postgres Array attribute: how can I ensure that the attribute is an array during validation?

2014-04-11 Thread Jordon Bedwell
Try adding `return false`

Thanks,

Jordon Bedwell
https://envygeeks.com
On 4/11/2014 10:18:09 AM, Moncef Belyamani mon...@codeforamerica.orgwrote:
Hi,
I just started experimenting with the native Postgress array type in Rails 4, 
and I'm running into an issue I can't figure out. I want the app to raise an 
error if the value for an array attribute is not an array.

Before, when I was using a regular text type for the field, and serializing it 
with Rails, I was able to make sure the attribute was an array with a custom 
validation like this:
def format_of_admin_email regexp = /.+@.+\..+/i if admin_emails.present?  
(!admin_emails.is_a?(Array) || admin_emails.detect { |a| a.match(regexp).nil? 
}) errors[:base]  admin_emails must be an array of valid email addresses 
end end
But now that the field is a Postgres array, it seems like Rails automatically 
converts the string input into an empty array, so the validation never fails. 
Here's my migration:
class AddAdminEmailsToLocations  ActiveRecord::Migration def change add_column 
:locations, :admin_emails, :text, array: true end end
If I create a Location where admin_emails is a string:
Location.create!(admin_emails: this should fail)
it doesn't raise a validation error, and it sets admin_emails to an empty array.
Am I doing something wrong or is this a bug in Rails?
I also tried checking if the input is an array in a before_validation callback, 
and added a puts admin_emails.present?, but it returned false, as if it never 
saw the String input.
--
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com 
[mailto:rubyonrails-talk+unsubscr...@googlegroups.com].
To post to this group, send email to rubyonrails-talk@googlegroups.com 
[mailto:rubyonrails-talk@googlegroups.com].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/f810c395-31a0-49a3-9b14-941d4268e53f%40googlegroups.com
 
[https://groups.google.com/d/msgid/rubyonrails-talk/f810c395-31a0-49a3-9b14-941d4268e53f%40googlegroups.com?utm_medium=emailutm_source=footer].
For more options, visit https://groups.google.com/d/optout 
[https://groups.google.com/d/optout].

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/f50b1d08-0995-4a47-bf04-7fdc6ec8eab3%40getmailbird.com.
For more options, visit https://groups.google.com/d/optout.


[Ubuntu-x-swat] [Bug 1279412] Re: Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

2014-03-16 Thread Jordon Bedwell
Can't tell if trolling because nothing is stopping you from opening VLC
and disabling overlay video for the time being.  Stop trying to open it
with a video and you wouldn't have it crashing your X while trying to
fix the problem.

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to fglrx-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1279412

Title:
  Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1279412/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1279412] Re: Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

2014-03-16 Thread Jordon Bedwell
Can't tell if trolling because nothing is stopping you from opening VLC
and disabling overlay video for the time being.  Stop trying to open it
with a video and you wouldn't have it crashing your X while trying to
fix the problem.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to fglrx-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1279412

Title:
  Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

Status in “fglrx-installer” package in Ubuntu:
  Confirmed

Bug description:
  XOrg crashed when i try to start playing AVI video file in VLC player
  or Parole player

  ProblemType: Crash
  DistroRelease: Ubuntu 14.04
  Package: xserver-xorg-core 2:1.15.0-1ubuntu3
  ProcVersionSignature: Ubuntu 3.13.0-8.27-generic 3.13.2
  Uname: Linux 3.13.0-8-generic x86_64
  NonfreeKernelModules: fglrx
  ApportVersion: 2.13.2-0ubuntu2
  Architecture: amd64
  CrashCounter: 1
  Date: Wed Feb 12 20:14:55 2014
  ExecutablePath: /usr/bin/Xorg
  InstallationDate: Installed on 2014-02-09 (2 days ago)
  InstallationMedia: Xubuntu 14.04 LTS Trusty Tahr - Alpha amd64 (20140209)
  ProcCmdline: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 
-nolisten tcp vt7 -novtswitch
  ProcEnviron:
   
  Signal: 6
  SourcePackage: xorg-server
  StacktraceTop:
   xdl_xs115_atiddxPixmapIsTypeOf () from 
/usr/lib/x86_64-linux-gnu/xorg/extra-modules/modules/drivers/fglrx_drv.so
   atiddxPixmapIsTypeOf () from 
/usr/lib/x86_64-linux-gnu/xorg/extra-modules/modules/drivers/fglrx_drv.so
   X740XvPutImage () from 
/usr/lib/x86_64-linux-gnu/xorg/extra-modules/modules/amdxmm.so
   ?? ()
   ?? ()
  Title: Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1279412/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Bug 1279412] Re: Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

2014-03-16 Thread Jordon Bedwell
Can't tell if trolling because nothing is stopping you from opening VLC
and disabling overlay video for the time being.  Stop trying to open it
with a video and you wouldn't have it crashing your X while trying to
fix the problem.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1279412

Title:
  Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1279412/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Rails] What is your style? Single quote, double quotes or depends?

2014-03-16 Thread Jordon Bedwell
On Sun, Mar 16, 2014 at 5:07 PM, Dave Aronson
googlegroups2d...@davearonson.com wrote:
 On Sun, Mar 16, 2014 at 12:41 AM, Brandon wongw...@gmail.com wrote:

 But would you be using double quotes every where (including Javascript) to
 keep in all standard?

 Good question.  For JS that's part of a Rails project, I think I
 would, now that you raise the point.  For other JS, well... single
 seems to be the standard, and I don't think JS makes any difference at
 all between them.  Anybody know of a difference?  (I mean, they gotta
 match, but other than that)

There isn't any difference other than them existing together to
support stuff like hello 'world' and junk like that.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQny9CkH%2BYY7kS912tygP_HW9mR%3D4DfSukefo1U1gApqONQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Ubuntu-x-swat] [Bug 1281091] Re: Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

2014-03-04 Thread Jordon Bedwell
*** This bug is a duplicate of bug 1279412 ***
https://bugs.launchpad.net/bugs/1279412

Thank you for taking the time to help Ubuntu and for reporting this bug,
but I believe this bug is a duplicate of #1279412 so I have marked it as
so.

** This bug has been marked a duplicate of bug 1279412
   Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to fglrx-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1281091

Title:
  Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1281091/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1281091] Re: Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

2014-03-04 Thread Jordon Bedwell
*** This bug is a duplicate of bug 1279412 ***
https://bugs.launchpad.net/bugs/1279412

Thank you for taking the time to help Ubuntu and for reporting this bug,
but I believe this bug is a duplicate of #1279412 so I have marked it as
so.

** This bug has been marked a duplicate of bug 1279412
   Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to fglrx-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1281091

Title:
  Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

Status in “fglrx-installer” package in Ubuntu:
  Confirmed

Bug description:
  while starting to play 3gp on vlc.

  ProblemType: Crash
  DistroRelease: Ubuntu 14.04
  Package: xserver-xorg-core 2:1.15.0-1ubuntu6
  ProcVersionSignature: Ubuntu 3.13.0-8.28-generic 3.13.2
  Uname: Linux 3.13.0-8-generic x86_64
  NonfreeKernelModules: fglrx
  ApportVersion: 2.13.2-0ubuntu4
  Architecture: amd64
  CrashCounter: 1
  Date: Mon Feb 17 12:11:52 2014
  ExecutablePath: /usr/bin/Xorg
  ProcCmdline: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 
-nolisten tcp vt7 -novtswitch
  ProcEnviron:
   
  Signal: 6
  SourcePackage: xorg-server
  StacktraceTop:
   xdl_xs115_atiddxPixmapIsTypeOf () from 
/usr/lib/x86_64-linux-gnu/xorg/extra-modules/modules/drivers/fglrx_drv.so
   atiddxPixmapIsTypeOf () from 
/usr/lib/x86_64-linux-gnu/xorg/extra-modules/modules/drivers/fglrx_drv.so
   X740XvPutImage () from 
/usr/lib/x86_64-linux-gnu/xorg/extra-modules/modules/amdxmm.so
   ?? ()
   ?? ()
  Title: Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1281091/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Bug 1281091] Re: Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

2014-03-04 Thread Jordon Bedwell
*** This bug is a duplicate of bug 1279412 ***
https://bugs.launchpad.net/bugs/1279412

Thank you for taking the time to help Ubuntu and for reporting this bug,
but I believe this bug is a duplicate of #1279412 so I have marked it as
so.

** This bug has been marked a duplicate of bug 1279412
   Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1281091

Title:
  Xorg crashed with SIGABRT in xdl_xs115_atiddxPixmapIsTypeOf()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1281091/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Rails] Refresh token using Omniauth-oauth2 in Rails application?

2014-02-14 Thread Jordon Bedwell
On Fri, Feb 14, 2014 at 4:33 AM, Ganesh Ranganathan
ganesh.ranganathan...@gmail.com wrote:

 I am using omniauth-oauth2 in rails to authenticate to a site which supports
 oauth2. The site gives me after doing the oauth dance, which I then persist
 into the database

 Access Token
 Expires_AT (ticks)
 Refresh token

 Is there an omniauth method to refresh the token automatically after it
 expires or should I write custom code which to do the same.

 If custom code is to be written, is a helper the right place to write the
 logic?

Last I remember omniauth does not support this at all.  No, a helper
is not the best place to do it, you should probably either background
check the token and refresh it there or add it as a method to the user
model since it's related to the user and it's behavior.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxwPFE%3DAYBbK%3DtNwR4ObNWU03gMJpmgF8KkgRYANi1C7g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Launchpad-users] Ubuntu Bug Week Announcement

2014-02-11 Thread Jordon Bedwell
On Tue, Feb 11, 2014 at 2:34 PM, Alberto Salvia Novella
es204904...@gmail.com wrote:
 When saying Trusty is the most stable release I took into consideration it
 is in alpha stage, so Trusty is the most stable of all releases in alpha
 stage.

 On the other hand, the Ubuntu Bug Week has been quite unsuccessful. I
 thought in the worst scenario, because launching it so soon, whe will be at
 least four people participating; but we just where two. On the other hand,
 over a hundred bugs; so it wasn't that bad, thanks to Javier P.L. for being
 so supportive.

 Because of this, I want to ask people some questions; so next time we do
 better. Please tell me the following, although the possible answer doesn't
 seem relevant; so we can figure out what has being missed in the event:

 Why you choose not to participate?

I didn't even notice it was happening.

 What will make you to participate in an event like this?

Knowing it's happening.

-- 
Ubuntu-quality mailing list
Ubuntu-quality@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality


Re: [Rails] Advise on signing up users and activating their accounts

2014-01-24 Thread Jordon Bedwell
On Thu, Jan 23, 2014 at 7:34 PM, Bizt martyn@gmail.com wrote:
 In the book it demonstrates very well how to sign users up, validate, etc.
 Usually in my PHP apps I have a process of allowing the user to signup, then
 they are sent a link to confirm their email address, then (from that link in
 the email) they can activate their account. In the backend, I use two tables
 - user_pending (for users who have signed up, but not yet activated their
 account), and user (for activated users). I decided a while back that I
 would use two tables as I didn't want the user table to get bogged down with
 users who never activate their account. Perhaps this is not too important,
 and I'm giving myself more work.

I agree with Fredrick that this is a very premature optimization,
considering it will not hurt your tables at all and by the time it
does you will know enough to partition or shard or both and even if it
wasn't two tables is an excessive waste.  To me the idea should never
to remove a user if they are not validated but simply to limit their
actions and annoy them (not by email, with a big ass annoying yellow
box on the site,) which can all be done on a single table.

We don't remove users (valid or not) unless they explicitly request
(because it's only fair that if I collect data on them they have the
right to remove it -- irregardless of what the law says it's a moral
decision we make.)

The moral of the story is that if you have one or two tables you are
still going to have to hit the db to clean up if you need to clean up,
why make it a separate table at that point when you can just adjust
the where clause to check another column that is a boolean field?
That's useless decoupling.

 Anyway could someone perhaps comment on what is the most commonly practiced
 technique for activating users - I'm assuming via email activation as this
 is what I see most when I sign up for new apps myself. If I do this process,
 should I use one table (user - with activated flag column) or two tables
 (user_pending and user - when users activate, the row is copied to user).
 Any comments welcome, especially if their is a newer better way to perform
 this process.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnyJ1u-b6S1q%2Bz07L3NpoejtgECDTuyFSpWs_%2BC7yF9U5A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Advise on signing up users and activating their accounts

2014-01-24 Thread Jordon Bedwell
On Fri, Jan 24, 2014 at 4:00 AM, Jordon Bedwell envyge...@gmail.com wrote:
 On Thu, Jan 23, 2014 at 7:34 PM, Bizt martyn@gmail.com wrote:
 In the book it demonstrates very well how to sign users up, validate, etc.
 Usually in my PHP apps I have a process of allowing the user to signup, then
 they are sent a link to confirm their email address, then (from that link in
 the email) they can activate their account. In the backend, I use two tables
 - user_pending (for users who have signed up, but not yet activated their
 account), and user (for activated users). I decided a while back that I
 would use two tables as I didn't want the user table to get bogged down with
 users who never activate their account. Perhaps this is not too important,
 and I'm giving myself more work.

 I agree with Fredrick that this is a very premature optimization,

I must apologize, I misspelled Frederick's name.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxPE2f5zGqZFCV8K56%3D6GRwuiM8ZHjiLyjSuP5KCSZOvA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] capistrano deploy issue: rails (= 4.0.0) depends on bundler ( 2.0, = 1.3.0)

2014-01-23 Thread Jordon Bedwell
On Wed, Jan 22, 2014 at 10:30 PM, saravanan p
psaravanan11.ra...@gmail.com wrote:
 In my server terminal,

 $ ruby -v
 ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]

 and
 $ sudo ruby -v
 ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

What is the return of the command `which ruby` as the user that has 2.0.0?

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnw4MDmAf6BbzJzfM%2BWkCuOPzjO3-3n7ezg6uYO9QJuqSA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Form select item with a pre-selection

2014-01-21 Thread Jordon Bedwell
2014/1/21 Gerardo Ramirez Quino grami...@dobleclick.com.co:
 Hola soy nuevo en Rails. Tengo 3 modelos relacionados y tengo un formulario
 donde el usuario elige un país a continuación, debe elegir una ciudad que
 pertenece a ese país. ¿Cómo puedo hacer para que usted pide las ciudades de
 los países seleccionados por orden alfabético presentados previamente en el
 formulario y el usuario puede elegir los

The easiest way would be to use jQuery to create the city element in
the form after the user selects the country, which will require you to
either use jQuery to hit an internal API that sends back a JSON string
or to send out one big ass JSON string with all the information
already in it.  Check out http://api.jquery.com/change/ and
http://api.jquery.com/jquery.getjson/

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwV4rrE%2BJB254VfjVEqrLvHJnBo%2BQuBQNCf3roVM1E3Eg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: Help me connect to MySQL Database

2014-01-20 Thread Jordon Bedwell
On Mon, Jan 20, 2014 at 8:10 AM, jsnark s...@monmouth.com wrote:
 *.erb files do not connect to databases.  Models do.  Follow Colin's advise
 and work through the tutorial.

If *.erb files don't connect  to the database in the entire context of
the application (which they do through models which does it through
other stuff) then you are wrong too, because models don't connect to
the database, they go through other stuff (like your view does) and
model out the behavior.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxRjd-3PptBrJyY_rYgnfyDjR57cnQg2GJKageYNLjgCA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Why Does def some_func=(obj) Behave This Way?

2014-01-20 Thread Jordon Bedwell
On Mon, Jan 20, 2014 at 1:30 PM, Peter pe...@poproj.com wrote:
 class Confuse
   def confusion=(obj)
 @obj = obj
 return 'expected answer'
   end
 end
 c = Confuse.new

 c.confusion = 'this should be wrong'


 This returns 'this should be wrong'.

Ruby setters always ignore your explicit return and the last line as a
return and return the attribute given it... as a feature, and this
should be expected behavior as all Ruby setters behave this way.

This means that you define :hello= and it accepts the attribute :world
and you give :world the value of foo it will return foo because
that was the value it was given for it's assignment and logically that
is the value it should return if it returns anything at all.  To
return expected answer would be ambiguous no matter how you try to
play it.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwVQFYdctcLf_XLZup4MxFdQV-0gn41c1y5on8tWoo%2BRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: Help me connect to MySQL Database

2014-01-20 Thread Jordon Bedwell
On Mon, Jan 20, 2014 at 2:45 PM, jsnark s...@monmouth.com wrote:


 On Monday, January 20, 2014 9:23:10 AM UTC-5, Jordon Bedwell wrote:

 On Mon, Jan 20, 2014 at 8:10 AM, jsnark s...@monmouth.com wrote:
  *.erb files do not connect to databases.  Models do.  Follow Colin's
  advise
  and work through the tutorial.

 If *.erb files don't connect  to the database in the entire context of
 the application (which they do through models which does it through
 other stuff) then you are wrong too, because models don't connect to
 the database, they go through other stuff (like your view does) and
 model out the behavior.


 No, you are wrong.  The model xyz.rb has direct access (through inheritance)
 to the database table xyzs.  Thus, the method:

Sure it does, if by direct you mean has to go through a client library.


 def Xyx.get_first
   find(1)
 end

 returns the row of table xyzs with id=1 with no qualification.  In a
 controller, the statement find(1) is meaningless.  You have to reference the
 model to get access to the table as in Xyz.find(1).

If we throw out the method and apply what the method does then:
Sure I do, unless... I go ***through*** the same library that ActiveRecord does.

 Views (*.erb files)
 should never directly reference models.  They get their database information
 from the controller.

Sure they shouldn't because `@user = User.where(:id = session[:uid])`
in the controller isn't how most programmers go about it, most of them
decorate it all into neat and tidy formatted objects that create
completely indirect access.  An instance of an object in a variable
set inside of the controller and accessible in the view is not an
indirect access.  But maybe you meant to say you should never
initialize that object in the view as it's the views job to transform
that object into something meaningful not to pull that data into that
object and all the other things we go on about.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnyhN5b6wj4oda-T1g%2Bz%3DTh2Xx1ANpj-Aqt24LWdBJ89KQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] capistrano deploy issue: rails (= 4.0.0) depends on bundler ( 2.0, = 1.3.0)

2014-01-20 Thread Jordon Bedwell
On Tue, Jan 21, 2014 at 12:33 AM, saravanan p
psaravanan11.ra...@gmail.com wrote:
 Hi all,

 I am trying to push rails 4 app into my server using capistrano.

 i am getting following error while 'cap deploy',

   * executing cd -- projects/testproject/releases/20140121061131 
 RAILS_ENV=production RAILS_GROUPS=assets rake assets:precompile
 servers: [xxx]
 [xxx] executing command
 *** [err :: xxx] rake aborted!
 *** [err :: xxx]
 *** [err :: xxx] Bundler could not find compatible versions for gem
 bundler:
 *** [err :: xxx] In Gemfile:
 *** [err :: xxx] rails (= 4.0.0) depends on
 *** [err :: xxx] bundler ( 2.0, = 1.3.0)
 *** [err :: xxx]
 *** [err :: xxx] Current Bundler version:
 *** [err :: xxx] bundler (1.0.15)
 *** [err :: xxx]
 *** [err :: xxx] (See full trace by running task with --trace)
 *** [err :: xxx]
 command finished in 541ms
 *** [deploy:update_code] rolling back


 but in both local and server i have bundler version 1.5.0
 Can anyone help me?

Some where on the server there is /not/ bundler 1.5.0 because it's
showing that it has access to bundler 1.0.15.  I would first try to
login to the server and gem update (since most of the time bundler is
the only gem aside from the set of default gems that is setup in gem)
and then gem clean and try a fresh deploy.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzSiSi4ZMbWFP%2Bd7i4%2Bup8O6zm67b5X7y8LurcWayKMhA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] RubyZip zip file creation works on localhost but not heroku

2014-01-17 Thread Jordon Bedwell
On Fri, Jan 17, 2014 at 8:23 AM, Curtis Ovard ovar...@gmail.com wrote:
 I'm pretty sure you can't save files on heroku. You would need to save it to 
 something like AWS.

If it's for a user you could just offload it onto them too by using
something like jszip and doing it in browser.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnyZO8_EPUR-w9Z5DEnJyfPG%2BQzMQVUhLhPFwPrh9JwhpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Full-disclosure] Ubuntu, duckduckgo, and additional info

2014-01-15 Thread Jordon Bedwell
On Wed, Jan 15, 2014 at 6:47 AM,  silence_is_b...@hushmail.com wrote:
 I see thank you.  My distribution.id nuke did nothingany way to disable
 this?  It's all about choice after all right ;)

Settings  Manage Search Engines  Add

___
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


Re: [Rails] Proof of concept

2014-01-14 Thread Jordon Bedwell
On Tue, Jan 14, 2014 at 2:52 AM, Thompson Edolo verygreen...@gmail.com wrote:
 Thanks for replying. I'm not really sure I know what a Test fixture is
 though. This is what I'm trying to do. The soccer league in my country
 doesn't have any true sites like ESPN Soccernet.com. I am trying to
 replicate that.

 I have a fixture model, it has a home_team column and an away_team column.
 These columns are supposed to be foreign keys to a Team model, I don't know
 how to set that up.

 Then I have a scheduled_at column and a played column that is a Boolean. I'd
 like a scenario where the fixtures/index shows all the matches for the
 present week with a calendar to browse future and past fixtures.

Everything you said pretty much confused me until I sat down and
thought about how I would design the app based on what you described
was happening and this is what I came up with:
https://gist.github.com/envygeeks/8416079 even if it's not right it
should get you started off hopefully, you can find more information
about what all that is here:
http://guides.rubyonrails.org/association_basics.html

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwhB1Fkup21Fb2A%3Dcq%3DYR6dmfZJ%3D3z0aMg7MiLz0RpqVg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] SSL with Thin Server

2014-01-06 Thread Jordon Bedwell
On Mon, Jan 6, 2014 at 5:18 AM, Avi aavinash.beh...@gmail.com wrote:
 Can anyone suggest? Do we need to buy ssl?

Yes, unless you trust your own certificate or create your own
authority and trust it.  For development an untrusted local
certificate is just fine, for the public (even though now days it
might be worthless) you'll need another authority to sign your
certificate for it to gain trust because that's the way things are
right now.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzRPCedjd08hZ6x5LcLqETh_JL_nnjPUbCF4Nq8Edm9FA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] What Gives? If Rails is so good why is it so hard to install it?

2013-12-26 Thread Jordon Bedwell
On Wed, Dec 25, 2013 at 4:43 PM, Dan Boyle dan.boyle...@gmail.com wrote:
 I have spent hours trying to get some version of Rails installed and all to
 no avail. It seems there are many people who get the same errors but nobody
 seems to have any answers.

 I am new to both Rails and Ubuntu.  This is where I am trying to set it up.

 Most recently I went to rubyonrails.org and it suggests to use Rails 4.0 and
 Ruby 2.1 and to use rbenv to install rather than RVM.

rbenv global 2.1.0


 It says it installed it but then it doesn't work.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQny8aL04pLU8iBKvUUCQT%2BEitvWQWkh1CSGv5mFWdLjzBw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Cannot run second rails app in second domain (in vps)

2013-12-21 Thread Jordon Bedwell
On Sat, Dec 21, 2013 at 5:34 AM, Fernando Segura Gòmez
angelus...@gmail.com wrote:
 I have a problem with my vps and my app in rails.
 A few months I constructed an app with rails, in my vps, the application is
 working fine, without any problem, i working with a version 4.0 and the
 version for ruby is 1.9.3.
 In a second domain, i installed the same version for both (ruby and rails),
 and run the application without any problem, in port 3000(the first is in
 3005) but when i try to load in my browser, nothing happened ( run the app
 in this way : www.mydomain.com:3000 ), no load,no showing error in my ssh
 client.¿What's going on?.
 I thought that my app was wrong, that's why delete the folder and build a
 new blank rails project, but when i run ( my domain is
 www.mydomain.com/app:3000) nothing happen, not load the website.

 ¿What can be the problem?

How about you provide more information on the server operating system
and distribution and the hosting provider.  We can't magically guess
these diagnostically relevant pieces of information that would let us
know if it's your fault for misconfiguring or if we should point you
in other directions.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwgh72nBKoRMPays1rj54T68Yh4rJo39315KXSQLipLvg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Full-disclosure] Where are you guys standing re: the (full) disclosure

2013-12-15 Thread Jordon Bedwell
On Fri, Dec 13, 2013 at 11:28 AM, amani am...@fastmail.us wrote:
 Ethics? Define it.

Nobody can define your ethics since ethics are your personal principles.

___
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


Re: [Full-disclosure] Where are you guys standing re: the (full) disclosure

2013-12-14 Thread Jordon Bedwell
On Fri, Dec 13, 2013 at 11:55 AM, Jeffrey Walton noloa...@gmail.com wrote:
 On Fri, Dec 13, 2013 at 12:28 PM, Gary Baribault g...@baribault.net wrote:
 Rather harsh don't you think? I'm all for OSS but I have expenses and
 need to make money. Yes M$ makes money, but I think their ethical just
 as much as any other company .. is IBM ethical? Is HP ethical? Is Dell
 (the company) ethical? They all are to some degree.
 Try Apple. They withhold security updates until the press release for
 their latest iOS version. See, for example, the hundred of fixes in
 https://lists.apple.com/archives/security-announce/2012/Sep/msg3.html.

 At least Microsoft patches on a regular basis.

You seem to be under the delusion that Microsoft and even Open Source
projects don't also hold off on announcements until fix release, which
is the case, most of the time.

___
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


Re: [Full-disclosure] Where are you guys standing re: the (full) disclosure

2013-12-14 Thread Jordon Bedwell
On Fri, Dec 13, 2013 at 12:15 PM, Gary Baribault g...@baribault.net wrote:
 Of course, all software companies would love for the disclosure to wait
 for the fix to be released, and often, if the delay is considered
 reasonable by the hacker in question who found the bug, then that's what
 happens. I think it's only in the case where the company considers the
 bug to be minor or non existent, and they are asking for a ridiculous
 delay that many hackers will say, 'tough luck I'm disclosing on xx' and
 he takes his chances that most of us agree with his decision. As Mikhail
 said, if the hacker came across the bug without any illegal means then
 he should be fine after the release (but IANAL).

It's this so called hacker that defines this so called time limit
which makes it both a moral and an ethical decision of your own
making. If you don't see that the release schedule is fit.  The fact
of the matter is that in large companies sometimes it  takes time to
release updates and if you haul off and release a major security bug
because you don't feel that the time line fits in with your guidelines
that is your ethics decision.

Most people do not disclose because of time lines, they disclose
because of lack of updates and information on what is going on,
companies are told (for example) please respond within 90 days to let
me know if you have fixed it and when release will happen so we can
coordinate or I will disclose it.  More often than not when dealing
with people I find that as long as you keep them informed of what's
going on and when it's going to happen and that they will get credit
for helping then they are more than happy to work with you.

I don't know where you got this magical idea that ethical security
researches just haul off and release a security bug if they think
Microsoft or Apple took a week too long to release  the update.

___
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


Re: [Full-disclosure] Where are you guys standing re: the (full) disclosure

2013-12-14 Thread Jordon Bedwell
On Fri, Dec 13, 2013 at 12:15 PM, Gary Baribault g...@baribault.net wrote:
 Of course, all software companies would love for the disclosure to wait
 for the fix to be released, and often, if the delay is considered
 reasonable by the hacker in question who found the bug, then that's what
 happens. I think it's only in the case where the company considers the
 bug to be minor or non existent, and they are asking for a ridiculous
 delay that many hackers will say, 'tough luck I'm disclosing on xx' and
 he takes his chances that most of us agree with his decision. As Mikhail
 said, if the hacker came across the bug without any illegal means then
 he should be fine after the release (but IANAL).

To add, in cases where people do release security updates even if a
fix is pending it's most of the time not to do with the time line and
more to do with the fact that the entity with the problem are trying
to silence the hacker to prevent embarrassment.  At least from what
I've noticed and experienced.

___
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


Re: [Rails] Email out of Rescue

2013-12-10 Thread Jordon Bedwell
On Tue, Dec 10, 2013 at 7:32 AM, RVic rvinc...@hotmail.com wrote:
 I'm trying to set up a means to automatically send an email from certain
 parts of troubled code, that is, very often, code that might appear in the
 Rescue predicate of a begin.rescue, so as to track down issues remotely.

 Surely there must be a gem for such? If not, how might one construct
 something like this in code? TIA, RVic

E-Mail poses a security risk and information leak issue, perhaps try
using a service that offers SSL and make sure to strip information as
it goes into it.  There is HoneyBadger (I don't remember them offering
a free service) and Airbrake (they do offer a limited free account.)
There is also bugsnag but I haven't really played with them even
though for some reason they keep emailing me.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnyARqXDxsr%3DVA6OYW%3DJtffASDyzjMuTXWsMLMMdjjJaaA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Rails won't install

2013-12-03 Thread Jordon Bedwell
On Mon, Dec 2, 2013 at 11:18 AM, VP li...@viaduct-productions.com wrote:
 ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]

 Rails won’t install:

 Building native extensions.  This could take a while...
 ERROR:  Error installing rails:
 ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby 
 extconf.rb
 mkmf.rb can't find header files for ruby at 
 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h

Install XCode.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxjckh%2B789WH1FFyiM5i%3D0Mc4%2BZ_pkmXT9tskvF62RgNA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Ruby On Rails Getting Started question

2013-12-03 Thread Jordon Bedwell
On Sun, Dec 1, 2013 at 4:54 PM, Eric Blow ericb...@gmail.com wrote:

 Hi All,
  I am going through the getting started guide here
 http://guides.rubyonrails.org/getting_started.html
 And in section 5.7 it refers to a code snippet that I don't understand
 what to do with it.
 post GET/posts/:id(.:format)  posts#show

 I don't understand if I am supposed to put this code somewhere or not. The
 guide doesn't tell me exactly.
 I also noticed the same sort of code is discussed in section 5.8 where it
 mentions
 posts GET/posts(.:format)  posts#index
 Any help would be great.


That's `rake routes` output, and translates roughly to:
`get /posts/:id, :to = posts#show, :as = :post` in config/routes.rb

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnx5MEwxb9yR9eMd%3DogDP2q6_tEKEmCJq5vA0gCOJENNhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: MIT discovered issue with gcc

2013-11-30 Thread Jordon Bedwell
On Nov 30, 2013 6:29 PM, Bernhard R. Link brl...@debian.org wrote:

 * Joel Rees joel.r...@gmail.com [131129 00:36]:
  The standard needs to be re-written to encourage sane behavior in
  undefined situations, and if you don't like that opinion, I'll take
  some time later, when I have some, to rip your arguments that I've
  clipped above to shreds. I don't mind if you don't.

 I think the only answer to those lines is to advise you to not use
 any programs written in C. I suggest writing everything in Haskell
 and compiling that to java byte code run in a jvm. With the jvm
 implemented in Haskell and running in an interpreter.

That'll be interesting to see.


Re: [Rails] How to use javascript variables in ruby

2013-11-13 Thread Jordon Bedwell
On Wed, Nov 13, 2013 at 7:30 AM, Daynthan Kabilan dayantha...@gmail.com wrote:
 function(a_id)
 {
 %@foo=Activity.where(activity_id = ? , a_id)
 }

Name it: app/assets/javascript/file.js.erb and it will go through ERB.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxWgd2CG-WWvR_t5mJXkMtSvWGUYCF9rV-%3DuESSp2TTPA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] How to use javascript variables in ruby

2013-11-13 Thread Jordon Bedwell
On Wed, Nov 13, 2013 at 7:55 AM, Jordon Bedwell envyge...@gmail.com wrote:
 On Wed, Nov 13, 2013 at 7:30 AM, Daynthan Kabilan dayantha...@gmail.com 
 wrote:
 function(a_id)
 {
 %@foo=Activity.where(activity_id = ? , a_id)
 }

 Name it: app/assets/javascript/file.js.erb and it will go through ERB.

Actually I think I'm wrong try:
http://railscasts.com/episodes/324-passing-data-to-javascript?view=asciicast

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxRpWeBj-7mcVk46_DTX12y81iKbypiKDkVJ4cGU8%3Daog%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: Re: rubygems Problem on ubuntu 10.04

2013-11-07 Thread Jordon Bedwell
 Colin Law wrote in post #1125699:
 On 26 October 2013 09:05, wu volity li...@ruby-forum.com wrote:
 I need your help,Please..What is the meanning of '205.251.203.201' in
 '205.251.203.201 production.cf.rubygems.org'.

 It is an ip address.  At one time it may have been (or may still be,
 but I suspect not) a valid ip address for production.cf.rubygems.org.
 But since the email you got this from is two years old it may no
 longer be valid.

 Perhaps if you explained what your actual problem is (preferably in a
 new thread rather than an ancient one) someone may be able to help.

I believe that's a production IP for CloudFront so it should in theory
be valid for RubyGems still but that line as it's printed in the
quotes look like a hosts file line, perhaps somebody trying to stick
the region?

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwvZHUO4f8GpoUw4K4aGFfAWTvQA8OLNrUkh-WFo6%3DgXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] BEST RAIL SERVER

2013-11-06 Thread Jordon Bedwell


On Tuesday, November 5, 2013 1:21:41 PM UTC-6, Fahad Idrees wrote:

 I don't have lots of budge for hosting I want to get maximum benefits in 
 low price.
 No doubt heroku is the best but i have to pay huge amount to run my site 
 on heroku and have to purchase additional add-ons and plugin in heroku.

 Any other cheap sever in $10-30 per month range?


I feel the need to come in and say that I implied that Heroku was far from 
the best, actually I tried to imply that Heroku charges far more than they 
are currently worth.  With a good sysadmin or devops team you could build a 
far more powerful stack... What other people have implied about 
DigitalOcean is what we've done with a few of our really large stacks, we 
rebuilt them on DigitalOcean and saved tons of money.
 



 On Tue, Nov 5, 2013 at 4:13 PM, Jordon Bedwell envy...@gmail.comjavascript:
  wrote:

 On Tue, Nov 5, 2013 at 5:11 AM, Carlos Mathiasen 
 gunma...@gmail.comjavascript: 
 wrote:
  I think Heroku is a good option. I worked with Heroku and Rails and the
  performance is excelent. The only problem is the pricing, but if you 
 will
  have 50K users I think that is not a problem for your system.

 Not if you are on Heroku, unless you pay big money and even then you
 are paying far more than you need to for sub-par performance.

 --
 You received this message because you are subscribed to the Google Groups 
 Ruby on Rails: Talk group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to rubyonrails-ta...@googlegroups.com javascript:.
 To post to this group, send email to 
 rubyonra...@googlegroups.comjavascript:
 .
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwfN28UwB4W1un-mwnYNPGeu6FfoJL1DpfbafPs5DOCXg%40mail.gmail.com
 .
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/cb0fa510-d5b7-4ca9-a6cd-bc156f70ff0b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] BEST RAIL SERVER

2013-11-05 Thread Jordon Bedwell
On Tue, Nov 5, 2013 at 5:11 AM, Carlos Mathiasen gunmath...@gmail.com wrote:
 I think Heroku is a good option. I worked with Heroku and Rails and the
 performance is excelent. The only problem is the pricing, but if you will
 have 50K users I think that is not a problem for your system.

Not if you are on Heroku, unless you pay big money and even then you
are paying far more than you need to for sub-par performance.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwfN28UwB4W1un-mwnYNPGeu6FfoJL1DpfbafPs5DOCXg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Planning to create a new distro of Ubuntu

2013-11-05 Thread Jordon Bedwell
On Tue, Nov 5, 2013 at 1:50 AM, Benjamin Kerensa bkere...@ubuntu.com wrote:
 It is unclear why Linux Mint disables all of their security updates although
 to some degree they have tried to justify their disabling of kernel updates
 by suggesting that such updates could make a system unstable and that normal
 users shouldn't get these kinds of updates.

Sounds like bad maintainers justifying being bad if you ask me.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Planning to create a new distro of Ubuntu

2013-11-05 Thread Jordon Bedwell
On Tue, Nov 5, 2013 at 2:40 AM, Robie Basak robie.ba...@ubuntu.com wrote:
 It's fine to call out their security policy. That appears to be based on
 fact. But I don't think it's reasonable to speculate by attacking them,
 especially in their absence and without having an understanding of their
 rationale.

In no way did I personally attack anybody, I stated an opinion and an
opinion that will be iterated by anybody who cares about security.
And in no way could that ever be considered speculation because it is
not theoretical that the policy is bad, it is well known that any
policy that leaves a user in a state of bad security is bad.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: [Rails] Re: Can we keep validation in memcached ?

2013-11-04 Thread Jordon Bedwell
On Tue, Nov 5, 2013 at 12:07 AM, Sur sur@gmail.com wrote:
 Do you know what is the difference between a string and a symbol and why and
 where symbols are preferred over strings ?

 try this:

 a = some string
 b = some string
 b.object_id == a.object_id  (watch for the result of this expression)

 sym_a = :some_symbol
 sym_b = :some_symbol
 sym_b.object_id == sym_a.object_id  (watch for the result of this
 expression)

Preach on about this bullshit when Ruby isn't primarily used for web
applications and when Ruby allows my system to reclaim memory, until
then lets leave the symbol argument bullshit out of this.  Even if
they are constants they can lead to trouble if you just blindly state
they are better without explaining the dangers in a web application,
or people will repeat history, history people like me thought was
already common knowledge.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwbbuhVV9hxwLBC1%2BD_sqk%2BC2xPsCKt1gChQH-8vMCZaw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: Can we keep validation in memcached ?

2013-11-04 Thread Jordon Bedwell
On Tue, Nov 5, 2013 at 12:42 AM, Sur sur@gmail.com wrote:
 well it'd be interesting to know why you're frustrated out of Symbol
 concepts of Ruby ?

It's hard to explain, fight the good fight long enough you might see
it or you might not, I won't force my views on you.

 I didn't say symbols are better than strings, in fact I asked that it's
 important to know for a developer that why and where they can be used!

It was implied (to me.)

 It's an individual's choice to select a language/framework to achieve the
 solution to a problem, the main aim is to resolve a problem, now once
 decided to go with a language, one hast to know the limits and pros and cons
 of that language which certainly are there the way it's creators have made
 it to.

That's a fallacy as most of the time people do not have this sort of
flexibility, just because you hear all about it on Twitter and from
CTO's and startup's does not mean this is the case most of the time,
if it was then none of us would still be on Rails 2.3 with Ruby 1.8.
While this is not me, I know more developers who get told what they
are going to use then telling what they would like to use and then
using it.

 If someone doesn't know how the class is being loaded once in memory clearly
 means there is huge lack of knowledge about how memory mappings going on
 there. And getting insights of symbols is a great way to get to know more
 about this.

I think this leaves a lot to be explained because you explicitly
mention classes and I do believe this loaded once in memory only
applies to the singleton and since classes are meant to be initialized
there could remain many copies of that object with their own state at
the end of the day.  I could be wrong though.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxP7n8KXE5XFBO%3DMzqpqPL1C%2Ba-o2KkqKjyfGXh-Kc%3DBA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Debian APT Key Revocation Procedure

2013-11-01 Thread Jordon Bedwell
On Fri, Nov 1, 2013 at 8:23 AM, Paul Tagliamonte paul...@debian.org wrote:
 I take issue with this. I find this attitude really crappy. I'd strongly
 invite you to reconsider this tone and belief.

I invite you to jump back down to earth and stop judging people as if
you are somehow better.


-- 
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAM5XQnwOtTVgYQsusoBt7iUac3+3MBsd5=zckdzmky87was...@mail.gmail.com



Re: Debian APT Key Revocation Procedure

2013-11-01 Thread Jordon Bedwell
On Fri, Nov 1, 2013 at 8:30 AM, Paul Tagliamonte paul...@debian.org wrote:
 On Fri, Nov 01, 2013 at 08:27:03AM -0500, Jordon Bedwell wrote:
 On Fri, Nov 1, 2013 at 8:23 AM, Paul Tagliamonte paul...@debian.org wrote:
  I take issue with this. I find this attitude really crappy. I'd strongly
  invite you to reconsider this tone and belief.

 I invite you to jump back down to earth and stop judging people as if
 you are somehow better.

 (I'm not the one insulting two core teams at once)

Nope, you just take it a step further and insult the individual people.


-- 
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAM5XQnzgiy2aAtERiD0ezCrKeiiF4EZ+=CBo-O9Af5=u8v2...@mail.gmail.com



Re: Debian APT Key Revocation Procedure

2013-11-01 Thread Jordon Bedwell
On Fri, Nov 1, 2013 at 8:33 AM, Jordon Bedwell jor...@envygeeks.com wrote:
 On Fri, Nov 1, 2013 at 8:30 AM, Paul Tagliamonte paul...@debian.org wrote:
 On Fri, Nov 01, 2013 at 08:27:03AM -0500, Jordon Bedwell wrote:
 On Fri, Nov 1, 2013 at 8:23 AM, Paul Tagliamonte paul...@debian.org wrote:
  I take issue with this. I find this attitude really crappy. I'd strongly
  invite you to reconsider this tone and belief.

 I invite you to jump back down to earth and stop judging people as if
 you are somehow better.

 (I'm not the one insulting two core teams at once)

 Nope, you just take it a step further and insult the individual people.

I should say individual people without the, as the implies you were
insulting the people on the team, and not people in general.


-- 
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cam5xqnybxozwlmh8_r4z-t7xwh8zf5psd3eufp36oyxkquk...@mail.gmail.com



Re: Debian APT Key Revocation Procedure

2013-11-01 Thread Jordon Bedwell
On Fri, Nov 1, 2013 at 8:42 AM, Darko Gavrilovic d.gavrilo...@gmail.com wrote:

 I should say individual people without the, as the implies you were
 insulting the people on the team, and not people in general.



 No one here  thinks they are better or smarter than you. It would just
 be nice if you could try to keep it a little more professional in
 your communication and responses.

There was nothing unprofessional about what I said.


-- 
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cam5xqnw9_qf-zf7jqwvmndwt5uqg_e_a8zfanfkk+2czkyv...@mail.gmail.com



Re: Debian APT Key Revocation Procedure

2013-10-31 Thread Jordon Bedwell
On Thu, Oct 31, 2013 at 10:28 AM, Paul Wise p...@debian.org wrote:
 On Thu, Oct 31, 2013 at 8:55 PM, adrelanos wrote:

 What are your plans if you ever have reason to believe that the Debian
 archive signing key has been compromised?

 It is unlikely that the people responsible for that are reading this
 list. I suggest you contact them (DSA, ftpteam) directly.

That's almost jokingly ironic.


-- 
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAM5XQnximXvUazKz6=ccerdremzvedmp5s+xhcgmkotwqtr...@mail.gmail.com



Re: SSL for debian.org/security?

2013-10-29 Thread Jordon Bedwell
On Tue, Oct 29, 2013 at 4:29 AM, Nikolay Kubarelov n...@tightwax.com wrote:
 I would use Tor hidden service instead of SSL.

Wait: What? Can't tell if serious.


-- 
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cam5xqnxcxogd4jmaqys27zzsorfz-g8dsa_71sabgfqhchm...@mail.gmail.com



Re: SSL for debian.org/security?

2013-10-29 Thread Jordon Bedwell
On Wed, Oct 30, 2013 at 12:11 AM, Pedro Worcel pe...@worcel.com wrote:
 I fail to see what would make what hard, could you please explain?

Hard, maybe not, needed: no.  There is no reason to try and hide the
information, there never was and there never will be.  If you were to
implement SSL and then a Tor option fine, but to skip SSL and only
offer Tor is annoying and uneeded.   Tell me something, do you also
build a mote around your house to prevent people from parking near
your yard?


-- 
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cam5xqnztkzga78trrxhobopbrn_zur8w_hhfanzre0sbc8t...@mail.gmail.com



Re: [Rails] t.string :name, :null = false - is being ignored! (Devise)

2013-10-28 Thread Jordon Bedwell
In Ruby a blank string is a null note a null bit so you need if you
set :default =  it will allow blank strings, which means your model
needs to validate with :allow_blank = false or you need to set the
ALLOW NULL 0 on the field by doing `:null = false` without the
:default = true.

The preferable solution from both a security and a proper application
standpoint is to do tell both the model and the db that it doesn't
want null or blank strings because a db error should protect against
manual entries and the model would be quicker when testing for blank
strings, you can do that with validates :field, :allow_blank =
false, allow_nil = false

On Mon, Oct 28, 2013 at 7:05 AM, Philip Rhoades p...@pricom.com.au wrote:
 People,

 I have included the devise gem in an app and it is going OK but I needed a
 name field as well as the email so I added it to the migration file:

 class DeviseCreateUsers  ActiveRecord::Migration
   def change
 create_table(:users) do |t|
   ## Database authenticatable
   t.string :name,  :null = false, :default = 
   t.string :email,  :null = false, :default = 
   .
   .

 and recreated the DB, the schema.rb:

 create_table users, force: true do |t|
 t.string   name,   default: , null: false
 t.string   email,  default: , null: false
 .
 .

 confirms that the change looks sensible, however when I add a new user, I
 can do it without the user name! - how is that possible?

 Any help appreciated!

 Thanks,

 Phil.
 --
 Philip Rhoades

 GPO Box 3411
 Sydney NSW  2001
 Australia
 E-mail:  p...@pricom.com.au

 --
 You received this message because you are subscribed to the Google Groups
 Ruby on Rails: Talk group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to rubyonrails-talk+unsubscr...@googlegroups.com.
 To post to this group, send email to rubyonrails-talk@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/rubyonrails-talk/065b9bd87fb07c98be71910158089f35%40localhost.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzj7_1o-hxEGNW%3DWP%3DQmJqhFGfHxXEOy%3DoCxsnpyLQr-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] t.string :name, :null = false - is being ignored! (Devise)

2013-10-28 Thread Jordon Bedwell
On Mon, Oct 28, 2013 at 7:33 AM, Jordon Bedwell envyge...@gmail.com wrote:
 In Ruby a blank string is a null note a null bit so you need if you

That should say In Ruby a blank is not a null bit.

 set :default =  it will allow blank strings, which means your model
 needs to validate with :allow_blank = false or you need to set the
 ALLOW NULL 0 on the field by doing `:null = false` without the
 :default = true.

 The preferable solution from both a security and a proper application
 standpoint is to do tell both the model and the db that it doesn't
 want null or blank strings because a db error should protect against
 manual entries and the model would be quicker when testing for blank
 strings, you can do that with validates :field, :allow_blank =
 false, allow_nil = false

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQny_v4YzT3yMnZNmWkbjKr4pWjh0NftZHz6Xhi4jcSg33Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] t.string :name, :null = false - is being ignored! (Devise)

2013-10-28 Thread Jordon Bedwell
Apparently my laptops touchpad was on so let me reword it:

In Ruby a blank string is not a null bit so if you set :default = 
it will allow blank strings, which is what you consider a null string
even though there is no such thing.  Which means if you want :default
=  you need to have your model validate with :allow_blank = false,
or you need to ALLOW_NULL 0 and remove the :default = .

The preferable solution from both a security and proper application
standpoint is to tell both the model and the db that it doesn't want
null or blank strings because it's faster to have the model do blank?
than it is to hit the db and have it return and error and complete a
cycle (short-circuiting is a good thing.)  The db protection is simply
to protect yourself against manual entries and edge cases in the
application.

On Mon, Oct 28, 2013 at 7:33 AM, Jordon Bedwell envyge...@gmail.com wrote:
 In Ruby a blank string is a null note a null bit so you need if you
 set :default =  it will allow blank strings, which means your model
 needs to validate with :allow_blank = false or you need to set the
 ALLOW NULL 0 on the field by doing `:null = false` without the
 :default = true.

 The preferable solution from both a security and a proper application
 standpoint is to do tell both the model and the db that it doesn't
 want null or blank strings because a db error should protect against
 manual entries and the model would be quicker when testing for blank
 strings, you can do that with validates :field, :allow_blank =
 false, allow_nil = false

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnywzBW3iVBWUtr8kQmSm%2B3Nbp%2BmiWXJ%3DAXkuQ59Cm4wrg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: executable-hooks

2013-10-28 Thread Jordon Bedwell
No matter where it was installed you should still file a bug because
it is a bug and it's not meant to be installed on unsupported Rubies.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzjFBdnfEdxPZeX92JEZ4CDXN0kNs9HX6M262XWJ3H6mA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Full-disclosure] Handling bad ISP's

2013-10-24 Thread Jordon Bedwell
On Wed, Oct 23, 2013 at 4:58 PM, coderman coder...@gmail.com wrote:
 translation: bitching like this means you're doing it wrong...

So does being bad at trolling.

___
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


Re: [Rails] Dry in Rails

2013-10-23 Thread Jordon Bedwell
On Wed, Oct 23, 2013 at 3:23 PM, alex fer li...@ruby-forum.com wrote:
 Could you please view my rails project. What I do wrong. That is DRY
 principle.
 My git repo: https://github.com/alexfer/task-manager/tree/master/app

Why? Only you can decide what should be DRY-ed up.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzgVZTJTpa%3D4PWQASkFiJ1ghkATphegrPiJjre-bYzyoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Jordon Bedwell
On Wed, Oct 23, 2013 at 3:19 PM, Ralph Vince rvinc...@gmail.com wrote:
 Colin, yes, but this is the world I am stuck in(!) :

 gem uninstall executable-hooks
 Error loading RubyGems plugin
 /home/user/.rvm/gems/ruby-1.8.6-p420/gems/executable-hooks-1.2.6/lib/rubygems_plugin.rb:
 uninitialized constant ExecutableHooks (NameError)
 Error loading RubyGems plugin
 /home/user/.rvm/gems/ruby-1.8.6-p420@global/gems/executable-hooks-1.2.5/lib/rubygems_plugin.rb:
 uninitialized constant ExecutableHooks (NameError)
 /home/user/.rvm/rubies/ruby-1.8.6-p420/bin/gem:21: uninitialized constant
 Gem::GemRunner (NameError)

You are on RVM, just empty it and remove the Gem from your Gemfile and
move on, there are times when trying to figure out the problem is not
worth it because it's so highly localized and edgy compared to just
completing the easiest solution in fixing it, which in this case would
be just clearing the entire gemset and starting over.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwG-5akGVP_Z3kc1_1oXHb5Y_1c%2BbMKnOgNg4joPO05_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: I think I've found a mistake in Rails tutorial

2013-10-21 Thread Jordon Bedwell
On Mon, Oct 21, 2013 at 1:37 PM, desbest afanintheho...@gmail.com wrote:

 There is no params as I am just clicking a Signup button that's on a page,
 then the error shows up.
 I'm using Ruby 1.9.3 and the latest versions of sass-rails and
 coffee-rails.

 development.log says this


 Started POST /users for 127.0.0.1 at 2013-10-21 19:35:27 +0100
 Processing by UsersController#create as HTML
   Parameters: {utf8=✓,
 authenticity_token=OhWhPfhLH/3EDeb19LG9u96gu+FUY3cPa+ZdsPN01q8=,
 user={name=, email=, password=[FILTERED],
 password_confirmation=[FILTERED]}, commit=Create my account}
 Completed 500 Internal Server Error in 1ms

 ActiveModel::ForbiddenAttributesError
 (ActiveModel::ForbiddenAttributesError):
   app/controllers/users_controller.rb:12:in `create'


One should not claim a tutorial is broken before finishing it, because
clearly further down:
http://ruby.railstutorial.org/chapters/sign-up#sec-strong_parameters

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnyyVxeVU3HJjF0w%3DhAJXjbkhSe4n4z2DvM4FPW7id5%2BBg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: I think I've found a mistake in Rails tutorial

2013-10-21 Thread Jordon Bedwell
On Mon, Oct 21, 2013 at 1:40 PM, Jordon Bedwell envyge...@gmail.com wrote:
 One should not claim a tutorial is broken before finishing it, because
 clearly further down:
 http://ruby.railstutorial.org/chapters/sign-up#sec-strong_parameters

To add since I neglected to mention it like I should have, just
because your form is blank does not mean there are no params, blank or
not it will create a param as the form still sends the fields, that is
why you see them listed there with .  is not a null value, it is
an empty value, empty != null, nil == null because even a blank value
is a value to all systems.  This is why Rails has .blank? and
.present? so you can work around this situation, but tbh you should
not need to as after you permit them and then pass them into the model
it should have already done a validator stating that you do not wish
it to be blank or null.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzSSDPvswh76k%2BKu9fHQkpiKfHTDjjs3orRY1gxT3gDyA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] before_action - performing an action to prevent

2013-10-18 Thread Jordon Bedwell
On Fri, Oct 18, 2013 at 7:02 AM, Денис Чурбанов odmin.o...@gmail.com wrote:
 From the documentation: If you call render, head or redirect_to from a
 before_action, the filter chain will be halted, but I have a different
 situation:
 current_redirect_to and current_html_insert - are methods of controlling the
 behavior of the client through websockets,
 they do not call methods render, head or redirect_to.
 Please tell me how can I fix this problem.

Render nothing (literally.)

class WebsocketController  WebsocketRails::BaseController
  private

  def authenticate?
unless current_user.token == message[:token]
  current_redirect_to 'home/index'
  render :nothing = true, :status = 301
end
  end
end

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxcgtqMt%3DGwOZ4%3DMomF-Rk_maeyyvfk%2B5S7yuffO02Ccg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Assets not loading in production

2013-10-12 Thread Jordon Bedwell
On Sat, Oct 12, 2013 at 9:45 AM, Phillip phil...@gmail.com wrote:
 I am trying to deploy my first rails app in a production environment, but
 cannot get the assets to load. The site is hosted on Webfaction, they advise
 to create a static app to serve the assets which I have done. But I don't
 understand how my rails app then knows about the static app.

I don't even want to know what they are talking about or implying
because it sounds wrong. By default in production on a Rails 4
application it prefers you to pass asset serving up higher in the
chain because it will be much quicker for nginx/apache to serve the
app than it will be for Rails to serve it especially considering you
have to proxy to rails who then has to send it back and then it gets
served.

This means that when you build a new app you need to make sure you
have a proper root set (or a sub-domain) that can lead to the public
folder and each time you deploy you need to do `rake
assets:precompile` to get your assets to work.  If you do not wish
this to be the case then set your production.rb to serve static assets
and go on about your way as you will not need to have nginx/apache
care about it.

At that point your Rails application will know the asset path and you
will have access to public/assets/$(name)-$(hash).$(ext).

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnyQH3Hg9DqH2pewtGNSbJxU-Wwr9h7LVZfjjBpSYXY0wQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] What if you don't want your model to be from Active Record?

2013-10-12 Thread Jordon Bedwell
On Sat, Oct 12, 2013 at 5:06 PM, Peter pe...@poproj.com wrote:
 What if you don't want your model to be tied to a database therefore not
 ActiveRecord, where do you put that model instead?

In models, because nobody said models had to be ActiveRecord because
models define behaviors but if you want the Railism that models
should be ActiveRecord kicked out of your models you should upgrade
to Rails 4 where now you can have ActiveRecord::Base and
ActiveModel::Model.

 I want to write a class that would wrap together the various functions from,
 let's say, the AWS API. Would I write that class and place it in the models
 directory? Or should I place it elsewhere? Thank you.

It depends on what you mean but wrap together various functions.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwfmV9k2SpbkivirKSYf0ScCZF%2Bv8A4FwLQC732Y8aDdw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Jordon Bedwell
On Fri, Oct 11, 2013 at 10:30 AM, Monserrat Foster
monsefos...@gmail.com wrote:
 One 3+ row file and another with just over 200. How much memory should I
 need for this not to take forever parsing? (I'm currently using my computer
 as server and I can see ruby taking about 1GB in the task manager when
 processing this (and it takes forever).

 The 3+ row file is about 7MB, which is not that much (I think)

Check for a memory leak.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzR9KyRzfvTOHabUifVuRMSQH0EsSnB4AarCy-5dZXXOA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] I was told using GPL code is a problem (mongrel) even if not modifying that code

2013-10-11 Thread Jordon Bedwell
On Fri, Oct 11, 2013 at 10:55 AM, Jedrin jrubia...@gmail.com wrote:

  I was told that we can't use mongrel with JRuby because mongrel is GPL and
 based on lawyer language if we include mongrel then our code violates some
 situation where someone could claim our code should become free. I always
 thought this would only apply if we modified the mongrel code base in any
 way then we have to make that mongrel version available but this is not what
 I am told but rather our code base (totally seperate from mongrel) can't use
 mongrel ..

You need to consult your lawyer but Mongrel offers a permissive
license of their own under dual licensing:
https://github.com/mongrel/mongrel/blob/master/LICENSE you've the
option to choose which you like, mongrel2 is BSD:
https://github.com/zedshaw/mongrel2/blob/master/LICENSE

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnx1831U8caNSWnk9iRGgoy5cTEtw4F49crq_1vw_6PD-g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] I was told using GPL code is a problem (mongrel) even if not modifying that code

2013-10-11 Thread Jordon Bedwell
On Fri, Oct 11, 2013 at 11:24 AM, Jedrin jrubia...@gmail.com wrote:
 oops .. I meant to say mongoDB

MongoDB's license doesn't affect your app because it goes through an
API to access the data.  Their drivers (AKA the Ruby driver) are
Apache 2.0.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnyquAr6SDX1xdiAN8NpRDete9rKu40WwR0SayVosZLx3w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: What license do you use for your Ruby gems?

2013-10-11 Thread Jordon Bedwell
On Fri, Oct 11, 2013 at 9:54 PM, Jason Hsu, Rubyist
jhsu802...@gmail.com wrote:
 Why do you use the MIT license?  Under what circumstances would you use
 something else?

When I want something less passive but still open and that takes
contributors into account: http://www.apache.org/licenses/LICENSE-2.0

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwGHOR4Z_9T%2B%3D3K3_LZ-ePyf-eQmC_CgX5-t4bx-GobtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: Null value in mysql database table.

2013-10-04 Thread Jordon Bedwell
On Fri, Oct 4, 2013 at 4:19 AM, Aneez a. li...@ruby-forum.com wrote:
 Hi, actually I am beginner. So can you please tell where is
 development.log ?

Most of the time unless you are some weird ass developer it will be
right there in the terminal by way of STDERR because you will
preferably start a non-daemonized testing server, otherwise it will be
in log/development.log relative to the root of your base Rails app.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzGAz20YQ-L-VbEv%3Dpg_8zj66aG%2BomXBJP4JVhEhrnrJg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] When overriding the registration controller from devise, is it possible to access the newly created

2013-10-02 Thread Jordon Bedwell
On Wed, Oct 2, 2013 at 10:41 AM, Monserrat Foster monsefos...@gmail.com wrote:
 I'm trying to create a folder right after a user registers, so I override
 the create action on the registration controller (devise) but I don't know
 how to access the newly created user in order to create the folder with it's
 name to upload files later.

 So far I've got this:


 Should I leave it there or move it to the create action? Instead of using a
 method
 is that the right way to access the current user?
 Maybe instead of registration it's better to do it on sign in?

I don't know how you have your application encapsulated or even what
you consider behavior but if it were me I would skip trying to be
clever and skip trying to override methods I have no business being in
and simply hook into creation on the model:
http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html --
http://api.rubyonrails.org/classes/ActiveModel/Callbacks.html just
because it's tied to the database does not mean it's strictly an
interface between your app and the database ;).

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzKCNaHdBEn9CEORkGkkpjbYQm9rM%2BZWzg79py_b8J%3DzA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] errors.on equilvalent on Rails 4

2013-09-23 Thread Jordon Bedwell
On Sun, Sep 22, 2013 at 9:23 PM, Patrick Maciel Campos
patrickmaciel.i...@gmail.com wrote:
 I'm starting with RoR today, but I buy a RoR 3.2 book, and my installation
 on Ubuntu is Rails 4 and Ruby 2.0.

 Anyway, in book I have this code:

 article.errors.on(:title)
 But, not works in Rails 4.

On was deprecated and removed in Rails 4... I'm surprised that author
would have even left something like that in a Rail 3.2 guide since it
would have hindered future development... either way, to address your
issue now you simply do `errors[:title]` to pull your error.  If you
are looking for it to return true or false then you should do
`errors[:title].present?` or you can use `blank?` if you please.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnyhU%2BvOYZ5pcJX6rGrueea9kJ1_6x7pHxu_2uvviU2-Uw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: Accessing model attributes in ActiveSupport::Concern module

2013-09-20 Thread Jordon Bedwell
On Fri, Sep 20, 2013 at 6:39 AM, Josh Jordan josh.jor...@gmail.com wrote:
 Felix,

 You defined image_dir as a local variable in the scope of the Job class. It
 goes out of scope (and, since nothing else references it, gets cleaned up)
 after the class definition of Job is evaluated. Instead, define image_dir on
 instances of Job:

 class Job  ActiveRecord::Base
   include ImageModel

   def image_dir
 @image_dir ||= 'jobs'
   end
 end

 Better yet, since image_dir is the same for every instance of Job, make it a
 class method:

 class Job  ActiveRecord::Base
   include ImageModel

   def self.image_dir
 @image_dir ||= 'jobs'
   end
 end

 and access it through the model's class:

 File.open(Rails.root.join('public', 'images', self.class.image_dir,
 new_image.original_filename), 'wb') do |f|

To add a note, if image_dir is persistently stored in the db you can
use the default opt in your Migration.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxA-94EY0NJeSEAw3ph57%3D5FWC8pKxQ%2BM67H204Ti7krg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Let good developers like Mozilla to maintenance their packages

2013-09-20 Thread Jordon Bedwell
On Fri, Sep 20, 2013 at 1:06 PM, Felix Miata mrma...@earthlink.net wrote:
 Ubuntu was born less than 9 years ago. Of the most popular current distros,
 it's among the youngest. The more mature Mozilla developers picked their
 Linux distros before Ubuntu did more than a little maturing, 10-15 years
 ago, so these more experienced developers are mostly RedHat-Fedora (heavily
 Gnome/GTK), SuSE-openSUSE (more evenly KDE as Gnome),
 Mandrake-Mandriva-Mageia (more strongly KDE than Gnome), Debian, Slackware
 and maybe a few other more mature distro users. Most devs don't switch
 distros willy nilly. Those Mozilla devs using *buntu are mostly younger and
 less experienced, and more likely volunteers than subsidized or salaried to
 work on Mozilla.

I can' tell if you are serious or trolling right now.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: How secure is an installation with with no non-free packages?

2013-09-12 Thread Jordon Bedwell
On Thu, Sep 12, 2013 at 5:23 PM, Jonathan Perry-Houts
jperryho...@gmail.com wrote:
 I still don't see why this should make me trust closed code more. For
 all I know Intel's code is full of lines like that, or worse.

It's not about getting you to like closed or open source software
more, it's about getting you to realize that open source software can
and probably is just as vulnerable as closed source software.


-- 
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cam5xqnyrt8amqdh3enuqtmkw7lp61qdopzxary+rvx4vsmf...@mail.gmail.com



Re: How secure is an installation with with no non-free packages?

2013-09-12 Thread Jordon Bedwell
On Thu, Sep 12, 2013 at 9:03 PM, adrelanos adrela...@riseup.net wrote:
 Microcode. (I guess if the vulnerability can not be fixed with some kind
 of firmware upgrade and is used in the wild, that would be a reason to
 get it replaced for free or being required to buy a new one.)

I'm not a lawyer but even I know a vendor like Intel or AMD cannot
require you to buy a new processor as long as it's under warranty,
and security/performance issues do count as a warranty issue... they
do microcode updates now to avoid having to recall because of that
type of situation not to mention the numerous other benefits such as
fast shipping and other stuff.


-- 
To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cam5xqnzeqg4-8qcyxrybwjanqrumpevsxtlges3mrhxjwt5...@mail.gmail.com



Re: [Rails] Re: Should sanitize return an empty string for non-strings?

2013-09-12 Thread Jordon Bedwell
On Thu, Sep 12, 2013 at 9:26 AM, Paul Lynch plynch...@gmail.com wrote:
 In this case it is user (hacker, scanner, etc.), not the programmer, who has
 passed the illegal argument.  I don't think that should result in a 500
 server error.  To avoid that, either the programmer has to check each input
 parameter to make sure it is a string, or something like sanitize has to
 make the parameter safe.

It's your problem and even more so *your* job to enforce types, not
sanitizes problem to enforce your type.  Sanitize is a helper, it is
not part of your normal routing therefore it should not have to allow
you be more oblivious as to what is going on in your software and how
to handle and think about intentional/misintentional malicious users.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQny571Ov5F4_Jw4HQLkgG%3Dt4Y%3DW3CbjVBoc-Zoa6k8Vixw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Re: Should sanitize return an empty string for non-strings?

2013-09-12 Thread Jordon Bedwell
On Thu, Sep 12, 2013 at 12:22 PM, Paul Lynch plynch...@gmail.com wrote:
 It is because I am trying to distinguish between real bugs and bad input
 (a 400 error) that I don't want this to be a 500 error.  I have a rescue
 action that sends me an email when a 500 error occurs (though it limits the
 number it sends) because if there is a bug in the program that users are
 running into, I want to know about it.  I don't want to get those alerts
 every time someone intentionally sends bad input.  It seems to me that the
 convenience of having sanitize just handle the exception outweighs the
 possibility of missing bugs involving sanitize calls (which seems slight to
 me, though maybe I am not thinking of some use case).

His suggestion was not to rescue the error, it was an example of how
you could.  To rescue any error in an app is asking for edge cases
unless they are specific errors for specific actions such as a
RoutingError.  The proper way to handle this is to type the input and
return long before you even hit sanitize and have to rescue for: 1.)
Better performance on errors an 2.) Better ability to know how your
app is behaving.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxrAW%2Bii2wwV58LzV4nQps5K1G1-nSZG0KUUKnJAHL%2BxA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] :layout = question

2013-09-11 Thread Jordon Bedwell
On Wed, Sep 11, 2013 at 6:00 PM, jmcguckin mcguc...@gmail.com wrote:
 In a controller action for 'show' is the following:

 render :layout = 'edit'

 Ok, there a layout for edit, basically it is the standard javascript
 includes, anti csfr stuff and 'yield'.

 Hmm, what's it yielding to? Which template is it yielding to? There are both
 'edit.html.erb' and  'show.html.erb' templates.

Controller = show.html.erb = edit.html.erb
That's exactly it:  edit.html.erb yields show.html.erb.
Both the layout and the view are templates but the view goes into the layout.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnx65sac3tW5B3nYKx2FWCkoeguRD97M3y08EwUTWtePrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Rails sites went down without my knowledge

2013-09-09 Thread Jordon Bedwell
On Mon, Sep 9, 2013 at 9:35 PM, Jason Hsu, Rubyist jhsu802...@gmail.com wrote:
 Are there any services out there that I can use to automatically monitor my
 sites and send me an email and/or text message if my sites go down?

There are literally thousands, Google is your best bet for this solution.

 Additionally, would it be a good idea to set the cron jobs on my sites to
 automatically restart the sites on a regular basis?  If so, how often should
 my sites be restarted?

No, that would be a horrible idea... first you need o figure out why
the it went down and correct it, then you should look into something
like God (not so Godly ironically) or monit or anything of the sorts
that will hearbeat your site and kick it back on if it falls down.
You should probably be tracking errors with something like honeybadger
or airbrake so you can see this kind of shit coming.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnzPtAVhX_yWOZ%2BGZFDQ1pnoJ4P-kXuXDqTh9V0FnSSMtA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Kernel#`` not working in my IRB

2013-09-06 Thread Jordon Bedwell
On Fri, Sep 6, 2013 at 2:15 PM, Love U Ruby li...@ruby-forum.com wrote:
 I tried Kernel#`` but not working `cd` command.

 kirti@kirti-Aspire-5733Z:~$ irb --simple-prompt
 `pwd`
 = /home/kirti\n
 var = `cd 'ruby'`
 = 
 var
 = 
 `pwd`
 = /home/kirti\n

Because Kernel#` is a fork per command scenario not a session. `cd
'ruby'  pwd`

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxpNr2wBPQa0vsdgiCmxqEeaj%3D%2Bk0SDTpkG-FtKM3kryQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [nvidia-graphics-drivers] frustration with slow Nvidia drivers release schedule

2013-09-06 Thread Jordon Bedwell
On Fri, Sep 6, 2013 at 11:51 AM, Paulo Roberto de Oliveira Castro
p.oliveira.cas...@gmail.com wrote:
 2013/9/2 Jordon Bedwell jor...@envygeeks.com

 my suggestion is your realize the real facts
 that all operating systems provide outdated drivers and it's your job
 to update them if you want the latest drivers and to expect the distro
 to be able to keep up like that is silly to say the least.


 That's a lie.
 On many other linux distro the drivers are in sync to upstream (or very
 close to it).

Sure it is if you consider RPMFusion official (and I don't even
remember properly if they carry it.)  I'll let you have that so I
don't have to explain known facts like the ones that are kind of
stated here: 
https://fedoraproject.org/wiki/Forbidden_items?rd=ForbiddenItems#NVIDIA_Proprietary_Graphics_Drivers
-- https://en.opensuse.org/SDB:NVIDIA_drivers  I'm no Fedora or
OpenSuse user so I'll take those as facts that pretty much imply that
it would be impossible for them to be in sync or close to in sync
which leaves Arch and all the others that I'm not willing to verify.
Did you pull this magic metric only from Arch and then claim somebody
else lied?  I only assume to ask that question because you did briefly
mention Arch.

 It's silly to think that a distro cannot  keep up like that, many already
 do, and they work pretty well.

Almost as silly as you thinking it's Ubuntu's job to be your hardware
vendor and give you the latest drivers?

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: [nvidia-graphics-drivers] frustration with slow Nvidia drivers release schedule

2013-09-06 Thread Jordon Bedwell
On Fri, Sep 6, 2013 at 1:50 PM, Paulo Roberto de Oliveira Castro
p.oliveira.cas...@gmail.com wrote:
 Yes, that is what I was trying to say.
 They want it work and to be as fast as it can be, without worrying about it.

I'm out of this one, the straw man just came out.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: [Rails] Shift from mongrel to webrick

2013-09-04 Thread Jordon Bedwell
On Wed, Sep 4, 2013 at 9:01 AM, honey ruby emailtohoneyr...@gmail.com wrote:
  I have installed mongrel gem and in my dev I can able to run my app on
 mongrel but If I want to shift to webrick how can I shift easily with out
 uninstalling the mongrel gem

That depends on how you have mongrel running and I definitely would
not shift to webrick, webrick is not a production ready server, of
course it's getting better over the years but there are certainly more
robustly designed solutions like Puma and the always seems to be
favored Unicorn.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnwkCc2RfXfdH2rZso_t_6E5qCuMeze-tC0W%3Dx3enU8hKg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Shift from mongrel to webrick

2013-09-04 Thread Jordon Bedwell
On Wed, Sep 4, 2013 at 9:21 AM, honey ruby emailtohoneyr...@gmail.com wrote:
 Thanks Jordon for your quick response I agree with you but I want to know is
 do we have any other way to shift the to shift from mongrel to webrick with
 out uninstall the mongrel gem. If we uninstall the gem rails will pick
 webrick by default I knew that. Wanna know is there any other alternative
 for this thing

The option is: rails s server
So: rails s webrick

-- 
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQny9ohSrqX3T2tp1ZVH3WGUa99cyuM8PKdT5CZFijivcBA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


  1   2   3   4   5   6   7   8   >