join table technique using codeigniter
Vote count: 0 Guys on my database i have three tables containing data as shown on a link below. On tables class and subjects, ssid and csid are foreign key from members. I joining tables using left join as shown in model code shown below. when i echo first_name, su ame and class_name for John claudi...
Using Google Scripts, inside of a "for" loop and an "if" statement, I want to save the index of the values to be used later on
Vote count: 0 n00b coder here, 0 professional or school training, so have mercy. I'm trying to create two spreadsheets: one tracks student attendance at school, the other tracks their attendance at Track practice. The goal is to write a function, that I can set up as a button, that I can click that ...
TreeMap HELP! - Java
Vote count: -1 I've been working endlessly on this project. I'm suppose to write the following method, but I'm not sure how to approach it. The following are the methods that I'm stuck on. public String generate(String symbol){}: Use the grammar in the rules map to randomly generate an occurrence of...
Matlab System generator: error with black box
Vote count: 0 I using Xilinx system generator blocks in Matlab. I simply using only a black box with a gateway in and gateway out. The code for the black box is very simple and work correctly with ISE design suite library IEEE; use IEEE.STD_LOGIC_1164.ALL; use ieee.numeric_std.ALL; entity test44_vhd...
Vue Js: Use directive in component with vue-loader
Vote count: 0 I'm using vue-loader and I'm facing a problem because I have created a directive in the main app.js to use in a component but is not possible to use that directive in the component. I'm receiving this message: vue.common.js?e881:1014 [Vue wa ]: Failed to resolve directive: swiper (foun...
Refactoring Lookup Function
Vote count: 0 I'm trying to refactor this function, but have hit a wall. What the function attempts to accomplish is find whether or not a contact exists within a JSON object, and if it does, determine if the second parameter provided is a property that exists on the specified object. var contacts =...
Apache in mode proxy redirect user to specific url
Vote count: 0 I have a problem with my apache in reverse proxy mode I want to achieve something and I really don't know how to do it. I have a web application ru ing on the port 8443 and a apache server in reverse proxy mode ru ing on the port 443. The application use the same login form in order to...
Can i use this fitness function?
Vote count: 0 i am working on a project using a genetic algorithm, and i try now to formulate a fitness function, my questions are : what is the effect of fitness formula choice on a GA ? it is possible to make the fitness function equals directly the number of violation (in case of minimisation) ? ...
jquery not working with infinite scroll
Vote count: 0 I'm new to jQuery and web developing but I'll do my best to give you the best damn question that you can ever have. I'm using jQuery plug in to perform infinite scroll in a web-page that will only display images. This plugin is from Infinite Scrolling though images. I have basically co...
Getting Facebook Picture After Authentication
Vote count: 0 I'm trying to automatically get the user's profile picture when authenticating their Facebook addFacebookInformationToProfile() { if (Meteor.isServer) { // This will only merge in information the first time, then ignore it once the flag is true const user = Meteor.user(); let use ame =...
MyBatis-CDI + Wildfly + JTA + requiresNew
Vote count: 0 I am trying use mybatis-cdi within Wilfly and I need to run part of method in separate transaction - see following snippet: @Stateless @TransactionManagement(TransactionManagementType.CONTAINER) public class ItemService { @Inject @Mapper ItemMapper mapper; @TransactionAttribute(Transac...
convert a JSON to a string array in typescript
Vote count: 0 I feel like I have quite an easy question but I just don't get to the answer... I parse the .text() of a response from my server with JSON.parse into JSON. And i actually can access the values of that JSON with: this.temp[0].name. Now i just want to iterate over that JSON and push the ...
Nested mongo query
Vote count: 0 Here is what the data looks like: { "_id" : { "item" : "1", "state" : "something" }, "things" : { "ordered" : 2, "cost" : 123 } } I try to query for all doc of item 1, there are many state for that item. I know i can get that record using db.orders.find({_id:{item:"1", state: "somethin...
Auto decrypt multiple LUKS Devices with Mandos
Vote count: 0 I played around with Mandos to automatically open an encrypted root device. I wanted to setup an encrypted btrfs raid 1 (sda1 and sdb1: LUKS). The first device is decrypted correctlly, but the second will noch be opened. Is there a way to do this? asked 49 secs agouser2638109 Let's blo...