Vote count: 0There is no problem with sqlite 3 but 'PG :: GroupingError: ERROR' appears in posgresql's environment.I want to display posts with a lot of total by using paginate's gem in the order of total of like, but it is displayed without problem in sqlite 3posts_controller.rb def popular @posts = Post.joins(:likes).group(:post_id).order("count(*) desc").paginate(:page => p...
ادامه مطلبVote count: 0I'm developing a blu-ray menu with java (BD-J). I developed a simple loading animation. when ruing it on PS3, soft players (PowerDVD, TotalMedia Theatre, ...) and some hard players (Samsung ht-c6950w), there is no problem and it runs like a charm. But when ruing it on other hard players (LG, Panasonic, Samsung,...) nothing happens. You caot see any image on the sc...
ادامه مطلبVote count: 0I have setup localisation and debugged it completely fine on IIS Express on my local machine. I have uploaded the compiled resource .dll files located in the /bin/LANG_CODE folders to my server and edited the Web.Config.I added this to the module tags: And I add this to the system.web tags in the Web.Config: The behaviour on the localmachine is the complete desired result...
ادامه مطلبVote count: 0Orderby works when the page first loads, with the default value set in scope. But then value for the Order By changes, the sort order does not change. The option selector does assign the correct value upon selection and I have verified that. But no change in the sort order.Here is how I have my select options defined.RiskTalkNameAgeHere is how my ng-repeat is defined.The...
ادامه مطلبVote count: 0i have a main activity to set alarm and create notification :public class MainActivity extends Activity { @Override public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) { super.onCreate(savedInstanceState, persistentState); } public void scheduleNotification(Notification notification, long delay) { Intent not...
ادامه مطلبVote count: 0i have edittext for search in oncreate() method. but whenever i am launching activity by default the edittext has RequestFocus() means it opens keypad launching an activity. i want to hide that keyboard. the following is the my codepublic class TwoList extends AppCompatActivity { private final String TAG = this.getClass().getName(); TextView tablenoset, orderidset...
ادامه مطلبVote count: 0I have php file inside public folder of Laravel installation that generates javascript code and i need to use Laravel php variable inside that file. How can I access Laravel php variable defined inside blade template? Thanks for attention. asked 13 secs agoAzer QurbanovLet's block ads!...
ادامه مطلبVote count: 0I have successfully setup fast-lane in my project.I have tried ruing fast-lane action from terminal and it works correctly.And on Trigger i am adding the same command on Post script triggerBut i get the error..What am i missing? asked 29 secs agoCostelloLet's block ads!...
ادامه مطلبVote count: 0I have an issue here, I have an entity that contains relationships only, and I need to show in the table generated by backpack crud another field of the entity instead of the id, check it out in the picture below:For instance, the President is a user, and I want to show the Name of that user instead of the id, is there any way to achieve this?, thanks.Bests! asked...
ادامه مطلبVote count: 0I'm having problems when ruing Symfony tests in my server, it works as expected in my build host but when I upload them to Gitlab CI via Git it throws me the next error:Class 'PHPUnitFrameworkTestCase' not found in /project/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Test/KeelTestCase.php on line 24It was working until a few weeks ago.My server Symfony...
ادامه مطلبVote count: 0I did a code for a features where I uploaded the file and it will get saved into database and files folder (for filePath). But when I run and after uploaded the file, the gridview did not appear and showing the file that already uploaded. I tried tu to AutoGenerateColums=true and databind(). but the gridview still did not appear. What I'm doing wrong here?this code for...
ادامه مطلبVote count: 0Hi I need help about echoing message from another function, below is my script, in my database is already set the product_quantity is 0, but not able show the alert message, its that anything wrong in the code?function get_products_in_cat_page(){ $query = query(" SELECT * F...
ادامه مطلبVote count: 0@SpringBootApplication @Slf4j public class Starter { public static void main(String[] args) { SpringApplication.run(Starter.class, args); } } Applicaiton.ymlspring: profiles: default allowedIPPatte: 127.0.0.1|0:0:0:0:0:0:0:1|::1 jpa.hibeate.ddl-au...
ادامه مطلبVote count: 0Hi everyone i am very new to batch scripting,As part of my project i need to add text in the middle of bunch of files,which i am able to do it successfully,but after copying the file to new location i noticed that the html tags are missing ,i tried every possible way to sor...
ادامه مطلبVote count: 0I am trying to persist a given stream of data to an S3 compatible storage. The size is not known before the stream ends and can vary from 5MB to ~1TB.I tried different possibilities but did not find a better solution than to implement sharding myself. My best guess is to ma...
ادامه مطلبVote count: 0Why doesn't the 'values' array contain the 'Title' of each item within 'results'?The following code outputs: 1, 2, 3, 3, 3, 3 rather than the desired: 1, 2, 3, 1, 2, 3.var results = [ {Title: '1'}, {Title: '2'}, {Title: '3'}, ]; var fields = {...
ادامه مطلبVote count: 0I have a Bootstrap close button: When it is clicked it is supposed to make the class box disappear which works fine with the mouse cursor. However, no matter how I address it with selenium, it doesn't work (I am using LiveServerTestCase:element = self.selenium.find_element_...
ادامه مطلبVote count: 0I was trying to be a sneaky developer, and I done got myself lost in ES6 Proxies. Basically I wanted to capture any get or set in a property from another class I wrote and make sure they are stored somewhere else besides the object. It looks like this:'use strict' class MyO...
ادامه مطلبVote count: 0I want to process a GET extension in a HTML page and not a PHP page.I have looked through the inteet and not found anything.URL = examplesite.com?id=1234I assume this would go to the index page on the domain. As the index page is a HTML page, is there a way to get the det...
ادامه مطلبVote count: 0My Company has an iOS app which used the old parse.com service to send notifications using a php client. We have since bought a new app but some of our customers have decided to not upgrade to the new platform. What is the simplest way for me to repair the push functionalit...
ادامه مطلب