Data dodania Pytanie
2017-08-29 11:08 Having difficulties in finding error: Matrix dimensions must agree »
My aim is to call this function into the pso code for minimization. actually im calling this code into another program(mfile),here v=0.1*x0; % ini...
(2) odpowiedzi
2017-08-28 14:08 Code Optimization issue »
I am doing some code changes in Android development to make my coding more accurate. I have 7 TextViews in my layout for all week days, i have done fi...
(1) odpowiedzi
2017-08-28 12:08 How to style div elements to form a table »
I have some divs and I want to form a table style. <div style="display: table;"> <div style="display: table-row;"> <div st...
(1) odpowiedzi
2017-08-24 18:08 Why use dynamic variables (variable variables) in PHP or other languages »
I was just recently introduced to the concept of dynamic variables in PHP. To me it seems like using dynamic variables in a program would make it diff...
(1) odpowiedzi
2017-08-24 16:08 Is it stylistically ok in Python to use l = list() rather than l = []? »
My question is pretty short, is it bad python "style" to use l = list() rather than l = []? Or, similarly, d = dict() instead of d = {}? Personally I...
(0) odpowiedzi
2017-08-24 11:08 Throw exception or return a value »
My question is pretty straightforward. I have a class called Triangle. This class has a method; public boolean isAnyAngleGreaterThan(double deg);...
(4) odpowiedzi
2017-08-23 04:08 Code style showing "line is longer than allowed by code style (> 100 symbols)" »
I want to use android studio on Mac as a code editor . but when I edit C/C++ Code , always prompt dialog like : line is longer than allowed by code st...
(1) odpowiedzi
2017-08-22 17:08 In C, why is a larger number of functions more preferable than a more complicated function? »
I have run into this phenomenon many times before, but none were as clear for demonstrating my point as the following: The source code for pwhois has...
(2) odpowiedzi
2017-08-20 07:08 Why 'window.onload' but simply 'document' instead of 'window.document' in conventional JavaScript code? »
In most JavaScript I come across, I see that programmers write window.onload instead of simply writing onload. But when it comes to accessing the doc...
(1) odpowiedzi
2017-08-19 17:08 How to know Time limit of code »
I am preparing for informatics olympiad. In them a time limit is always given My question is that how can I knew that my code would satisfy the ti...
(0) odpowiedzi
2017-08-17 22:08 How can I use C#6 to shorten repeated declarations and initialization? »
I've simplified example code below to demonstrate the question. A single Page object can have N Element objects, in theory there could be hundreds. In...
(1) odpowiedzi
2017-08-15 08:08 c++ curly braces and comments »
C++ begginer here. I'm struggling a bit to get what's the best practice for curly braces + //comments. I see that for functions comments above the de...
(2) odpowiedzi
2017-08-14 19:08 How to create a singleton in Java using the spring framework? »
How to create a singleton in Java using the spring framework? There are several different approaches, using factories, using enums, using private sta...
(1) odpowiedzi
2017-08-12 17:08 the Quality between one code and another »
i just want to know when can we say that this code is better than that code i mean what the things that makes the code more effective than other code....
(1) odpowiedzi
2017-08-12 16:08 Are there Node.js coding conventions/standards? »
Are there any OFFICIAL coding conventions/standards regarding Node.JS? I found this one but looks like opinion based: https://github.com/felixge/node...
(0) odpowiedzi
2017-08-12 16:08 Cryptanalysis vs Bruteforce application »
Bruteforce is a simple method for cracking some account but using dictionary attack or key guessing and cryptanalysis is a study cipher but not know t...
(0) odpowiedzi
2017-08-11 18:08 java.net.MalformedURLException: no protocol: XXX.xml »
What I wanted to do is: Force a style check in my build in my Java maven project. I added this block in my pom.xml: <build> <...
(0) odpowiedzi
2017-08-04 18:08 Scala StdIn read methods - correct use (omitting parenthesis or not) »
I'm aware that the official scala style guide states for no-argument methods we should omit parenthesis when calling them if they have no side effects...
(1) odpowiedzi
2017-08-04 12:08 What is UI main fluid container in HTML? »
Not able to understand effects it creates in the HTML. Like what it means when written as ...
(2) odpowiedzi
2017-08-03 04:08 How to take a simple integer matrix as input in python3 »
I want to take a simple matrix as input in a 2-D array, but get a Runtime Error - NZEC error. Matrix - 1 2 3 4 my input code - for i in ran...
(1) odpowiedzi
2017-08-02 13:08 Angular 2 standard coding style guide »
I can see the style guide written by angular team over here: https://angular.io/guide/styleguide and i agree with most of the guides but there i...
(1) odpowiedzi
2017-08-01 17:08 What is the better way of writing input[type=text] or input[type="text"] in css »
Writing some CSS for my own project. When writing styles for the form element, I wrote some CSS as below: input[type="text"], input[type="email"] {} ...
(1) odpowiedzi
2017-08-01 14:08 Use of constants in Java class »
I have a Request class with a number of final and not final fields. It's used for one and only one type of request. But the service, to which it is ...
(2) odpowiedzi
2017-07-28 19:07 Dagger2 + MVP + RxJava + Retrofit 2 »
My new project is gonna start . Libraries and programing approach is correct or need to add more. Please let me know. Suggest me most recent successfu...
(0) odpowiedzi
2017-07-28 09:07 Is there a name for copy and paste coding error? »
Is there any name for the coding mistake that is caused by defining a variable by copy and paste? Example Wrong For example, this part is written...
(0) odpowiedzi
2017-07-27 13:07 IntelliJ IDEA - Opening brace for case block in Javascript »
IntelliJ keeps formatting my switch case opening brace as follows: switch (example) { case 'example': { const val = 'example'; return val...
(1) odpowiedzi
2017-07-24 19:07 Python list comprehension remove element and next element from list »
I wanted to use list comprehension to remove all the occur ices of '\x08' (backspace character) from a list of chars I also wanted to remove the char ...
(1) odpowiedzi
2017-07-23 01:07 ES6 Formatting in Sublime Text 3 / VS Code »
I was watching a video tutorial and I found ES6 arrow function ( => ) was formatted in a symbol. Please let me know is there any plugin/extension o...
(1) odpowiedzi
2017-07-21 21:07 How to write a shorter and more efficient code for a for loop with try catch retry mechanism? »
I have to make a function call. If it fails, I retry another 2 times. If it still fails after the 2 retrys, I throw an exception. Below is my current...
(2) odpowiedzi
2017-07-21 09:07 How do I send notifications and minor updates to all users of my app? »
A little background I'm currently a novice programmer eager to learn how Android apps. I believe that I learn best by challenging myself, so I'm tryi...
(2) odpowiedzi
2017-07-20 12:07 Compare constant equals object or object equal constant »
Follow Java best-java-coding-practices.htm, they say we need call .equals on known string constants rather than UNKNOWN variable String string = new ...
(0) odpowiedzi
2017-07-20 11:07 For my bread crumbs anchor links are not present in magento 1.9.x »
Please have a look at the code of breadcrumbs.phtml: <?php if($crumbs && is_array($crumbs)): ?> <!-- SLIDER START HERE-->...
(2) odpowiedzi
2017-07-19 14:07 Any logical explanation behind android naming convention ? »
I am wondering that could be a logical explanation behind: Non-public, non-static field names start with m. in Android https://source.android....
(1) odpowiedzi
2017-07-18 20:07 Php PSR Standards for long comments »
I have a really long url (100 chars) to be added in a code comment that may need to be broken down in 2 lines due to the PSR 2 Lines Soft limit (80 ch...
(0) odpowiedzi
2017-07-18 09:07 How to safeguard from SQL Injection while dynamically generating insert values in raw query? »
I have a need to run raw SQL in the context of EF for performance reasons. I cannot use Stored Procedures as I don't have control over the DB. I have ...
(0) odpowiedzi