question_id
int64
37.6M
73.2M
input_text
stringlengths
88
52.4k
output_text
stringlengths
37
35.6k
title
stringlengths
15
150
tags
stringlengths
1
107
q_score
int64
-19
397
view_count
int64
3
879k
answer_count
int64
1
21
accepted_answer_id
int64
37.6M
73.8M
answer_id
int64
37.6M
73.8M
a_score
int64
-5
1.29k
is_accepted
bool
1 class
creation_date
stringlengths
20
24
input_text_instruct
stringlengths
251
52.6k
53,472,833
How do I repair the "error: cannot find symbol method findViewById(int)" error?<p>I created an <code>ImageView</code> with the hopes of it taking me from one activity to the next when clicked on. </p> <p>I entered the following code but the compiler is saying:"error: cannot find symbol method findViewById(int)". If y...
<pre><code> @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_ai, container, false); imageView=(ImageView)view.findViewById(R.id.savage); imageView.setOnClickLi...
How do I repair the "error: cannot find symbol method findViewById(int)" error?
java|android|android-studio|android-layout
-1
288
1
53,472,891
53,472,891
0
true
2018-11-25T22:55:31.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I repair the "error: cannot find symbol method findViewById(int)" error?<p>I created an <code>ImageView</code> with the hopes of it taking me from one...
53,470,284
GridSearchCV fitting<p>I'm having problems to fit my classifier using binarized labels. </p> <pre><code>clf_linear = GridSearchCV(SVC(kernel='linear', class_weight='balanced'), param_grid, cv=5) clf_linear = clf_linear.fit(X_train_pca, y_train) </code></pre> <p>y_train was binarized by the foll...
<p>Doesn't matter its 682,3 or 545,3. Why the target has 3 columns? Your y (targets) should be 1-d array for SVC. You dont need to do the <code>label_binarize</code> operation. Keep <code>y_train</code> as it is.</p> <p>Doing this:</p> <pre><code>y_train = label_binarize(y_train, classes=[1, 2, 3]) </code></pre> <p>...
GridSearchCV fitting
python|scikit-learn|gridsearchcv
-1
284
1
53,482,944
53,482,944
0
true
2018-11-25T17:56:38.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: GridSearchCV fitting<p>I'm having problems to fit my classifier using binarized labels. </p> <pre><code>clf_linear = GridSearchCV(SVC(kernel='linear', class...
53,400,929
SetWindowPos not doing anything despite providing all parameters<p>I have imported SetWindowPos and GetForegroundWindow:</p> <pre><code>[DllImport("user32.dll", CharSet = CharSet.Ansi)] private static extern IntPtr GetForegroundWindow(); [DllImport("user32.dll", CharSet = CharSet.Ansi)] static extern bool SetWindowP...
<p>Most of the <code>User</code> APIs won't work for a UWP application, for various reasons. They are also not supported by the Store, so you would fail ingestion if you wanted to submit your app.</p> <p>UWP has limited windowing support at the moment, although we're always looking to improve things (like enabling XAM...
SetWindowPos not doing anything despite providing all parameters
uwp|dllimport|setwindowpos
-1
290
1
53,405,239
53,405,239
1
true
2018-11-20T20:20:24.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SetWindowPos not doing anything despite providing all parameters<p>I have imported SetWindowPos and GetForegroundWindow:</p> <pre><code>[DllImport("user32.d...
53,416,027
How to check if object is in json?<p>I am using google maps autocomplete and I am retrieving each object in a field like this:</p> <pre><code>$("#usp-custom-21").val(arrAddress.filter(x =&gt; x.types.includes("route"))[0].long_name); $("#usp-custom-22").val(arrAddress.filter(x =&gt; x.types.includes("street_number"))[...
<p><strong>Try this:</strong></p> <pre><code>if(arrAddress.filter(x =&gt; x.types.includes("route"))[0] != undefined) { $("#usp-custom-21").val(arrAddress.filter(x =&gt; x.types.includes("route"))[0].long_name); } if(arrAddress.filter(x =&gt; x.types.includes("street_number"))[0] != undefined){ $("#usp-custom-22...
How to check if object is in json?
javascript|jquery|google-maps|autocomplete
-1
49
2
53,416,103
53,416,103
2
true
2018-11-21T16:03:22.913Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to check if object is in json?<p>I am using google maps autocomplete and I am retrieving each object in a field like this:</p> <pre><code>$("#usp-custom...
53,452,367
Why isn't "close" a reserved keyword?<p>close() seems to be a reserved keyword for channels. Seems a bit strong to make it a built-in, when it could just be a method on a channel, no? Like when creating and closing a file?</p> <p>I guess the same could be asked for len()?</p>
<p><code>close</code> is a function that takes a channel as a parameter. Just like <code>new</code> and <code>make</code>, they are functions, and you can name local variables or functions like them.</p> <p>Keywords are language constructs like <code>struct</code>, <code>type</code>, <code>if</code>, <code>else</code>...
Why isn't "close" a reserved keyword?
go|standards
-1
73
1
53,452,444
53,452,444
3
true
2018-11-23T20:02:09.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why isn't "close" a reserved keyword?<p>close() seems to be a reserved keyword for channels. Seems a bit strong to make it a built-in, when it could just be ...
53,388,241
Can't pass null arguement for Adapterclass<p>Good day everyone! I have a problem the app crash and it has an error </p> <pre><code>java.lang.NullPointerException: Can't pass null for argument 'pathString' in child() at com.google.firebase.database.DatabaseReference.child(Unknown Source:6) at com.examp...
<p>Try this way.. If getting data code is working then pl change this things.</p> <p>get data from firebase take into activity or fragment.</p> <pre><code> private List&lt;UsersHappyPaws&gt; pawsList=new ArrayList&lt;&gt;(); private void getUserInfo(final ImageView imageView, final TextView username, String userid...
Can't pass null arguement for Adapterclass
android|firebase
-1
40
1
53,388,340
53,388,340
0
true
2018-11-20T07:35:56.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't pass null arguement for Adapterclass<p>Good day everyone! I have a problem the app crash and it has an error </p> <pre><code>java.lang.NullPointerExc...
53,431,500
Best approach to use require in nodeJs<p>I need to know the difference between these two approaches developer uses in nodeJS development to include a module.</p> <blockquote> <ol> <li>First approach (passing module in app by importing it once and using it by passing as parameter or binding it to app as property )<...
<p>The difference in terms of size and performance will be negligible.</p> <p>The second approach is simpler and I would consider it as the best one unless you need to inject different modules into the same controller type, e.g. a generic CRUD controller parameterized by model type </p>
Best approach to use require in nodeJs
javascript|node.js|express|dependency-injection|node-modules
-1
63
1
53,431,944
53,431,944
0
true
2018-11-22T12:53:46.527Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Best approach to use require in nodeJs<p>I need to know the difference between these two approaches developer uses in nodeJS development to include a module....
53,450,274
microPython attributeError in __init__<p><strong>EDIT: Thanks to the age old tradition of unplugging and plugging everything back in I got it to work; I reflashed the WiPy module and reinstalled the Pymakr plugin.</strong></p> <p>I am currently in the process of writing a PID-controller for micropython (we have to mak...
<p>You're receiving this error because you are attempting to assign an attribute which hasn't been declared and I assume you are using python 2's classic class style. Add a definition for <code>last_calculate_time</code> in your PID class such as <code>last_calculate_time = None</code> and then it should work as expe...
microPython attributeError in __init__
python|pid|attributeerror|micropython
-1
266
1
53,450,397
53,450,397
0
true
2018-11-23T16:38:41.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: microPython attributeError in __init__<p><strong>EDIT: Thanks to the age old tradition of unplugging and plugging everything back in I got it to work; I refl...
53,481,086
MySQL/Python connector not being able to search<pre><code>import mysql.connector config = { 'user': 'root', 'password': '*******', 'host': '127.0.0.1', 'database': 'mydb', 'raise_on_warnings': True } cnx = mysql.connector.connect(**config) cursor = cnx.cursor() find_user = ("SELECT * FROM HM_Logi...
<p>As the error statement says. You have an SQL error. You are trying to input a variable as a positional parameter but you've used a dictionary on a variables 'place'.</p> <p>Instead you should use %s for variables and tuples with variables and then do the following:</p> <pre><code>find_user = "SELECT * FROM HM_Logi...
MySQL/Python connector not being able to search
python|mysql|database
-1
42
2
53,481,169
53,481,169
0
true
2018-11-26T12:25:21.967Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySQL/Python connector not being able to search<pre><code>import mysql.connector config = { 'user': 'root', 'password': '*******', 'host': '127....
53,387,322
PHP - Regex to get integer value that formatted separated by character<p>If I have a string like this :</p> <pre><code>TAX ID NO. 01.000.589.0.055.000 </code></pre> <p>My goal is, I want to get the integer digit after <code>tax</code> phrase, which is <code>010005890055000</code></p> <p>So far I write like this</p>...
<p>It looks like your only consistent keyword is <code>TAX</code>, so you can grab digits (with dots and dashes) after it with the regex <code>~TAX.*?\.? *?([\d\.-]+)~i</code>, then strip non-digits (if desired). Here's an example test:</p> <pre><code>$data = "JL. CACING RT 007/008 CAKUNG, JAKARTA TIMUR 13910 INDONESI...
PHP - Regex to get integer value that formatted separated by character
php|regex
-1
64
4
53,387,486
53,387,486
1
true
2018-11-20T06:21:00.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PHP - Regex to get integer value that formatted separated by character<p>If I have a string like this :</p> <pre><code>TAX ID NO. 01.000.589.0.055.000 </co...
53,436,243
Google sheets - query cell value contains value in comma separated cell<p>I'm trying to query a group of say fruits so I'm grouped these into a comma-separated cell and I want to query that cell but I don't get any results. When I just one value in that cell says Apple it wants a result. I thought using contains would ...
<p>Try changing this part</p> <pre><code>C contains '"&amp;G7&amp;"' </code></pre> <p>to</p> <pre><code>C matches '"&amp;SUBSTITUTE(G7, ",", "|")&amp;"' </code></pre> <p>and see if that helps?</p> <p>EDIT: if you have brackets in the range and in G7 try</p> <pre><code> =ArrayFormula(IFERROR(QUERY({A:C, regexrepla...
Google sheets - query cell value contains value in comma separated cell
google-sheets|google-sheets-query
-1
563
1
53,443,002
53,443,002
1
true
2018-11-22T18:05:28.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Google sheets - query cell value contains value in comma separated cell<p>I'm trying to query a group of say fruits so I'm grouped these into a comma-separat...
44,043,528
How to update a folder in an Azure AppService upon Checkin into a VSO TFS repository<p>I have a website hosted as an azure web app. It's an asp.net website that's in a vs solution. On folder of that website is my products documentation, all of it as static resources (html and images). These static resources are located...
<p>Here is what i ended up doing:</p> <ul> <li>Created a ServiceHook in VSO that is wired to "Web Hooks". The hook is called upon each Check-In and filtered based on the directory i want. (All of this can be done using the existing functionality in VSO.)</li> <li>The hook calls an Azure "functionapp" (which is easy to...
How to update a folder in an Azure AppService upon Checkin into a VSO TFS repository
azure|web-applications|deployment|build|azure-devops
-1
62
2
48,339,493
48,339,493
-1
true
2017-05-18T09:15:48.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to update a folder in an Azure AppService upon Checkin into a VSO TFS repository<p>I have a website hosted as an azure web app. It's an asp.net website t...
44,272,777
Why this error happened when migrating "1215 Cannot add foreign key constraint"<p>when try to make foreign key when using laravel migration</p> <p>like this example:</p> <p>user table</p> <pre><code> public function up() { Schema::create('flights', function (Blueprint $table) { $table-&gt;increments('...
<p>this error happened because the foreign key (type) in [user table] is deferent from primary key (type) in [colors table]</p> <p>To solve this problem should change the primary key in [colors table] </p> <p><code>$table-&gt;tinyIncrements('id');</code></p> <hr> <p>When you use primary key <code>$table-&gt;Incre...
Why this error happened when migrating "1215 Cannot add foreign key constraint"
mysql|laravel|migration
-1
44
2
44,602,371
44,602,371
0
true
2017-05-30T22:14:38.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why this error happened when migrating "1215 Cannot add foreign key constraint"<p>when try to make foreign key when using laravel migration</p> <p>like this...
44,329,871
Javascript code don't disable elements on mobile like on desktop<p>I have the following code:</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; &lt;link rel="stylesheet" href="css/w3.css"&gt;...
<p>I have found the answer. I modify the code, i use PHP. So now works fine! No help found here</p>
Javascript code don't disable elements on mobile like on desktop
javascript|mobile
-1
31
1
44,733,941
44,733,941
0
true
2017-06-02T13:12:56.280Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Javascript code don't disable elements on mobile like on desktop<p>I have the following code:</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head...
44,237,746
SSO Bad Data Error<p>I'm running BizTalk 2013r2 CU5 in Win2012r2</p> <p>I noticed a file wasn't being collected from a receive location. The relevant host instance was running, so I checked the event log and found this:</p> <blockquote> <p>SSO AUDIT Function: GetConfigInfo ({E182FB76-16B4-47D7-8178-4C66C9E3BA9D}...
<p>The MSI for CU6 has now been fixed</p>
SSO Bad Data Error
single-sign-on|biztalk|biztalk-2013r2
-1
802
2
44,727,031
44,727,031
1
true
2017-05-29T08:20:36.063Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SSO Bad Data Error<p>I'm running BizTalk 2013r2 CU5 in Win2012r2</p> <p>I noticed a file wasn't being collected from a receive location. The relevant host i...
44,216,331
Image thumbnails not setting correctly<p>I am trying to make a file explorer. I achieved it all except that my image thumbnails were loading too slow. So I read that I must move to asynctask and then in post execute update the ui. Before running asynctask I provide a default thumbnail to all my files. In asynctask I ta...
<p>I have finally found answer to this. </p> <p>Here is the ListAdapter Class:</p> <pre><code>class ListAdapter extends ArrayAdapter&lt;Modal&gt; { private final Context context; private int img; private List&lt;Modal&gt; myList; private File filenames[]; private List&lt;Integer&gt; selectedItem...
Image thumbnails not setting correctly
android|image|listview|android-asynctask
-1
60
1
44,528,936
44,528,936
0
true
2017-05-27T11:31:28.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Image thumbnails not setting correctly<p>I am trying to make a file explorer. I achieved it all except that my image thumbnails were loading too slow. So I r...
37,608,598
Export data from string<p>I have following string:</p> <pre><code>{"id":3661917,"mId":2408699,"isR":false,"opps": [{"id":37794066,"optN":1,"wn":false,"rt":"1.24","fau":null},{"id":37794067,"optN":2,"wn":false,"rt":"1.01","fau":null},{"id":37794068,"optN":3,"wn":false,"rt":"5.40","fau":null},{"id":37794069,"optN":4,"wn...
<p>Its <code>json</code> string, you can decode json string by <code>json_decode</code>, so use like </p> <pre><code>$json = '{"id":3661917,"mId":2408699,"isR":false,"opps": [{"id":37794066,"optN":1,"wn":false,"rt":"1.24","fau":null},{"id":37794067,"optN":2,"wn":false,"rt":"1.01","fau":null},{"id":37794068,"optN":3,"w...
Export data from string
php|string|export|preg-replace|extract
-1
38
3
37,608,695
37,608,695
0
true
2016-06-03T07:35:28.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Export data from string<p>I have following string:</p> <pre><code>{"id":3661917,"mId":2408699,"isR":false,"opps": [{"id":37794066,"optN":1,"wn":false,"rt":"...
37,612,643
database - MS Access<p>I have three tables Inventory, Book and DVD. Now I have to make Book and DVD as a subdatasheet to Inven<a href="https://i.stack.imgur.com/hsHpc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hsHpc.jpg" alt="enter image description here"></a>tory Table. Is it possible to do via...
<p>Assuming the inventID columns in the Book/DVD tables equal the inventoryID in the inventory table then yes'ish.</p> <p>If you want actual subdatasheets you wouldn't need a query, just open the inventory table and insert the subdatasheet. The problem is you can only have one subdatasheet so you won't be able to see...
database - MS Access
ms-access
-1
38
1
37,613,903
37,613,903
0
true
2016-06-03T11:01:10.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: database - MS Access<p>I have three tables Inventory, Book and DVD. Now I have to make Book and DVD as a subdatasheet to Inven<a href="https://i.stack.imgur....
37,627,869
How to make a many to many relationship in core data in the .xcdatamodel<p>Hi guys really need help with the example below for core data - objective-C IOS</p> <p>Entity1: Person Attribute: Name</p> <p>Entity2: Languages Attribute: LanguageName</p> <p>Example would be Name: John can speak LanguageName: English, Korea...
<p>To create a many-to-many relationship, you create two to-many relationships and make them the inverse of each other.</p> <p>In your case, you can</p> <ol> <li>Add a <code>speaks</code> relationship to <code>Person</code>, and <ul> <li>Set <code>destination</code> to <code>Language</code></li> <li>Set <code>type</...
How to make a many to many relationship in core data in the .xcdatamodel
ios|core-data|many-to-many|nsentitydescription
-1
59
1
37,628,391
37,628,391
0
true
2016-06-04T07:58:35.893Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make a many to many relationship in core data in the .xcdatamodel<p>Hi guys really need help with the example below for core data - objective-C IOS</p...
37,652,742
How to modify the Verilog code to avoid multiple drivers?<p>Quartus 11.0 says:</p> <blockquote> <p>Error (10028): Can't resolve multiple constant drivers for net "n[9]"</p> </blockquote> <p>for the following code:</p> <pre><code>module make_counter(h, clk, P); input wire h; input wire clk; output wire P; reg r=1...
<p>Assuming <code>h</code> is synchronous to <code>clk</code>, simply sample <code>h</code> and figure out when the sample value is low and the current value is high (e.g. <code>h</code> rose). This way <code>n</code> is assigned within one always block (which is required for synthesis) and everything is is the same cl...
How to modify the Verilog code to avoid multiple drivers?
verilog|fpga
-1
1,554
4
37,665,812
37,665,812
0
true
2016-06-06T08:26:51.890Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to modify the Verilog code to avoid multiple drivers?<p>Quartus 11.0 says:</p> <blockquote> <p>Error (10028): Can't resolve multiple constant drivers ...
37,669,602
python logger, disable log for some modules<p>Is it possible to disable logs for some modules in my project? I have this log_config.ini:</p> <pre><code>[loggers] keys=root [handlers] keys=stream_handler [formatters] keys=formatter [logger_root] level=DEBUG handlers=stream_handler [handler_stream_handler] class=Str...
<pre><code>[logger_modulename] handlers=null_handler propagate=0 qualname=modulename level=NOTSET [handler_null_handler] class=NullHandler level=NOTSET </code></pre> <p>Do not forget to add <code>null_handler</code> and <code>modulename</code> under <code>handler</code> and <code>loggers</code> sections.</p>
python logger, disable log for some modules
python|logging
-1
61
1
37,669,765
37,669,765
0
true
2016-06-07T02:31:36.617Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: python logger, disable log for some modules<p>Is it possible to disable logs for some modules in my project? I have this log_config.ini:</p> <pre><code>[log...
37,675,883
onPostExecute is executing before completion of doInBackground<p>I am trying to execute some server side functionality in doInBackground() method and by depending on the result of server I have to execute few steps, I 've written them in onPostExecute() but for me onPostExecute() is executing before completion of doInB...
<p>This is happening because you're using Volley in <code>doInBackground</code>. Volley's Requests are themselves asynchronous and do not block the UI. So, once the code in <code>doInBackground</code> is run, it does not wait for the request to complete. </p> <p>What you should do instead is shun this <code>AsyncTask<...
onPostExecute is executing before completion of doInBackground
android|performance|android-fragments|android-studio
-1
262
1
37,675,984
37,675,984
0
true
2016-06-07T09:45:54.233Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: onPostExecute is executing before completion of doInBackground<p>I am trying to execute some server side functionality in doInBackground() method and by depe...
37,680,598
How to Restirct User to enter Only Spce,dot,apostrophe's and alphbets only using javascript<p>I have a searching page in which i want to enter only alphabets,space,dot</p> <pre><code> @Html.TextBoxFor(x =&gt; x.UserName, new { @placeholder = "Name", @id = "UserName", @class = "form-control" }) </code></pre>
<pre><code>$(function() { $('#yourtextbox-Id').on('keypress', function(e) { if (e.which == 32) return false; }); }); </code></pre> <p>same as u cal check charcode for dot comma etc</p>
How to Restirct User to enter Only Spce,dot,apostrophe's and alphbets only using javascript
javascript|asp.net-mvc-4
-1
25
1
37,680,630
37,680,630
0
true
2016-06-07T13:19:30.907Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Restirct User to enter Only Spce,dot,apostrophe's and alphbets only using javascript<p>I have a searching page in which i want to enter only alphabets...
37,669,267
VPN Access in Manual Mode is not working in SL<p>I've set VPN Access in manual and granted an access for a subnet. But the unselected subnet(Not granted) is still accessible using VPN Connection. Is this known issue in Softlayer ? I tried this in "control.softlayer.com"</p> <p><a href="https://i.stack.imgur.com/8iQZI....
<p>Probably, you are doing the changes after you have logged in <a href="http://www.softlayer.com/VPN-Access" rel="nofollow">VPN Access</a>, that's the reason why the restrictions were not taking effect. </p> <p>You should logging again after you have been done the changes, in order that they can take effect.</p>
VPN Access in Manual Mode is not working in SL
ibm-cloud-infrastructure
-1
68
1
37,683,522
37,683,522
0
true
2016-06-07T01:45:03.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VPN Access in Manual Mode is not working in SL<p>I've set VPN Access in manual and granted an access for a subnet. But the unselected subnet(Not granted) is ...
37,684,014
how to use unique height and width in html and display any image perfectly on webpage<p>I am working on a Web application project. I successfully created a web app for a specific client with their own logo. Now i need to use the same code and display another logo (having different height and width compared to previous ...
<p>Try this css:</p> <pre><code>img { display: block; max-width:250px; max-height:75px; width: auto; height: auto; } </code></pre>
how to use unique height and width in html and display any image perfectly on webpage
html
-1
30
1
37,684,397
37,684,397
0
true
2016-06-07T15:53:31.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to use unique height and width in html and display any image perfectly on webpage<p>I am working on a Web application project. I successfully created a w...
37,682,553
Populate UITableView with calendar days<p>I have this probably simple for most of you question. I want to populate my uitableview with dates starting from today. What is the best way to make it. I am kind of new to iOS, and I don't want to use datetimepicker. Please, give me any idea where to start.</p> <p><code>UITab...
<p>I figured out how to make this:</p> <p>I created array of dates and populated UITableViewCells with that array. I used dateByAddingUnit to access yesterday's date, date of 2 days ago, and so on:</p> <pre><code> formatter.dateFormat = "EEEE, MMMM dd, yyyy" let today = formatter.stringFromDate(nextDate) d...
Populate UITableView with calendar days
ios|swift|uitableview|calendar
-1
309
1
37,686,730
37,686,730
0
true
2016-06-07T14:47:41.727Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Populate UITableView with calendar days<p>I have this probably simple for most of you question. I want to populate my uitableview with dates starting from to...
37,713,735
How to check if a button is clicked after 2 secs?<p>I have an android app which sends likes to the server.</p> <p>What i want to do is not to send a like to server immediately but send after 2 secs if user still likes the post.</p> <p>My like void;</p> <pre><code>public void rotationAnimation(ImageView button, int s...
<p>Try this approach:</p> <pre><code>boolean isReadyToPost= false; boolean liked = false;//control like click (witch) public void onLikePressed() { if (liked &amp;&amp; isReadyToPost) { sendLikeToServer();//send to server after 2 secs return; } this.isReadyToPost= false; Toast.makeText(this, "waitin...
How to check if a button is clicked after 2 secs?
android|server|delay|android-view
-1
55
3
37,713,939
37,713,939
0
true
2016-06-08T22:04:03.410Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to check if a button is clicked after 2 secs?<p>I have an android app which sends likes to the server.</p> <p>What i want to do is not to send a like to...
37,722,798
Confused how to revert all files as per master branch<p>I created a new branch (<code>git branch working</code>) and then switched to that branch (<code>git checkout working</code>). I then added some new files/folders and edited some existing files.</p> <p>Now I want to get back to how things were before creating the...
<blockquote> <p>What do I need to do at this point?</p> </blockquote> <p>You need to checkout working branch, add your changes there and commit them. Then they are 'registered' to that branch.</p> <p>After that you can checkout master and it will be in the original state without the changes.</p> <p>It does not wor...
Confused how to revert all files as per master branch
git
-1
37
2
37,722,851
37,722,851
0
true
2016-06-09T10:02:30.913Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Confused how to revert all files as per master branch<p>I created a new branch (<code>git branch working</code>) and then switched to that branch (<code>git ...
37,731,146
how can i create a modal by remote and initial textbox in the same function using jquery?<h2>script.js</h2> <pre><code>function change_val(){ $("#remoteModal2").modal({ remote:"modals/edit_text_value.html", show:true }); $("#my_textbox").val("this is a text") } </code></pre> <h2>index.h...
<p><a href="http://getbootstrap.com/javascript/#modals-events" rel="nofollow"><code>shown.bs.modal</code> OR <code>show.bs.modal</code></a></p> <p><strong>When we use this code :</strong></p> <pre><code>.on('shown.bs.modal') </code></pre> <p>.</p> <pre><code>$('#remoteModal2').on('shown.bs.modal', function (e) { ...
how can i create a modal by remote and initial textbox in the same function using jquery?
javascript|jquery|html|twitter-bootstrap|bootstrap-modal
-1
39
1
37,733,482
37,733,482
0
true
2016-06-09T16:07:11.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can i create a modal by remote and initial textbox in the same function using jquery?<h2>script.js</h2> <pre><code>function change_val(){ $("#remote...
37,738,426
Wordpress: Show Plugins in front page post summaries?<p>I am using a slider plugin and I am trying to get the plugin to appear on the post on the front page. unfortunately, it seems to be blocking it in some way? if I post text after the slider the text appears but not the slider before it. It seems not to be exclusive...
<p>The excerpt feature of wordpress does not support images or anything other than text. you must edit the themes index.php or content.php page to show "the_content" rather than "the_excerpt".</p>
Wordpress: Show Plugins in front page post summaries?
wordpress
-1
21
1
37,738,619
37,738,619
0
true
2016-06-10T00:56:10.683Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Wordpress: Show Plugins in front page post summaries?<p>I am using a slider plugin and I am trying to get the plugin to appear on the post on the front page....
37,740,628
I want to create ,multidimensional array in swift with multiple inner arrays<p>I want to create ,<code>multidimensional array</code> in <strong>swift</strong> with <code>multiple inner arrays</code>. I want the structure look like this but getting <code>error</code> while creating this. Please guide me how can I create...
<p>Declare your multidimensional array like this: </p> <pre><code>var data2 = [ [ LocationPickerData LocationPickerData2, LocationPickerData3, ], [ Title Title2, Title3, ...
I want to create ,multidimensional array in swift with multiple inner arrays
arrays|swift
-1
42
1
37,740,814
37,740,814
0
true
2016-06-10T05:37:11.627Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I want to create ,multidimensional array in swift with multiple inner arrays<p>I want to create ,<code>multidimensional array</code> in <strong>swift</strong...
37,743,459
How to do Bootstrap navigation dropdown?<p>I'm using Bootstrap css with my Html.<br> Here's my code:</p> <pre><code>&lt;li class="dropdown"&gt; &lt;a class="dropdown-toggle" data-toggle="dropdown" href="#"&gt;Menu &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt; &lt;ul class="dropdown-menu...
<p>Please make sure you have added 3 files</p> <ol> <li>jquery library file before bootstrap.js</li> <li>bootstrap.js and <ol start="3"> <li>bootstrap.css in your head tag</li> </ol></li> </ol>
How to do Bootstrap navigation dropdown?
css|twitter-bootstrap
-1
49
3
37,743,765
37,743,765
0
true
2016-06-10T08:27:30.987Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to do Bootstrap navigation dropdown?<p>I'm using Bootstrap css with my Html.<br> Here's my code:</p> <pre><code>&lt;li class="dropdown"&gt; &lt;...
37,746,939
ArrayList won't load when app is restarted<p>I'm quite new to android, and I am having a problem with save and load data.</p> <p>I am trying to make an app with a save and a load button, these buttons should save 2 ArrayLists with x- and y-coordinates.</p> <p>I've tried doing it with SharedPreferences and it works un...
<p>Possible error; you are re-initializing gson and sharedPrefs which then takes a new state with the same key value. you should do this in onCreate. </p> <pre><code> @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); sharedPrefs = getSharedPreferences...
ArrayList won't load when app is restarted
android|arraylist|save|load|sharedpreferences
-1
55
1
37,747,902
37,747,902
0
true
2016-06-10T11:19:46.907Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ArrayList won't load when app is restarted<p>I'm quite new to android, and I am having a problem with save and load data.</p> <p>I am trying to make an app ...
37,744,452
Get rid of "The requested resource [path] does not match convention mapped to '/Content'"<p>I'm working with a self-hosted Nancy App, using it as an Api.</p> <p>I published it on my server and now i'm working on a web-apps supposed to use this API.</p> <p>The problem occurs when I'm requesting <code>GET http://myApi:...
<p>So it seems that adding one line in the request's header works for me. Here is the line I added : <code>Accept : "*/*;q=1"</code></p> <p>It's part of the header that postman send on every request.</p> <p>You can find an explanation of this here : </p> <p><a href="https://stackoverflow.com/questions/10496570/what...
Get rid of "The requested resource [path] does not match convention mapped to '/Content'"
c#|node.js|nancy|self-hosting
-1
257
1
37,749,788
37,749,788
0
true
2016-06-10T09:17:09.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get rid of "The requested resource [path] does not match convention mapped to '/Content'"<p>I'm working with a self-hosted Nancy App, using it as an Api.</p>...
37,751,927
wait until function call finishes in jQuery<pre><code>load_document(mobjson.ErrMsg, 1); </code></pre> <p>this function open create an pdf and open in new window and delete it on server everything is fine if pdf created is small but when it takes a little more time only in safari browser its execute to error:function({...
<p>Look into jQuery trigger() and on(). You can fire off a trigger event synchronously after the load_document function call and have the "next" function go when the event is triggered.</p> <pre><code>load_document(mobjson.ErrMsg, 1); $(document).trigger('documentLoaded'); </code></pre> <p>Then for the other action y...
wait until function call finishes in jQuery
jquery|ajax
-1
51
1
37,752,023
37,752,023
0
true
2016-06-10T15:27:08.617Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: wait until function call finishes in jQuery<pre><code>load_document(mobjson.ErrMsg, 1); </code></pre> <p>this function open create an pdf and open in new wi...
37,753,873
what should be choose by java developer bluemix vs softlayer<p>Hi am java developer with decade of experience with java/j2ee development, I got a chance from my organisation to do course and certification in bluemix or softlayer , and am confused what to choose. Any suggestions guys</p>
<p>This is really up to what you want to do and what you are comfortable with. SoftLayer is an Infrastructure as a Service Provider. This means that you as the customer are responsible for the Operating System updates and configuration, Middleware, and applications and services that you want to use. </p> <p>If you wou...
what should be choose by java developer bluemix vs softlayer
java|cloud|ibm-cloud|ibm-cloud-infrastructure
-1
73
1
37,754,278
37,754,278
0
true
2016-06-10T17:17:24.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: what should be choose by java developer bluemix vs softlayer<p>Hi am java developer with decade of experience with java/j2ee development, I got a chance from...
37,748,664
Update with subselect and where<p>The following code works fine in T-SQL, but not in JET SQL, in Access:</p> <pre><code>UPDATE Superliste_Temp SET [Plan-TGrp-Spanne_Stfl1] = (SELECT [Plan-TGrp-Spanne_Stfl1] FROM Superliste_Temp INNER JOIN dbo_Common_preferences ON Superliste_Temp.Teil = dbo_Common_preference...
<p>I have a hard time looking at that SQL to figure out what it's trying to do, but I know that Jet SQL needs the SET statement after the JOINS, so my best guess is:</p> <pre><code>UPDATE Superliste_Temp, Superliste_Temp AS ST1 INNER JOIN dbo_Common_preferences AS pref1 ON ST1.Teil = pref1.AktivesTeil SET S...
Update with subselect and where
ms-access-2010|jet
-1
22
1
37,758,821
37,758,821
0
true
2016-06-10T12:45:35.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Update with subselect and where<p>The following code works fine in T-SQL, but not in JET SQL, in Access:</p> <pre><code>UPDATE Superliste_Temp SET [Plan-TG...
37,775,193
(Java) how to make a system where you have ints trees, wood and cash, and you have trees/s , wood/s and cash/s<p>This is probably a very stupid question, but I am stuck with this problem for already several days</p> <p>So you have an int trees, and int wood and cash. Trees will be converted into wood and wood will be ...
<p>Did you try to use <code>if-statement</code>?</p> <pre><code>if (Trees &lt; MAX_TREES) { Trees += treespersecond; } if (Wood &lt; MAX_WOOD &amp;&amp; Trees &gt; 0) { Trees -= woodpersecond; Wood += woodpersecond; } if (Cash &lt; MAX_CASH &amp;&amp; Wood &gt; 0) { Wood -= cashpersecond; Cash += c...
(Java) how to make a system where you have ints trees, wood and cash, and you have trees/s , wood/s and cash/s
java|android|math
-1
32
2
37,775,313
37,775,313
0
true
2016-06-12T14:11:14.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: (Java) how to make a system where you have ints trees, wood and cash, and you have trees/s , wood/s and cash/s<p>This is probably a very stupid question, but...
37,780,134
How to store and read text on android project?<p>I'm pharmD student and newly in android development. I create an app to calculate the doses for patient upon specific calculation. now PharmD will input the data then calc.. etc. I need to make the user can save the patient case in the internal sd then in any time he nee...
<p>To quickly persist those information you could use android's <a href="https://developer.android.com/training/basics/data-storage/shared-preferences.html" rel="nofollow">sharedpreferences</a> to save key-value pairs of information.</p> <p>But in this case I would really recommend that you understand the concept of d...
How to store and read text on android project?
android|android-edittext|storage
-1
39
1
37,780,222
37,780,222
0
true
2016-06-12T23:34:11.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to store and read text on android project?<p>I'm pharmD student and newly in android development. I create an app to calculate the doses for patient upon...
37,785,126
Symfony framework best pratice<p>I'm currently developing in Symfony 3 and I'm wondering what's (if there is) the best practice in the following case :</p> <p>Supposed I have clients and orders entity, each order being linked to one client. If I want to calculate the sum of the orders by client, what's the best way ?<...
<p>In spite of the popularity of the phrase, there is no such thing as an objective "best practice". It's always subjective and always depends on your specific problem. Which is why these sorts of questions tend to be frowned upon, down voted and closed.</p> <ul> <li>a function in the client class that parse the cli...
Symfony framework best pratice
symfony
-1
60
2
37,788,562
37,788,562
0
true
2016-06-13T08:35:41.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Symfony framework best pratice<p>I'm currently developing in Symfony 3 and I'm wondering what's (if there is) the best practice in the following case :</p> ...
37,789,208
edit attribute in xml java<p>I want to know how to edit an attribute inside of a node which is inside of another node. This would be an example of my xml:</p> <p> </p> <pre><code>&lt;name&gt;Rule_1&lt;/name&gt; &lt;synonymn name="user" class="test.user" /&gt; &lt;rule name="adult"&gt; &lt;if leftTerm="user.get...
<pre><code> Node rule = doc.getElementsByTagName("rule").item(0); // update IF attribute Node if=rule.getFirstChild(); NamedNodeMap attr = if.getAttributes(); Node nodeAttr = attr.getNamedItem("rightTerm"); nodeAttr.setTextContent("20"); </code></pre> <p>or you can do it directly </p> <pre><c...
edit attribute in xml java
java|xml|dom|xml-parsing
-1
42
1
37,789,488
37,789,488
0
true
2016-06-13T11:55:25.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: edit attribute in xml java<p>I want to know how to edit an attribute inside of a node which is inside of another node. This would be an example of my xml:</p...
37,734,695
AudioFlinger server died. Play RTSP stream won't start on Lollipop device only.<p>I'm testing <a href="https://github.com/fyhertz/libstreaming" rel="nofollow">libstreaming library</a>. My app description: One device stream video from camera to another device via RTSP. All working perfectly on KitKat devices but my Huaw...
<p>It's solved.</p> <p>For some reason url created with ( "?/" ) doesn't work on Lollipop:</p> <pre><code>String videoUri = "rtsp://192.168.1.1:8086?/"; </code></pre> <p>Then I edit method <code>Parse();</code> in libstreaming. I removed the whole part about parameterization session using url.</p> <p>And I changed ...
AudioFlinger server died. Play RTSP stream won't start on Lollipop device only.
android|android-mediaplayer|android-5.0-lollipop|rtsp|libstreaming
-1
783
1
37,799,221
37,799,221
0
true
2016-06-09T19:31:42.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AudioFlinger server died. Play RTSP stream won't start on Lollipop device only.<p>I'm testing <a href="https://github.com/fyhertz/libstreaming" rel="nofollow...
37,800,997
Default path SugarCRM in Mac OS<p>Can somebody tell me how to find sugarCRM folder in my computer?</p> <p>I need to go into the Modules folders of SugarCRM. I just installed but I didn't see the root folder.</p> <p>Can somebody help me?</p>
<p>Since I didn't select the path for the installation, the default path was:</p> <pre><code>/Applications/sugarcrm-6.5.12/ </code></pre> <p>I hope this helps someone else</p>
Default path SugarCRM in Mac OS
php|sugarcrm
-1
34
1
37,801,520
37,801,520
0
true
2016-06-14T00:06:17.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Default path SugarCRM in Mac OS<p>Can somebody tell me how to find sugarCRM folder in my computer?</p> <p>I need to go into the Modules folders of SugarCRM....
37,802,648
Unity, C# - can't increase gravity in endless runner?<p>I am fairly new to Unity and am building an endless runner in Unity 3d off this tutorial: <a href="http://catlikecoding.com/unity/tutorials/runner/" rel="nofollow">http://catlikecoding.com/unity/tutorials/runner/</a></p> <p>I have followed the tutorial verbatim a...
<p>If you want to access the global gravity in a unity game, you can access it through Physics.gravity. You can either set it to a new vector3 or you can multiply it by a factor. Examples: Physics.gravity = new Vector3(0, 10, 0) or Physics.gravity *= 3;</p>
Unity, C# - can't increase gravity in endless runner?
c#|unity3d
-1
331
2
37,802,920
37,802,920
0
true
2016-06-14T03:49:28.833Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unity, C# - can't increase gravity in endless runner?<p>I am fairly new to Unity and am building an endless runner in Unity 3d off this tutorial: <a href="ht...
37,804,030
Adding another Movie Clip into another Frame<p>I am attempting to add a new movie clip into the next frame of my shooter game.</p> <p>I am using Actionscript 3.0 </p> <p>To give a basis of what I need help with for my assessment. When the score =50, switch to the next frame. And this is where I would like to add a ne...
<p>Is this what you're trying to achieve? Something like...</p> <pre><code>function addBaddie(evt: TimerEvent): void { var baddie : MovieClip; if (points &lt; 50) { var bad1: Baddie = new Baddie(); baddie = bad1; } if (points &gt;= 50) { var bad2 : Baddiered = new Baddiered(); baddie = bad2; } var si...
Adding another Movie Clip into another Frame
actionscript-3|flash
-1
41
1
37,813,168
37,813,168
0
true
2016-06-14T06:00:33.053Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding another Movie Clip into another Frame<p>I am attempting to add a new movie clip into the next frame of my shooter game.</p> <p>I am using Actionscrip...
37,819,828
Programatically Send Notification Email for an Office 365 Hosted Email Using REST or Python<p>I am starting work on a project that will involve sending an auto generated email to a user. I am (most likely) going to build the application using Python and Django and host it as an Azure web app. The outgoing email address...
<p>You can create an app only following <a href="https://msdn.microsoft.com/en-us/library/azure/dn645543.aspx" rel="nofollow">Client Credentials Grant flow</a>, leveraging which you can authenticate and authorize for AAD in backend.</p> <p>Here is a code sample on GitHub <a href="https://github.com/Azure-Samples/activ...
Programatically Send Notification Email for an Office 365 Hosted Email Using REST or Python
python|email|azure|active-directory|office365
-1
287
1
37,824,759
37,824,759
0
true
2016-06-14T18:44:55.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Programatically Send Notification Email for an Office 365 Hosted Email Using REST or Python<p>I am starting work on a project that will involve sending an au...
37,815,442
Adding border to a table row containing certain string in word vba<p>I have a word document that is being generated from my program and currently have a macro that replaces <code>&lt;BR/&gt;</code> tags with a newline. This signifies the start of a new section in the table so I also wanted to add a border to the top of...
<p>Ok I got it working using the for loop way. My final code was:</p> <pre><code>Dim oTbl As Table Dim oRow As Row For Each oTbl In ActiveDocument.Tables For Each oRow In oTbl.Rows If InStr(1, oRow.Cells(1).Range.Text, "&lt;BR/&gt;", vbBinaryCompare) &gt; 0 Then oRow.Borders(wdBorderTop).LineStyle = wdL...
Adding border to a table row containing certain string in word vba
vba|ms-word
-1
1,334
1
37,830,131
37,830,131
0
true
2016-06-14T14:53:04.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding border to a table row containing certain string in word vba<p>I have a word document that is being generated from my program and currently have a macr...
37,842,956
I have an entry with commas. How to split into separate rows?<p>I have a dataframe similar to below</p> <pre><code>df &lt;- data.frame(var1=c('apple, bob, cat', 'b', 'c'), var2=c('d', 'e', 'f')) df var1 var2 1 apple, bob, cat d 2 b e 3 c f </code></pre> <p>I'm needing...
<p>With the latest <code>tidyr</code> package (<a href="https://blog.rstudio.org/2016/06/13/tidyr-0-5-0/" rel="nofollow">tidyr 0.5.0</a>), you can do</p> <pre><code>df &lt;- data.frame(var1=c('apple, bob, cat', 'b', 'c'), var2=c('d', 'e', 'f')) tidyr::separate_rows(df, var1) # var2 var1 # (fctr) (chr) # 1 ...
I have an entry with commas. How to split into separate rows?
r
-1
62
2
37,843,062
37,843,062
0
true
2016-06-15T18:19:26.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I have an entry with commas. How to split into separate rows?<p>I have a dataframe similar to below</p> <pre><code>df &lt;- data.frame(var1=c('apple, bob, c...
37,619,251
Navigation - Fixed<p>I'm trying to create a site with a slightly complicated navigation. I've gotten the navigation to look like I want to on initial load, but now am trying to get it to sticky nav to the top on scroll. I've been able to get a class to be created when the navigation bar hits the top, but cannot get it ...
<p>Declaring the following styles will fix the navigation in question to the top of the menu when the class <code>main-nav-scrolled</code> is added.</p> <p><strong>CSS</strong></p> <pre><code>.main-nav-scrolled .top-menu li { display: inline-block; float: none; } .main-nav-scrolled .top-menu { position: ...
Navigation - Fixed
jquery|css|navigation
-1
26
2
37,619,632
37,619,632
1
true
2016-06-03T16:22:51.720Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Navigation - Fixed<p>I'm trying to create a site with a slightly complicated navigation. I've gotten the navigation to look like I want to on initial load, b...
37,620,010
Powershell psql block of code using EOF<p>I have multiline injection to 'psql' command in linux using EOF. </p> <p>psql &lt;&lt; EOF sql1 sql2</p> <p>EOF</p> <p>I want to do the same in windows powershell because(yes it's hard on me) we moved from linux to windows. I tried scriptblock, using psql as the block and co...
<p>PowerShell supports <a href="https://technet.microsoft.com/library/ee692792" rel="nofollow">here-strings</a>, though it doesn't support arbitrary delimiters. It also doesn't support standard input redirection by naming the command first and the input second -- you can only pipe input to the command. This should come...
Powershell psql block of code using EOF
powershell|eof|psql|scriptblock
-1
3,904
1
37,620,641
37,620,641
1
true
2016-06-03T17:09:21.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Powershell psql block of code using EOF<p>I have multiline injection to 'psql' command in linux using EOF. </p> <p>psql &lt;&lt; EOF sql1 sql2</p> <p>EOF</...
37,621,965
Combining two named scopes into an aggregate scope<p>I have the following model with two named scopes:</p> <pre><code>class Blog &lt; ApplicationRecord scope :past_two_years, -&gt; {where('end_date &gt; ?', Date.today - 2.years)} scope :order_by_end_date, -&gt; {order('end_date DESC')} end </code></pre> <p>I now...
<p>This appears to work:</p> <pre><code>scope :past_two_years_and_order_by_end_date, -&gt; {self.past_two_years.order_by_end_date} </code></pre>
Combining two named scopes into an aggregate scope
ruby-on-rails|ruby
-1
308
1
37,622,037
37,622,037
1
true
2016-06-03T19:22:56.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Combining two named scopes into an aggregate scope<p>I have the following model with two named scopes:</p> <pre><code>class Blog &lt; ApplicationRecord sco...
37,625,722
How to highlight a duplicate word?<p>I have an ArrayList of Strings, which is displayed in a text area, and I am trying to move the highlighter along one word each time this method is called, but it keeps highlighting the previous word, because it's a duplicate word, instead of the next one. Here's my code:</p> <pre><...
<p>If you want to highlight each and every word of JTextArea, try this method,</p> <pre><code>Highlighter highlighter = jtextArea.getHighlighter(); DefaultHighlightPainter painter = new DefaultHighlighter.DefaultHighlightPainter(Color.blue); int front=0; public void highligtNextWord(JTextArea ta)throws Exception{...
How to highlight a duplicate word?
java
-1
73
2
37,625,851
37,625,851
1
true
2016-06-04T02:21:14.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to highlight a duplicate word?<p>I have an ArrayList of Strings, which is displayed in a text area, and I am trying to move the highlighter along one wor...
37,633,576
Numbers divisible by their constituents<p>i need to print numbers from 0 to n, that divides by all of their constituents. i wrote code, but it prints numbers which divides at least on the one constituent too:</p> <pre><code>$n = $_POST['inp']; $numbers = range(0, $n); foreach ($numbers as $value) { $value = (stri...
<p>Think about breaking out of the loop when the remainder is <em>not</em> 0. If the remainder is 0 on the last pass through the loop (<code>$i == strlen($value)-1</code>), then you will know that the remainder was 0 for every constituent digit. In code:</p> <pre><code>if (($value % $value[$i]) != 0) { break; } el...
Numbers divisible by their constituents
php|arrays
-1
18
1
37,633,750
37,633,750
1
true
2016-06-04T18:19:12.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Numbers divisible by their constituents<p>i need to print numbers from 0 to n, that divides by all of their constituents. i wrote code, but it prints numbers...
37,635,578
How to type @ Chraacter when installing OSX?<p>I tried to reinstall OSX El Capitan on my MBP.</p> <p>At some point i shall enter my apple-id which contains an @-character. However, i was unable to type this character.</p> <p>How to type this character "@" in this case?</p> <p>I have this model: "MacBook Pro (Retina,...
<p>Hold down the shift key and press the 2 key, the one with an <code>@</code> over it.</p>
How to type @ Chraacter when installing OSX?
macos
-1
23
1
37,635,604
37,635,604
1
true
2016-06-04T22:20:22.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to type @ Chraacter when installing OSX?<p>I tried to reinstall OSX El Capitan on my MBP.</p> <p>At some point i shall enter my apple-id which contains ...
37,636,450
undefined local variable or method `days_till_expired'<p>Currently I have a method called <code>days_till_expired</code> defined in my <code>subscriber</code> model. I'm trying to call it in the controller but it doesn't seem to be working? I must be missing something obvious because this should be a simple implementat...
<p>You are not calling to the methods, if you have days_till_expired on your model you forgot to use your model @subscriber.days_till_expired</p> <pre><code>flash[:notice] = "Thank You! You have #{@subscriber.days_till_expired} until renewal" </code></pre> <p>If I were you, I would try to move that counter logic to t...
undefined local variable or method `days_till_expired'
ruby-on-rails|ruby
-1
40
1
37,636,489
37,636,489
1
true
2016-06-05T01:00:20.250Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: undefined local variable or method `days_till_expired'<p>Currently I have a method called <code>days_till_expired</code> defined in my <code>subscriber</code...
37,635,195
MySQL Server 5.7.10+: show executed sql from web application<p>When I tried to build my web application, I was stucked for almost a week only because I didnot know to configure url with unicode information. Even if I publish the executed sql by hibernate, when the sql arrives at mysql server, it is actually encoded/dec...
<p>In order to publish the arrived sql at the mysql server side you should enable query logging</p> <p>this link is showing how to do that</p> <p><a href="https://stackoverflow.com/questions/6479107/how-to-enable-mysql-query-log">How to enable MySQL Query Log?</a></p> <p>and official documentation </p> <p><a href="...
MySQL Server 5.7.10+: show executed sql from web application
mysql|spring|hibernate
-1
29
1
37,636,523
37,636,523
1
true
2016-06-04T21:29:25.903Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySQL Server 5.7.10+: show executed sql from web application<p>When I tried to build my web application, I was stucked for almost a week only because I didno...
37,638,365
Can't copy file sshing, and coping files in a directory<p>I'm writing a small script to combine a number of steps but in the end i get : </p> <pre><code>scp: .: not a regular file cp: cannot stat ‘/path/to/dir/': No such file or directory </code></pre> <p>I've checked that the directory does in fact exist that it's t...
<p>Your call to <code>dir_[0][:-1]</code> is not returning a string, but instead a list</p> <pre><code>user_acc = 'alan' dir_ = [['src', 'main'],['opt', 'user']] dicom_dir = '/var/tmp' sub = '/subdir' print ('scp', '%s@sew.cwe.edu:' % user_acc, dir_[0][:-1], '%s//%s/dicom/' % (dicom_dir, sub)) &gt;&gt; scp alan@sew.c...
Can't copy file sshing, and coping files in a directory
python|ssh
-1
41
1
37,638,427
37,638,427
1
true
2016-06-05T04:10:08.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't copy file sshing, and coping files in a directory<p>I'm writing a small script to combine a number of steps but in the end i get : </p> <pre><code>scp...
37,669,536
ERROR:Conversion failed when converting date and/or time from character string.(when date data type is used in filter)<p>I'm trying to get a select statement which gives me the values between particular date values. But I wasn't able to complete this one because of the above mentioned error.</p> <p>I have created a sa...
<p>You must use <code>LEFT</code> instead of <code>RIGHT</code> to get the year part:</p> <pre><code>SELECT Timevalue FROM #TEMP1 WHERE TimedimensionDate BETWEEN CONVERT(DATETIME, LEFT(@OutputTimeDimensionvalue, 4) + '-01-01') AND CONVERT(DATETIME, LEFT(@OutputTimeDimensionvalue, 4) + '-01-01') <...
ERROR:Conversion failed when converting date and/or time from character string.(when date data type is used in filter)
sql|sql-server|sql-server-2012
-1
29
1
37,669,549
37,669,549
1
true
2016-06-07T02:22:24.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ERROR:Conversion failed when converting date and/or time from character string.(when date data type is used in filter)<p>I'm trying to get a select statement...
37,675,159
How to Configur Autofac For webapi<p>i am working on a project which work on mobile as well as web platform . i am using autofac for dependency resolver which is working fine for web but constructor parameter in webapi controller not initilize</p> <p>i tried</p> <p><a href="http://docs.autofac.org/en/latest/register/pa...
<p>Plz Try This...</p> <pre><code>var builder = new ContainerBuilder(); builder.Update(container); var webApiResolver = new Autofac.Integration.WebApi.AutofacWebApiDependencyResolver(container); System.Web.Http.GlobalConfiguration.Configuration.DependencyResolver = webApiResolver; </code></pre>
How to Configur Autofac For webapi
asp.net-mvc|autofac
-1
41
1
37,675,226
37,675,226
1
true
2016-06-07T09:14:39.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Configur Autofac For webapi<p>i am working on a project which work on mobile as well as web platform . i am using autofac for dependency resolver whic...
37,679,471
How to remove the gap (relative position)<p>I want to remove the gap from the Tab3 (see picture), I have found out it occurs when I set the height for the picture (420x200) in Tab2. When i remove the height, it looks normal, but i want also showing the picture on Tab2. So could anyone have a proper solution to fix this...
<p>Declare <code>vertical-align: top</code> for the table element in question.</p> <p><strong>CSS</strong></p> <pre><code>.bgsheet { background: white; box-shadow: 0px 0px 6px 1px #909090; width: 450px; text-decoration: none; position: relative; padding: 0px; margin: 0px; border-top-le...
How to remove the gap (relative position)
html|css|position
-1
47
3
37,679,540
37,679,540
1
true
2016-06-07T12:31:14.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove the gap (relative position)<p>I want to remove the gap from the Tab3 (see picture), I have found out it occurs when I set the height for the pi...
37,684,224
performSegueWithIdentifier does not execute immediately<p>I have to validate something in order to decide whether I continue with the execution of the <code>viewDidload()</code> sentences or I perform a segue, but when I debug the code, the execution of the upcoming sentences after the performSegueWithIdentifier call c...
<p>you could execute the lines of code after a delay of a maybe a half second, so that the new view controller will show before the code is executed.</p> <p>You might wanna try implementing this somewhere..</p> <pre><code>func runAfterDelay(delay: NSTimeInterval, block: dispatch_block_t) { let time = dispatch_tim...
performSegueWithIdentifier does not execute immediately
ios|swift
-1
78
1
37,684,427
37,684,427
1
true
2016-06-07T16:05:17.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: performSegueWithIdentifier does not execute immediately<p>I have to validate something in order to decide whether I continue with the execution of the <code>...
37,685,445
a href affecting how images are displaying<p>The four smaller images should be in a 2 by 2 grid and the larger image should fill the same width as two of the smaller images.</p> <p>It all works without adding a href link. As soon as I add a link then they get put in a link down the left side of the page.</p> <p>This ...
<p>You can change you code to this </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>* { box-sizing: border-box } #post-template-container { position: relative; width: 100%; min-height...
a href affecting how images are displaying
html|css|image|href
-1
53
3
37,686,015
37,686,015
1
true
2016-06-07T17:16:59.110Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: a href affecting how images are displaying<p>The four smaller images should be in a 2 by 2 grid and the larger image should fill the same width as two of the...
37,681,430
Controller pagination with a subquery<p>I want to use this MySQL query in my controller without using query().</p> <pre><code>SELECT * FROM T1 INNER JOIN (SELECT T1.id FROM T1 INNER JOIN T2 ON T1.id = T2.T1_id INNER JOIN T3 ON T2.T3_id = T3.id WHERE 1 = 1 GROUP BY T1.id HAVING COUNT(*) = 1) AS T1_x ON T1.id = T1_x.i...
<p>Here's one way how you can join a subquery in CakePHP</p> <p>My models name here is T1</p> <pre><code> $this-&gt;paginate = array( 'paramType' =&gt; 'querystring', 'joins' =&gt; array( array( 'table' =&gt; '(SELECT T1.id FROM T1 INNER JOIN T2 ON T...
Controller pagination with a subquery
cakephp|cakephp-2.3
-1
301
1
37,696,418
37,696,418
1
true
2016-06-07T13:55:26.250Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Controller pagination with a subquery<p>I want to use this MySQL query in my controller without using query().</p> <pre><code>SELECT * FROM T1 INNER JOIN (S...
37,713,974
How to make Laravel migrations of SQL<p>I'm having some difficulties trying to make a laravel migration from SQL database, this is my SQL:</p> <pre><code>CREATE TABLE `customers` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) unsigned NOT NULL, `taxtype_id` int(10) NOT NULL, `code` varchar(...
<p>I am going with ButtonPiglet on this one, Laravel doesn't allow specifying lengths on integer fields. It is causing user_id, taxtype, and code to be auto_increment primary keys.</p> <p>I change these three from</p> <pre><code>$table-&gt;integer('user_id',11)-&gt;unsigned(); $table-&gt;integer('taxtype_id',10)-&gt;...
How to make Laravel migrations of SQL
php|mysql|sql|laravel
-1
1,077
3
37,714,891
37,714,891
1
true
2016-06-08T22:26:12.330Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make Laravel migrations of SQL<p>I'm having some difficulties trying to make a laravel migration from SQL database, this is my SQL:</p> <pre><code>CR...
37,720,606
Facebook Publish_Action Submission Failed (No api call 30 days)<p><a href="https://i.stack.imgur.com/A4eZ0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A4eZ0.jpg" alt="enter image description here"></a></p> <p>I am unable to submit my application for review because of this message. But I have mad...
<p>There is a current open bug report for this issue: <a href="https://developers.facebook.com/bugs/267332513657684/" rel="nofollow">https://developers.facebook.com/bugs/267332513657684/</a></p> <p>Suggest you go and subscribe to it (bug reports are prioritized by the number of affected apps/developers), and perhaps m...
Facebook Publish_Action Submission Failed (No api call 30 days)
facebook|facebook-graph-api|facebook-php-sdk
-1
34
2
37,720,859
37,720,859
1
true
2016-06-09T08:27:20.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Facebook Publish_Action Submission Failed (No api call 30 days)<p><a href="https://i.stack.imgur.com/A4eZ0.jpg" rel="nofollow noreferrer"><img src="https://i...
37,738,554
shorten code for jquery function with data()<p>I've written some jQuery code for my site. Unfortunately, the code that I use is longer than it needs to be and can be shortened. I have tried many different ways to get shorten my code but problem is that my knowledge of jQuery is very weak.</p> <p>This question is not f...
<p>You could shorten it by bundling all the repetition code into a function:</p> <pre><code>function maphilightTrigger($area, alwaysOn, fillColor, fillOpacity) { var data = {}; data.alwaysOn = alwaysOn; data.fillColor = fillColor; data.fillOpacity = fillOpacity; $area.data('maphilight', data).trigger('always...
shorten code for jquery function with data()
jquery
-1
58
3
37,738,744
37,738,744
1
true
2016-06-10T01:17:02.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: shorten code for jquery function with data()<p>I've written some jQuery code for my site. Unfortunately, the code that I use is longer than it needs to be an...
37,749,543
Using a datalist in a form in Spring-MVC<p>I'm attempting to convert an input form from a to a but does not accept the list attribute, does anyone know a workaround? This is my first time using Spring and I'm at a loss here.</p> <pre><code>&lt;tr&gt; &lt;th&gt;&lt;form:label path="livrable.composant"&gt;&l...
<p>Nevermind I'm an idiot, I didn't close the tag it should be:</p> <pre><code>&lt;form:input path="livrables.composants" list="composants"/&gt; </code></pre>
Using a datalist in a form in Spring-MVC
spring-mvc|html-datalist
-1
1,565
1
37,750,406
37,750,406
1
true
2016-06-10T13:28:43.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using a datalist in a form in Spring-MVC<p>I'm attempting to convert an input form from a to a but does not accept the list attribute, does anyone know a...
37,756,713
text file processing PHP laravel<p>How can I read/process data that is taken from a text file which have line breaks for each new record following is the sample. I want it to upload and process the lines and insert into DB, so I just want to know how to read it </p> <blockquote> <p>0603201614020000180502<br> 06032...
<p>You could read it into an array like <code>$lines = file('filename.txt');</code> and loop over it to do your "processing"</p>
text file processing PHP laravel
php|laravel|csv|text-files
-1
847
1
37,758,224
37,758,224
1
true
2016-06-10T20:29:06.750Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: text file processing PHP laravel<p>How can I read/process data that is taken from a text file which have line breaks for each new record following is the sam...
37,758,368
SQL query with two different ids<p>I need to prevent <code>photo_order</code> field from exceeding number of photos being associated with article. I have this, but it doesn't work. Table name has been used two times and it is probably wrong. </p> <pre><code>UPDATE articles_photos SET photo_order = IF(photo_order ...
<p>I assume this is the error you are getting:</p> <blockquote> <p>You can't specify target table 'articles_photos' for update in FROM clause</p> </blockquote> <p>Here's one work around using a <code>cross join</code> with a subquery:</p> <pre><code>update articles_photos ap cross join (select count(id) cnt from...
SQL query with two different ids
mysql|sql|count|sql-update|subquery
-1
37
1
37,758,446
37,758,446
1
true
2016-06-10T23:17:31.443Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL query with two different ids<p>I need to prevent <code>photo_order</code> field from exceeding number of photos being associated with article. I have thi...
37,760,108
Unable to create hotspot<p>I was actually using a software mhotspot on my windows 10,so that i can create hotspot from my laptop,and it was working nicely. But few days back,my windows got updated and from then whenever I try to create the hotspot ,it shows me "Driver problem found !" . It may be for another reson but ...
<p>You can create a hotspot very easily using cmd. Give it a try. Source: <a href="http://www.technicalnotes.org/create-wi-fi-hotspot-in-windows-10-using-command-prompt/" rel="nofollow">Create a hotspot in windows 10 using cmd</a></p>
Unable to create hotspot
driver|hotspot
-1
58
2
37,760,137
37,760,137
1
true
2016-06-11T05:01:11.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to create hotspot<p>I was actually using a software mhotspot on my windows 10,so that i can create hotspot from my laptop,and it was working nicely. B...
37,762,579
Get meta viewport tag to work on desktop<p>I have created a script that enables the meta viewport tag on desktop. However I do not seem to be able to get the specified width from the viewport tag. I currently have this:</p> <pre><code>var viewportcontent = $( "#myviewport" ).attr('content'); var viewportcontents = vie...
<p>Sorry guys... It turned out to be a typo! <code>var wspec = viewportcontent[i].substring(6);</code> had to be <code>var wspec = viewportcontents[i].substring(6);</code>. I have to remember to use better variable names!!! </p> <p>Working version here: <a href="http://codepen.io/anon/pen/GqoeYJ" rel="nofollow">http:/...
Get meta viewport tag to work on desktop
javascript|jquery|html|css
-1
565
1
37,762,715
37,762,715
1
true
2016-06-11T10:20:36.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get meta viewport tag to work on desktop<p>I have created a script that enables the meta viewport tag on desktop. However I do not seem to be able to get the...
37,766,760
Ruby LittleLexer<p>I'm wondering if Ruby's LittleLexer project might have been renamed or moved?</p> <p>Following the link below doesn't seem to work any longer.</p> <p><a href="http://rubyforge.org/projects/littlelexer/" rel="nofollow">http://rubyforge.org/projects/littlelexer/</a></p>
<p>Looks like RubyForge, a site that hosted many projects, has been shut down. I could not find the source on rubygems.org or archive.org. Looks like the last version of the project is from 2004. If you go to <a href="http://littlelexer.rubyforge.org" rel="nofollow">http://littlelexer.rubyforge.org</a> and view the ...
Ruby LittleLexer
ruby|lexical-analysis
-1
57
1
37,766,831
37,766,831
1
true
2016-06-11T17:42:41.907Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ruby LittleLexer<p>I'm wondering if Ruby's LittleLexer project might have been renamed or moved?</p> <p>Following the link below doesn't seem to work any lo...
37,775,202
Query in codeigniter<p>I'm trying to select a field in table 'reasons' but I have to get the field 'reason' in the table 'customer_complaint' these tables are related.</p> <p>This is my model:</p> <pre><code>function reason(){ $reason = $this-&gt;db-&gt;select("*")-&gt;from('reason')-&gt;join('customer_complaint...
<p>There are several errors I can see</p> <p>First Table <code>reason</code> you mentioned used in Two form, 1. <code>reason</code>, 2. <code>reasons</code></p> <p>Make spelling correct first.</p> <p>Second you use <code>results()</code> method which is wrong, it should <code>result()</code></p> <p>So If your table...
Query in codeigniter
php|mysql|codeigniter
-1
42
2
37,775,365
37,775,365
1
true
2016-06-12T14:12:00.137Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Query in codeigniter<p>I'm trying to select a field in table 'reasons' but I have to get the field 'reason' in the table 'customer_complaint' these tables ar...
37,777,153
Extract what's inside of "span" that's inside of a class<p>I'm looking for a way to set the variable z as 500</p> <p>I tried the following so far:</p> <pre><code>z = +(document.getElementsByClassName("time span").innerHTML) </code></pre> <p>But it gives me an output of NaN</p> <p><a href="https://i.stack.imgur.com/...
<p>The problem is that you have a NodeList of elements &ndash; even if it's a NodeList of only one element &ndash; from which you're trying to retrieve the <code>innerHTML</code> property; this can't work.</p> <p>Furthermore you have a <code>&lt;span&gt;</code> within the node from which you're retrieving the <code>in...
Extract what's inside of "span" that's inside of a class
javascript
-1
38
2
37,777,206
37,777,206
1
true
2016-06-12T17:33:39.113Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Extract what's inside of "span" that's inside of a class<p>I'm looking for a way to set the variable z as 500</p> <p>I tried the following so far:</p> <pre...
37,734,000
Direct credi card payment api for Brazil?<p>I need a direct credi card payment api for my Android App, I have used paypal, but paypal not support "BRL" (<a href="https://developer.paypal.com/docs/classic/api/currency_codes/#creditcard" rel="nofollow">Brazil currency</a>) for direct credi card payment.</p> <p>Anyone kn...
<p>Brazilian real(BRL) is only supported for PayPal Payments and it is only supported for in country paypal accounts. You can see the official document <a href="https://developer.paypal.com/docs/classic/api/currency_codes/" rel="nofollow">here</a>.</p>
Direct credi card payment api for Brazil?
android|api|paypal|payment-gateway|payment
-1
72
1
37,784,589
37,784,589
1
true
2016-06-09T18:51:33.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Direct credi card payment api for Brazil?<p>I need a direct credi card payment api for my Android App, I have used paypal, but paypal not support "BRL" (<a h...
37,781,198
Error in check out svn repository<p>Im new in using SVN. So please, When i try to Check out the wikipedia miner trunk with svn, i get the following error: svn: Repository moved permenatly to 'svnroot/wikipedia-miner/trunk%20wikipedia-miner';please relocate svn:OPTIONSrequest failed on'/svnroot/svnroot/wikipedia-miner/...
<p>With this repository location, I can able to get the repo information &amp; checkout also works fine.</p> <pre><code>jayaprakash@cloudenablers:/tmp$ svn info https://svn.code.sf.net/p/wikipedia-miner/code/trunk Path: trunk URL: https://svn.code.sf.net/p/wikipedia-miner/code/trunk Relative URL: ^/trunk Repository R...
Error in check out svn repository
svn
-1
80
1
37,787,120
37,787,120
1
true
2016-06-13T02:53:53.813Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error in check out svn repository<p>Im new in using SVN. So please, When i try to Check out the wikipedia miner trunk with svn, i get the following error: s...
37,799,069
Pandas: simple numeric subtract from one column<p>I need to simply subtract 2 from one column in a DataFrame. There are more columns in the df that need to remain unchanged.</p> <p>The following has not effect. What am I doing wrong?</p> <pre><code>func = lambda x: x - 2 df["customer"].apply(func) </code></pre>
<p><code>apply()</code> function returns changed data frame, but it doesn't change your DF in place</p> <pre><code>In [49]: df Out[49]: a b c 0 2 9 1 1 0 5 9 2 1 5 6 3 6 3 4 4 8 0 8 In [50]: df["a"].apply(func) Out[50]: 0 0 1 -2 2 -1 3 4 4 6 Name: a, dtype: int64 In [51]: df Out[51]:...
Pandas: simple numeric subtract from one column
python|pandas
-1
52
1
37,799,164
37,799,164
1
true
2016-06-13T21:03:22.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas: simple numeric subtract from one column<p>I need to simply subtract 2 from one column in a DataFrame. There are more columns in the df that need to r...
37,732,155
Is there anyone success to generate midi from TFRecode file with magenta?<p>I got TFRecode file from magenta but it's difficult(and not precise description for me) to get midi file...</p> <p>whoever solve this issue, share plz.</p> <p>Known descrioption from Magenta groups(<a href="https://groups.google.com/a/tensorf...
<p>We've recently added a model that you can train to generate new sequences. Have a look at <a href="https://github.com/tensorflow/magenta/blob/master/magenta/models/basic_rnn/README.md" rel="nofollow">https://github.com/tensorflow/magenta/blob/master/magenta/models/basic_rnn/README.md</a>.</p> <p>Thanks!</p>
Is there anyone success to generate midi from TFRecode file with magenta?
tensorflow|magenta
-1
322
1
37,802,152
37,802,152
1
true
2016-06-09T17:03:12.310Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there anyone success to generate midi from TFRecode file with magenta?<p>I got TFRecode file from magenta but it's difficult(and not precise description f...
37,807,477
Serialized date format in response body JSON<p>When I'm creating object</p> <pre><code>{ "id": 41788, "systemStartDate": 1447459200000 } </code></pre> <p>When I'm getting object by id:</p> <pre><code>{ "id": 41788, "systemStartDate": "2015-11-14" } </code></pre> <p>I know the reason that entities which are ...
<p>Here </p> <pre><code>{ "id": 41788, "systemStartDate": 1447459200000 } </code></pre> <p>systemStartDate is in long format.</p> <p>To convert into in date you can use <code>Date d=new Date(1447459200000l);</code> if you want to modify in consumer side.</p> <p>If you do not want to change in consumer side then...
Serialized date format in response body JSON
java|json|date
-1
282
1
37,807,564
37,807,564
1
true
2016-06-14T09:02:53.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Serialized date format in response body JSON<p>When I'm creating object</p> <pre><code>{ "id": 41788, "systemStartDate": 1447459200000 } </code></pre> ...
37,807,370
Dynamic image slider using php and mysqli<p>I do want to display image slider which is being uploaded by the admin to the slider using php and mysqli. If the admin wants to change the images he would be able to do it by uploading or deleting the images.</p>
<p><strong>Add the image and display</strong></p> <ol> <li>Store the image in a folder by using <code>move_uploaded_file()</code></li> <li>Store the image name and path in database</li> <li>Display it in html by using select query <code>&lt;img src="&lt;?php echo $img; ?&gt;" /&gt;</code></li> </ol> <p><strong>While...
Dynamic image slider using php and mysqli
php|jquery|html|css
-1
559
1
37,807,620
37,807,620
1
true
2016-06-14T08:57:38.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dynamic image slider using php and mysqli<p>I do want to display image slider which is being uploaded by the admin to the slider using php and mysqli. If the...
37,806,720
Functional dependency F = {AB->CD , A->B} or A->C<p>I have R(A,B,C,D) and functional dependencies AB->CD and A->B I want to know or A->C is correct?</p> <p>I try found F closure by amstrong axioms:</p> <pre><code>AB-&gt;C (decomposition from AB-&gt;CD) AB-&gt;D (decomposition from AB-&gt;CD) AB-&gt;AB (reflexivity) ...
<p>You have two different ways to see if <code>A → C</code> can be derived by <code>AB → CD</code> and <code>A → B</code>: either you can try to calculate the closure of the attribute <code>A</code>, with the algorithm used to compute the closure of a set of attributes, and see if it contains <code>C</code> (easy way),...
Functional dependency F = {AB->CD , A->B} or A->C
database-normalization|functional-dependencies
-1
1,324
2
37,807,888
37,807,888
1
true
2016-06-14T08:25:11.743Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Functional dependency F = {AB->CD , A->B} or A->C<p>I have R(A,B,C,D) and functional dependencies AB->CD and A->B I want to know or A->C is correct?</p> <p>...
37,817,053
How do i make my counter appear in my application through javaFX<p>I'm new to javaFX and I wanted to make a simple code that counted how many times a person pressed a button and displayed the count on the application itself. Currently I have my code printing the counter in my IDE and would just like to some how attach ...
<p>Here is the full code:</p> <pre><code>package StackOverFlow; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.layout.HBox; import javafx.scene.layout.Pane; import javafx.scene.paint.Color; import javafx.sta...
How do i make my counter appear in my application through javaFX
java|javafx
-1
4,883
1
37,819,741
37,819,741
1
true
2016-06-14T16:05:15.423Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do i make my counter appear in my application through javaFX<p>I'm new to javaFX and I wanted to make a simple code that counted how many times a person ...
37,825,342
google map api putting events on buildings<p>I am implementing University campus map.</p> <p>I am trying to make put color on some buildings and add event on each of them. I've tried to use marker's but it didn't work for me.</p> <p>I have a sample page that provides the things what I am trying to do.</p> <p><a href...
<p>I think you should try using polygons. It maybe a little bit time consuming creating the shapes, but the result could be similar. See my example:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta name="viewport" content="initial-scale=1.0"&gt; &lt;meta charset="utf-8"&gt; ...
google map api putting events on buildings
google-maps-api-3|web-deployment
-1
45
1
37,827,983
37,827,983
1
true
2016-06-15T02:54:00.743Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: google map api putting events on buildings<p>I am implementing University campus map.</p> <p>I am trying to make put color on some buildings and add event o...
37,840,575
google maps javascript api return lat and lng<p>I've been looking at the code for the autocomplete address form on the google developers sample page:</p> <p><a href="https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform?utm_source=welovemapsdevelopers&amp;utm_campaign=mdr...
<p>What you can do is use <code>place.geometry.location</code> which is a <a href="https://developers.google.com/maps/documentation/javascript/3.exp/reference#LatLng" rel="nofollow">LatLng</a> object.</p> <p>This has functions .lat() and .lng() you can use, e.g. you could do:</p> <pre><code>var lat = place.geometry....
google maps javascript api return lat and lng
javascript|json|google-maps|google-maps-api-3
-1
281
2
37,840,685
37,840,685
1
true
2016-06-15T16:07:21.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: google maps javascript api return lat and lng<p>I've been looking at the code for the autocomplete address form on the google developers sample page:</p> <p...
37,842,288
Postgresql appending a prefix in a field if the prefix is not already there<p>What I need to do is give the user a visual indication that a part is obsolete. I can do this by appending "OBS-" to the front of the part description if the records obsolete flag is turned on.</p> <p>My question is can someone think of a o...
<pre><code>UPDATE my_table SET description = 'OBS-' || description WHERE obsolete AND left(description, 4) != 'OBS-'; </code></pre>
Postgresql appending a prefix in a field if the prefix is not already there
postgresql
-1
23
1
37,850,150
37,850,150
1
true
2016-06-15T17:44:25.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Postgresql appending a prefix in a field if the prefix is not already there<p>What I need to do is give the user a visual indication that a part is obsolete....
37,603,578
How should my type habits change in swift?<p>I'm getting started in swift by converting some of my old Obj-C libraries. It's honestly kind of painful, and I'm wondering if my habits are bad or something since everything I've read has talked about how easy it is to pick up swift. Specifically:</p> <ul> <li>No implicit ...
<p>Regarding the three issues you bring up.</p> <ul> <li><p>No implicit type conversion is a language convention, and is intended to make code safe. This is by design, and is a bit verbose. You can read about this in the <a href="https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programmin...
How should my type habits change in swift?
swift
-1
61
2
37,603,776
37,603,776
2
true
2016-06-02T23:13:49.423Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How should my type habits change in swift?<p>I'm getting started in swift by converting some of my old Obj-C libraries. It's honestly kind of painful, and I'...
37,604,342
MS Windows system date time and an apps licence<p>I plan to check MS Windows system date time periodically to see if the app licence is expired.</p> <p>So what if the user will increase system timer always? And in this case is any way to know real date-time? </p> <p>What if computer is offline but in some network st...
<p>No. If the end user wants to pretend it's the stone age, you can't tell otherwise without exposure to external resources (web...).</p>
MS Windows system date time and an apps licence
c#|.net|windows|systemtime
-1
51
3
37,604,373
37,604,373
2
true
2016-06-03T00:55:25.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MS Windows system date time and an apps licence<p>I plan to check MS Windows system date time periodically to see if the app licence is expired.</p> <p>So w...
37,621,633
How can I determine which reference I'm missing in this Outlook interop code (OlItemType.olMailItem)?<p>I'm using my Interop Outlook code, which required me to add a reference to Microsoft.Office.Interop.Outlook ("Microsoft Outlook 12.0 Object Library"; Version = 9.3.0.0)</p> <p>Adding that reference caused all the re...
<p><code>Microsoft.CSharp</code> must be referenced. It should be one of the available framework assemblies.</p>
How can I determine which reference I'm missing in this Outlook interop code (OlItemType.olMailItem)?
c#|outlook|office-interop|com-interop
-1
280
1
37,621,725
37,621,725
2
true
2016-06-03T18:58:17.727Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I determine which reference I'm missing in this Outlook interop code (OlItemType.olMailItem)?<p>I'm using my Interop Outlook code, which required me ...
37,632,549
How can I run testNG through a call from another method, let's say a main method?<p>How can I run testNG through a call from another method, let's say a main method? If I am coding an application to have data from UI and saving it in an excel sheet. Then I execute a test suite through a call to that methods, then I gen...
<p>Tests from the TestNG project itself will provide you some good examples like <a href="https://github.com/cbeust/testng/blob/master/src/test/java/test/listeners/ListenerTest.java" rel="nofollow">ListenerTest</a>.</p> <pre><code>TestNG tng = new TestNG(); tng.setTestClasses(testClasses); tng.run(); </code></pre>
How can I run testNG through a call from another method, let's say a main method?
java|testng|reportng
-1
68
1
37,633,093
37,633,093
2
true
2016-06-04T16:29:47.270Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I run testNG through a call from another method, let's say a main method?<p>How can I run testNG through a call from another method, let's say a main...
37,644,878
is it possible to run a django app in a simple hosting?<p>Hello friends I have one question about django and hostings, is It possible to run a django app in a simple hosting with python support or you must to use a VPS? I know that php framework like codeigniter,symfony... run in any hosting with php support but I kno...
<p>There are Platform as a Service few hosting providers out there.</p> <ul> <li><a href="https://www.pythonanywhere.com/" rel="nofollow">Python Anywhere</a></li> <li><a href="https://www.heroku.com/" rel="nofollow">Heroku</a></li> <li><a href="https://www.openshift.com/" rel="nofollow">OpenShift</a></li> </ul> <p>Bu...
is it possible to run a django app in a simple hosting?
django|hosting
-1
51
1
37,645,577
37,645,577
2
true
2016-06-05T17:39:33.353Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: is it possible to run a django app in a simple hosting?<p>Hello friends I have one question about django and hostings, is It possible to run a django app in ...
37,647,107
Where or where clauses not working good in laravel<p>i was confused by this where clsuses, i have this code, i called the past orders. Its working fine for now.</p> <pre><code>$orders = Order::where('user_id', '=', Auth::user()-&gt;id) -&gt;orWhere(function ($query2) { $query2-&gt;where('st...
<pre><code>$orders_current = Order::where('user_id', '=', Auth::user()-&gt;id) -&gt;where(function ($query) { $query-&gt;where('status', '=', 0) -&gt;OrWhere('status', '=', 1); }) -&gt;orderBy('created_at', 'DESC') -&gt;get(); </code></pre> <p>I hope that w...
Where or where clauses not working good in laravel
php|laravel
-1
2,063
2
37,647,641
37,647,641
2
true
2016-06-05T21:48:27.440Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Where or where clauses not working good in laravel<p>i was confused by this where clsuses, i have this code, i called the past orders. Its working fine for n...
37,658,281
How to add condition based on if statement<p>I am writing this stored procedure where I want to add a third AND condition based on IF statement, I am having errors with the IF statement. Is this the correct syntax to do this in Oracle? thanks</p> <pre><code>FROM U_DEBT D, U_DOCUMENT_DEBT UDD, where D.DEBT_TYPE='I' AN...
<p>You can do it like this:</p> <pre><code>WHERE D.DEBT_TYPE='I' AND UDD.DEBT_NUM=D.DEBT_NUM AND UDD.FS_STATEMENT_NUM=UUI.FS_STATEMENT_NUM AND (P5_LAST_NAME IS NULL OR D.FORMATTED_LAST_NAME IN (SELECT local.pkg_bs_common.web_format(P5_LAST_NAME) FROM DUAL)...
How to add condition based on if statement
sql|oracle|plsql|oracle-sqldeveloper
-1
69
1
37,658,354
37,658,354
2
true
2016-06-06T13:05:03.193Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add condition based on if statement<p>I am writing this stored procedure where I want to add a third AND condition based on IF statement, I am having ...
37,670,213
Do I need to set up route table for my laptop to ssh to an instance with public IP?<p>Let me first describe my operational steps:</p> <ol> <li><p>I set up a VPC with CIDR 10.20.0.0/16 (and I created and attached to it an IGW, igw-14ed6f75). </p></li> <li><p>And then I set up a subnet subnet_A 10.20.1.0/24. This subnet...
<p>TCP connections are two-way connections. The server needs to be able to send traffic to the client (and once the initial handshake is done, the two are indistinguishable). Without an egress route, the server could not send any packets back to the client to establish the connection.</p> <p>From <a href="http://doc...
Do I need to set up route table for my laptop to ssh to an instance with public IP?
amazon-ec2|amazon-vpc
-1
44
1
37,671,163
37,671,163
2
true
2016-06-07T03:58:02.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Do I need to set up route table for my laptop to ssh to an instance with public IP?<p>Let me first describe my operational steps:</p> <ol> <li><p>I set up a...
37,675,382
Can't create and pass jsonp data<p>I am new to Node.js and I have created a method that should asynchronously fetch jsonp data via ajax and display the retrieved content in a graph. This method works fine when the url points to a static js file (in this case productsData.js) containing jsonp data: </p> <pre><code>func...
<p>It looks like you are using Express.</p> <p><code>jsonp()</code> expects to be passed your raw data, not a string containing the complete response. It also expects to read the callback name from the query string, which jQuery will generate for you if you let it.</p> <p>So the first thing to do is to fix your clien...
Can't create and pass jsonp data
javascript|node.js
-1
73
1
37,675,621
37,675,621
2
true
2016-06-07T09:23:23.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't create and pass jsonp data<p>I am new to Node.js and I have created a method that should asynchronously fetch jsonp data via ajax and display the retri...
37,685,619
Python error Inconsistent intendation detected<p>I'm fiddeling with a python script for replacing some characters in a specific column of a tab seperated text file.</p> <p>If I run the script I get the Error: Inconsistent intendation detected.</p> <pre><code>import csv # File names: to read in from and read out to in...
<p>Instead of </p> <pre><code>with open(input_file) as to_read: with open(output_file, "wb") as tmp_file: </code></pre> <p>you need to use</p> <pre><code>with open(input_file) as to_read: with open(output_file, "wb") as tmp_file: </code></pre>
Python error Inconsistent intendation detected
python|csv|replace
-1
71
2
37,685,646
37,685,646
2
true
2016-06-07T17:26:25.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python error Inconsistent intendation detected<p>I'm fiddeling with a python script for replacing some characters in a specific column of a tab seperated tex...
37,704,630
reaching specific element repeat Custom Fiends<p>How can i reach true css to a specific content repeat of Advance custom Fields? por ejemple the number one is .class:first-child and the last one is team_one_thrid:last-child but wat about the 3º?? </p>
<p>You can do something like this : </p> <pre><code>$i = 0; while(have_rows('repeater_field')){ the_row(); $i++; ?&gt;&lt;div class="item&lt;?php echo $i; ?&gt;"&gt; &lt;!-- class item1, item2, item3... --&gt; &lt;/div&gt;&lt;?php } </code></pre> <p>Increment a variable <code>$i</code> and us...
reaching specific element repeat Custom Fiends
wordpress|advanced-custom-fields
-1
22
2
37,704,730
37,704,730
2
true
2016-06-08T13:57:31.490Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: reaching specific element repeat Custom Fiends<p>How can i reach true css to a specific content repeat of Advance custom Fields? por ejemple the number one i...
37,704,913
Error : ArgumentError in Messages#new wrong number of arguments (2 for 1)<p>I m getting ArgumentError in Messages#new app/views/messages/new.html.erb where line #16 raised: "wrong number of arguments (2 for 1)" It also says:</p> <p>app/helpers/application_helper.rb:8:in <code>avatar_url' app/helpers/messages_helper....
<p>Under <code>#{image_tag avatar_url(user.email, size: 50)}</code> you are passing two arguments, but <code>def avatar_url(user)</code> only takes one.</p>
Error : ArgumentError in Messages#new wrong number of arguments (2 for 1)
ruby-on-rails|ruby|ruby-on-rails-3|ruby-on-rails-4
-1
75
2
37,705,012
37,705,012
2
true
2016-06-08T14:09:13.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error : ArgumentError in Messages#new wrong number of arguments (2 for 1)<p>I m getting ArgumentError in Messages#new app/views/messages/new.html.erb where l...
37,753,419
Call shouldChangeCharactersInRange on app init, not just when user enters text<p>I have an app that formats phone numbers to add dashes between the area code and after 3 digits. The problem is that the data im using isn't pre-formatted. So when the app laods initially, the phone numbers appear unformatted, until some...
<p>Extract the logic that does the evaluation into its own method, modify it to act on a string parameter instead of <code>textField.text</code>, and call it from both this method and from your initialization.</p>
Call shouldChangeCharactersInRange on app init, not just when user enters text
ios|objective-c
-1
40
1
37,753,493
37,753,493
2
true
2016-06-10T16:49:42.537Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Call shouldChangeCharactersInRange on app init, not just when user enters text<p>I have an app that formats phone numbers to add dashes between the area code...
37,760,437
How to hide contact details of seller only for specific 12 hour period from 9am to 9pm<p>I have created a page where buyer can contact seller</p> <pre><code> &lt;span&gt; Seller Contact Number &lt;/span&gt;: &lt;?php echo $this-&gt;prodDet-&gt;mobile; ?&gt; </code></pre> <p>However - also want to restrict in that the...
<p>Set default time zone for IST so date function will return your local time. Then use <code>date</code> function of php to get current hour.</p> <p>Use of 24hr format is good to use. Use this hour value to check if time is less than 9pm and grater than 9am to show contact details.</p> <p>Check below code that will ...
How to hide contact details of seller only for specific 12 hour period from 9am to 9pm
php
-1
26
1
37,760,537
37,760,537
2
true
2016-06-11T05:50:36.963Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to hide contact details of seller only for specific 12 hour period from 9am to 9pm<p>I have created a page where buyer can contact seller</p> <pre><code...
37,800,564
Is there a pre-defined function in iOS that is activated upon the user typing a symbol?<p>There are classes with pre-defined functions such as <code>viewDidLoad</code> or <code>touchesBegan:</code>. Is there one I could use for when keys on the software keyboard are pressed?</p>
<p>This question is not specific to either Swift or Xcode. It's an iOS question.</p> <p>The answer is "sort of".</p> <p>There is not a special function that gets called for a key press.</p> <p>Instead, if the keyboard is attached to a <code>UITextField</code>, you can set up an object to be the text field's delegate...
Is there a pre-defined function in iOS that is activated upon the user typing a symbol?
ios|cocoa-touch|user-input
-1
29
1
37,800,668
37,800,668
2
true
2016-06-13T23:11:36.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a pre-defined function in iOS that is activated upon the user typing a symbol?<p>There are classes with pre-defined functions such as <code>viewDidL...