back soft

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

how to create apex trigger class using metadata api in java?

Vote count: 0 in salesforce how to create apex trigger class using tooling api in java? like i have created apex class using tooling api in java. the code is: ApexClass apexClass1 = new ApexClass(); apexClass1.setBody(classBody); // class body is string ApexClass[] classes = { apexClass1 }; SaveResult[] saveResults = stub.create(classes); apexClass1.getBody(); if (saveResults[0].success) { apexClassId=saveResults[0].id; } So can anyone tell me how to create apex trigger in the same maer. asked 42 secs agoSaikat Let's block ads! بخوانید...

ادامه مطلب

Any Sample Apps or links to trim video using collection view to add frames in it and save it in swift 2.0?

Vote count: 0 How to trim video in swift using collection view, and after dragging to left or from right with labels having start time and end time.? asked 22 secs agoLaxmi B Let's block ads! بخوانید...

ادامه مطلب

Grammar to parse a chess move using PEG

Vote count: 0 What is the correct grammar to parse a move in SAN format using PEG? The solution I come up is MOVE...

ادامه مطلب

How make server response on different sub-domains using web xml

Vote count: 0 Let's say i've a lot of different of sub-domains , I want to redirect each request to the server so it will response with different action on each request of sub-domain (with text or html generated on server) I'm working with EJB 3.1 on Tomcat 7 using web.xml http://companyName1/mycompany.com responce to client: "hello aaa companyName1 ..." http://companyName2/mycompany.com responce to client: "hello bbb companyName2 ..." http://companyName3/mycompany.com responce to client: "hello ccc companyName3 ..." What is correct web.xml or server.xml mapping to solve this issue ?? Thanks!! asked 34 secs agoVitaly Tarasiuk Let's block ads! بخوانید...

ادامه مطلب

Access Firebase using own API or through app

Vote count: 0 I am about to start making an app using Firebase for both Android and iOS. I plan to have a backend which will do regular clean-ups of the data such as deleting at the end of the day. Would I be better off using the Firebase Database directly through each of the iOS and Android apps, not accessing my own server at all, OR Would I be better off using Node to access the Firebase Database, and then making my own RESTful API and making the calls to Firebase from the mobile apps through my API? Thanks in advance for your help! asked 2 mins agostefanmcshane Let's block ads! بخوانید...

ادامه مطلب

base64 image back to png using java too long constant

