Displaying 20 results from an estimated 30 matches for "something_else".
2012 Mar 20
0
[LLVMdev] Runtime linker issue wtih X11R6 on i386 with -O3 optimization
...a.o
libb.so: b.c
clang ${CFLAGS} -fpic -c b.c
clang -shared -o libb.so b.o
app: liba.so libb.so
clang ${CFLAGS} -fpic app.c -o app
clean:
rm -f a.o b.o liba.so libb.so app
=== a.c ===
#include <stdio.h>
#include <stdlib.h>
#include "shared.h"
int something = 1;
int something_else = 1;
int something_different = 1;
void
moo(int x)
{
printf("made it to moo %d\n", x);
}
void
meh(int x)
{
printf("made it to meh %d\n", x);
}
void
foo(int x, int y, int z)
{
if (something) {
if (something_else) {
if (something_different) {
ex_func(x, y, z);
m...
2013 May 09
1
equivalent way to iterate through a hash
...tools_service::setup {
''carbon-cache'':
service_name => ''carbon-cache'',
....
extra_envs => {
"GRAPHITE_STORAGE_DIR" => "/mnt/statsd-data/graphite-storage"
"SOMETHING_ELSE" => "12345"
"FOO" => "bar"
};
''another-service'':
...etc.
}
and for those "extra_envs" values I want to create files that look like
this:...
2006 Apr 05
6
Howto add application-wide variables?
...nd having my controller require a specific
method from that plugin to access its variables but that didn''t work, so
I am left scratching my head.
eg from plugin ./vendor/plugins/myplugin/shared_defs.rb file
Module SharedDefs
def load_shared_defs
@var1 = something
@var2 = something_else
end
end
eg from controller
include SharedDefs
require :load_shared_defs
def index
@my_stuff = @var1
end
@var1 is not defined and so my guess is my scope is off or I''m not
accessing it correctly but I am not sure which.
Thanks in advance for any light you can shed! :)
-Andy
2005 May 19
5
[OT] Sqlite2 question
...9;, ''some_val'', '''', '''', '''',
''some_other val'', '''', '''', '''', '''')
Assuming a my_table def like:
CREATE TABLE my_table (
id,
something,
something_else,
another_something,
etc etc);
So, modifying those INSERT statements suck. vim helps a little bit
using record, but it''s still painful.
It would help a lot if I could get sqlite to dump its insert
statements in the following psuedoformat:
INSERT INTO my_table (id=''some_id...
2013 Apr 02
1
Untrusted domains with security=ads
...henticate requests that prepend a not-existent domain to the
username. Users that have logged into the domain authenticate
transparently to squid with NTLM (format is domain\username), but not
users that are logged in locally or into another domain with the same
username and password (format is something_else\username). This wasn't
the case with "security = domain" and a Samba 3 DC:
with security = ads:
# wbinfo -a uni-ruse\\dstoykov%password
plaintext password authentication succeeded
challenge/response password authentication succeeded
# wbinfo -a fgdgdgd\\dstoykov%password
plaintext...
2013 Jul 18
0
Password encryption type for dovecot & postfix saslauthd with mysql
...in mysql that merges the two.. tables + view look a little like this:
table: mail_users (for dovecot)
email,password
test at test1.com,CRAM-MD5_PASSWORD
test2 at test1.com,CRAM-MD5_PASSWORD
bla at bla.com,CRAM-MD5_PASSWORD
table: mail_senders_other
username,password
username1,CRAM-MD5_PASSWORD
something_else,CRAM-MD5_PASSWORD
view: mail_senders (for postfix)
username,password
test at test1.com,CRAM-MD5_PASSWORD
test2 at test1.com,CRAM-MD5_PASSWORD
bla at bla.com,CRAM-MD5_PASSWORD
username1,CRAM-MD5_PASSWORD
something_else,CRAM-MD5_PASSWORD
I have dovecot working fine, but just need a little push in...
2008 Jun 07
5
Can create record but can not update it => has_many through
Hi All,
I have a problem using has_many through association. I can create a product
without problem, but when i edit it, i got this NoMethodError:
undefined method `reciters='' for #<Product:0xb71a77e8>
Did i miss something to code? I provided the codes below. Please help
Thanks,
Dida
product_controller.rb
======================
def create
@product =
2013 Jun 15
2
[LLVMdev] RFC - Profile Guided Optimization in LLVM
...though from a completely different background:
In zlib's longest_match() (which happens to contain the hottest loop in deflate()) there's a loop with this layout:
do {
if (something) continue;
while (cond && cond && cond && cond && cond) { }
} while (something_else);
The inner while loop is freezing cold. This is one of the cases where the current estimation based on loop depth completely fails while the heuristics BlockFrequency is based on get it right. With the old spill weights we spilled parts of the "something_else" code above that had to be...
2013 Jun 13
0
[LLVMdev] RFC - Profile Guided Optimization in LLVM
On 2013-06-12 18:15 , Chandler Carruth wrote:
>
> On Wed, Jun 12, 2013 at 3:10 PM, Jakob Stoklund Olesen
> <stoklund at 2pi.dk <mailto:stoklund at 2pi.dk>> wrote:
>
> It predates the block frequency interface. It just needs to be
> hooked up, patches welcome. It would also be nice to remove the
> floating point computations from the spill placement
2008 Jun 02
1
Cherry-picking mocks?!
...ust be stubbed.
Now after today''s question, and understanding how expect_render and
mock_render differ from normal expectations, these seem to be related.
Maybe we should be able to say something like:
something.expects(:foo).with(someArguments).with(otherArguments).otherwise(:stub)
something_else.expects(:bar).with(arguments).otherwise(:pass) # if the
arguments don''t match pass the method to the real object
Which is really just a strawman to see if a discussion ensues. There are
other issues like providing return values, and perhaps optionally passing a
method through after ve...
2013 Jun 12
3
[LLVMdev] RFC - Profile Guided Optimization in LLVM
On Wed, Jun 12, 2013 at 3:10 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk>wrote:
> It predates the block frequency interface. It just needs to be hooked up,
> patches welcome. It would also be nice to remove the floating point
> computations from the spill placement code.
Cool, if Diego doesn't beat me to it, I may send you a patch as that seems
easy and obviously
2006 May 10
12
how best to implement lookup table?
Hi all -
I''d like to implement a lookup table in my app that contains some
reference data, just some status codes and their descriptions. What''s
the most appropriate approach according to the "rails way" of doing
things? Would I just implement a has_many relationship? Let''s say
these are Order status codes, would the StatusCode have many Orders?
This
2012 Feb 14
6
SMTP problem.
Hey all, well I am trying to send emails to newly created users but I
have a problem.
In the rails log it states that the email has been sent but the email is
never actually received so obviously there is a problem.
I have noticed one in particular and I don''t understand how to fix it.
Once I create the user I get the following error message:
Net::SMTPAuthenticationError (535-5.7.1
2005 Dec 19
6
custom find methods and pagination
...in my models i use to find based on certain
criteria...i''ve done this so the controller code is less cluttered, plus the
DRY factor.
example:
class Foo < ActiveRecord::Base
def find_by_something(something)
find :all, :joins => ..., :conditions => ...
end
def find_by_something_else(something_else)
find :all, :joins => ..., :conditions => ...
end
def find_by_something_and_bar(something, bar)
find :all, :joins => ..., :conditions => ...
end
now my question:
is there a way to do Foo.find_by_something(something) in a paginator? would
I have to modify a...
2006 Jan 13
2
New View Example With Child Object?
Could somebody point me to some example code? This must be simple, I
just can''t find any examples. I need a new view (new.rhtml) to include
the creation of a child object. I have a table for servers (Servers)
and a table for IP Addresses (Ips).
Server
has_many :ips
Ip
belongs_to :server
In my new.rhtml I want the IP entered to become a record in the Ips
table. The Ips table
2005 Dec 19
0
has_one mapping with arbitrary right and left hand side keys
I have two tables:
table_1:
tab1_id,
other_id
table_2:
id,
tab2_id,
something_else
I would like to specify a has_one mapping from table_1 to table_2 but
specifying that the join is based on (table_2.tab2_id =
table_1.other_id).
I am half way there with:
class Table1 < ActiveRecord::Base
set_table_name "table_1"
set_primary_key "tab1_id"
has_one :Tab...
2009 Apr 24
1
RoR - getting started with database relations
...ing here and hopefully get a little
feedback as to whether I''m approaching this correctly before I start
programming it into my application...
class Year < ActiveRecord::Base
has_many :makes
end
class Make < ActiveRecord::Base
belongs_to :year
has_many :models, :through => something_else
end
class Model < ActiveRecord::Base
belongs_to :make
has_many :parts, :through => something
end
class Part < ActiveRecord::Base
belongs_to :model
end
However, I guess what is confusing me is that if I try to set it up
this way, if I enter a part for a 1999 Jeep Cherokee, how woul...
2004 Dec 14
1
Revisiting the rewriting
Since the WEBrick server has been so beefed up in Rails 0.9, I think
it''s a darn shame that its lingering outside the support of custom
pretty URLs. Also, it seems that the connection between mod_rewrite and
url_for and friends is pretty fuzzy for most people.
Hence, as we''ve talked about before, the rewriting of the url should be
pulled in-house. There has been a few
2009 Mar 03
2
tls and auth plain login
...ntlm" to
"protocol imaps{}" as an example but I get an error that the protocol
does not exist.
I read somewhere today that dovecot enables plain automatically over
secure connections (ssl/tls) but I'm not seeing it.
Also, "auth default" suggests that "auth something_else" is possible.
I'm probably just doing a poor job of research but I'm not finding the
answers I'm seeking.
Using postfix and lda.
# openssl s_client -connect localhost:993
# a01 capability
* CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND
UNSELECT LITERAL+ I...
2007 Jan 07
1
deliver rewrites envelop-sender
Hello,
we are currently using sendmail, procmail, uwimap and qpopper. We are
planing to replace uwimap and qpopper with dovecot. Which seems to be a
very good idea :-)
But: Sendmail and Procmail will not be replaced.
Now I've realized that deliver rewrites existing "From <....> ..."
header lines to ">From <...> ..." and adds it's own "From