I am writing a contributions page of my thesis and thus I would like to use the referencing system built into LaTeX to format a few journal entries. Is there anyway to place individual BibTeX entries mid document?   For example I would like to write a paragraph of text, followed by a full reference on its own line, followed by another paragraph of text.   Thanks.
I would like to take the full citation of a reference in my BibTeX file and write commentary in-line after it.  A \fullcitation{id} command would be perfect.  I would like to use it as:  \fullcitation{id1}   This paper talks about A with applications to B.  \fullcitation{id2}   This paper considers how C affects A.  Whenever the \fullcitation{id} command appears, I want it to be replaced with the full reference, including authors, title, journal, and date.  Is this possible?
Separate Models vs Flags in the same model I have customer data from 2 brands. The data structure are the same, but I expected the customer behaviour to be different in different brand.  So I could train 2 models, 1 for each brand, or I could train one model on both brands, but flag which brand the customers belongs to within the data.  So my question is, would training on both brands with flags be too much more work for the Machine Learning (I'm using neural network), and therefore be harder to achieve good accuracy than to have dedicated models for each brand? How can I set default value in ActiveRecord?  I see a post from Pratik that describes an ugly, complicated chunk of code:   class Item &lt; ActiveRecord::Base     def initialize_with_defaults(attrs = nil, &amp;block)     initialize_without_defaults(attrs) do       setter = lambda { |key, value| self.send("#{key.to_s}=", value) unless         !attrs.nil? &amp;&amp; attrs.keys.map(&amp;:to_s).include?(key.to_s) }       setter.call('scheduler_type', 'hotseat')       yield self if block_given?     end   end   alias_method_chain :initialize, :defaults end   I have seen the following examples googling around:    def initialize      super     self.status = ACTIVE unless self.status   end   and    def after_initialize      return unless new_record?     self.status = ACTIVE   end   I've also seen people put it in their migration, but I'd rather see it defined in the model code.  Is there a canonical way to set default value for fields in ActiveRecord model? Redefine default color of todonotes 80's/90's movie: man and woman driving through a red desert planet I am trying to identify a sci-fi movie from the 80's or 90's, with the following parameters:  Setting:    Scenes of a red desert planet   Culture:    Either people roam fairly solo and try to acquire resources to survive, or you live in a weird society where if a stranger is captured he needs to play in a game of fight to the death.  Mobility:      One foil character has a giant battle-bot-looking tank as his form of transportation through the desert. Protagonist has a car that has a plastic half bubble on top to look out from.   Robot:      The protagonist runs around in the beginning of the film with a female robot/android whose face is melted off after it has acid touch its face.(This scene happens next to the protagonist's rover)  Love interest:      Somehow protagonist comes across female protagonist in desert. She smells really bad and is hungry. They sleep outside, and he tells her to sleep away from him. He uses a thermal blanket(the first I ever saw in my life). She wakes up next to him, smelling horrible. He bathes her in some water hole they find(as if water were not scarce and they could just waste water.)   Pupa monsters:      Scene where they are in a building and they are trying to get out. They come across a room that is white, in which multiple giant, white, snot, pupa are hanging securely from the ceiling. Through curiosity, they disturb them, and now they have to get out of that room fast.  Boss Antagonist:      Pervert bionic man, that is actually attached to a giant robotic arm, as only form of movement. He is in black and has a pale bald head as his most human looking part. How do I push amended commit to the remote Git repository? When I've worked a bit with my source code, I did my usual thing commit and then I pushed to a remote repository. But then I noticed I forgot to organize my imports in the source code. So I do the amend command to replace the previous commit:  &gt; git commit --amend   Unfortunately the commit can't be pushed back to the repository. It is rejected like this:  &gt; git push origin To //my.remote.repo.com/stuff.git/  ! [rejected]        master -&gt; master (non-fast forward) error: failed to push some refs to '//my.remote.repo.com/stuff.git/'   What should I do? (I can access the remote repository.) Where to start looking up if there's something wrong with cck field variables? in short: Something in my zen-based custom theme is keeping a couple of cck fields from being display on my page. Basically my question is where to get access to the variables that are supposed to contain the html for the cck fields (which are missing when I was looking them in firebug). Below I explain why I think it's looking up the variables that might bring me closer to a solution  So I made this custom node type (events) with cck fields added. Also made some content using those fields. Added some css and it all displayed fine. Later the taxonomy terms below the title and some metadata bugged me so I followed along with a 'theming cookbook' pdf book that taught me how to make a node-events.tpl.php and simply deleted php variables like $terms. This worked great.     Obviously this also means that all this time, the view permissions of those fields have been checked and also that the display options under 'display fields' have been set to standard all the time. I also ruled out that the issue could be anything else than theme related as my cck fields do show up in a stock Drupal theme. The theme for my site is a zen-based custom theme.   So then even later, after I made a view for this node type and started adding css to that view I noticed at some point that my image field and two other fields are missing. It's hard to tell if they disappeared because of things that I did when creating the view and adding css (which would surprise me) JavaScriptSerializer - JSON serialization of enum as string How to force the browser to reload cached CSS and JavaScript files I have noticed that some browsers (in particular, Firefox and ) are very zealous in using cached copies of .css and .js files, even between browser sessions. This leads to a problem when you update one of these files, but the user's browser keeps on using the cached copy. What is the most elegant way of forcing the user's browser to reload the file when it has changed? Ideally, the solution would not force the browser to reload the file on every visit to the page.  I have found  and  suggestion to be useful. It turns out there is a term for this: auto-versioning. I have posted a new answer below which is a combination of my original solution and John's suggestion. Another idea that was suggested by SCdF would be to append a bogus query string to the file. (Some Python code, to automatically use the timestamp as a bogus query string, was .) However, there is some discussion as to whether or not the browser would cache a file with a query string. (Remember, we want the browser to cache the file and use it on future visits. We only want it to fetch the file again when it has changed.) How do I install Ubuntu as the only OS on a MacBook?  That is, I'd like to completely remove Mac OS X and install Ubuntu. I've tried dual-booting, but I've had so much trouble that I prefer to have only Ubuntu installed. Female main character in an ice world earning gems/runes Here's what I remember:   The main character's female (99% sure) There is one part where she has to cross a big tundra and she has to kill a big ice creature The kids in the story go to a school-like place where they train for something. I'm pretty sure they earn gems or runes or something like that There's one part where the main character has to play a piece of music perfectly to earn her gem/rune thing It's definitely a series; young-adult (I read them in middle school)   Thanks! How can I see the history of stories I've read on Apple News? Sometimes I'll be interrupted in the middle of reading a story on Apple News and later when I open the app, it didn't save the story I was previously reading. I want to be able to resume reading the article, how can I find it again? How to set file input value when dropping file on page? What is a tainted kernel in Linux? Is there a good Valgrind substitute for Windows? What is the typographic reasoning here? Does it make the text look less crowded? When is it appropriate to end a question without a question mark? Proving that a normal, abelian subgroup of G is in the center of G if |G/N| and |Aut(N)| are relatively prime. How to install HPLIP on my Ubuntu to support my HP printer and/or scanner? Opening a non-utf8 encoded text file I sometimes need to open text files that are encoded in EUC-KR.    man gedit gives:      --encoding           Set the character encoding to be  used  for  opening  the  files           listed on the command line.    This can be used to open specific files with the desired encoding:  gedit --encoding euc-kr readme.txt   However, each file to be opened requires a similar command to be typed.  I can run iconv on the file(s), but then I have to deal with different file versions.    Do I have better options for dealing with non-utf8 text files? Would changing IP addresses affect my SEO We're about to change our website from a shared hosting account to run on a VPS, mainly so we have our own resources and control over server settings.   An IP address is included with the VPS. What I was wonder is if the IP address change will have a similar affect to changing the domain name?   Obviously the links will still come from the same domain, so that's fine, but I was thinking more along the lines of the way a search engine sees the site - would it downgrade you for switching IP's?