back soft

مطالب مرتبط با «using nd» در back soft | نویسنده: استخدام کار

Problems using tableview and tablecolumns in JavaFX

Vote count: 0 I'm working with JavaFX and I want to implement a filter that is accesing data from a database. The code below access data from two tables in a database. The data is retrivied and put in a tableview, using javaFx. My problem is that the last column from the tableview remains empty. The code is ruing well, is working fine but that last column should not be empty. I must say that data for the last column comes from one table and the data for the others columns come from the other table. So, why my last column is empty? @FXML private void handleButtonAction(ActionEvent e) throws SQLException { tableFilter.getItems().clear(); DBMain.createCoection(); DBMain.setStatement(DBMain.getC...

ادامه مطلب

Is it possible to activate a windows application window using javascript?

Vote count: 0 I am trying to build a web page that will contain a list of windows from another Windows application (Trade Ideas). Is it possible for me to use links in this web page to activate the Trade Ideas windows? In other words I would use Javascript to activate the corresponding Trade Ideas window when it's name is chosen from the list. asked 1 min agoRob Let's block ads! بخوانید...

ادامه مطلب

Using Javascript in Underscore template

Vote count: 0 I need to display formatted date using my underscore.js template. I am using moment.js. My template is as follows: // date, homeTeamName, homeTeamName values come from JSON object + + : This does not render the template properly. Gives an error: underscore.js:1454 Uncaught SyntaxError: missing ) after argument list which is somewhere deep in underscore.js. What's the proper syntax to put a JSON value inside code in the template, i.e. how can I pass date, which comes from JSON object; into moment() The code which I want to generate in template looks like this: var matchDay = moment("2016-05-15T15:00:00Z"); // date should fill from JSON value matchDay.format("MMMM-DD-YYYY"); aske...

ادامه مطلب

c++ using template and virtual method in one class

Vote count: 0 I have a little inheritance/template problem. I'm trying to create an interface IBinding which is implemented by a TcpClient and a TcpServer (there will be 2-3 different TcpServers which differ only in the type of Stream(Socket abstraction) they generate after accepting a coection request. Here is a simplified example: Interface: struct IBinding { virtual ~IBinding() {} virtual void bind(const std::string endpoint) = 0; virtual void terminate() = 0; }; typedef std::shared_ptr TBindingPtr; Header: #include "IBinding.h" class TcpServer : public IBinding { public: TcpServer(); ~TcpServer(); virtual void bind(const std::string endpoint); virtual void terminate(); }; Implementation:...

ادامه مطلب

creating a static library and linking using Cmake

Vote count: 0 I have a application which need to use two libraries (pugixml and lua) and need to be an multi-platform build capable. I am trying to use Cmake for this. Since I have three different solution (two for creating static libraries and one solution which actually uses that libraries). So far what I do is run Cmake for those two libraries and copy those static libraries manually to the lib folder into application and run cmake again. I need to reduce the three step and make it as a single step so that I can handle the multi-platform build in a single shot. I need to know, should we need to create a dynamic link library or shared library or static library for these kind of operation? ...

ادامه مطلب

How to perform readstream and write stream in websocket connection?(using java and vert.x)

