Displaying 13 results from an estimated 13 matches for "lockable".
Did you mean:
blockable
2011 Jun 11
1
Having a problem adding a foreign key
...xt_field :author %></p>
<p><%= f.submit "Add book"%>
BOOK MODEL
class Book < ActiveRecord::Base
belongs_to :user
end
USER MODEL
class User < ActiveRecord::Base
has_many :books
# Include default devise modules. Others available are:
# :token_authenticatable, :lockable, :timeoutable and :activatable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation,:firstname,:lastname,:school,:maj...
2014 Jun 07
5
[LLVMdev] Multi-threading and mutexes in LLVM
...nd when it's off. So this goes back to the first
two points about confusing code and subtle bugs.
2) What should happen when you try to acquire a mutex in an app with
threading disabled?
If this is a compile-time parameter, the solution is simple: make an empty
mutex class that satisfies the Lockable concept, and have its methods do
nothing. Then typedef something like llvm::mutex to be either std::mutex
or llvm::null_mutex accordingly. If this is a runtime parameter, it's more
complicated, and we should ask ourselves whether or not it's necessary to
avoid the overhead of acquiring an...
2007 Mar 29
0
Debugging "The typing of the dead"
...CooperativeLevel
(0x16d0f8) Unhandled flag DDSCL_ALLOWREBOOT, harmless
warn:d3d:IWineD3DDeviceImpl_Clear Clearing depth
and/or stencil without a depth
stencil buffer attached, returning
WINED3DERR_INVALIDCALL
warn:d3d:IWineD3DDeviceImpl_CreateSurface Creating a
surface with a POOL of DEFAULT with Lockable true,
that doesn't specify DYNAMIC usage.
I've looked the source for comments about the meaning
of the flags in SetCooperativeLevel
and I think the first warning is indeed "harmless".
I couldn't figure out anything about the second.
The third scares me a bit because is printe...
2013 Mar 07
0
custom table_name for table users with devise
...elgiumusers,
...) and I would like to use one or another depending on domain
I tried with table_name_prefix and table_name but it seems to not work
class User < ActiveRecord::Base
rolify
# Include default devise modules. Others available are:
# :token_authenticatable, :confirmable,
# :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable, #:confirmable,
:recoverable, :rememberable, :trackable, :validatable
def self.table_name
debugger
''franceusers''
end
def self.table_name_prefix
debugger
''fra...
2004 Dec 09
2
Reality Check -> Roaming Profiles
Disclaimer... I know Roaming Profiles are a modern day example of "the emperor?s new cloths". I also know that 2+2=4.
Let's think Linux/Unix here a second. Preference files are stored in the user's home dir. A user can log in (text or X) multiple times, they will always get the same home dir. Thus each login instance
will share those config files.
The same just happens to be
2013 Oct 25
0
Wine release 1.7.5
The Wine development release 1.7.5 is now available.
What's new in this release (see below for details):
- Support for registration-free COM using activation contexts.
- Improved support for simulated bold fonts.
- Unicode data updated to Unicode 6.3.
- Better support for typelib registration on 64-bit.
- Various bug fixes.
The source is available from the following locations:
2011 Jul 14
10
Devise confusing routes
I had a similar problem yesterday.
I would go to the root of my site and I would get a Too Many Redirects
message. It seems like there was an infinite loop. After struggling for
over an hour yesterday late at night, it seemed like I fixed it.
But now, when I want to create a New User, it''s redirecting me to the
Sign In screen. Seems like I didn''t fix the problem completely.
I
2014 Aug 20
6
Full MVCC in Brass
...g shared locks on revision range [0,
RSAFE]. If F_GETLK returns a conflicting lock, set RSAFE to one less
than the lower bound of the conflicting revision range and retry.
(Multiple retries may be necessary because it is unspecified which of
multiple conflicting locks F_GETLK will return.) Once a lockable
range has been found, use F_SETLK to acquire an exclusive lock on it.
This may fail in an unlikely race with a reader; if it does, continue
to back off RSAFE with F_GETLK. Remember RSAFE.
2) In the reader: Once the version file has been read, attempt to
acquire a shared lock on the current revisi...
2012 Jun 08
0
Wine release 1.5.6
...d3dx9: Implement D3DXSaveTextureToFileInMemory.
d3dx9/tests: Add tests for D3DXSaveTextureToFileInMemory.
d3dx9/tests: Add tests for DDS header handling.
windowscodecs/tests: Fix the expected values in some ok() messages.
d3dx9/tests: Add tests for loading surfaces from non-lockable render targets.
d3dx9/tests: Fix indentation.
d3dx9: Add stub for D3DXCreateRenderToSurface.
d3dx9/tests: Add basic tests for D3DXCreateRenderToSurface.
d3dx9: Add ID3DXRenderToSurface interface stub.
d3dx9: Implement ID3DXRenderToSurface::GetDesc.
d3dx9: Impleme...
2012 Jul 17
0
Wine release 1.5.9
...s as broken.
Henri Verbeet (33):
secur32: Only read complete records in schan_InitializeSecurityContextW().
wined3d: Fix the .spec.
d3d9: Implement d3d9_device_ResetEx().
winex11: Get rid of xvidmode.h.
winex11: Get rid of xrandr.h.
wined3d: Get rid of the "lockable" parameter to device_parent_create_rendertarget().
wined3d: Get rid of the "discard" parameter to device_parent_create_depth_stencil().
wined3d: Print a more obvious message if a format doesn't have a corresponding GL internal format.
winex11: Remove some unused...
2011 May 13
0
Wine release 1.3.20
..._test().
wined3d: Add some initial access checking for resources.
wined3d: Introduce a helper function for translating blend factors.
wined3d: Get rid of the wined3d_settings_t typedef.
wined3d: Get rid of the WineD3D_PixelFormat typedef.
wined3d: Set SFLAG_DYNLOCK for lockable render targets.
ddraw/tests: Add a small test for redundant mode setting calls.
ddraw: Skip redundant mode setting calls.
wined3d: Remove object creation methods from the IWineD3DDevice interface.
wined3d: Get rid of the SHADER_LIMITS typedef.
Huw Davies (23):
shell32...
2012 May 25
0
Wine release 1.5.5
...d3dx9: Add DDS support in D3DXCreateTextureFromFile functions.
d3dx9: Add DDS support in D3DXLoadSurfaceFromFile functions.
d3dx9/tests: Add tests for compressed pixel formats support in D3DXLoadSurface functions.
d3dx9: Add traces.
d3dx9: Properly check if a texture is lockable in D3DXCreateTextureFromFileInMemoryEx.
d3dx9/tests: Do not release a cube texture if it wasn't created.
d3dx9/tests: Fix messed up parameters.
d3dx9: Correctly handle D3DUSAGE_AUTOGENMIPMAP in D3DXCheckTextureRequirements.
d3dx9: Correctly handle D3DUSAGE_AUTOGENMIPMAP...
2011 Nov 05
13
Adding a site admin user while creating a site
...omized it).
*Below are my models:*
*User model*
-------------------------------
class User < ActiveRecord::Base
*belongs_to :sites ########### I have added this
* # Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :confirmable, :lockable,
:timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me,
:role, :site_id...