id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_19500
Please, please, please do not post answers suggesting that I shouldn't use ajax for this or that I should redirect the browser, because none of this is an option. Using a plain HTML form is also not an option. What I do need is to show a download dialog to the client. Can this be done and how? A: Here is my solution u...
doc_19501
private void printToolStripMenuItem_Click(object sender, EventArgs e) { try { StreamReader streamToPrint = new StreamReader ("C:\\My Documents\\MyFile.txt"); try { Font printFont = new Font("Arial", 10); PrintDocument p...
doc_19502
element * CHECKEDOUT element * /main/dev/LATEST load "\project\dir1" load "\project\dir2" load "\project\dir3" I am using the same config spec with a dynamic view without the load rules. I have checked in a file called "configSpecTest.txt" into "\project\dir1\subdir", and this shows up in my dynamic view. However, af...
doc_19503
// INDEX.JS File var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); app.get('/', function (req, res) { res.sendfile('index.html'); }); io.on('connection', function (socket) { socket.on('chat message', function (msg) { console.log('message: ' ...
doc_19504
I have a vector of id's, sampleIDs. I also have a data.table, rec_data_table, keyed by bid and containing a column, A_IDs.list where each elements is a collection (a vector) of aIDs. I would like to create a second data.table containing sampleIDs and where For each aID, there is a corresponding vector of all the b...
doc_19505
I want http://foo/bar to redirect internally to http://main.py?q=foo/bar Now my .htacess file contains Options +ExecCGI AddHandler cgi-script .py DirectoryIndex main.py RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) main.py?q=$1 Normally works fine. Redi...
doc_19506
How would i go about this? I can paste code into the code injection area where it says: Site Header Code here will be injected into the {{ghost_head}} tag on every page of the site A: You can probably use the ghost_foot inside the code injection option if you want to inject the code into the body of the ghost blog. ...
doc_19507
I would like to add pValue to boxplots organized with facet_wrap (ggplot2). Similar to what you obtain with the script I add to this post (the first part of the script is the exemple of what I want and it's working well for 1 plot, the second part is related to facet and doesn't work). I would like to add pvalue betwee...
doc_19508
However the interesting thing is the folder jobcache indeed has permissions 700. I dont understand why it is not able to create the folder inside it. Error initializing attempt_201212101828_0396_m_000028_0: java.io.IOException: Failed to set permissions of path: /apollo/env/TrafficAnalyticsHadoop/var/hadoop/mapred/loca...
doc_19509
but the id key is not a only value, but three value. How can I set the three value in the button so that when onclick the button, I can get three value in the code behind? The Column <dg:DataGridTemplateColumn Header="Edit"> <dg:DataGridTemplateColumn.CellTemplate> ...
doc_19510
We make numerous modifications to forms and reports on the server copy, then copy to each individual PC. I want to create a bat/cmd that a user can run from their desktop that will automate this. If I "hard code" the user name it works fine: User = msmith copy "\\XX-DC\Company\Estimator's Data\XX_Bids.accdb" C:\Users...
doc_19511
So, I click the button and after signing into Gitpod, it sends me to a page with web address https://xxxxxxxxxxxxxx.ws-eu74.gitpod.io/. It looks like there is a clone of the PeerJS Server code. Does anyone know how to get it working? * *Where is says gitpod /workspace/peerjs-server (master) $ at the bottom of the pa...
doc_19512
The date is formatted like this, in what Apple's docs claim, incorrectly, is RFC 3339 format: 2017-11-28 23:37:52 Etc/GMT Since this isn't a valid RFC 3339 or ISO 8601 datetime, it is failing to parse using moment.js or Date.parse(). How can I parse it? Note that I don't want to simply strip the Etc/ out because its i...
doc_19513
Programming Problem link-> And here is my code: #include <iostream> #include <fstream> #include <stdio.h> #include <string.h> using namespace std; int main(){ int nGroup; ifstream in("gift1.in"); in >> nGroup; string group[nGroup]; for (int i = 0; i < nGroup; i++){ in >> group[i]; }...
doc_19514
Error resolving JdbcType. Cause: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.BIGDECIMAL What is the jdbcType alternative instead of BIGDECIMAL? I'm using mybatis-3.4.4 version A: That's happen because BIGDECIMAL jdbc type doesn't exist. Just take a look the enum JdbcType of ...
doc_19515
I have tried method_added, but it executes only once at the time of class definition, class Base def self.method_added(name) p "#{name.to_s.capitalize} Method's been called!!" end def a p "a called." end def b p "b called." end end t1 = Base.new t1.a t1.b t1.a t1.b Output: "A Method's been ca...
doc_19516
I'm reading the size that can be obtained through HTML5 with something as simple as : <input type="file" id="myFile" /> (in HTML) and $('#myFile').bind('change', function() { alert(this.files[0].size); }); (in JavaScript) so, I'm thinking to approach this as follow : * *use CSS to set the input to display:hidd...
doc_19517
However, in order for NumPy to find the MKL libraries, it's necessary to create a site.cfg file in the NumPy source directory prior to compiling it, then manually build and install. I could script this whole process, but I was hoping for a simpler solution. I have a standard site.cfg file that can be used for this pur...
doc_19518
like extension method,lambda expression,Linq. A: They're all listed here: * *Overview of C# 3.0 A: Yes that's a good start. You can also go over any kind of "what's new in C# 3.0" page, like this one from MSDN. A: I can recommend that you have a look at C# in depth by Jon Skeet too. Very good book. :-) A: You co...
doc_19519
my code: function validateForm() { var pic = document.getElementById("photo1").value; pic = pic.split('/').pop().split('\\').pop().replace(/[.][^.]+$/, ""); var x = document.getElementById("gyuruszam"); var gyuru = document.getElementById("gyuruszam").value; if (gyuru == null || gyuru == "" || gyuru...
doc_19520
# File: main.py import logging logger = logging.getLogger(__name__) import submodule #... def main(): logger.debug(f'Test') if __name__ == '__main__': logger.setLevel(logging.DEBUG) formatter = logging.Formatter('[%(levelname)s | %(name)s] %(message)s') # The handler h1 logs only debug and info to ...
doc_19521
[ {name: "Smith", address: [ {city: "LA"}, {city: "NY"} ], firstName: "Rob"}, {/* Idem */} ] One of my controllers set these data into $scope.people which is bound on my views into a table with loops. But some of raws doesn't appears when the adress array is empty. How can I replace...
doc_19522
private void displayMessages(){ //Suppose you want to retrieve "chats" in your Firebase DB: DatabaseReference ref=FirebaseDatabase.getInstance().getReference(Constants.USERS_CHAT).child(chatId); Log.d(TAG,"Inside query"+ref); ref.addListenerForSingleValueEvent(new ValueEventListener(...
doc_19523
My Code is as following: >>> import re >>> pat=re.compile(r'^abcd') # Starting search from index 2. >>> print(pat.match('..abcd',2)) None # Slicing gives a new string "abcd" hence a match for ^ is found. >>> pat.match('..abcd'[2:]) <_sre.SRE_Match object; span=(0, 4), match='abcd'> >>> pat=re.compile(r'abcd$') ...
doc_19524
The jQuery script does'nt work in this component. Cards.js : import $ from 'jquery'; const Cards = (props) => { $(document).ready(function() { $('.w-card').click(function() { $(this).toggleClass('w-card-active').siblings().removeClass('w-card-active'); }); }); const data = props.data ? props.da...
doc_19525
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("I14:J1000")) Is Nothing Then On Error Resume Next ' In case there's been no previous action ' Check if the last action was a paste If Left(Application.CommandBars("Standard").Controls("&Undo").List(1), 5) = "Paste" Then ...
doc_19526
int x = 45; int y = x &= 34; It assigns 32 to y A: It's performing a bitwise "and" as a compound assignment operator. It's equivalent to: int x = 45; x = x & 34; int y = x; Now 45 = 32 + 8 + 4 + 1, and 34 = 32 + 2, so the result of a bitwise "and" is 32. Personally I think that using a compound assignment operator ...
doc_19527
So I installed the latest Eclipse Juno, m2e and SpringIDE. I failed ho understand how to create a Maven Spring project with the above combination of software. The only options that Eclipse UI gives me is either a Maven project, or a Spring project: I know that it IS possible to have a Maven/Spring project in Eclipse, ...
doc_19528
I have made a toy example here: library(dplyr) library(purrr) library(tidyr) library(broom) set.seed(1234) exampleTable <- data.frame( ind = c(rep(1:5, 5)), dep = rnorm(25), groups = rep(LETTERS[1:5], each = 5) ) %>% group_by(groups) %>% nest(.key=the_data) %>% mutate(model = the_data %>% map(~lm(dep ~ ind, dat...
doc_19529
readerLoaded(reader) { console.log(reader.target.result); //want to be able to do something like this in here tile.src = reader.target.result; }, createTile (coords, done) { var tile = document.createElement('img'); //Removed non-relevant code setting up header options etc ...
doc_19530
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script src="jquery.js" type="text/javascript"></script> <script src="jquery.plugin.js" type="text/javascript"></script> <script src="custom.js" type="text/javascript"></script> <script src="C:\wamp\www\rrr\bin\jquery-hands...
doc_19531
Possible Duplicate: C# member variable initialization; best practice? Why should member variables be initialized in constructors? Should I initialize variable within constructor or outside constructor In Java/C# usually we see public class MyClass { private MyObject myObject; public MyClass(){ myObje...
doc_19532
I need to find something in string with preg_match.. then replace it with new word using preg_replace, that's ok, but I don't understand how to put replaced word back to that string. This is what I got $text ='zda i "zda"'; preg_match('/"(\w*)"/', $text); $najit = '/zda/'; $nahradit = '&#122;&#100;&#97;'; $o = '/zda/';...
doc_19533
What I'm wondering, can I nest an IF/THEN statement like I've done below? Why or why not? Would the block below be served better by using an elif instead? Lastly, I was hoping someone could shed some light for me on the use of "${foo}" and "$(bar)" ... curly braces or parenthesis? I've (so far) used curly braces whe...
doc_19534
The highlighted layout is a LinearLayout with three additional horizontal linearlayouts in it (one for each text+seekbar combination). I would like the highlighted LinearLayout to expand and fill the space of the screen such that the "SAVE" button is at the bottom of the screen. I have tried using android:layout_weig...
doc_19535
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <include android:id="@+id/toolbar" layout="@layout/toolbar_layout" /> <ListView ...
doc_19536
| 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 16 | 36 | 116 | 156 | 176 | 200 | key | |-----|-----|-------|-------|-------|-------|-----|-----|-----|-----|----|----|-----|-----|-----|------|--------------| | 0 | 0 | 21320 | 21301 | 22597 | 13624 | 2 | 0 | 0 | 1 | 1 | 0 | ...
doc_19537
Started with dynamic memory allocation , and find a problem in this code . I cant find the problem in this code , in my opinion it all good #include <iostream> using namespace std; class Team { private: char *name; char stadium[20]; char city[20]; public: Team(const char *i=" ",const char *stad...
doc_19538
A: That doesn't look like it's been updated since preview 5... The default ASP.NET MVC project that is created when you install the release version of ASP.NET MVC includes integration with the membership system. A: Grab the new release that works with MVC 1.0 A: You can make a copy of that Starter Kits code base int...
doc_19539
final class Anno(min: Int, max: Int) extends StaticAnnotation case class Test(x: String, @Anno(min = 5, max = 10) y: String) I would like to iterate each field of the case class, get its value and the case class annotation properties assigned to it (if annotation exists). Any idea how can it be accomplished in Scala?...
doc_19540
I would like to create a wxpython application with a window where I can create a network graph. I have heard (never used) of graphviz and NetworkX, but it seems to me that they only creates graph given some input data. I would like to do the opposite - i.e., create drag and drop nodes and links from a pallete menu. ...
doc_19541
I am using below code, let cardHeight:CGFloat = 400 let cardHandleAreaHeight:CGFloat = 0 func setupCard() { visualEffectView = UIVisualEffectView() visualEffectView.frame = self.view.frame self.view.addSubview(visualEffectView) cardViewController = CardViewController(nibName:"...
doc_19542
API and Web.Framework are used by API.IntegrationTest project. When I compile solution, dll files of API and Web.Framework are created in API.IntegrationTest but while API.IntegrationTest is running, I can't reach those dll files. To do this, I use AppDomain.CurrentDomain.GetAssemblies() method and I'm sure and see dl...
doc_19543
, where Ci is the i-th Catalan number. To solve the problem, I loop from 0 to n and sum the product of two Catalan numbers: BigInteger catalanSum = 0; for (int i = 0; i <= n; i++) catalanSum += catalan(i) * catalan(n - i); The catalan function is returning the binomial coefficent divided by...
doc_19544
Theme i'm using is Exzo: https://themeforest.net/item/modern-electronics-ecommerce-wordpress-woocommerce-theme-exzo/19356950 Solutions i tried: // Replace add to cart button by a linked button to the product in Shop and archives pages add_filter( 'woocommerce_loop_add_to_cart_link', 'replace_loop_add_to_cart_button', ...
doc_19545
connectOnStartup : false The onConnectionFailure() callback is not called and the app remains frozen in the initialization process. When we go with the manual connect, using WL.Client.connect(options) the onFailure handler is also not triggered. Why are the failure handles not called and what is the best practice to e...
doc_19546
with tf.variable_scope(scope, 'resnet_v2', [inputs], reuse=reuse) as sc: end_points_collection = sc.original_name_scope + '_end_points' with slim.arg_scope([slim.conv2d, bottleneck, stack_blocks_dense], outputs_collections=[end_points_collection]): ValueError: ('%s is not decorated wit...
doc_19547
Just curious to know, because I am planning to make a file searcher program. I know there are terminal commands like find etc, but as I will program in C I was thinking if there any such thing Ubuntu OS does, if so, how can I access that table? Update: As some people mentioned there is no such thing, then If I want to ...
doc_19548
How long do you cache these? A few days? More? I'm probably not going to reuse the same name twice if I update the resource, so I shouldn't have outdated data concerns. A: If you're changing the name when you update, then you have the luxury of caching forever. This is a big plus if you're okay with name changing. It...
doc_19549
Here's what I've tried: in frm_Main frm_Options Options = new frm_Options(); Options.btn_Apply.Click += new System.EventHandler(this.btn_Apply_Click); Later... Options.Show(); ... void btn_Apply_Click(object sender, EventArgs e) { LoadPreferences(); } Basically the only way I could think of doing it was to add a...
doc_19550
So far my idea is to store the model with all the relationships in static::updating event of the loggable model as $original. And then fetch the $original variable in static::updated event and compare the differences and log accordingly. What would be a good way to go about doing this. If there's a better method to doi...
doc_19551
In order to make this happen, my idea is to create an qr-code that launches the iOS app and passes the model-id as parameter. Since the AR-Kit implementation in the sketchfab is pretty new, I cannot find any documentation for this. Does anybody know how to do this? Thanks Christian A: okay, I found the solution. It...
doc_19552
If I try to change the port the program goes rogue. The pinwheel starts and the UI is unresponsive. I can't stop the program from Xcode, nor can I kill it from Terminal, or Force Quit. Force Quit of Xcode doesn't do it. Although the PID goes away with a kill from Terminal, the UI is still present with the merrily spinn...
doc_19553
After the maven clean command, then maven install, I get the following error: Module uk.co.caprica.vlcj.osx.stubs not found, required by uk.co.caprica.vlcj After that I found uk.co.caprica.vlcj.osx.stubs, added it to dependencies and to additionalDependencies to the vlcj module, but unfortunately it didn't help and I ...
doc_19554
<rsp stat="fail"> <err code="104" msg="The signature attached to the call does not match the signature generated on the server."/> </rsp> Here it is an example of the URL: http://cloud.scorm.com/api?method=rustici.registration.launch&appid=79V4XI0MTG&regid=1551368365666&redirecturl=closer&ts=20190228153925&sig=d6e...
doc_19555
What is the best way to do following things. * *When user taps "Edit" button in cell app opens new view to edit edit folder name. After renaming folder app uses AFNetworking to save new folder name to the server. *When user taps "Delete" button app confirms action and removes folder from server. A: Okay, set actio...
doc_19556
import scrapy from wiki.items import WikiItem import pandas as pd class Spider(scrapy.Spider): name = "wiki" start_urls = ['https://datatables.net/'] def parse(self, response): items = {'Name':[], 'Position':[], 'Office':[], 'Age':[], 'Start_Date':[],'Salary':[]} trs = response.xpath('//table[@id="...
doc_19557
I have personally chosen to work around this issue by passing the javascript date as a date to my PHP code rather than the unix time. Yet, the nagging question still remains! I have confirmed this behavior on IE8, Chrome, and FF so I'm assuming it will behave the same for you. (Update: OSX users might not be able to ge...
doc_19558
states that qualification conversion is also an exact match, and hence both candidates should have same ranking. Each type of standard conversion sequence is assigned one of three ranks: 1) Exact match: no conversion required, lvalue-to-rvalue conversion, qualification conversion, function pointer conversion, (since C...
doc_19559
I can't even put a working code snippet because I don't know what's related, but I will try: I needed to make each .cpp file in my project have its own ID number, and create an instance of an object (which is globally accessible) that knows that ID. I followed the help on the accepted answer on this thread How to mana...
doc_19560
I would like information on how to integrate Angular into Asp.Net, specifically how to add npm, how to render the components, and how to run it locally. Any help is always appreciated. A: TLDR: Build a ng project within your ASP.Net project directory and then add a webpack config to compile your typescript files into ...
doc_19561
Currently, I have SELECT * FROM Contracts INNER JOIN Contract_Plans ON Contracts.ContractNum = Contract_Plans.ContractNum INNER JOIN Contract_Plan_Tags ON Contracts.ContractNum = Contract_Plan_Tags.ContractNum WHERE Contract_Plan_Tags.tag_id = 44 OR Contract_Plan_Tags.tag_id = 45 This query returns all the fields, ...
doc_19562
I write a demo code for this: from PIL import Image import numpy as np file_extension = 'jpeg' # generate a sample image image = range(1, 2*2*3+1) image = np.uint8(np.array(image).reshape(2,2,3)) print 'image', image img = Image.fromarray(image, "RGB") img.save('test.'+file_extension) # load image loaded_image = ...
doc_19563
Html: <body> <div id="A">C</div> <div id="B">o</div> <div id="C">l</div> <div id="D">o</div> <div id="E">r</div> <div id="F">M</div> <div id="G">e</div> </body> jQuery: $("div").hover(function(){ $(this).css("font-size", "100px"); }); CSS: div{ width: 100px; height: 100px; border...
doc_19564
I have a data file that will contain an XYZ coordinates for several atoms. I need to have the molecule oriented such that the two sulfur atoms are resting on the x axis. I know the math behind what I need to do, I am just unsure how to apply this to an array in python. What I am looking to do is the rotation of a vec...
doc_19565
ping www.google.de -t and displays the ping, so it would look like this: Reply from XXX.XXX.X.XX: time=30ms Reply from XXX.XXX.X.XX: time=31ms Reply from XXX.XXX.X.XX: time=29ms My problem is, that this will result in this when I execute this command as script: My problem is that it will not execute the ping command...
doc_19566
One thing that's been bugging me is the actual search logic that will be used when the user enters some criteria. I am imagining a search interface with a text field, and a few other filtering tools - drop down combo boxes and check boxes and such. While that gives me very strong, granular control over the filtering I ...
doc_19567
For example, I want to use one class named StdDraw from that jar file in my own codes Say E:\code is my current working directory. like other conditions, I create a subdirectory bin\edu\princeton\cs\introcs to put stdlib-package in Here is my codes: package com.david.test; import edu.princeton.cs.introcs.stdlib-pac...
doc_19568
Now the IAM user has AdministratorAccess already..so now with applying this force MFA policy now the user has 2 policies attached. The AWS managed policy AdministratorAccess and the new Managed policy i created Force_MFA now when i try to run ansible iwth module https://docs.ansible.com/ansible/latest/modules/sts_assum...
doc_19569
Context of problem : My team members refer to everything as API (it seems to me even to functions/methods but maybe I am missing something). I feel dumb to ask directly to them.
doc_19570
The program works fine to return the objects for ONE rectangle, but how would I implement this to create an array of 10 rectangles and THEN return each one in a loop? Here's my class file with my objects: import java.util.*; public class Rectangle { private double width; private double height; public stat...
doc_19571
I'm currently using C# and Selenium I'm trying to overcome a problem whereby I need to select a checkbox within a generated table while only knowing a line of text in a preceding-sibling Div. All ID's can change as they are randomly generated. I want to select class="jqx-checkbox-check-checked" while only knowing the t...
doc_19572
object1 = [{Id: 6, Type: "something", id_: 3}, {Id: 12, Type: "something", id_: 6}] object2 = [{id:18, id_:6}, {id: 15, id_:3}] the expected result should be object = [{Id: 6, id:15}, {Id: 12, id: 18}] I want to do this without using loop because the data is too big, is there some better way to do it using map/reduce? ...
doc_19573
The author place the code of instance a class DefaultServiceLocator in the interface ServiceLocator. In my mind , normally a interface should not include any implement code. Is it a good idea to place the code of instance a class in a interface in Kotlin? Code A interface ServiceLocator { companion object { ...
doc_19574
Thanks in advance for example my code is : Dim Row_num as integer for x=1 to 100 Thisworkbook.Sheets("Sheet1").range((Row_num,x),(Row_num,x+1)).select selection.merge next A: Correct Usage is: <WorkBook>.<WorkSheet>.Range(<CornerCell>, <OpositeCornerCell>) There are several other issues in your code fragmen...
doc_19575
I have been unable to get the air tap or any other input working in my application. The ring pointer for airtap does not appear in the application even though it works in the Unity Play Mode Input Simulation and other applications on the device. I tried it with the MRTK examples and even those did not work on the devic...
doc_19576
However, I've noticed that when running larger data sets (+12k rows), that output file size goes from around 2000 Kb down to 0 Kb and then back to 2000 Kb when it moves to the next row. The problem is if I stop the script (or there's a crash) when the output file happens to be at 0 Kb, the file gets corrupted and I l...
doc_19577
curl -x myproxy.baseurl.com:80 -H "Authorization: Token mytoken" https://app.api.com/?status=Approved > output.txt This sends the output to the command line & hangs until I hit ctl-c: curl -x myproxy.baseurl.com:80 -H "Authorization: Token mytoken" https://app.api.com/?status=Approved&page_size=100000 > output.txt Ar...
doc_19578
At the beginning of the protractor test i need to have access of one element of the DOM to check if it is filled correctly. No Way. I cannot have access to this element. var EC = protractor.ExpectedConditions; condition = EC.presenceOf($('[id=asyncContentId]')); browser.wait(condition, 5000, "asyncContentId not ready")...
doc_19579
So, would I be able to store the complex structure or Nested Array having nested Dictionary into the plist file? Below is the code snippet which I am using to store it locally.Using this code, .plist gets created successfully inside the Documents Directory of the application, accessible in Simulator. -(NSString *)Retu...
doc_19580
/** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ @RunWith(AndroidJUnit4.class) @LargeTest public class ApplicationTest { @Rule public ActivityTestRule mActivityRule = new ActivityTestRule(VMBaseActivity.class, false /* Initial touch mode */...
doc_19581
def change(z): words = z.split() for i in words[:]: if 'because' in i: words.replace(i, 'as') print(words) change(input("Line: ")) And the error: Traceback (most recent call last): File "C:/Users/Jarrod/Desktop/py/NCSS2016Adv/kindleNook.py", line 9, in <module> change(input("Line: ...
doc_19582
That little pencil/paper icon on each todo is a button link that get's the ID on click. Here's my Edit page with the data. The warning: Here's my Todos page i'm using a custom hook to fetch the data from express server route: import React from 'react'; import useGetAPI from '../custom_hooks/useGetAPI'; import Todo f...
doc_19583
class Post < ActiveRecord::Base belongs_to :city end class City < ActiveRecord::Base belongs_to :state end Now i want to find all the posts along with the their cities and the states to which the belong to. I wrote the following query to fetch the posts with their cities but out of ideas on how to fetch ...
doc_19584
I have my eye on this http://www.amazon.co.uk/HP-G1610T-ProLiant-Micro-Server/dp/B00DDIC1DA Now if I bought 2 WD red 1TB drives and configured them as raid1 could I use the above to install windows 7 on with github and Jenkins to achieve everything I wish to do? We have very little funds and the above is our financial ...
doc_19585
MainActivity public class MainActivity extends Activity { private int colorResId; private int fontSize; private OnClickListener buttonListener = getButtonListener(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ...
doc_19586
This is what I came up with, it is run after text is appended: var divblock = document.getElementById('div'); //the block content is appended to var divheight = divblock.offsetHeight;//get the height of the divblock //now check if the scroller is near the bottom and if it is then scroll the div to the abslute bottom i...
doc_19587
Here is my code import java.util.Scanner; public class prog1 { public static void main (String [] args){ Scanner input = new Scanner(System.in); int a = input.nextInt(); String arr1[] = new String [a]; for (int i=0;i<a;i++) { arr1[i] = input.nextLine(); } for (int i=0;i...
doc_19588
It requires a gpg key so I downloaded Gpg4Win and generated the public gpg key I needed using Kleopatra and linked that to my GitLab. All the normal steps needed. I configured git to my key as follows: git config --global user.signingkey 0B613778C578 And then tried to commit, signing with the new key: git commit -S -m...
doc_19589
$sql = "SELECT * FROM dash_g_adwords_csv"; $stmt = sqlsrv_query($conn, $sql); if( $stmt === false) { die( print_r( sqlsrv_errors(), true) ); } //while($row = sqlsrv_fetch_rows($stmt)){ while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_BOTH) ) { //print_r($row); $impressions_total = array('impressions_tota...
doc_19590
<%= link_to image_tag('disk.png', :alt => 'Save'), my_object_create_path(:id => my_object.id), :class => 'link-save', title: 'Save', :remote => true %> and then I have this coffee script for dealing with the call after the controller returns … $('a.link-save').on 'ajax:success', -> $(this).closest('td').text('Sa...
doc_19591
The notification is sent, my colleague can catch the notification event in iOS, the notification sound is triggered(cheering.caf), but the banner never shows. Android has no issues - everything works as expected (and the banner does show up). I'm wrapping all that notification functionality in a service, which I'm inj...
doc_19592
@people = Person.where(conditions).includes(eager_fetch).all I'm now trying to make the controller cache-aware. Since the eager fetch is rather expensive, I want to avoid loading as much data as possible. If it's relevant, the output is XML from an RPC style endpoint. I've arrived at: @people = Person.where(conditions...
doc_19593
doc_19594
http://fuelbrandinc.com/#/about I was wondering if anyone had any idea how to replicate this functionality? Thanks, A: They're using jQuery JavaScript library and the jQuery Color animations plugin. You can see this by inspecting the compiled.js file from source line 202 onwards via your favourite DOM inspection too...
doc_19595
In general, what is the convention for custom, non-controller, non-model stuff? If I make a custom logger like this: #custom_logger.rb class CustomLogger < Logger def format_message(severity, timestamp, progname, msg) "#{msg}\n" end end logfile = File.open(RAILS_ROOT + '/log/custom.log', 'a') #create log file...
doc_19596
A: I have done the exact opposite of you, I converted a lot of Wicket Portlet to a single Wicket Application. What portlet container are you going to use ? What Wicket version are you using ? I think Portlet support has been dropped in 1.5, so be warned that you will be stuck with 1.4 unless you provide your patches. ...
doc_19597
Here is what it looks like at the moment: How can I make it so the sides are hard up against the edge of the screen? Here is my code for the styling: UIColor* black = RGBCOLOR(158, 163, 172); UIColor* blue = RGBCOLOR(191, 197, 208); TTStyle *style = [TTShadowStyle styleWithColor:RGBACOLOR(0,0,0,0.5) blur:5 offset:CGS...
doc_19598
To report back the results of the finished jobs, I supply the proper Activity's Handler wrapped in a Messenger object with the Intent that describes the job. The Service sends back some message for the calling Activity through this. This works just fine. But the supplied Handlers seems to remain in memory, even after t...
doc_19599
According to official Octopus documentation I only able to export Projects and Releases. Is there any way to export particular variables from particular project? A: Currently you can not do this using Octo.exe. However you can still use Octopus REST API for your purpose. First you have to create a API Key, which is r...