Vote count: 0 I created websocket server using vert.x core 3.2.1. There are 2 paths "/read" and "/write" with which clients can work. In "/write"-path clinets write messages. If they coect the "/read"-path they must see this messages, which they have written in "/write". In order to accept my server I use SimpleWebsocketClient(in google chrome). So I want to do the next: for example 2 clients coect "/read" path. Nobody sent messages in "/write"-path. Client starts and displays "no messages.press end to exit",client remains opened. After some time other client enters "/write" path and sends a message and those clients which have already opened "/read" clients recieve this message. My code(ser...

ادامه مطلب

Using pyparsing Forward() with multiple rules to find palindromic sequence

Vote count: 0 I am trying to find palindromic sequences within DNA by using recursion. I am doing this because it is impossible to know the exact length of a palindromic sequence within DNA. I have worked through the problem in my head and on paper, but the code below still does not come up with the answer I want it to. I am new to pyparsing and using CFGs. Therefore, I might be wrong with the way I set the code up. Any help would be welcome. stem = Forward() atRule = Word("A") + ZeroOrMore(stem) + Word("T") taRule = Word("T") + ZeroOrMore(stem) + Word("A") gcRule = Word("G") + ZeroOrMore(stem) + Word("C") cgRule = Word("C") + ZeroOrMore(stem) + Word("G") stem...

ادامه مطلب

What does Android Lollipop do using memory cgroup?

Vote count: 0 In the init.rc ,I can see that lollipop create a root directory mounted with memory, and a child cgroup called sw is created under the root. mount tmpfs none /sys/fs/cgroup mode=0750,uid=0,gid=1000 mkdir /sys/fs/cgroup/memory 0750 root system mount cgroup none /sys/fs/cgroup/memory memory write /sys/fs/cgroup/memory/memory.move_charge_at_immigrate 1 chown root system /sys/fs/cgroup/memory/tasks chmod 0660 /sys/fs/cgroup/memory/tasks mkdir /sys/fs/cgroup/memory/sw 0750 root system write /sys/fs/cgroup/memory/sw/memory.swappiness 100 write /sys/fs/cgroup/memory/sw/memory.move_charge_at_immigrate 1 chown root system /sys/fs/cgroup/memory/sw/tasks chmod 0660 /sys/fs/cgroup/memory/s...

ادامه مطلب

How to do push notification in android using GCM

Vote count: -1 I am very new to the world of android programming. In my project i have to do push notification using GCM. I have searched for it in inteet but haven't found any useful article. Could anyone suggest me any article related to implementing push notification in android. Thank you in advance. SAJITH asked 2 mins agoSAJITH Let's block ads! بخوانید...

ادامه مطلب

Using Editors from Blend

Vote count: 0 I would like to use the Editors which blend uses. Like for Margin, Point3D, Brushes and so on. How can I use them? I googled and can't find anything helpfull. I also tried to snoop Blend but it also ended without result. asked 3 mins agoegse Let's block ads! بخوانید...

ادامه مطلب

Using CSS and/or JavaScript, how do I scale a block element to appear close to the same size on multiple mobile devices?

Vote count: 0 I built a Google Cardboard app (or at least a Google Cardboard-compatible app with room for improvement) that works well on phones with 5-6" screens (iOS and Android) and a Google Cardboard viewer designed to work with those 5-6" screens. However, if viewing the app in a larger "phablet" screen, vision doubles and the app becomes useless for those devices. Since the app primarily runs in the phones' stock browsers Safari and Chrome, is there a way to scale down the app canvas/block element to stay within the 5-6" range on larger mobile devices? Here is a rough illustration of what I'm trying to accomplish: So far my search brings me to answers like this one, explaining that thi...

ادامه مطلب

While tranforming xml to html using xsl and java.I need to use style attribute(inline style) with xml element value

Vote count: 0 I have the requirement in below way .I need XMl element for xslt table inline style.Please check the below code. XML pseudo code:- --------------- This is the xml code which contains the following data This is message #66666 XSLT CODE:- ---------- My CD Collection //something in this way i need use So i need to use inline style as xml element . is there any solution for this and suggest me where i can lea xslt with xml and java In simalar way i need to add css file in that also i need to use this xml element of color value Thanks in advance asked 2 mins agouser3770726 Let's block ads! بخوانید...

ادامه مطلب

How to upload file in database using Restful webservices and AngularJS

Vote count: 0 I am new to Restful and AngularJS. I have one requirement in which i have to upload any MIME file into database using RestFul and AngularJS. asked 1 min agoRahul Maurya Let's block ads! بخوانید...

ادامه مطلب

Using Okhttp to get a json file but need to add a username and password

Vote count: 0 I am trying to log into server to receive a json file back. But the server needs a useame and pass word. I don't know how to add that into my build. I looked at a lot of sources but I caot figure it out what to add to my builder. Thank you very much for any help Here is my OkhttpHandeler code public class OkHttpHandler extends AsyncTask { OkHttpClient client = new OkHttpClient(); Response response; Request request; private final String apUrl = "http://xxxxxxxx.xxxxxx.com/api/1.0/promotions"; String output; String picture; //JSon Data String jsonData; JSONObject jsonObject; JSONArray jsonArray; @Override protected String doInBackground(String... params) { RequestBody formbody = ...

ادامه مطلب

How to find a key using a value in a python 3 dictionary?

Vote count: 0 I am writing a cypher and I've assigned numerical values to every letter in the alphabet, alphabet_dictionary = {'a': 0, 'b': 1, 'c': 2,... etc.}. I first convert the letter in message to numbers and do some arithmetic on them and store those numbers in a variable named code, but then I want to convert them back to letters, how do I go about doing that? so far this is what I have: for number in code: for letter, value in alphabet_dictionary.items(): if value == number: coded_message.append(letter) this actually works, I end up with a the correct coded message inside my coded_message list. But I am wondering if there is something better or more efficient I can do. ps: If you cou...

ادامه مطلب

How to make a function that will calculate the area under the curve of the graph using node.js?

Vote count: 0 I need to make the function so that it calculate the area when I enter function f and coefficients a, b and n on the command line. For now I have this: module.exports = function (f,a,b,n,next) { parseFloat(a); parseFloat(b); parseInt(n); var h = (b-a)/n; var s = 0; var suma = function () { for (var i = 0; i...

ادامه مطلب

file retrieval in rails app using paperclip and fog-google

Vote count: 0 In a Rails 4 app, I am using Paperclip and the fog-google gem to store pictures in my Google Cloud Storage bucket. Everything works great for file upload. The problem is that when I retrieve a bunch of photos to display, it is incredibly slow. The requests take waaay longer than they should. I believe the problem is that fog is authenticating each and every request so it takes a long time to retrieve a bunch of files. In my development environment, things are really snappy because the pictures are stored locally. It is only in production that the requests are really slow. The url of the stored file in the Google bucket is public, so I am wondering if there is away to tell fog n...

ادامه مطلب

Creating friendly url in php using slim framework

Vote count: 0 I want to open profile page like www.website.com/slim/useame (where useame is unique) . I am currently using slim php framework for routing GET requests. So when I open " www.website.com/profile/useame " it properly executes the route defined for '/useame' and gives simple json response like this {"users":[{"id":"01","firstname":"kamron","lastname":"shaw","gender":"male","status":"Offline"}]} From this point I wanted to integrate this data with the profile page template, so I made a profile page template at www.website.com/profile.php and from there used ajax to make a GET request to" www.website.com/slim/useame " and receive data and display it with template. Problem is that i...

ادامه مطلب

Using the tar command to display all files in a .tar archive to a file and to standard output

Vote count: 0 Is it possible to direct that input from this command to a file and also to standard output? tar -t all.tar Also Is there a way to kill all processes ruing lets say an xclock? asked 1 min agoJimBob101 Let's block ads! بخوانید...

ادامه مطلب

How to post data using prompt and update database?

Vote count: 0 function edit() { var num=prompt("Enter new number",""); $.post('edit.php', {num: num}); } The above code is working but not always!! asked 4 mins agoJobin John Let's block ads! بخوانید...

ادامه مطلب