Vote count: 0 I am trying to lea java base64 conversion to image import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import redis.clients.jedis.Jedis; public class HelloWorld { public static void main(String[] args) throws IOException { byte[] btDataFile = new sun.misc.BASE64Decoder().decodeBuffer("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAn4AAAMUCAYAAAAiyCroAAAMGWlDQ1BJQ0MgUHJvZmlsZQAASImVVwdUU0kXnldSCEkogQhICb0J0qv0XgSkg42QBAglhkBQsSOLCq4FFVEUFV0Rsa0FkLUgo...AAABJRU5ErkJggg=="); File of = new File("/Users/myfolder/Desktop/yourFile.png"); FileOutputStream osf = new FileOutputStream(of); osf.write(btDataFile); osf.flush(); } } Problem is that it too long (w...

ادامه مطلب

How to set the value of a macro using environment variable or command line in verilog?

Vote count: 0 I want to define a macro during runtime in Verilog using environment variable. For example, I want to print some text to a file only when the DEBUG macro is set. `define DEBUG 0 ... if(DEBUG) $fwrite(file,"Debug message"); How can I override the definition of DEBUG to 1 when ruing the simulation from command line or using environment variable? Alteatively, I could keep the macro undefined and use ifdef `ifdef(DEBUG) $fwrite(file,"Debug message"); In this case I would have to define the macro DEBUG when ruing the simulation. Is this possible? I am using Modelsim. Thanks. asked 20 secs agoShafeey Let's block ads! بخوانید...

ادامه مطلب

How to apply loop to extract contents from "DIV" tag while using Beautiful soup?

Vote count: 0 i have recently found a very neat way of web scrapping using bs4 , that has a really nice organized structure to it. let us say this is our html code. 'hi' 'hi again' 'well this final' 'hi' 'hi again' 'well this final1' now i am assuming (div class = "a") is our parent tag and we will suck info out of this tag , now that means i have to loop through this to extract info from all the page . but because i was having a hard time understanding BeautifulSoup i did a test run with a python code to extract the info from the first iteration of this ( div "class= "a") my code is like this : soup = BeautifulSoup(r.text) find_hi = soup.find('div',{'class':'a'}).div.text find_hi-again =sou...

ادامه مطلب

How to redirect to URL unless some conditions is not met using HandlerInterceptor in a Spring Boot Web MVCApp

Vote count: 0 I am using Spring Boot for a WebMVC App. There are many url that i serve in my app like /company /level /student etc. Problem is How do i redirect to '/company' whenever any request is made and company has not yet been register. I have tried using HanlderInterceptor like this public class CompanySetupInterceptor implements HandlerInterceptor { Logger logger = Logger.getLogger(CompanySetupInterceptor.class); CurrentUser currentUser; @Autowired CompanyService companyService; @Override public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o) throws Exception { /*check company is registered or not * if not redirect to /compa...

ادامه مطلب

Fitting data into a ggmap frame using google's maps

Vote count: 0 I need to plot my ggplot2 data onto a terrain maptype using ggmap. My data ( geom_points for stream samples) will not fit into the frame. "osm" fits perfect but does not have terrain. "stamen" will not load due to the pngjpeg error. Google would be best. Here are the three methods I have researched and tried to use to fix the problem. # Messing with location and zoom map = get_map(location = box, source="google",maptype="terrain",color="bw") #Method 1 box = make_bbox(lon =c(-117.65166, -117.07805) , lat =c(47.74675, 48.11684), f = .05) #Method 2 scale_x_continuous(limits = c(-117.7, -117.06), expand = c(0, 0)) + scale_y_continuous(limits = c(47.74675, 48.21684), expand = c(0, 0...

ادامه مطلب

How to read data from Siemens s7 1200 plc using vc++

Vote count: 0 I am trying to communicating Siemens S7 1200 PLC with visual c++ . I am able to write data to the plc and make an output from plc using 'UpdateData(true)' function. But i want to read a data from the plc on pressing a push button. Any help would be gratrful Thanks asked 2 mins agoVijin Let's block ads! بخوانید...

ادامه مطلب

Retrieve database information dynamically into label using DropDownList

Vote count: 0 I'm trying to retrieve data into labels dynamically. Meaning to say the label will change as i change the DropDownList selected item. Is it possible? aspx: aspx.cs: //page load box retrieve SqlCoection myCoect2 = new SqlCoection(_coStr); string strCommandText2 = "SELECT Card_Type, Card_Type2, Card_Number, Card_Number2, Name_On_Card, Name_On_Card2, Expired_Date, Expired_Date2 From Card_Details where Card_Id = @Card_Id"; myCoect2.Open(); SqlCommand cmd2 = new SqlCommand(strCommandText2, myCoect2); cmd2.Parameters.AddWithValue("@Card_Id", 1); ////open coection and retrieve data by calling ExecuteReader SqlDataReader dr2 = cmd2.ExecuteReader(); if (dr2.Read()) { string CNo1 = dr2["...

ادامه مطلب

How get fist set of thousand records and next set of thousand records using for loop in Netsuite 'N/search Module'

Vote count: 0 I want to process first set of thousand records and then next set of thousand records from the search results obtained from the Search Results . i'm getting the first set of thousand records using the method available in suitescript 2.0 version'N/search' module's Method (getRange(0,1000)). CODE: var mySearch = search.load({ id: 'customsearch_employee' }); var searchResult = mySearch.run().getRange(0, 100); for (var i = 0; i < searchResult.length; i++) { var entity = searchResult[i].getValue({ name: 'entity' }); }); I want know how to process next set of thousand records using the for loops. thanks in advance asked 8 secs agoMurugan Let's block ads! بخوانید...

ادامه مطلب

How to parse complex(Nested) JSON using Android Volley

Vote count: 0 I am a novice android developer and trying to lea JSON parsing for the last couple of days. I am able to parse simple JSON objects but when it comes to complex JSONs, I have no Idea how to go about it. I need to parse these two JSONs. Any help would be deeply appreciated. enter image description here enter image description here And I am only conceed about displaying the name. asked 11 secs agoshady Let's block ads! بخوانید...

ادامه مطلب

3D motion from 2D motion field using a standing still camera

Vote count: 0 I am quite new in Vision and Image Processing. I am trying to find the best toll to estimate the 3D motion vectors of the interest points of an object, having the 2D motion flow. In another word, I want to recognize the 3D motion of an object, having a sequence of 2D images taken from a standing still camera. What would be the best tool to convert these 2D vectors to 3D ones, without knowing the object geometry. (We might only know that the object is rigid, and hence the 3D distance between the interest points will not change.) Many thanks in advance asked 10 secs agoEric-6 Let's block ads! بخوانید...

ادامه مطلب

What are Advantages of using sql query in entity framework instaead of using in ado.net

Vote count: 0 As you know we can use raw sql query in entity framework by SqlQuery() method or ExecuteSqlCommand() method. in addition we use raw sql query in ado.net for add, change or remove data in database. My question is way we use entity framework to execute raw sql queries while we can execute them by ado.net? For example assume these codes: ADO.NET: public bool CheckUseameAndPassword() { string coectionString = "Server=localhost;Database=Project;Trusted_Coection=True;MultipleActiveResultSets = true; "; loginQuery = "SELECT Users.*,Useame_Password.* " + "FROM Users " + "JOIN Useame_Password ON Useame_Password.Useame_Email = Users.Email " + "WHERE Useame_Password.Useame_Email = '" + _U...

ادامه مطلب

How can you match URLs using wildcards in Ruby/Rails?

Vote count: -1 For example: *.google.com === www.google.com/q?=query * === anydomain.gov *.facebook.* === www.facebook.com asked 53 secs agoRamon Maciel Let's block ads! بخوانید...

ادامه مطلب

XMI File Reading using Asp.net C# and show in tree view

Vote count: 0 How I can read XMI file in asp.net C# and show in tree view. XMI have different format with XML , I want to read XMI file data with following format in asp.net C#. Format for XMI given bellow. Can any one please suggest how I can read this format and convert this XMI to Tree format in C# boolean byte boolean byte...

ادامه مطلب

Using a pre-defined function in a jQuery .each call

Vote count: 0 I need to call the .each() function on multiple jQuery objects like this: $('#table_1').each(function(){ /* foo */ }); $('#table_2').each(function(){ /* foo */ }); $('#table_3').each(function(){ /* foo */ }); I have not found a better way of doing this than writing out each function individually. Defining a function like this: $.fn.extend({ foo: function() { //Some code } }); $('#table_1').each(foo); retus a "caot read property 'call' on undefined function" error in the console. What am I doing wrong here? asked 31 secs agoSunfishSailor Let's block ads! بخوانید...

ادامه مطلب

how to scan bootstrap elements in an image using open cv 3?

Vote count: 0 I was given a UI of a webpage and I have to sagregate the bootstrap elements like NAVBAR, ROWS, COLUMNS,HEADERS etc.. So anyone have any idea of how to do it? asked 41 secs agoAshish Rambhatla Let's block ads! بخوانید...

ادامه مطلب