back soft

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

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! بخوانید...

ادامه مطلب

Process all rows using two different queries

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 query on all rows followed by second query. I have to process using two while loops. Can I process two queries using single loop? asked 1 min agouser6181297 Let's block ads! بخوانید...

ادامه مطلب

how to freeze top row in excel using vbscript

Vote count: 0 Dim app, fso, file, fName, wb, dir dir = "D:TA" dirsave = "D:TAXLS" Set app = CreateObject("Excel.Application") Set fso = CreateObject("Scripting.FileSystemObject") For Each file In fso.GetFolder(dir).Files If LCase(fso.GetExtensionName(file)) = "csv" Then fName = fso.GetBaseName(file) Set wb = app.Workbooks.Open(file) app.Application.Visible = True app.Application.DisplayAlerts = False app.ActiveWorkbook.SaveAs dirsave & "" & fName & ".xls", 56 app.ActiveWorkbook.Close app.Application.DisplayAlerts = True app.Application.Quit End if Next I use this script to open csv file and save them in another directory as xls file. I also want to add one more feature - I want to free the t...

ادامه مطلب

Count the number of nodes of a doubly linked list using recursion

Vote count: 0 Here is what I've done so far: struct rep_list { struct node *head; struct node *tail; } typedef rep_list *list; int length(const list lst) { if (lst->head == NULL) { retu 0; } else { lst->head = lst->head->next; retu 1 + length(lst); } } This works, but the head of the list the function accepts as a parameter gets changed. I don't know how to fix that. I'm not allowed to change the function definition so it should always accept a list variable. Any ideas? asked 1 min agoRrmm 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? ...

ادامه مطلب

Exceptions while using GoogleSingIn

Vote count: 0 I'v added G+ button and tried to run app but receive that And i can't find any solution in google asked 2 mins agoOokey Let's block ads! بخوانید...

ادامه مطلب

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...

ادامه مطلب

Unable to unzip a file using java but able to unzip it using 7zip

Vote count: 0 I am trying to unzip a file using java but the following code doesnt enter the while loop as 'ze' is null. However the same file I am able to unzip using 7zip application. Can someone let me know why is this happpening? try{ //get the zip file content ZipInputStream zis = new ZipInputStream(new FileInputStream(zipFile)); //get the zipped file list entry ZipEntry ze = zis.getNextEntry(); while(ze!=null){ String fileName = ze.getName(); File newFile = new File(outputFolder + File.separator + fileName); System.out.println("file unzip : "+ newFile.getAbsoluteFile()); //create all non exists folders //else you will hit FileNotFoundException for compressed folder new File(newFile.get...

ادامه مطلب

How to fix a messed up Git project using SourceTree

Vote count: 0 Somewhere I made a bunch of changes and I need to go back to an earlier version. I copied my current projects out of my local directory that contains the project. The project contains about 5 directories. I copied out two of them and then deleted those two folders. I now need to reset back to an earlier version. I'm using SourceTree and need help to go back to the last commit. I double clicked on the tag and it shows this message: I don't know what that means so I selected the second to top row and right clicked. It showed "Reset to master to this commit". I attached screen shots. I just want to reverse all my local changes at this point. Is this what I want to do? asked 1 min ...

ادامه مطلب

Upload an image using html/javascript/Mongodb/WebServices

Vote count: 0 I want to upload an image from the user's disk to my MongoDB. When I have the all path, it works. But with , it doesn't works (not the complete path, and it's normal, for the security ...) So I want to know if there is an other way to do that ... (Even a solution where I store directly on the server will be ok (Using javascript, html, ajax, ... ) Thank you. asked 1 min agoMasiwan Let's block ads! بخوانید...

ادامه مطلب

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...

ادامه مطلب

Updating firmware using the Azure IoT Hub

Vote count: 0 I intend to use the IoT Hub to update firmware of my Edison device utilising its bi-directional capability although I am not sure of where to look for detailed instructions on how to do it. The only information I have found on the subject is HERE but doesn't go into detail on how exactly to do it, more a high level overview. Does anyone have any knowledge on how this is to be done or know any links that will help? Thanks asked 1 min agoBrentA Let's block ads! بخوانید...

ادامه مطلب

asynchronously update using php

Vote count: 0 I have two php files (index.php and insert.php) My index.php has a form that takes in three inputs from the user (activity, duration and date -- this is for a fitness app) and stores it in a database. I have written the code to insert into the database, which it successfully does, however now I want to add notifications to the site so that the user knows whether or not their input was inserted. For example, if the duration they input isn't a number or is less than 0, I want text to show on the site that notifies them to change the duration to an appropriate value. I have written the script for that and want to accomplish it asynchronously. Right now, I just want it to print out...

ادامه مطلب

Using fopen with unicode filename

Vote count: 0 I am in the same situation as fopen with unicode filename, where I want to use a library that uses fopen. The library in question is minizip, and I need it to work with UTF-8 encoding, on windows, UNIX (OSX), iOS and Android. I read the answers, including the discussion about GetShortPathName, and essentially the conclusion is to rewrite the library. Is there any way around this? Also, i read that the fopen function on UNIX system can handle UTF-8 encoding (unlike its windows counterpart). Can anyone confirm this? asked 1 min agoDavid Menard Let's block ads! بخوانید...

ادامه مطلب

Retrieve AngularJS $http.post server data using PHP

Vote count: 0 I am calling a $http.post function but can not grab the data on the other side, the calls goes through successfully but can not retrieve the data in my PHP script AngularJS: var data = { firstname: $scope.first_name, lastname: $scope.last_name, email : 'test@fff.com', user : userID }; var config = { headers : { 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8;' } } $http.post('http://xxx-env.us-east-1.elasticbeanstalk.com/apipost/updateusersetting/user/'+userID, data, config).success(function (data, status, headers, config) { alert('yay'); // this works and gets called }) .error(function (data, status, header, config) { }); Server side PHP: $data = json_decode(f...

ادامه مطلب

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! بخوانید...

ادامه مطلب