back soft

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

Could not enable CORS for JAX-RS Web Service

Vote count: 0 When I invoke my service via Angular2 using http.post request, I get Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. My JAX-RS service @Override @POST @Path("/getWsCallReports") @Produces(MediaType.APPLICATION_JSON) public Response getWsCallReports(Query query) { try { LOG.info("getWsCallReports called for " + query); retu Response.status(200) .header("Access-Control-Allow-Origin", "*") .header("Access-Control-Allow-Headers", "origin, content-type, accept, authorization") .header("Access-Control-Allow-Credentials", "true"...

ادامه مطلب

Read binary file one field at a time in C

Vote count: 0 I am leaing how to handle files in C. When I try to read a binary file, everything runs fine but I get a garbage output. Here is my code: FILE *ptr; struct file rec; ptr=fopen("sample.bin","rb"); while(!feof(ptr)) { fread(&rec,sizeof(struct file),1,ptr); printf("%d, %d, %d, %d, %f, %x, %s, %f, %c, %d, %u, %d, %x, %d, %d, %u, %fn", rec.a, rec.b, rec.c, rec.d, re.e, rec.f,rec.g, rec.h, rec.i, rec.j, rec.k, rec.l,rec.m, rec.n, rec.o, rec.p, rec.q); } So I am thinking I might need to use more than one fread(). Can Someone show me how to use it? Note:This is how the sample.bin looks like: 0000 0000 0101 002f 1000 0000 00f4 0d0a 4540 8f94 e9ff ffff ffff 636c 6f63 6b00 00c0 ece0 3b69 ...

ادامه مطلب

How to send notification with FCM XMPP

Vote count: 0 i need to send notification using fcm in android with xmpp. i tried to lot but not found any examples. Can anyone help me to finish this. i need to send a notification to particular device id using fcm without firebase. i need example asked 1 min agoEdgar prabhu Let's block ads!...

ادامه مطلب

php include is not working as expected

Vote count: 0 I am trying to put an include into my php page but I keep getting an error. This works fine:...

ادامه مطلب

MySQL Select all records

Vote count: 0 I have to tables: user and userimages. Right now, I'm using the following query: SELECT * FROM users u IER JOIN userimages ui ON u.id=ui.userid; Yes. It retrieved the records if the userid and id is equal. What I really want to do is to select all records from table users even if its id is not present on the second table (userimages) My question is how to select all records in the users table with or withou userid on the second table? asked 4 mins agosilent_coder14 1 Answer Vote count: 0 You're looking for a LEFT JOIN, which will pull all rows from the first table and join where applicable to the right. SELECT * FROM users u LEFT JOIN userimages ui ON u.id=ui.userid; answered 4...

ادامه مطلب

Google Excution API not accepting long json

Vote count: 0 I'm sending data to Google Execution API - I've got function in scripts to get parameter in json and put it in new Google Sheet. With small data it is working without a problem but I have big data to export - For example JSON that is sent in problematic export has 580k lines when formatted like this: [ { "productionDate": "12/08/2016", "legacyCode": null, "quantity": 1, "customer": "tst1", "customerAddress": "add1", "addressLegacyCode": "AD1" }, { "productionDate": "12/08/2016", "legacyCode": null, "quantity": 1, "customer": "cust2", "customerAddress": "add1", "addressLegacyCode": "AD2" } ] Does anyone of you know if there is a specific limit for length of parameter to be send ...

ادامه مطلب

Is there an open source version of google trends to use on private data?

Vote count: 0 Something to analyze private data for trends similar to google trends but to search against your own data store. asked 1 min agojrzelling Let's block ads!...

ادامه مطلب

Sonata Admin + show all items on list view (not per page)

Vote count: 0 In the Sonata Admin Bundle you have a list view where you can add fields you want to show in your table. At the bottom of the table you have the number of results and pagination. I like the pagination and items per page. But I would like to show ALL the items at the load of the page. So all the items are shown on the page but you can still choose to decrease the number of results per page. The problem is I don't have a clue on how to do this. Can someone set me on my way? asked 2 mins agonielsv Let's block ads!...

ادامه مطلب

Sonata Admin + show all items on list view (not per page)

Vote count: 0 In the Sonata Admin Bundle you have a list view where you can add fields you want to show in your table. At the bottom of the table you have the number of results and pagination. I like the pagination and items per page. But I would like to show ALL the items at the load of the page. So all the items are shown on the page but you can still choose to decrease the number of results per page. The problem is I don't have a clue on how to do this. Can someone set me on my way? asked 42 secs agonielsv Let's block ads!...

ادامه مطلب

Hover not working after changing bootstrap link color

Vote count: 0 I tried to override bootstrap link by changing color in this way: .social-icons a { color: #fff; } It worked fine that the color changed. But on hover, nothing happens. What is the problem? What is the proper way to do it? asked 41 secs agoSamson Luvanda Let's block ads!...

ادامه مطلب

VBA: Copy Worksheet only working when when file already exists

Vote count: 0 I want to copy a sheet from files X,Y and Z to a new file Master11Aug2016. If there already exists a file called Master11Aug2016 in the folder it works, but when there is not it retus an error on the copy line stating . Dim place As String place = "C:Users..." Dim fname As String dt = Format(CStr(Now), "ddmmmyy") fname = "Master" & dt Dim path As String path = place & fname & ".xlsx" Workbooks.Add ActiveWorkbook.SaveAs Filename:=(path) Dim X, Y, Z As String X = Dir(place & "X.xlsx") Y = Dir(place & "Y.xlsx") Z = Dir(place & "Z.xlsx") Workbooks.Open (X) Workbooks(X).Sheets("Sheet1").Calculate Workbooks(X).Sheets("Sheet1").Copy Before:=Workbooks(path).Sheets(1) [error here] Workb...

ادامه مطلب

SECONDARY member of mongodb replica set is not match with PRIMARY

Vote count: 0 I'm using mongodb replica set with two data center. One day, because of unknown packet drop, replica set was broken. So I restored replica set by removing/adding secoday , but It still something wrong Here is rs.status(), rs.conf() enter image description here enter image description here Why last heart beat is too old? Replication with two mongodb is not working asked 56 secs agoKim seonjoong Let's block ads!...

ادامه مطلب

removeAllViews does not work on ViewGroup

Vote count: 0 Ok.. so here's a function in my source core called previewCapturedImage private void previewCapturedImage(){ Log.d("ChildCount", "content child count before:" + mSelectedImagesContainer.getChildCount()); mSelectedImagesContainer.removeAllViews(); Log.d("ChildCount", "content child count after:" + mSelectedImagesContainer.getChildCount()); Iterator iterator = mMedia.iterator(); ImageIntealFetcher imageFetcher = new ImageIntealFetcher(this, 500); while (iterator.hasNext()) { Uri uri = iterator.next(); // showImage(uri); Log.i(TAG, " uri: " + uri); if (mMedia.size() >= 1) { mSelectedImagesContainer.setVisibility(View.VISIBLE); } View imageHolder = LayoutInflater.from(this).inflate...

ادامه مطلب

Polymer - 404 Not Found

Vote count: 0 so I'm trying to write a simple hello world program using Polymer. The problem I'm having is whenever I run the #polymer serve command and load up my webpage it can't find the webcomponents.min.js and the iron-component-page.html. Any reason as to why this is happening and how can I fix it? index.html polymer-element asked 18 secs agoExoSkeleton321 Let's block ads!...

ادامه مطلب

create shared view model in zend framework 2 project

Vote count: 0 I want to assign generic variables to the view renderer. I'd prefer to handle this in the module class. My question is, how do I create a view model in the module class that can be shared with the controller . My end result is to have the ability to add variables to the view model before we create a new instance of one inside the controller action. Here's something I started on, however i caot add variables to the declared viewmodel and have it persist to the controller's new instance of a view model. Is there a way to create a view model and have it set as the renderer before dispatch. class BaseController extends AbstractActionController { protected $viewModel; public functio...

ادامه مطلب

Q: Custom TableViewCell scroll to not see, and show again ,my custom line dismiss

Vote count: 0 I have two different custom cell in my tableview, In the first cell I add a custom cell line under the system cell line: _bottom_line = [[UIView alloc] initWithFrame:CGRectMake(0, 49, kScreen_Width, 1)]; _bottom_line.backgroundColor = Back_Color_QQ; [part3 addSubview:_bottom_line]; In the controller to setup my custom cell; - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.section == 0) { // my first cell static NSString *id_cell1 = @"cell1"; AgDetailTechCell *cell = [tableView dequeueReusableCellWithIdentifier:id_cell1]; if (cell == nil) { cell = [[AgDetailTechCell alloc] initWithStyle:UITableViewCellStyleDef...

ادامه مطلب

Hello Guys, python web link extraction not working

Vote count: 0 def get_second_link(new_page): start_point = new_page.find(' page = #some web source link.(Sorry, I had to backspace it as I am also new to the web and need 10 reputation to post more that 2 links) get_second_link(page) asked 1 min agoBright Sora Let's block ads!...

ادامه مطلب

c++ Why does an int Array return an adress, but an int x; return a value?

Vote count: 0 I am reading some c++, and I have as the title says something I cant grasp my mind to; Why does an int x; while being couted out, retu some random integer number like "-230202043", meanwhile as you cout out; int Arr[5]; cout...

ادامه مطلب

ccm node 1 start on windows 10 : Inet address 127.0.0.1:9042 is not available: [Errno 10013]

Vote count: 0 My laptop has been recently upgraded from windows 8 to windows 10. when I try to launch a node with ccm command i have the following error:...

ادامه مطلب

bash script running correctly in linux machine but not when executed via jenkins from a windows machine

Vote count: 0 I have a bash script as below: ------------------------------ #!/bin/bash VAR_A=$(echo "cat //artifact/fileName" | xmllint --shell BuildResult.xml | sed '/^/ >/d' | sed 's/]*.//g' | tr -d 'n' | awk -F"-------" '{print $3}') echo $VAR_A ------------------------------ I have jenkins installed on a windows machine and via cygwin openssh, I am coecting to the suse linux machine in which this script is residing. When I am calling the above script via an ANT sshexec command configured in Jenkins, it is ruing ok but no output. On the other hand, when I am ruing the same script from within the SUSE Linux system, it is echoing current result. I am not able to figure...

ادامه مطلب