Posts

Showing posts from June 28, 2018

npm failing to install @angular/common and @angular/core

I'm having a problem installing packages for @angular/core and common among others. Sometimes npm install seems to install fine, and sometimes I run it, and it stops with an ERR! Code 1 but no other details. Why does ng -v return actual version numbers that look good (that would be the versions of packages that angular will use to compile, right?) for everything, and npm outdated also claims that I have the packages installed, but npm ls --depth=0 tells me that I have UNMET PEER DEPENDENCY for a few items and UNMET PEER DEPENDENCY @angular/core invalid.? (also, what does the invalid mean?) ng -v shows me: (I know, we're behind on versions. No time to upgrade or test, and it's multiple developers working on it so I can't upgrade right now) npm outdated shows the same plus some other dev libraries but here is part of the npm list --depth=0 : And if I try to install each library separately, it fails to give npm ERR! code 1 (after a bunch of warnings on x requires

Compare strings as dates in i4gl

I'm trying to write a query where I've to compare two strings as dates. The details are as follows:— The code is as follows The column sanc_det in table t_leave_rc is defined as type CHAR(50). The first 10 characters in t_leave_rc.sanc_det contain leave sanction date of employees in dd/mm/yyyy format. I'm taking ddmm and yyyy as input from user to construct frm_dt and to_dt , so I've to define it as CHAR(8). I'm trying to compare above two CHAR types, namely t_leave_rc.sanc_det[1,10] and frm_dt, to_dt (concatenated) but I'm getting the wrong output in the results. Please suggest a solution so that I can get the correct output in the query. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

What's the difference between importing a target into unit testing and including that file among the target Membership?

Image
When I'm writing tests I can do: How is the above different from adding the Test File to a specific Target? Ultimately my question is: Had I made my unitTests a target to all my files...would it be equivalent to doing: If not, then what is the difference? From the Swift docs under the heading Access Levels for Unit Test Targets (emphasis added) When you write an app with a unit test target, the code in your app needs to be made available to that module in order to be tested. By default, only entities marked as open or public are accessible to other modules. However, a unit test target can access any internal entity, if you mark the import declaration for a product module with the @testable attribute and compile that product module with testing enabled. These docs say that the @testable attribute provides your Unit Test target access to all internals of the module marked as @testable. Thus letting you avoid having to manually add individual files in that module to the Unit Test tar

Query results half right after joining two tables

The following query resulted in correct results only for the inner query (post_engagement, website purchases) while all other numbers were incorrectly increased manyfold. Any ideas? Thanks. Schema of the two tables: Favorite_ads (id, campaign_id, campaign_name, objective, impressions, spend) Actions (id, ads_id, action_type, value) Without knowing the actual table structure, constraints, dependencies and data, it's hard to tell, what the issue may be. You already have some leads in the comments, which you should consider first. For example you wrote, that this sub-query returns correct results: Is this one also giving correct results: If so, then try replacing your sub-query with that one. If you still have a problem, then I'd investigate if your join condition is correct, as it would seem, that for a campaign ( campaign_id ) you could probably have multiple entries with the same id , which will multiply the sub-query results - that depends on what is actually the primary key

scanf throws Segmentation fault (core dumped) when using nasm + gcc on linux 64bit

When compiling below code: using: and then run it runs, print: enter a number: but then crashes and prints: Segmentation fault (core dumped) So printf works fine but scanf not. What am I doing wrong with scanf so? Use sub rsp, 8 / add rsp, 8 at the start/end of your function to re-align the stack to 16 bytes before your function does a call . Or better push/pop a dummy register, e.g. push rdx / pop rcx , or save/restore a call-preserved register like RBP. On function entry, RSP is 8 bytes away from 16-byte alignment because the call pushed an 8-byte return address. See Printing floating point numbers from x86-64 seems to require %rbp to be saved, main and stack alignment, and Calling printf in x86_64 using GNU assembler. This is an ABI requirement which you used to be able to get away with violating when there weren't any FP args for printf. But not any more. gcc's code-gen for glibc scanf now depends on 16-byte stack alignment even when AL == 0 . It seems to have auto

Looping Counter in Exel-VBA

Desired Output EX I am attempting to code in VBA for the first time and am being challenged with a project. I'm trying to create a looping counter that will search for a value in a column based on two conditions, add one to count and repeat. I need to set up this code to run based on weeks and a value in a separate column. Any input on how to do this and what I may be doing wrong would be greatly appreciated. Thank you. Edit: I am trying count instances of 5 different ranges in a column of cells and sort them by week it occurred. I have a column in an excel sheet that convert dates to week number. so for instance, if a value is greater than 53.33 and occurred twice on the fifth week of the year, the program would populate a cell with 2. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these p

SQL Server - update field in one table and updated related fields in multiple other tables, trigger, stored procedure or combination of both?

I'm working on a college problem and need to create a stored procedure to soft-delete a record in one table and the associated records in other tables. I'm trying to figure out how I might approach this and hence here I am. I have the following tables: As you can see, all of these tables have an IsDeleted column set with the data type bit and defaults to 0 (to allow for soft deletes). What I'm trying to achieve is that when dbo.Customers(IsDeleted) is updated to bit 1, the following records automatically update to bit 1 also: My initial thought is to set up a stored procedure to allow the end-user to easily update the dbo.Customers(IsDeleted) column and then a trigger to update the related records but I'm not clear if this is the best approach and if so where to start. My research into solving the problem so far has further confused me as it seems I need to be very careful that my code restricts the update of the IsDeleted columns ONLY as a standard stored procedu

Mysql last hour data

I tried several ways I found here, but it spits out more than the last hour. The table has a field t_timestamp with data like: It is now 2018-06-29 01:55:04 Above was created although I used something like: Where is my thinking error? I believe the solution is to this is to use TIMESTAMPDIFF instead of the DATE_SUB . Try something like the following: WHERE TIMESTAMPDIFF(SECONDS, now(), t_timestamp) < 3600000 Hope this helps. Usage of MySQL TIMESTAMPDIFF Demo :http://sqlfiddle.com/#!9/f5e2c3/8/0 Solution: By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Mẹ Ngốc Cực Phẩm Thật Uy Vũ

Image
Thông tin truyện Tác giả: Tề Thành Côn Thể loại: Ngôn Tình Nguồn: Thích Đọc Truyện Trạng thái: Đang ra Mẹ Ngốc Cực Phẩm Thật Uy Vũ Đánh giá: 6.6 / 10 từ 21 lượt Cô vốn là sát thủ lại không ngờ bản thân bị dì út bỏ thuốc mê đưa cô lên giường của lão đại Đế Quốc Hắc Dạ. Trải qua một đêm ân ái, cô liền mang thai Bảo Bảo. Đến khi cô truy hỏi dì út, rốt cuộc ai là cha của Bảo Bảo, nào ngờ lòng bàn chân của dì út như bôi dầu chạy rồi...Sáu năm... Xem thêm » Các chương mới nhất Chương 110-2: Nhất định phải tìm ra hung thủ (2) Chương 110-1: Nhất định phải tìm ra hung thủ (1) Danh sách chương Chương 1: Nói cho cô, cô thành công Chương 2: Không muốn mất đi tôn nghiêm Chương 3: Cô đúng là sát thủ nhà nghề! Chương 4: Mẹ, con thật đói Chương 5: Đội người áo đen tập kích Chương 6: Con trai bị bắt đi Chương 7: Cái nguy hiểm này, nhất định phải mạo hiểm! Chương 8: Bị anh nhìn ra rồi hả? Chương 9: Không thèm đếm xỉa, tiên hạ thủ vi cường (ra tay trước thì chiếm được lợi thế) Chương 10: Qu

ARCore : is arcore-preview.apk (= Tango Core app) required to run a ARCore app?

I would like to develop an app using ARCore. I have several questions: Thanks ! No. But much more than the current choice: Google plans to add support for other phones from Samsung, Huawei, LG, and Asus, among others. The goal is to bring ARCore support to “100 million devices at the end of the preview." - source Yes, If u using preview 1 then arcore-preview.apk else if you are using preview2 then install arcore-preview2.apk ARCore is based on the Tango. The service name is display as Tango Core in preview 1 and the servie name is diplay as ARCore in Preview2 Yes, In future they have plan attach the services by default in sdk but not sure(In Progress) and now the Apps can be downloaded from Play Store. Supported Devices are Following Google Pixel, Pixel XL, Pixel 2, Pixel 2 XL Samsung Galaxy S8 (SM-G950U, SM-G950N, SM-G950F, SM-G950FD, SM-G950W, SM-G950U1) Some of the different in Preview 1 and 2 Future Enhancement All of the basic functionality an be handle in 1.0 (l

Một Đoạn Nhân Duyên

Image
Thông tin truyện Tác giả: Sweet Girl Thể loại: Ngôn Tình, Xuyên Không, Cổ Đại Nguồn: Sàn Truyện Trạng thái: Đang ra Một Đoạn Nhân Duyên Đánh giá: 7.4 / 10 từ 11 lượt Thể loại: Tự sáng tác Ngô Thanh Tâm nàng là một sinh viên năm nhất ngành hướng dẫn viên du lịch. Cuộc sống của nàng diễn ra bình thường như bao người khác, nhưng trong một lần đi du lịch đã xuất hiện một biến cố làm thay đổi cả cuộc đời nàng. Nàng xuyên không đến một thời đại kỳ lạ không hề có trong lịch sử, một nơi mà chỉ có trong những cuốn tiểu thuyết ngu ngốc.Nàng điên cuồng tìm lối thoát để quay trở về nhưng tất cả chỉ khiến nàng không còn lý trí. Nhưng ông trời thật bất công, khi nàng tìm mọi cách trở về thì không được nhưng đến lúc nàng tìm được người thương thì ông trời lại cho nàng xuyên trở về. Có lẽ cuộc đời nàng, người đó chỉ là một cơn gió thoáng qua. Nhưng biết đâu rằng trên đời này vẫn còn những điều kỳ diệu xảy ra. Xem thêm » Các chương mới nhất Chương 72 Chương 71 Danh sách chương Chương 1: Du lịch C

invalid index to scalar variable when executing following code

Consider following code: When executing I have following error: IndexError: invalid index to scalar variable. How can I prevent this error? A is of shape (10,103) and the content of A is: To clarify a bit, when all_values[0] = 0 I need the first record of A, when all_values[0] = 1 then I need the second record of A, ..., when all_values[0] = 9 then I need the tenth record of A! By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

How to integrate biometric device of SecuSearch SDK PRO in ASP.NET

I am facing problem with integrating Bio metric device of Secugen Hemister Pro Duo SC PIV . I describing steps that I have done with this. Client and server are same machine. It is working in visual studio not in IIS on same machine . If I run the asp.net project from IIS , then "device open failed " error is thrown . But If I run the project in visual studio , then it is run successfully . I have enabled windows authentication . Please tell me how can I solve this error . Check for some reason: By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Hào Môn Ẩn Hôn: Phúc Hắc Tổng Tài Nuông Chiều Bà Xã

Image
Thông tin truyện Tác giả: Hạ Thanh Sam Thể loại: Ngôn Tình, Sủng Trạng thái: Đang ra Hào Môn Ẩn Hôn: Phúc Hắc Tổng Tài Nuông Chiều Bà Xã Đánh giá: 7.5 / 10 từ 233 lượt Cô vừa nhận chức trợ lý giám đốc ở tập đoàn Cảnh Thịnh thì bị tổng giám đốc ép đi cục dân chính để... làm giấy đăng ký kết hôn! Mới ngày đầu tiên đã bị hắn ép đến thế này, cô nên phản kháng hay tuân theo? Cưới xong, người kia lột sạch cô rồi ép dưới thân, nhỏ giọng khiêu khích: "Bướng bỉnh hay nhu thuận tôi đều tiếp, đêm hãy còn dài, chúng ta có thể thử một chút..." Xem thêm » Các chương mới nhất Chương 814: Lừa chú (1) Danh sách chương Chương 1: Tình yêu cũ tình yêu mới Chương 2: Ngươi học khai quật đi! Chương 3: Giới thiệu đối tượng Chương 4: Bị bán 10 vạn đồng Chương 5: Người đàn ông hoàn mỹ Chương 6: Tuyết rơi Chương 7: Có người ân ái Chương 8: Chuyện cũ không dám nhớ lại Chương 9: Cậu coi trọng anh trai tôi? Chương 10: Ta phải về nhà tìm ta mẹ Chương 11: Tại sao anh cái gì cũng đẹp như vậy?

Quân Hôn Kéo Dài: Cố Thiếu, Sủng Thê Vô Độ

Image
Thông tin truyện Tác giả: Xán Miểu Ái Ngư Thể loại: Ngôn Tình, Sủng Trạng thái: Đang ra Quân Hôn Kéo Dài: Cố Thiếu, Sủng Thê Vô Độ Đánh giá: 7.4 / 10 từ 188 lượt Tên khác : Thịnh thế sủng hôn: Cố thiếu, quá càn rỡ! Thể loại: Quân nhân, hiện đại, sủng, ngọt ** Giới thiệu1 ** Là Tư Lệnh đế quốc, bản tính anh luôn cuồng ngạo, khí phách, ngoại hình lại càng kinh diễm, hớp hồn bao nhiêu cô gái, trong thâm tâm lại âm trầm kiên nghị. Lần đầu tiên của cô không biết đã bị ai lấy mất, nên cô đành tạo ra một màn giả mạo. Đêm tôn hôn, nhìn thấy máu đỏ chảy ra, anh kinh ngạc: “Sao lại có máu, không lẽ là anh quá sức?” Hoắc Vi Vũ chột dạ: “Lần đầu tiên đều như vậy!” Cố thiếu đen mặt, “Vậy lần trước không lẽ là "mụ mụ" của em đến lúc sao?” Hoắc Vi Vũ: “……” __ Anh quyền khuynh thiên hạ, tung hoành mấy giới, lãnh khốc vô tình, duy nhất với cô, chỉ cần cô muốn, không có gì anh không cho cô được.  Bị hỏi nguyên nhân anh sủng thê vô độ, anh cười, “Vì tôi chảy máu hai, chỉ có cô ấy!” ** Giới t

Một Thai Hai Bảo: Giám Đốc Hàng Tỉ Yêu Vợ Tận Xương

Image
Thông tin truyện Tác giả: Hoa Dung Nguyệt Hạ Thể loại: Ngôn Tình, Sủng Nguồn: Thích Đọc Truyện Trạng thái: Đang ra Một Thai Hai Bảo: Giám Đốc Hàng Tỉ Yêu Vợ Tận Xương Đánh giá: 8.4 / 10 từ 171 lượt Anh là tổng tài Đế quốc thương nghiệp cao cao tại thượng, cô là một người con gái nuôi trong gia đình đang lâm nguy. Để giải cứu sự nghiệp của cha nuôi mình, cô liền ký vào tờ hợp đồng trăm vạn với nội dung: Sinh con thuê cho anh! Bất ngờ thay, cái thai cô có lại là song thai. Lúc sinh, người anh thì khỏe mạnh, còn người em khi vừa ra đời đã chết yểu không còn hơi thở nào. Cô hoàn tất hợp đồng, cảm khoản tiền thù lao trên trời rồi biến mất ở trong mắt anh. Sáu năm sau, anh vẫn là tổng giám đốc vạn ngườ có một, mà cô lại bị coi nhầm thành con chim bị anh nuôi nhốt trong chiếc lồng vàng! Anh từng bước ép sát: "Người phụ nữ này, cô tưởng rằng mình có thể thoát khỏi tay tôi sao!", lại không nghĩ rằng, anh bị một đứa trẻ cản lại, cậu nhóc trưng ra dáng vẻ của một ông cụ non, chỉ ngón

Trèo Cửa Sổ Gây Án: Ông Xã Ra Tay Nhẹ Nhàng

Image
Thông tin truyện Tác giả: Xán Miểu Ái NgưXán Miểu Ái Ngư Thể loại: Ngôn Tình, Sủng Nguồn: Thích Đọc Truyện Trạng thái: Đang ra Trèo Cửa Sổ Gây Án: Ông Xã Ra Tay Nhẹ Nhàng Đánh giá: 8.0 / 10 từ 32 lượt Thể loại: Tổng tài, sủng Đối với Miểu Miểu mà nói, chuyện mà cô làm đúng đắn nhất, thông minh nhất đời này chính là vào thời điểm then chốt, mở cửa sổ không biết của người nào, bò lên giường không của ai, liền có đứa con thông minh đáng yêu. Còn chuyện dại dột nhất mà cô làm chính là trêu chọc kẻ tồn tại như thần, anh tuấn hoàn mỹ, kiêu ngạo tàn khốc như Thẩm Mặc Thần. Khi cô hỏi nguyên nhân anh muốn cười cô, anh tựa tiếu phi tiếu cười: "Nhiều nước, thích hợp với tôi" Ký giả đỏ mặt."Còn có, chỉ có cô ấy có dũng khí nhảy từ cửa sổ tầng mười hai vào phòng tôi, yêu tôi như thế, còn cầu mong gì."  Trong lòng Thủy Miểu miểu độc thoại: Mẹ nó cô tưởng là lầu một! Không lấy anh, tổng giám đốc người ta liền ném cô vào ngục giam. Tội danh: Trộm con. Xem thêm » Các chương mới n

Trùng Sinh Làm Quý Thê: Sự Sủng Ái Của Đế Thiếu

Image
Thông tin truyện Tác giả: Lộ Phỉ Tịch Thể loại: Ngôn Tình, Trọng Sinh, Nữ Cường, Hài Hước, Sủng Nguồn: Thích Đọc Truyện Trạng thái: Đang ra Trùng Sinh Làm Quý Thê: Sự Sủng Ái Của Đế Thiếu Đánh giá: 7.5 / 10 từ 15 lượt Thể loại:  Ngôn tình, Hiện đại, HE, Tình cảm, Báo thù, Ngọt sủng, Trọng sinh, Hào môn thế gia, Giới giải trí, Sảng văn, Hài hước, Đô thị tình duyên, Duyên trời tác hợp, Nữ cường. Đời trước, cô từng dành tất cả cho hắn. Hắn muốn thừa kế gia tộc, cô liền giúp hắn, tạo dựng tiếng tăm cho hắn. Nhưng đến ngày chúc mừng của hắn thì người nhà cô đều bị chính tay hắn giết chết. Một nhà ba người, tất cả hóa thành than. Sống lại một lần nữ, cô trở thành vị tiểu thư nhà họ Tô. Bởi vì muốn chạy trốn trong bữa tiệc cưới mà nhảy xuống biển khiến mặt mũi hai họ Tô, Bùi mất sạch. Nếu như cô muốn có một nửa gia sản hồi môn để báo thù cho cha mẹ kiếp trước, thì cô nhất định phải khiến người chồng đào hoa của Hải Thành này yêu thích cô. Nhưng mà, người chồng nhìn qua có vẻ phong lưu này,