How to stop this looping?
◷
تاریخ انتشار: 1395/1/22 | ساعت: 2:22
Vote count: 0 Reading Thinking of Java by B.Eckel, run into a such problem. In a chapter about control frameworks there is a program which controls greenhouse, and this program executes a list of events and then, restart this list to make execute possible again. The question is how to stop restartin...
How to style new page template in WordPress
◷
تاریخ انتشار: 1395/1/22 | ساعت: 2:22
Vote count: 0 I've just created a new page template in WordPress, starting from the default code in page.php. For the new template, I want to remove the footer and header information (logo, menu, etc), while keeping all the other properties of the default template. How can I do this? When I remove <...
multiply certain elements in an array
◷
تاریخ انتشار: 1395/1/22 | ساعت: 2:22
Vote count: 0 is there anyway you can multiply certain elements in an array by one number an the others by another? array = [1,2,3,4] is there anyway I can multiply the 1st and 3rd by 2 and the second and fourth by 4 at the same time? python 2.7 btw asked 1 min agojack Let's block ads! (Why?)
Process all rows using two different queries
◷
تاریخ انتشار: 1395/1/22 | ساعت: 1:01
Vote count: 0 There are two different queries. select * from blockinfo where book='$cod' and user='$user' select * from blockinfo where user='$user' and book='$cod' and flag!=0" these two queries are to be executed on pages like these example.com and example.com?cod=value. I have to process first qu...
align logo, nav and social icons on one line
◷
تاریخ انتشار: 1395/1/22 | ساعت: 1:01
Vote count: 0 I am trying to align the logo, nav links, and social icons on one line. I am using bootstrap, and custom css styling on my page. HTML: <header id="header-main"> <div id="site-header"> <div class="container"> <div class="row"> <div class="col-sm-12"> <div id="site-logo"> <a href="www.go...
table.setAutoCreateRowSorter (true) doesn't sort table column correctly
◷
تاریخ انتشار: 1395/1/22 | ساعت: 1:01
Vote count: 0 While developing a small task manager I have noticed that columns aren't sorted correctly. To discard problems with my program I have created a minimal version but it still fails to order the unique column right. import java.awt.BorderLayout; import java.util.List; import java.util.Ran...
Scope of boost::multi_array
◷
تاریخ انتشار: 1395/1/21 | ساعت: 22:45
Vote count: 0 I am using a boost::multi_array to store some data. I do all my work on the data using views, because I need to work with slices of the data in different dimensions. My question is, how is the memory of boost::multi_array managed? In particular, I would like to work with a copy of a sl...
blockchain/service-my-wallet-v3 - Connection refused
◷
تاریخ انتشار: 1395/1/21 | ساعت: 22:45
Vote count: 0 I installed blockchain/service-my-wallet-v3 from github and start it $ blockchain-wallet-service start --port 3000 1460128138018 - info: blockchain.info wallet service v0.19.3 ru ing on 127.0.0.1:3000 but its not listening 3000 port, this $ netstat -an | grep 3000 retu nothing, and co ...
SQLite DB with Content Provider race conditions
◷
تاریخ انتشار: 1395/1/21 | ساعت: 22:45
Vote count: 0 I implemented Content Provider that uses a SQLiteDatabase as its backing data source. One activity (code) writing to the DB by calling getContentResolver().applyBatch(operations), which should be atomic. Second activity (code) reading from the DB with the help of Cursor Loader, and som...
Java's protected doesn't protect
◷
تاریخ انتشار: 1395/1/21 | ساعت: 21:40
Vote count: 0 Java's protected members declared in class are visible in the whole package Why ? I simply want to share privacy between my class and it's subclasses but Java doesn't allow me what I am supposed to do ? asked 1 min agouser2591935 Let's block ads! (Why?)
Databases and tables for a deskop Electron app
◷
تاریخ انتشار: 1395/1/21 | ساعت: 21:40
Vote count: 0 I wish to create a desktop app using Electron (html and javascript), something that will contain contacts, costs, profits etc. All in tables(rows, columns, cells). I know that I can't use php and mysql in Electron. I know I can use IndexedDB but I find it too confusing for me. Is there...
asp.net retain list values between postbacks
◷
تاریخ انتشار: 1395/1/21 | ساعت: 21:40
Vote count: 0 Hello everybody and thanks in advance, I've made a class in my .cs file and then declared a list<> of it like this... public partial class MyClass : System.Web.UI.Page { public List<PrecioStock> PreciosYStocks = new List<PrecioStock>(); protected void Page_Load(object sender, EventArgs...
How to load local text file into string variable in ReactNative Project?
◷
تاریخ انتشار: 1395/1/21 | ساعت: 20:23
Vote count: 0 In my ReactNative project there are some static text files which i'd like to load into a string variable. I tried require in the same way i'm requiring javascript files, but it doesn't work because react native gives exception "Unable to resolve module ./data/tags.txt". var customData ...
Phingdoc for auto documentation of targets
◷
تاریخ انتشار: 1395/1/21 | ساعت: 20:23
Vote count: 0 after committing a big amount of new phing targets to our repository, my fellow colleague surprisingly asked for a documentation. Though my code is self explanatory I want to provide a documentation for future use. As I am a lazy programmer, I want to autogenerate as much as possible. ...
Self processing page with sql and python
◷
تاریخ انتشار: 1395/1/21 | ساعت: 20:23
Vote count: 0 Im creating a shop page as my college project. I have a database set up and Im trying to use the select and submit to open a new page which will display information about the selected part. I just cant seem to be able to extract data from the database, can you help please ? That's a pa...
How to search a specific binary extension in github?
◷
تاریخ انتشار: 1395/1/21 | ساعت: 19:01
Vote count: -1 I want to find some abeille *.jfrm files,so I tried https://github.com/search?utf8=%E2%9C%93&q=extension%3Ajfrm It failed : Search text is required when searching source code Using google I found some results. Is there a way to search binary files with specific extension? asked 5 mins...
Cakephp 3 cache configuration
◷
تاریخ انتشار: 1395/1/21 | ساعت: 19:01
Vote count: 0 I'm facing problems when trying to configure Cache in Cakephp 3. My config is as follows: Cache => [ 'default' => [ 'className' => 'Apc', 'path' => CACHE, ], '_cake_core_' => [ 'className' => 'Apc', 'prefix' => 'mandealR_cake_core_', 'path' => CACHE . 'persistent/', 'serialize' => true...
How to retrieve stdobject class outside the foreach
◷
تاریخ انتشار: 1395/1/21 | ساعت: 19:01
Vote count: 0 Array ( [0] => stdClass Object ( [rating] => 2 ) ) How do I get the rating value from this array asked 5 mins agoSuganya Rajsekar 1 Answer Vote count: 1 This value is an array containing elements of type stdClass. These elements have fields that can be accessed using element->field_nam...
DocPad How can I include file into eco template
◷
تاریخ انتشار: 1395/1/21 | ساعت: 18:01
Vote count: 0 I'm writing application with Docpad and I want to not duplicated navigation code in two different ECO templates. How can I include this code from exte al file? I was trying with include() function but it seems doesn't work. asked 1 min agouser3219243 Let's block ads! (Why?)
When text box is length is 0 change HTML table td color?
◷
تاریخ انتشار: 1395/1/21 | ساعت: 18:01
Vote count: 0 I'm trying to make a table change a td depending on what is in my text document. No if the doc is empty I want it to have a white background with black text, but if there is content in side the document the set it the background to grey with white text. It also echos what's in the docu...